redic 1.5.0 → 1.5.1

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: 355a240594d8061dd7923241cc74287a20fa95e9
4
- data.tar.gz: 48970d72e3f18979402c1e48e0abbec18bca841f
2
+ SHA256:
3
+ metadata.gz: 84d7eceeb333b9b35cc90c4f547e2b3fdab09a020e9d35757b157e35ba492313
4
+ data.tar.gz: 93f784db08ad406d3c51b38eb6bb1d4531958ccb2f52a3349e7064eb05b82fb4
5
5
  SHA512:
6
- metadata.gz: 83f2a759265a3ec0fc8ed6695a648412219e9b6d929e11f5927050baa9d14b97ca1ad2746d16281e8787aa24bb82e931cb0862fff4b9b269fa954c1cc9596927
7
- data.tar.gz: 99a04bb3a6952b079ae6b0eee9ab52e9f17346fffa3052d8fc237dfe26dd239d34d26b2ecf37112910ac47b91609e78b84815b4ef0427168de2545ef441bbf2d
6
+ metadata.gz: 7a7654679f3f606629d19805e497c8f61e10c9b8ad22431ea9140c7a178438490921b32c4f1906c90a88efc5889adf23997b893309ad8d4f356a2a8be767d1d3
7
+ data.tar.gz: 6452cf23dc723e16c28b3b699e65d2ad4f29c3ac76af406aa20a2585d2cb124f36d27e7102c07041a7e8a999bc60464ec57d97c77d590db466114229d863c5a2
data/.gems CHANGED
@@ -1,2 +1,2 @@
1
- cutest -v 1.2.0
2
- hiredis -v 0.6.0
1
+ cutest -v 1.2.3
2
+ hiredis -v 0.6.3
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ 1.5.1
2
+
3
+ - Allow timeout to be changed.
4
+
5
+ 1.5.0
6
+
7
+ - Raise runtime errors when using `call!`.
8
+
1
9
  1.4.1
2
10
 
3
11
  - Reconnect only if URLs differ.
@@ -68,6 +68,10 @@ class Redic
68
68
  @client.timeout
69
69
  end
70
70
 
71
+ def timeout=(timeout)
72
+ @client.timeout = timeout
73
+ end
74
+
71
75
  def quit
72
76
  @client.quit
73
77
  end
@@ -6,7 +6,7 @@ class Redic
6
6
  EMPTY = "".freeze
7
7
  SLASH = "/".freeze
8
8
 
9
- attr :timeout
9
+ attr_accessor :timeout
10
10
 
11
11
  def initialize(url, timeout)
12
12
  @semaphore = Mutex.new
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "redic"
5
- s.version = "1.5.0"
5
+ s.version = "1.5.1"
6
6
  s.summary = "Lightweight Redis Client"
7
7
  s.description = "Lightweight Redis Client"
8
8
  s.authors = ["Michel Martens", "Cyril David"]
@@ -83,6 +83,11 @@ test "timeout" do |c1|
83
83
  c2 = Redic.new(REDIS_URL, 200_000)
84
84
 
85
85
  assert_equal 200_000, c2.timeout
86
+
87
+ # Change timeout to 5 seconds
88
+ c2.timeout = 5_000_000
89
+
90
+ assert_equal 5_000_000, c2.timeout
86
91
  end
87
92
 
88
93
  test "normal commands" do |c|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Martens
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-12 00:00:00.000000000 Z
12
+ date: 2019-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hiredis
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  description: Lightweight Redis Client
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - .gems
37
- - .gitignore
36
+ - ".gems"
37
+ - ".gitignore"
38
38
  - CHANGELOG
39
39
  - CONTRIBUTING
40
40
  - LICENSE
@@ -57,17 +57,17 @@ require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - '>='
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 2.0.14
70
+ rubygems_version: 2.7.6
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: Lightweight Redis Client