Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit da2af7e

Browse files
authored
Merge branch 'master' into arr_index_obj
2 parents 80ef377 + 970d732 commit da2af7e

File tree

5 files changed

+62
-19
lines changed

5 files changed

+62
-19
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
name: Package
6060
command: |
6161
cargo build --all --all-targets --release
62-
ramp pack -m ramp.yml -o ./target/release/$PACKAGE_NAME.{os}-{architecture}.$CIRCLE_BRANCH.zip ./target/release/$MODULE_ARTIFACT
62+
ramp pack -m ramp.yml -n RedisJSON -o ./target/release/$PACKAGE_NAME.{os}-{architecture}.$CIRCLE_BRANCH.zip ./target/release/$MODULE_ARTIFACT
6363
6464
# - run:
6565
# name: Upload Coverage
@@ -71,11 +71,11 @@ jobs:
7171
- "~/.cargo"
7272
- "./target"
7373

74-
# - run:
75-
# name: Deploy to S3
76-
# command: >-
77-
# aws s3 cp ./target/release/ s3://redismodules/$PACKAGE_NAME/ --acl
78-
# public-read --recursive --exclude "*" --include "*.zip"
74+
- run:
75+
name: Deploy to S3
76+
command: >-
77+
aws s3 cp ./target/release/ s3://redismodules/$PACKAGE_NAME/ --acl
78+
public-read --recursive --exclude "*" --include "*.zip"
7979
8080
# - run:
8181
# name: Run all tests

Cargo.lock

Lines changed: 38 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ bson = "0.14"
1212
serde_json = "1.0"
1313
libc = "0.2"
1414
jsonpath_lib = { git="https://github.com/gkorland/jsonpath.git", branch="patch-1" }
15-
redis-module = { version="0.5.0", features = ["experimental-api"]}
16-
redisearch_api = "0.2.1"
15+
redis-module = { version="0.7.0", features = ["experimental-api"]}
16+
redisearch_api = "0.3.0"

ramp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
display_name: RedisJSON
1+
display_name: RedisJSON2
22
author: Redis Labs
33
email: redismodules@redislabs.com
44
description: Native JSON Data Type for Redis
55
homepage: http://redisjson.io
66
license: Redis Source Available License Agreement
77
command_line_args: ""
8-
min_redis_version: "4.0"
9-
min_redis_pack_version: "5.0"
8+
min_redis_version: "5.0"
9+
min_redis_pack_version: "5.4"
1010
capabilities:
1111
- types
1212
- no_multi_key

test/pytest/test.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,19 @@ def testDoubleParse(self):
792792
self.assertEqual(1512060373.222988, float(res))
793793
self.assertEqual('1512060373.222988', res)
794794

795+
def testIssue_80(self):
796+
"""https://github.com/RedisJSON/RedisJSON2/issues/80"""
797+
798+
with self.redis() as r:
799+
r.client_setname(self._testMethodName)
800+
r.flushdb()
801+
802+
self.assertOk(r.execute_command('JSON.SET', 'test', '.', '[{"code":"1"}, {"code":"2"}]'))
803+
r.execute_command('JSON.GET', 'test', '.[?(@.code=="2")]')
804+
805+
# This shouldn't crash Redis
806+
r.execute_command('JSON.GET', 'test', '$.[?(@.code=="2")]')
807+
795808
#
796809
# class CacheTestCase(BaseReJSONTest):
797810
# @property

0 commit comments

Comments
 (0)