redic 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c84fc3bb13bdc9f95139dead516fe24181fcef4f
4
- data.tar.gz: da329d3b3da421f2c4ecaa9c99add491c176265c
3
+ metadata.gz: de6b1eda9c776a2dbfde7fc9f9f075dc24be294c
4
+ data.tar.gz: de83fadd58d193db31d30db2d1d63c46f216131e
5
5
  SHA512:
6
- metadata.gz: 767d696ec306eeaacdfcad51f1c9034932e622064b0fbb5299f4c17303d62908eca8cf1c581026c8fdf54f21dbd7c663cd74b7e261266d619841685b5d0c2888
7
- data.tar.gz: 1c486367002024bc82d7a204178eefbdd4c12a2a1b94bf883921d820db5a71b377ad162e06a4ce546734e2aaaa0dd6855bb8d5621b561e2c88403ae4448eec7c
6
+ metadata.gz: e701f8e6b0870a0cee5ab608e48bf69cb4d2a678bbe61e9aab93a3f02720ba757e510a4692d89a59d5cad3c001eddaf8c1052a47b001e29cfe819daf8e5ad071
7
+ data.tar.gz: 937ff72dee2e8f37e13e25b2d7e41d05cd06d929b9121bd305509fd42e1084ca1d254329f21cd6f5b47fbdba21b8a97f20bd8942b1fbfb66833013c86493eb62
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 1.1.1
2
+
3
+ - Redic can now connect to sentinels.
4
+
1
5
  1.1.0
2
6
 
3
7
  - Redic is now compatible with all rubies.
data/lib/redic/client.rb CHANGED
@@ -41,7 +41,7 @@ class Redic
41
41
 
42
42
  if @uri.scheme == "redis"
43
43
  @uri.password && assert_ok(call("AUTH", @uri.password))
44
- @uri.path && assert_ok(call("SELECT", @uri.path[1..-1]))
44
+ @uri.path != "" && assert_ok(call("SELECT", @uri.path[1..-1]))
45
45
  end
46
46
  end
47
47
 
data/redic.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "redic"
5
- s.version = "1.1.0"
5
+ s.version = "1.1.1"
6
6
  s.summary = "Lightweight Redis Client"
7
7
  s.description = "Lightweight Redis Client"
8
8
  s.authors = ["Michel Martens", "Cyril David"]
data/tests/redic_test.rb CHANGED
@@ -55,6 +55,11 @@ test "error when authenticating from url" do
55
55
  end
56
56
  end
57
57
 
58
+ test "Can connect to sentinel" do
59
+ c2 = Redic.new "redis://localhost:26379"
60
+ c2.call "SENTINEL", "masters"
61
+ end
62
+
58
63
  test "timeout" do |c1|
59
64
 
60
65
  # Default timeout is 10 seconds
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.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Martens
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-11 00:00:00.000000000 Z
12
+ date: 2014-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hiredis