redis-cluster-activesupport 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -4
- data/gemfiles/rails60.gemfile.lock +16 -15
- data/gemfiles/rails61.gemfile.lock +17 -16
- data/lib/active_support/cache/redis_cluster_store.rb +1 -1
- data/redis-cluster-activesupport.gemspec +2 -2
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ec6599a6fb3a59f117d982a0007310f70084a00431e0ae9aa003f0a003bc5cf
|
4
|
+
data.tar.gz: 16ea28b1cbb756d75ff2d5ec8dcfb609ab3d26b9d80fc08b38858f2d353e674f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adefea5d74682016588d1b6e106f07b587bf9c029036e73cfaf1055deea5c65a6dc2805439f6e5c79dd57ffb449566ae547d6d4f17a4db41fe7131c38d8360bc
|
7
|
+
data.tar.gz: 51de46d9c650b0fd7944cdbeec2dc808ab5e80350b2f6b6b58568bbf224dae94cdecbf60a2e2f9ec8c432ef02c28e311a15a9593a361d56f40cda5955d8b7a26
|
data/.github/workflows/ci.yml
CHANGED
@@ -17,19 +17,18 @@ jobs:
|
|
17
17
|
matrix:
|
18
18
|
ruby-version: [ '3.2', '3.1', '3.0', '2.7', '2.6', 'jruby-9.3', 'jruby-9.4' ]
|
19
19
|
gemfile: [ 'rails60', 'rails61' ]
|
20
|
-
env:
|
20
|
+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
21
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
21
22
|
RAILS_ENV: test
|
22
23
|
steps:
|
23
24
|
- name: Checkout code
|
24
|
-
uses: actions/checkout@
|
25
|
+
uses: actions/checkout@v4
|
25
26
|
# Add or replace dependency steps here
|
26
27
|
- name: Install Ruby and gems
|
27
28
|
uses: ruby/setup-ruby@v1
|
28
29
|
with:
|
29
30
|
bundler-cache: true
|
30
31
|
ruby-version: ${{ matrix.ruby-version }}
|
31
|
-
env:
|
32
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
33
32
|
# Add or replace test runners here
|
34
33
|
- name: Run tests
|
35
34
|
run: bundle exec rspec
|
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
redis-cluster-activesupport (0.
|
5
|
-
activesupport (
|
4
|
+
redis-cluster-activesupport (1.0.0)
|
5
|
+
activesupport (>= 6.0, < 7.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -14,15 +14,15 @@ GEM
|
|
14
14
|
tzinfo (~> 1.1)
|
15
15
|
zeitwerk (~> 2.2, >= 2.2.2)
|
16
16
|
coderay (1.1.3)
|
17
|
-
concurrent-ruby (1.2.
|
17
|
+
concurrent-ruby (1.2.2)
|
18
18
|
diff-lcs (1.5.0)
|
19
|
-
fakeredis (0.
|
20
|
-
redis (~> 4.
|
21
|
-
ffi (1.
|
22
|
-
i18n (1.
|
19
|
+
fakeredis (0.9.2)
|
20
|
+
redis (~> 4.8)
|
21
|
+
ffi (1.16.3-java)
|
22
|
+
i18n (1.14.1)
|
23
23
|
concurrent-ruby (~> 1.0)
|
24
24
|
method_source (1.0.0)
|
25
|
-
minitest (5.
|
25
|
+
minitest (5.20.0)
|
26
26
|
pry (0.14.2)
|
27
27
|
coderay (~> 1.1)
|
28
28
|
method_source (~> 1.0)
|
@@ -31,29 +31,30 @@ GEM
|
|
31
31
|
method_source (~> 1.0)
|
32
32
|
spoon (~> 0.0)
|
33
33
|
rake (10.5.0)
|
34
|
-
redis (4.8.
|
34
|
+
redis (4.8.1)
|
35
35
|
rspec (3.12.0)
|
36
36
|
rspec-core (~> 3.12.0)
|
37
37
|
rspec-expectations (~> 3.12.0)
|
38
38
|
rspec-mocks (~> 3.12.0)
|
39
|
-
rspec-core (3.12.
|
39
|
+
rspec-core (3.12.2)
|
40
40
|
rspec-support (~> 3.12.0)
|
41
|
-
rspec-expectations (3.12.
|
41
|
+
rspec-expectations (3.12.3)
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
43
|
rspec-support (~> 3.12.0)
|
44
|
-
rspec-mocks (3.12.
|
44
|
+
rspec-mocks (3.12.6)
|
45
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
46
|
rspec-support (~> 3.12.0)
|
47
|
-
rspec-support (3.12.
|
47
|
+
rspec-support (3.12.1)
|
48
48
|
spoon (0.0.6)
|
49
49
|
ffi
|
50
50
|
thread_safe (0.3.6)
|
51
51
|
thread_safe (0.3.6-java)
|
52
52
|
tzinfo (1.2.11)
|
53
53
|
thread_safe (~> 0.1)
|
54
|
-
zeitwerk (2.6.
|
54
|
+
zeitwerk (2.6.12)
|
55
55
|
|
56
56
|
PLATFORMS
|
57
|
+
arm64-darwin-22
|
57
58
|
universal-java-1.8
|
58
59
|
universal-java-11
|
59
60
|
x86_64-linux
|
@@ -68,4 +69,4 @@ DEPENDENCIES
|
|
68
69
|
rspec (~> 3.0)
|
69
70
|
|
70
71
|
BUNDLED WITH
|
71
|
-
2.4.
|
72
|
+
2.4.20
|
@@ -1,28 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
redis-cluster-activesupport (0.
|
5
|
-
activesupport (
|
4
|
+
redis-cluster-activesupport (1.0.0)
|
5
|
+
activesupport (>= 6.0, < 7.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.7.
|
10
|
+
activesupport (6.1.7.6)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
14
14
|
tzinfo (~> 2.0)
|
15
15
|
zeitwerk (~> 2.3)
|
16
16
|
coderay (1.1.3)
|
17
|
-
concurrent-ruby (1.2.
|
17
|
+
concurrent-ruby (1.2.2)
|
18
18
|
diff-lcs (1.5.0)
|
19
|
-
fakeredis (0.
|
20
|
-
redis (~> 4.
|
21
|
-
ffi (1.
|
22
|
-
i18n (1.
|
19
|
+
fakeredis (0.9.2)
|
20
|
+
redis (~> 4.8)
|
21
|
+
ffi (1.16.3-java)
|
22
|
+
i18n (1.14.1)
|
23
23
|
concurrent-ruby (~> 1.0)
|
24
24
|
method_source (1.0.0)
|
25
|
-
minitest (5.
|
25
|
+
minitest (5.20.0)
|
26
26
|
pry (0.14.2)
|
27
27
|
coderay (~> 1.1)
|
28
28
|
method_source (~> 1.0)
|
@@ -31,27 +31,28 @@ GEM
|
|
31
31
|
method_source (~> 1.0)
|
32
32
|
spoon (~> 0.0)
|
33
33
|
rake (10.5.0)
|
34
|
-
redis (4.8.
|
34
|
+
redis (4.8.1)
|
35
35
|
rspec (3.12.0)
|
36
36
|
rspec-core (~> 3.12.0)
|
37
37
|
rspec-expectations (~> 3.12.0)
|
38
38
|
rspec-mocks (~> 3.12.0)
|
39
|
-
rspec-core (3.12.
|
39
|
+
rspec-core (3.12.2)
|
40
40
|
rspec-support (~> 3.12.0)
|
41
|
-
rspec-expectations (3.12.
|
41
|
+
rspec-expectations (3.12.3)
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
43
|
rspec-support (~> 3.12.0)
|
44
|
-
rspec-mocks (3.12.
|
44
|
+
rspec-mocks (3.12.6)
|
45
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
46
|
rspec-support (~> 3.12.0)
|
47
|
-
rspec-support (3.12.
|
47
|
+
rspec-support (3.12.1)
|
48
48
|
spoon (0.0.6)
|
49
49
|
ffi
|
50
50
|
tzinfo (2.0.6)
|
51
51
|
concurrent-ruby (~> 1.0)
|
52
|
-
zeitwerk (2.6.
|
52
|
+
zeitwerk (2.6.12)
|
53
53
|
|
54
54
|
PLATFORMS
|
55
|
+
arm64-darwin-22
|
55
56
|
universal-java-1.8
|
56
57
|
universal-java-11
|
57
58
|
x86_64-linux
|
@@ -66,4 +67,4 @@ DEPENDENCIES
|
|
66
67
|
rspec (~> 3.0)
|
67
68
|
|
68
69
|
BUNDLED WITH
|
69
|
-
2.4.
|
70
|
+
2.4.20
|
@@ -16,7 +16,7 @@ module ActiveSupport
|
|
16
16
|
ttl = _expires_in(options)
|
17
17
|
normalized_key = normalize_key(key, options)
|
18
18
|
instrument(:increment, key, :amount => amount) do
|
19
|
-
with do |c|
|
19
|
+
redis.with do |c|
|
20
20
|
if ttl
|
21
21
|
new_value, _ = c.pipelined do
|
22
22
|
c.incrby normalized_key, amount
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "redis-cluster-activesupport"
|
6
|
-
spec.version = "1.
|
6
|
+
spec.version = "1.1.0"
|
7
7
|
spec.authors = ["Garrett Thornburg"]
|
8
8
|
spec.email = ["film42@gmail.com"]
|
9
9
|
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "activesupport", "
|
22
|
+
spec.add_dependency "activesupport", ">= 6.0", "< 7.1"
|
23
23
|
spec.add_development_dependency "bundler"
|
24
24
|
spec.add_development_dependency "fakeredis"
|
25
25
|
spec.add_development_dependency "pry"
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-cluster-activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garrett Thornburg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '6.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7.1'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '6.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7.1'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +128,7 @@ homepage: https://github.com/film42/redis-cluster-activesupport
|
|
122
128
|
licenses:
|
123
129
|
- MIT
|
124
130
|
metadata: {}
|
125
|
-
post_install_message:
|
131
|
+
post_install_message:
|
126
132
|
rdoc_options: []
|
127
133
|
require_paths:
|
128
134
|
- lib
|
@@ -137,8 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
143
|
- !ruby/object:Gem::Version
|
138
144
|
version: '0'
|
139
145
|
requirements: []
|
140
|
-
rubygems_version: 3.
|
141
|
-
signing_key:
|
146
|
+
rubygems_version: 3.4.20
|
147
|
+
signing_key:
|
142
148
|
specification_version: 4
|
143
149
|
summary: Extension to redis-activesupport for working with redis cluster
|
144
150
|
test_files: []
|