redis-cluster-activesupport 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d16f65bf68908d725fd1f187ab7fb776fcc5eb4c
4
- data.tar.gz: e7d53f74bd6d52e3977a1c821c512a645b9f578c
2
+ SHA256:
3
+ metadata.gz: 9c2b7e78ca8bd0ada90cec317b5dc94d873b8bab5acaf53ef977a5fe5547ed01
4
+ data.tar.gz: ab1d27d5bff09f5b000e27be5770c17c56a45b4abe23ccb791193197fdf2d530
5
5
  SHA512:
6
- metadata.gz: e65f8a805aa3da20be73c49af133aa87e0b046de356972a5f6be7046ad0b50f7a740c2a1a76dee2e788f5777eb559781224bec5c76b756768ea2aba95a5ac0a5
7
- data.tar.gz: 7066b49a9d78ed73f85b73f5eb791050f8a6e70a28f9c3ecf2517be06927316310788d6ba4e80dfc0f3d8355a4818763f97e850e43a70173f48492898d04e43e
6
+ metadata.gz: 7ff0bf540fda905d6adbd5873dd00b25cfac316d27c134370d266b64584186f51b0c276d4f4161a7ada54556556dbac9c10f01774df40bace2e726b76c883be9
7
+ data.tar.gz: bc9d4c043f68d65d4399c07db9581e36f15ebf37be2103e4d257f44f1a679da8c4acfb9f78d4e7b0f80bdc0d034d443ac8956bf91b1d8e0995d53ef60034ac1f
@@ -36,10 +36,11 @@ module ActiveSupport
36
36
  instrument(:increment, key, :amount => amount) do
37
37
  with do |c|
38
38
  if ttl
39
- c.pipelined do
39
+ new_value, _ = c.pipelined do
40
40
  c.incrby normalized_key, amount
41
41
  c.expire normalized_key, ttl
42
42
  end
43
+ new_value
43
44
  else
44
45
  c.incrby normalized_key, amount
45
46
  end
@@ -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 = "0.2.0"
6
+ spec.version = "0.3.0"
7
7
  spec.authors = ["Garrett Thornburg"]
8
8
  spec.email = ["film42@gmail.com"]
9
9
 
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency "redis-activesupport"
23
- spec.add_development_dependency "pry"
24
23
  spec.add_development_dependency "bundler", "~> 1.15"
24
+ spec.add_development_dependency "fakeredis"
25
+ spec.add_development_dependency "pry"
25
26
  spec.add_development_dependency "rake", "~> 10.0"
26
27
  spec.add_development_dependency "rspec", "~> 3.0"
27
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-cluster-activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garrett Thornburg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-17 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-activesupport
@@ -25,7 +25,21 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: pry
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.15'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.15'
41
+ - !ruby/object:Gem::Dependency
42
+ name: fakeredis
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ">="
@@ -39,19 +53,19 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: bundler
56
+ name: pry
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '1.15'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '1.15'
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
133
  version: '0'
120
134
  requirements: []
121
135
  rubyforge_project:
122
- rubygems_version: 2.6.13
136
+ rubygems_version: 2.7.6
123
137
  signing_key:
124
138
  specification_version: 4
125
139
  summary: Extension to redis-activesupport for working with redis cluster