Skip to content

Commit

Permalink
1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Dec 29, 2016
1 parent d47279e commit 34ae007
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.7.0] - 2016-12-29
### Added
- #104: PDEL command - Selete objects that match a pattern (@GameFreedom)
- #99: COMMAND keyword for masking geofences by command type (@amorskoy)
- #96: SCAN keyword for roaming geofences
- fba34a9: JSET, JGET, JDEL commands

### Fixed
- #107: Memory leak (@amorskoy)
- #98: Output json fix

## [1.6.0] - 2016-12-11
### Added
- #87: Fencing event grouping (@huangpeizhi)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
width="200" height="200" border="0" alt="Tile38"></a>
</p>
<p align="center">
<a href="https://github.com/tidwall/tile38/releases"><img src="https://img.shields.io/badge/version-1.6.0-green.svg" alt="Version"></a>
<a href="https://github.com/tidwall/tile38/releases"><img src="https://img.shields.io/badge/version-1.7.0-green.svg" alt="Version"></a>
<a href="https://travis-ci.org/tidwall/tile38"><img src="https://travis-ci.org/tidwall/tile38.svg?branch=master" alt="Build Status"></a>
<a href="https://hub.docker.com/r/tile38/tile38"><img src="https://img.shields.io/badge/docker-ready-blue.svg" alt="Docker Ready"></a>
</p>
Expand Down
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

VERSION="1.6.0"
VERSION="1.7.0"
PROTECTED_MODE="no"

# Hardcode some values to the core package
Expand All @@ -14,6 +14,13 @@ if [ "$PROTECTED_MODE" == "no" ]; then
LDFLAGS="$LDFLAGS -X github.com/tidwall/tile38/core.ProtectedMode=no"
fi

if [ "$1" == "update-version" ]; then
# update the versions in the README.md and Dockerfile
sed -i '' "s/version-.\..\../version-$VERSION/g" README.md
sed -i '' "s/ENV\ TILE38_VERSION\ .\..\../ENV TILE38_VERSION $VERSION/g" docker/Dockerfile
exit
fi

# Check go install
if [ "$(which go)" == "" ]; then
echo "error: Go is not installed. Please download and follow installation instructions at https://golang.org/dl to continue."
Expand Down
73 changes: 73 additions & 0 deletions core/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -1187,5 +1187,78 @@
}
],
"group": "keys"
},
"JGET": {
"summary": "Get a value from a JSON document",
"complexity": "O(1)",
"arguments":[
{
"name": "key",
"type": "string"
},
{
"name": "id",
"type": "string"
},
{
"name": "path",
"type": "string"
},
{
"command": "RAW",
"name": [],
"type": [],
"optional": true
}
],
"group": "keys"
},
"JSET": {
"summary": "Set a value in a JSON document",
"complexity": "O(1)",
"arguments":[
{
"name": "key",
"type": "string"
},
{
"name": "id",
"type": "string"
},
{
"name": "path",
"type": "string"
},
{
"name": "value",
"type": "string"
},
{
"command": "RAW",
"name": [],
"type": [],
"optional": true
}
],
"group": "keys"
},
"JDEL": {
"summary": "Delete a value from a JSON document",
"complexity": "O(1)",
"arguments":[
{
"name": "key",
"type": "string"
},
{
"name": "id",
"type": "string"
},
{
"name": "path",
"type": "string"
}
],
"group": "keys"
}
}
73 changes: 73 additions & 0 deletions core/commands_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1349,5 +1349,78 @@ var commandsJSON = `{
}
],
"group": "keys"
},
"JGET": {
"summary": "Get a value from a JSON document",
"complexity": "O(1)",
"arguments":[
{
"name": "key",
"type": "string"
},
{
"name": "id",
"type": "string"
},
{
"name": "path",
"type": "string"
},
{
"command": "RAW",
"name": [],
"type": [],
"optional": true
}
],
"group": "keys"
},
"JSET": {
"summary": "Set a value in a JSON document",
"complexity": "O(1)",
"arguments":[
{
"name": "key",
"type": "string"
},
{
"name": "id",
"type": "string"
},
{
"name": "path",
"type": "string"
},
{
"name": "value",
"type": "string"
},
{
"command": "RAW",
"name": [],
"type": [],
"optional": true
}
],
"group": "keys"
},
"JDEL": {
"summary": "Delete a value from a JSON document",
"complexity": "O(1)",
"arguments":[
{
"name": "key",
"type": "string"
},
{
"name": "id",
"type": "string"
},
{
"name": "path",
"type": "string"
}
],
"group": "keys"
}
}`
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.4

ENV TILE38_VERSION 1.6.0
ENV TILE38_VERSION 1.7.0
ENV TILE38_DOWNLOAD_URL https://github.com/tidwall/tile38/releases/download/$TILE38_VERSION/tile38-$TILE38_VERSION-linux-amd64.tar.gz

RUN addgroup -S tile38 && adduser -S -G tile38 tile38
Expand Down

0 comments on commit 34ae007

Please sign in to comment.