redis-reconnect_with_readonly 0.9.3 → 1.0.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: 1b4061788f20bca31f019b8768df6d3170635c02
4
- data.tar.gz: e5f7e654372eb55d40e3f6edc96daafc747ecccd
2
+ SHA256:
3
+ metadata.gz: 36cb97687807a86231a71cb997ec7b7bcc9fca729e33743e0939e9b849f649bd
4
+ data.tar.gz: 5b63beed50c075ad2b5c0161f18e3acbac566a56eaa577f01aca655bc5b7cac7
5
5
  SHA512:
6
- metadata.gz: 4d570f5e027a44faa2330eb28140e1c6732adccbab836613d7f8a5587c2d685806110d93313ed4b7121ddf02c4b010eadebf154f0ebf0b805328cfcf4280bff5
7
- data.tar.gz: fb346107919e998637c6a31bae03ff8ab44b6cad7e5fcf5c9d9355c634a410643a481aee3f9cded50c4ad9e998cae1d9c48894d1d282f33fcafad9e7a4231965
6
+ metadata.gz: 4ef67dd9308c2aa8b71f66400539c3e51193c85cf143bdba8ec7f5bf7e2e5dcfda582445dc6c46f011bc567d3647b26058767557dfa947b915123fcdf8e08e3f
7
+ data.tar.gz: 66718fe28ef7b6cea3159a233ab5c1420d74bba75e5300abf56715bbe1f2e032a7ff357f73f5155c65db521563d4ae514970a1cc7411e6949a1e96df85581e66
@@ -1,3 +1,13 @@
1
+ # 1.0.0 (2018-11-20)
2
+
3
+ Enhancements:
4
+
5
+ * Support `timeou`t argument of `call_loop` (thanks to Byron Wolfman)
6
+
7
+ Changes:
8
+
9
+ * Restrict `redis` gem `>= 3.3.0` to support the `timeout` argument.
10
+
1
11
  # 0.9.3 (2016-08-28)
2
12
 
3
13
  Fixes:
@@ -55,9 +55,9 @@ class Redis
55
55
  end
56
56
  end
57
57
 
58
- def call_loop_with_reconnect_with_readonly(command, &block)
58
+ def call_loop_with_reconnect_with_readonly(command, timeout = 0, &block)
59
59
  ReconnectWithReadonly.reconnect_with_readonly(self) do
60
- call_loop_without_reconnect_with_readonly(command, &block)
60
+ call_loop_without_reconnect_with_readonly(command, timeout, &block)
61
61
  end
62
62
  end
63
63
 
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  class ReconnectWithReadonly
3
- VERSION = "0.9.3"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -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 "redis"
22
+ spec.add_dependency "redis", ">= 3.3.0"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.11"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-reconnect_with_readonly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-28 00:00:00.000000000 Z
11
+ date: 2018-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.7.6
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Reconnect redis if Redis::CommandError READONLY occurs.