redis-ick 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +27 -9
- data/Appraisals +15 -13
- data/CHANGELOG.md +10 -6
- data/Gemfile +2 -2
- data/gemfiles/redis_3.0.gemfile +2 -2
- data/gemfiles/redis_3.0.gemfile.lock +15 -14
- data/gemfiles/redis_3.1.gemfile +2 -2
- data/gemfiles/redis_3.1.gemfile.lock +15 -14
- data/gemfiles/redis_3.2.gemfile +2 -2
- data/gemfiles/redis_3.2.gemfile.lock +15 -14
- data/gemfiles/redis_3.3.gemfile +2 -2
- data/gemfiles/redis_3.3.gemfile.lock +14 -13
- data/gemfiles/redis_4.0.gemfile +4 -4
- data/gemfiles/redis_4.0.gemfile.lock +55 -0
- data/gemfiles/redis_4.1.gemfile +20 -0
- data/gemfiles/redis_4.1.gemfile.lock +55 -0
- data/lib/redis/ick.rb +9 -8
- data/lib/redis/ick/version.rb +1 -1
- data/redis-ick.gemspec +6 -1
- metadata +31 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8a5daa6d8971a38cd1612550866901e98cab6a9aa217dbda97e4072cb5f372f
|
4
|
+
data.tar.gz: 9d3909a5c10d7729ae29ccbc1c55090bfa701885e7156b563c1289e6e51ca427
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12cd3ee7acca87ee3d09c3569ef214b5073dd768f2fb10a8650435573f0f5d8c27fa02b628bec772fd42c1aad4f70632ddaa7ae554e35be09744e1cd89dc4539
|
7
|
+
data.tar.gz: 579ce38a15bc79ca62a7d03948b11ac74f113aadeb3f3585fa30209b86aa052df9bd9ae4824724647991785e0bde62792e8432d5266dbdd7212432efebf71c95
|
data/.travis.yml
CHANGED
@@ -7,26 +7,44 @@
|
|
7
7
|
#
|
8
8
|
# We repeat all tests, both connecting directly to Redis and via Twemproxy.
|
9
9
|
#
|
10
|
-
sudo:
|
10
|
+
sudo: true
|
11
11
|
language: ruby
|
12
12
|
before_install:
|
13
|
-
|
13
|
+
#
|
14
|
+
# bundler 2.0.1 requires Ruby version >= 2.3.0 but we still want to
|
15
|
+
# support back to 2.2.2.
|
16
|
+
#
|
17
|
+
# See https://docs.travis-ci.com/user/languages/ruby/#bundler-20 for
|
18
|
+
# how this trickery works.
|
19
|
+
#
|
20
|
+
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
21
|
+
- gem install bundler -v 1.16.6
|
22
|
+
#
|
23
|
+
# We like to prove that redis-ick works via both direct Redis
|
24
|
+
# access, but also via Twemproxy.
|
25
|
+
#
|
14
26
|
- sudo add-apt-repository -y ppa:twemproxy/stable
|
15
27
|
- sudo apt-get update -y
|
16
28
|
- sudo apt-get install -y twemproxy
|
17
29
|
services:
|
18
30
|
- redis-server
|
19
31
|
rvm:
|
20
|
-
- 2.
|
21
|
-
- 2.2.
|
32
|
+
- 2.2.2
|
33
|
+
- 2.2.10
|
22
34
|
- 2.3.7
|
23
|
-
- 2.4.
|
24
|
-
- 2.5.
|
35
|
+
- 2.4.6
|
36
|
+
- 2.5.5
|
37
|
+
- 2.6.3
|
25
38
|
gemfile:
|
26
39
|
- gemfiles/redis_3.0.gemfile
|
27
40
|
- gemfiles/redis_3.1.gemfile
|
28
41
|
- gemfiles/redis_3.2.gemfile
|
29
42
|
- gemfiles/redis_3.3.gemfile
|
43
|
+
- gemfiles/redis_4.0.gemfile
|
44
|
+
- gemfiles/redis_4.1.gemfile
|
45
|
+
script:
|
46
|
+
- bundle _1.16.6_ exec rubocop --display-cop-names --display-style-guide
|
47
|
+
- bundle _1.16.6_ exec env REDIS_URL=redis://localhost:6379 rake test
|
30
48
|
before_script:
|
31
49
|
- bundle exec rubocop --version
|
32
50
|
- nutcracker --version
|
@@ -34,6 +52,6 @@ before_script:
|
|
34
52
|
- nutcracker --conf-file=.travis/nutcracker.yml &
|
35
53
|
- sleep 0.3
|
36
54
|
script:
|
37
|
-
- bundle exec rubocop --display-cop-names --display-style-guide
|
38
|
-
- bundle exec env REDIS_URL=redis://localhost:6379 rake test
|
39
|
-
- bundle exec env REDIS_URL=redis://localhost:22121 rake test
|
55
|
+
- bundle _1.16.6_ exec rubocop --display-cop-names --display-style-guide
|
56
|
+
- bundle _1.16.6_ exec env REDIS_URL=redis://localhost:6379 rake test
|
57
|
+
- bundle _1.16.6_ exec env REDIS_URL=redis://localhost:22121 rake test
|
data/Appraisals
CHANGED
@@ -1,25 +1,27 @@
|
|
1
1
|
appraise 'redis-3.0' do
|
2
|
-
gem 'redis', '
|
2
|
+
gem 'redis', '>= 3.0', '< 3.1'
|
3
3
|
end
|
4
4
|
appraise 'redis-3.1' do
|
5
|
-
gem 'redis', '
|
5
|
+
gem 'redis', '>= 3.1', '< 3.2'
|
6
6
|
end
|
7
7
|
appraise 'redis-3.2' do
|
8
|
-
gem 'redis', '
|
8
|
+
gem 'redis', '>= 3.2', '< 3.3'
|
9
9
|
end
|
10
10
|
appraise 'redis-3.3' do
|
11
|
-
gem 'redis', '
|
11
|
+
gem 'redis', '>= 3.3', '< 3.4'
|
12
12
|
end
|
13
13
|
#
|
14
|
-
# redis
|
14
|
+
# redis >= 4.0 depends on ruby >= 2.2.2
|
15
15
|
#
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
appraise 'redis-4.0' do
|
17
|
+
gem 'redis', '>= 4.0', '< 4.1'
|
18
|
+
end
|
19
|
+
#
|
20
|
+
# redis 4.1.1 still supports ruby 2.2, but redis 4.1.2 drops it
|
19
21
|
#
|
20
|
-
#
|
21
|
-
#
|
22
|
+
# I am not ready to pull the plug on ruby 2.2.2, so redis 4.1.x is
|
23
|
+
# as high as we will go for now.
|
22
24
|
#
|
23
|
-
|
24
|
-
|
25
|
-
|
25
|
+
appraise 'redis-4.1' do
|
26
|
+
gem 'redis', '>= 4.1', '< 4.1.2'
|
27
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,26 @@
|
|
1
|
-
## 0.1.
|
1
|
+
## 0.1.3 (2019-06-067)
|
2
|
+
- Support for redis >= 4.0.0 added.
|
3
|
+
- Breaking changes at redis v4.0.0 addressed.
|
4
|
+
- Support for ruby < 2.2.2 dropped.
|
5
|
+
- Support for ruby 2.6 added.
|
6
|
+
- Update ruby microversions tested in .travis.yml.
|
7
|
+
- Gemfile, Appraisals, and .travis.yml set to test with redis
|
8
|
+
gems from 3.0 through 4.1.
|
2
9
|
|
10
|
+
## 0.1.2 (2019-02-27)
|
3
11
|
- Expanded .travis.yml to cover more ruby versions.
|
4
12
|
- Change Lua scripts so all Redis keys are passed as explicit args.
|
5
13
|
- The pset and cset keys are now computed from the main key in Ruby.
|
6
14
|
- This supports certain forms of Redis cluster syncing.
|
7
15
|
|
8
16
|
## 0.1.1 (2018-06-18)
|
9
|
-
|
10
17
|
- Fix bug in `backwash`: cset scores not converted to number
|
11
18
|
before comparison with pset scores.
|
12
19
|
- redis-ick.gemspec reworked only to include runtime dependencies.
|
13
|
-
- Gemfile, Appraisals, and .travis.yml set to test with redis
|
20
|
+
- Gemfile, Appraisals, and .travis.yml set to test with redis
|
14
21
|
gem 3.0 to 3.3.
|
15
22
|
|
16
23
|
## 0.1.0 (2018-03-20)
|
17
|
-
|
18
24
|
- Added ickexchange which combines ickcommit+ickreserve.
|
19
25
|
- Introduced backwash to ickreserve and ickexchange.
|
20
26
|
- Expanded .travis.yml to cover more rvm versions.
|
@@ -22,11 +28,9 @@
|
|
22
28
|
- Moves version history out into CHANGELOG.md.
|
23
29
|
|
24
30
|
## 0.0.5 (2017-09-20)
|
25
|
-
|
26
31
|
- Rework ickstats so it no longer angers Twemproxy, per https://github.com/ProsperWorks/redis-ick/issues/3, by producing a nested Array response.
|
27
32
|
|
28
33
|
## 0.0.4 (2017-09-12)
|
29
|
-
|
30
34
|
- Imported text from original design doc to README.md, polish.
|
31
35
|
- Rubocop polish and defiance.
|
32
36
|
- Development dependency on [redis-key_hash](https://github.com/ProsperWorks/redis-key_hash) to test prescriptive hash claims.
|
data/Gemfile
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
|
7
7
|
source 'https://rubygems.org'
|
8
8
|
|
9
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
9
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
10
10
|
|
11
11
|
gemspec
|
12
12
|
|
13
13
|
group :development do
|
14
14
|
gem 'appraisal', '~> 2.2.0'
|
15
|
-
gem 'bundler', '
|
15
|
+
gem 'bundler', '1.16.6'
|
16
16
|
gem 'rake', '~> 12.3.1'
|
17
17
|
end
|
18
18
|
|
data/gemfiles/redis_3.0.gemfile
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
redis-ick (0.1.
|
5
|
-
redis
|
4
|
+
redis-ick (0.1.3)
|
5
|
+
redis (>= 3.0.0, < 5.0.0)
|
6
|
+
redis-script_manager (~> 0.0.6)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
@@ -13,18 +14,18 @@ GEM
|
|
13
14
|
thor (>= 0.14.0)
|
14
15
|
ast (2.4.0)
|
15
16
|
minitest (5.11.3)
|
16
|
-
parallel (1.
|
17
|
-
parser (2.
|
17
|
+
parallel (1.17.0)
|
18
|
+
parser (2.6.3.0)
|
18
19
|
ast (~> 2.4.0)
|
19
20
|
powerpack (0.1.2)
|
20
21
|
rainbow (3.0.0)
|
21
|
-
rake (12.3.
|
22
|
-
redis (3.
|
22
|
+
rake (12.3.2)
|
23
|
+
redis (3.0.7)
|
23
24
|
redis-key_hash (0.0.5)
|
24
25
|
redis-namespace (1.6.0)
|
25
26
|
redis (>= 3.0.4)
|
26
|
-
redis-script_manager (0.0.
|
27
|
-
redis (
|
27
|
+
redis-script_manager (0.0.6)
|
28
|
+
redis (>= 3.0.0, < 5.0.0)
|
28
29
|
rubocop (0.54.0)
|
29
30
|
parallel (~> 1.10)
|
30
31
|
parser (>= 2.5)
|
@@ -32,23 +33,23 @@ GEM
|
|
32
33
|
rainbow (>= 2.2.2, < 4.0)
|
33
34
|
ruby-progressbar (~> 1.7)
|
34
35
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
35
|
-
ruby-progressbar (1.
|
36
|
-
thor (0.20.
|
37
|
-
unicode-display_width (1.
|
36
|
+
ruby-progressbar (1.10.1)
|
37
|
+
thor (0.20.3)
|
38
|
+
unicode-display_width (1.6.0)
|
38
39
|
|
39
40
|
PLATFORMS
|
40
41
|
ruby
|
41
42
|
|
42
43
|
DEPENDENCIES
|
43
44
|
appraisal (~> 2.2.0)
|
44
|
-
bundler (
|
45
|
+
bundler (= 1.16.6)
|
45
46
|
minitest (~> 5.11.3)
|
46
47
|
rake (~> 12.3.1)
|
47
|
-
redis (
|
48
|
+
redis (>= 3.0, < 3.1)
|
48
49
|
redis-ick!
|
49
50
|
redis-key_hash (~> 0.0.4)
|
50
51
|
redis-namespace (~> 1.5)
|
51
52
|
rubocop (~> 0.54.0)
|
52
53
|
|
53
54
|
BUNDLED WITH
|
54
|
-
1.16.
|
55
|
+
1.16.6
|
data/gemfiles/redis_3.1.gemfile
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
redis-ick (0.1.
|
5
|
-
redis
|
4
|
+
redis-ick (0.1.3)
|
5
|
+
redis (>= 3.0.0, < 5.0.0)
|
6
|
+
redis-script_manager (~> 0.0.6)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
@@ -13,18 +14,18 @@ GEM
|
|
13
14
|
thor (>= 0.14.0)
|
14
15
|
ast (2.4.0)
|
15
16
|
minitest (5.11.3)
|
16
|
-
parallel (1.
|
17
|
-
parser (2.
|
17
|
+
parallel (1.17.0)
|
18
|
+
parser (2.6.3.0)
|
18
19
|
ast (~> 2.4.0)
|
19
20
|
powerpack (0.1.2)
|
20
21
|
rainbow (3.0.0)
|
21
|
-
rake (12.3.
|
22
|
-
redis (3.
|
22
|
+
rake (12.3.2)
|
23
|
+
redis (3.1.0)
|
23
24
|
redis-key_hash (0.0.5)
|
24
25
|
redis-namespace (1.6.0)
|
25
26
|
redis (>= 3.0.4)
|
26
|
-
redis-script_manager (0.0.
|
27
|
-
redis (
|
27
|
+
redis-script_manager (0.0.6)
|
28
|
+
redis (>= 3.0.0, < 5.0.0)
|
28
29
|
rubocop (0.54.0)
|
29
30
|
parallel (~> 1.10)
|
30
31
|
parser (>= 2.5)
|
@@ -32,23 +33,23 @@ GEM
|
|
32
33
|
rainbow (>= 2.2.2, < 4.0)
|
33
34
|
ruby-progressbar (~> 1.7)
|
34
35
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
35
|
-
ruby-progressbar (1.
|
36
|
-
thor (0.20.
|
37
|
-
unicode-display_width (1.
|
36
|
+
ruby-progressbar (1.10.1)
|
37
|
+
thor (0.20.3)
|
38
|
+
unicode-display_width (1.6.0)
|
38
39
|
|
39
40
|
PLATFORMS
|
40
41
|
ruby
|
41
42
|
|
42
43
|
DEPENDENCIES
|
43
44
|
appraisal (~> 2.2.0)
|
44
|
-
bundler (
|
45
|
+
bundler (= 1.16.6)
|
45
46
|
minitest (~> 5.11.3)
|
46
47
|
rake (~> 12.3.1)
|
47
|
-
redis (
|
48
|
+
redis (>= 3.1, < 3.2)
|
48
49
|
redis-ick!
|
49
50
|
redis-key_hash (~> 0.0.4)
|
50
51
|
redis-namespace (~> 1.5)
|
51
52
|
rubocop (~> 0.54.0)
|
52
53
|
|
53
54
|
BUNDLED WITH
|
54
|
-
1.16.
|
55
|
+
1.16.6
|
data/gemfiles/redis_3.2.gemfile
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
redis-ick (0.1.
|
5
|
-
redis
|
4
|
+
redis-ick (0.1.3)
|
5
|
+
redis (>= 3.0.0, < 5.0.0)
|
6
|
+
redis-script_manager (~> 0.0.6)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
@@ -13,18 +14,18 @@ GEM
|
|
13
14
|
thor (>= 0.14.0)
|
14
15
|
ast (2.4.0)
|
15
16
|
minitest (5.11.3)
|
16
|
-
parallel (1.
|
17
|
-
parser (2.
|
17
|
+
parallel (1.17.0)
|
18
|
+
parser (2.6.3.0)
|
18
19
|
ast (~> 2.4.0)
|
19
20
|
powerpack (0.1.2)
|
20
21
|
rainbow (3.0.0)
|
21
|
-
rake (12.3.
|
22
|
-
redis (3.
|
22
|
+
rake (12.3.2)
|
23
|
+
redis (3.2.2)
|
23
24
|
redis-key_hash (0.0.5)
|
24
25
|
redis-namespace (1.6.0)
|
25
26
|
redis (>= 3.0.4)
|
26
|
-
redis-script_manager (0.0.
|
27
|
-
redis (
|
27
|
+
redis-script_manager (0.0.6)
|
28
|
+
redis (>= 3.0.0, < 5.0.0)
|
28
29
|
rubocop (0.54.0)
|
29
30
|
parallel (~> 1.10)
|
30
31
|
parser (>= 2.5)
|
@@ -32,23 +33,23 @@ GEM
|
|
32
33
|
rainbow (>= 2.2.2, < 4.0)
|
33
34
|
ruby-progressbar (~> 1.7)
|
34
35
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
35
|
-
ruby-progressbar (1.
|
36
|
-
thor (0.20.
|
37
|
-
unicode-display_width (1.
|
36
|
+
ruby-progressbar (1.10.1)
|
37
|
+
thor (0.20.3)
|
38
|
+
unicode-display_width (1.6.0)
|
38
39
|
|
39
40
|
PLATFORMS
|
40
41
|
ruby
|
41
42
|
|
42
43
|
DEPENDENCIES
|
43
44
|
appraisal (~> 2.2.0)
|
44
|
-
bundler (
|
45
|
+
bundler (= 1.16.6)
|
45
46
|
minitest (~> 5.11.3)
|
46
47
|
rake (~> 12.3.1)
|
47
|
-
redis (
|
48
|
+
redis (>= 3.2, < 3.3)
|
48
49
|
redis-ick!
|
49
50
|
redis-key_hash (~> 0.0.4)
|
50
51
|
redis-namespace (~> 1.5)
|
51
52
|
rubocop (~> 0.54.0)
|
52
53
|
|
53
54
|
BUNDLED WITH
|
54
|
-
1.16.
|
55
|
+
1.16.6
|
data/gemfiles/redis_3.3.gemfile
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
redis-ick (0.1.
|
5
|
-
redis
|
4
|
+
redis-ick (0.1.3)
|
5
|
+
redis (>= 3.0.0, < 5.0.0)
|
6
|
+
redis-script_manager (~> 0.0.6)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
@@ -13,18 +14,18 @@ GEM
|
|
13
14
|
thor (>= 0.14.0)
|
14
15
|
ast (2.4.0)
|
15
16
|
minitest (5.11.3)
|
16
|
-
parallel (1.
|
17
|
-
parser (2.
|
17
|
+
parallel (1.17.0)
|
18
|
+
parser (2.6.3.0)
|
18
19
|
ast (~> 2.4.0)
|
19
20
|
powerpack (0.1.2)
|
20
21
|
rainbow (3.0.0)
|
21
|
-
rake (12.3.
|
22
|
+
rake (12.3.2)
|
22
23
|
redis (3.3.5)
|
23
24
|
redis-key_hash (0.0.5)
|
24
25
|
redis-namespace (1.6.0)
|
25
26
|
redis (>= 3.0.4)
|
26
|
-
redis-script_manager (0.0.
|
27
|
-
redis (
|
27
|
+
redis-script_manager (0.0.6)
|
28
|
+
redis (>= 3.0.0, < 5.0.0)
|
28
29
|
rubocop (0.54.0)
|
29
30
|
parallel (~> 1.10)
|
30
31
|
parser (>= 2.5)
|
@@ -32,23 +33,23 @@ GEM
|
|
32
33
|
rainbow (>= 2.2.2, < 4.0)
|
33
34
|
ruby-progressbar (~> 1.7)
|
34
35
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
35
|
-
ruby-progressbar (1.
|
36
|
-
thor (0.20.
|
37
|
-
unicode-display_width (1.
|
36
|
+
ruby-progressbar (1.10.1)
|
37
|
+
thor (0.20.3)
|
38
|
+
unicode-display_width (1.6.0)
|
38
39
|
|
39
40
|
PLATFORMS
|
40
41
|
ruby
|
41
42
|
|
42
43
|
DEPENDENCIES
|
43
44
|
appraisal (~> 2.2.0)
|
44
|
-
bundler (
|
45
|
+
bundler (= 1.16.6)
|
45
46
|
minitest (~> 5.11.3)
|
46
47
|
rake (~> 12.3.1)
|
47
|
-
redis (
|
48
|
+
redis (>= 3.3, < 3.4)
|
48
49
|
redis-ick!
|
49
50
|
redis-key_hash (~> 0.0.4)
|
50
51
|
redis-namespace (~> 1.5)
|
51
52
|
rubocop (~> 0.54.0)
|
52
53
|
|
53
54
|
BUNDLED WITH
|
54
|
-
1.16.
|
55
|
+
1.16.6
|
data/gemfiles/redis_4.0.gemfile
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "redis", "
|
5
|
+
gem "redis", ">= 4.0", "< 4.1"
|
6
6
|
|
7
7
|
group :development do
|
8
|
-
gem "appraisal"
|
9
|
-
gem "bundler"
|
10
|
-
gem "rake"
|
8
|
+
gem "appraisal", "~> 2.2.0"
|
9
|
+
gem "bundler", "1.16.6"
|
10
|
+
gem "rake", "~> 12.3.1"
|
11
11
|
end
|
12
12
|
|
13
13
|
group :test do
|
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
redis-ick (0.1.3)
|
5
|
+
redis (>= 3.0.0, < 5.0.0)
|
6
|
+
redis-script_manager (~> 0.0.6)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
appraisal (2.2.0)
|
12
|
+
bundler
|
13
|
+
rake
|
14
|
+
thor (>= 0.14.0)
|
15
|
+
ast (2.4.0)
|
16
|
+
minitest (5.11.3)
|
17
|
+
parallel (1.17.0)
|
18
|
+
parser (2.6.3.0)
|
19
|
+
ast (~> 2.4.0)
|
20
|
+
powerpack (0.1.2)
|
21
|
+
rainbow (3.0.0)
|
22
|
+
rake (12.3.2)
|
23
|
+
redis (4.0.3)
|
24
|
+
redis-key_hash (0.0.5)
|
25
|
+
redis-namespace (1.6.0)
|
26
|
+
redis (>= 3.0.4)
|
27
|
+
redis-script_manager (0.0.6)
|
28
|
+
redis (>= 3.0.0, < 5.0.0)
|
29
|
+
rubocop (0.54.0)
|
30
|
+
parallel (~> 1.10)
|
31
|
+
parser (>= 2.5)
|
32
|
+
powerpack (~> 0.1)
|
33
|
+
rainbow (>= 2.2.2, < 4.0)
|
34
|
+
ruby-progressbar (~> 1.7)
|
35
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
36
|
+
ruby-progressbar (1.10.1)
|
37
|
+
thor (0.20.3)
|
38
|
+
unicode-display_width (1.6.0)
|
39
|
+
|
40
|
+
PLATFORMS
|
41
|
+
ruby
|
42
|
+
|
43
|
+
DEPENDENCIES
|
44
|
+
appraisal (~> 2.2.0)
|
45
|
+
bundler (= 1.16.6)
|
46
|
+
minitest (~> 5.11.3)
|
47
|
+
rake (~> 12.3.1)
|
48
|
+
redis (>= 4.0, < 4.1)
|
49
|
+
redis-ick!
|
50
|
+
redis-key_hash (~> 0.0.4)
|
51
|
+
redis-namespace (~> 1.5)
|
52
|
+
rubocop (~> 0.54.0)
|
53
|
+
|
54
|
+
BUNDLED WITH
|
55
|
+
1.16.6
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "redis", ">= 4.1", "< 4.1.2"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "appraisal", "~> 2.2.0"
|
9
|
+
gem "bundler", "1.16.6"
|
10
|
+
gem "rake", "~> 12.3.1"
|
11
|
+
end
|
12
|
+
|
13
|
+
group :test do
|
14
|
+
gem "minitest", "~> 5.11.3"
|
15
|
+
gem "redis-key_hash", "~> 0.0.4"
|
16
|
+
gem "redis-namespace", "~> 1.5"
|
17
|
+
gem "rubocop", "~> 0.54.0"
|
18
|
+
end
|
19
|
+
|
20
|
+
gemspec path: "../"
|
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
redis-ick (0.1.3)
|
5
|
+
redis (>= 3.0.0, < 5.0.0)
|
6
|
+
redis-script_manager (~> 0.0.6)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
appraisal (2.2.0)
|
12
|
+
bundler
|
13
|
+
rake
|
14
|
+
thor (>= 0.14.0)
|
15
|
+
ast (2.4.0)
|
16
|
+
minitest (5.11.3)
|
17
|
+
parallel (1.17.0)
|
18
|
+
parser (2.6.3.0)
|
19
|
+
ast (~> 2.4.0)
|
20
|
+
powerpack (0.1.2)
|
21
|
+
rainbow (3.0.0)
|
22
|
+
rake (12.3.2)
|
23
|
+
redis (4.1.1)
|
24
|
+
redis-key_hash (0.0.5)
|
25
|
+
redis-namespace (1.6.0)
|
26
|
+
redis (>= 3.0.4)
|
27
|
+
redis-script_manager (0.0.6)
|
28
|
+
redis (>= 3.0.0, < 5.0.0)
|
29
|
+
rubocop (0.54.0)
|
30
|
+
parallel (~> 1.10)
|
31
|
+
parser (>= 2.5)
|
32
|
+
powerpack (~> 0.1)
|
33
|
+
rainbow (>= 2.2.2, < 4.0)
|
34
|
+
ruby-progressbar (~> 1.7)
|
35
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
36
|
+
ruby-progressbar (1.10.1)
|
37
|
+
thor (0.20.3)
|
38
|
+
unicode-display_width (1.6.0)
|
39
|
+
|
40
|
+
PLATFORMS
|
41
|
+
ruby
|
42
|
+
|
43
|
+
DEPENDENCIES
|
44
|
+
appraisal (~> 2.2.0)
|
45
|
+
bundler (= 1.16.6)
|
46
|
+
minitest (~> 5.11.3)
|
47
|
+
rake (~> 12.3.1)
|
48
|
+
redis (>= 4.1, < 4.1.2)
|
49
|
+
redis-ick!
|
50
|
+
redis-key_hash (~> 0.0.4)
|
51
|
+
redis-namespace (~> 1.5)
|
52
|
+
rubocop (~> 0.54.0)
|
53
|
+
|
54
|
+
BUNDLED WITH
|
55
|
+
1.16.6
|
data/lib/redis/ick.rb
CHANGED
@@ -206,9 +206,9 @@ class Redis
|
|
206
206
|
# Native ZADD and ZRANGE WITHSCORES exhibit this same irritating
|
207
207
|
# inconsistency: Ick is annoyance-compatible with Redis sorted sets.
|
208
208
|
#
|
209
|
-
# However, by analogy with redis
|
210
|
-
# Ruby wrapper method pairs up the results for you, and
|
211
|
-
# string scores to floats.
|
209
|
+
# However, by analogy with the redis gem's Redis.current.zrange(),
|
210
|
+
# this Ruby wrapper method pairs up the results for you, and
|
211
|
+
# converts the string scores to floats.
|
212
212
|
#
|
213
213
|
# - you get from this method [[ member_string, score_number] , ... ]
|
214
214
|
#
|
@@ -411,11 +411,12 @@ class Redis
|
|
411
411
|
# TODO: Where this utility lives in the code is not very well
|
412
412
|
# thought-out. This is more broadly applicable than just for
|
413
413
|
# Icks. This probably belongs in its own file, or in RedisUtil,
|
414
|
-
# or as a monkey-patch into redis
|
415
|
-
# with Redis::Futures, but has zero Redis-specific code. This
|
416
|
-
# more broadly applicable, maybe, than Redis. This is in class
|
417
|
-
# for the time being only because Ick.ickstats() is where I
|
418
|
-
# needed this and it isn't otherwise obvious where to put
|
414
|
+
# or as a monkey-patch into the redis gem. This is intended for
|
415
|
+
# use with Redis::Futures, but has zero Redis-specific code. This
|
416
|
+
# is more broadly applicable, maybe, than Redis. This is in class
|
417
|
+
# Ick for the time being only because Ick.ickstats() is where I
|
418
|
+
# first needed this and it isn't otherwise obvious where to put
|
419
|
+
# this.
|
419
420
|
#
|
420
421
|
class FutureContinuation
|
421
422
|
#
|
data/lib/redis/ick/version.rb
CHANGED
data/redis-ick.gemspec
CHANGED
@@ -21,7 +21,12 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
-
|
24
|
+
# redis-script_manager 0.0.6 added support for redis >= 4.0.0 which
|
25
|
+
# we also intend to support here in redis-ick.
|
26
|
+
#
|
27
|
+
spec.required_ruby_version = ['>= 2.2.2', '< 2.7.0'] # tested to 2.6.3
|
28
|
+
spec.add_runtime_dependency 'redis', '>= 3.0.0', '< 5.0.0' # tested to 4.1.1
|
29
|
+
spec.add_runtime_dependency 'redis-script_manager', '~> 0.0.6'
|
25
30
|
|
26
31
|
# Development dependencies are captured in Gemfile, per the pattern:
|
27
32
|
#
|
metadata
CHANGED
@@ -1,29 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-ick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jhwillett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: redis
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.0.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.0.0
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: redis-script_manager
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
16
36
|
requirements:
|
17
37
|
- - "~>"
|
18
38
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0.
|
39
|
+
version: 0.0.6
|
20
40
|
type: :runtime
|
21
41
|
prerelease: false
|
22
42
|
version_requirements: !ruby/object:Gem::Requirement
|
23
43
|
requirements:
|
24
44
|
- - "~>"
|
25
45
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0.
|
46
|
+
version: 0.0.6
|
27
47
|
description:
|
28
48
|
email:
|
29
49
|
- jhw@prosperworks.com
|
@@ -53,6 +73,9 @@ files:
|
|
53
73
|
- gemfiles/redis_3.3.gemfile
|
54
74
|
- gemfiles/redis_3.3.gemfile.lock
|
55
75
|
- gemfiles/redis_4.0.gemfile
|
76
|
+
- gemfiles/redis_4.0.gemfile.lock
|
77
|
+
- gemfiles/redis_4.1.gemfile
|
78
|
+
- gemfiles/redis_4.1.gemfile.lock
|
56
79
|
- lib/redis/ick.rb
|
57
80
|
- lib/redis/ick/version.rb
|
58
81
|
- redis-ick.gemspec
|
@@ -67,7 +90,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
90
|
requirements:
|
68
91
|
- - ">="
|
69
92
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
93
|
+
version: 2.2.2
|
94
|
+
- - "<"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.7.0
|
71
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
98
|
requirements:
|
73
99
|
- - ">="
|