redic 1.0.1 → 1.1.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
2
  SHA1:
3
- metadata.gz: 3ba65ff4580315a8788983af009026bff12e3634
4
- data.tar.gz: 24bdd4a1198cdcce1b5b2a961037f1a0708ae803
3
+ metadata.gz: c84fc3bb13bdc9f95139dead516fe24181fcef4f
4
+ data.tar.gz: da329d3b3da421f2c4ecaa9c99add491c176265c
5
5
  SHA512:
6
- metadata.gz: 705de80d86e04f31637b4ea76496b69afff0e79e631d8fe5d312c2083d739abb88c1023760372d15d843b621b39d216c16c4e4b4edce88afc83e13f03a347527
7
- data.tar.gz: 784f89f58b9bfec889c7f88884fa1ffed28bec17f1b30843f2cf1338dde46bafcf1e908df6c6346fb99aea80aadde5dc4e17e4c974252e0707e6b63da9b082ca
6
+ metadata.gz: 767d696ec306eeaacdfcad51f1c9034932e622064b0fbb5299f4c17303d62908eca8cf1c581026c8fdf54f21dbd7c663cd74b7e261266d619841685b5d0c2888
7
+ data.tar.gz: 1c486367002024bc82d7a204178eefbdd4c12a2a1b94bf883921d820db5a71b377ad162e06a4ce546734e2aaaa0dd6855bb8d5621b561e2c88403ae4448eec7c
@@ -0,0 +1,7 @@
1
+ 1.1.0
2
+
3
+ - Redic is now compatible with all rubies.
4
+
5
+ 1.0.0
6
+
7
+ - Add a configurable timeout.
data/README.md CHANGED
@@ -45,7 +45,7 @@ default timeout is 10 seconds.
45
45
 
46
46
  ```ruby
47
47
  # Timeout expressed in microseconds.
48
- redis = Redic.new(timeout: 2_000_000)
48
+ redis = Redic.new(REDIS_URL, 2_000_000)
49
49
  redis.timeout == 2_000_000 #=> true
50
50
  ```
51
51
 
@@ -58,7 +58,7 @@ Here's one final example using both a Redis URL and a timeout:
58
58
  REDIS_URL = ENV.fetch("REDIS_URL")
59
59
  REDIS_TIMEOUT = ENV.fetch("REDIS_TIMEOUT")
60
60
 
61
- redis = Redic.new(REDIS_URL, timeout: REDIS_TIMEOUT)
61
+ redis = Redic.new(REDIS_URL, REDIS_TIMEOUT)
62
62
  ```
63
63
 
64
64
  ## Differences with redis-rb
@@ -4,7 +4,7 @@ class Redic
4
4
  attr :url
5
5
  attr :client
6
6
 
7
- def initialize(url = "redis://127.0.0.1:6379", timeout: 10_000_000)
7
+ def initialize(url = "redis://127.0.0.1:6379", timeout = 10_000_000)
8
8
  @url = url
9
9
  @client = Redic::Client.new(url, timeout)
10
10
  @queue = []
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "redic"
5
- s.version = "1.0.1"
5
+ s.version = "1.1.0"
6
6
  s.summary = "Lightweight Redis Client"
7
7
  s.description = "Lightweight Redis Client"
8
8
  s.authors = ["Michel Martens", "Cyril David"]
@@ -61,7 +61,7 @@ test "timeout" do |c1|
61
61
  assert_equal 10_000_000, c1.timeout
62
62
 
63
63
  # Timeout configured to 200_000 microseconds
64
- c2 = Redic.new(timeout: 200_000)
64
+ c2 = Redic.new(REDIS_URL, 200_000)
65
65
 
66
66
  assert_equal 200_000, c2.timeout
67
67
  end
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.0.1
4
+ version: 1.1.0
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-02-19 00:00:00.000000000 Z
12
+ date: 2014-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hiredis
@@ -35,6 +35,7 @@ extra_rdoc_files: []
35
35
  files:
36
36
  - .gems
37
37
  - .gitignore
38
+ - CHANGELOG
38
39
  - LICENSE
39
40
  - README.md
40
41
  - lib/redic.rb