restis-client 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/restis/client.rb +3 -2
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -3,7 +3,8 @@ module Restis
3
3
  class Client
4
4
  attr_accessor :redis
5
5
  def initialize(args = {})
6
- @redis = Redis.new(args)
6
+ @args = args
7
+ @redis = Redis.new(@args)
7
8
  end
8
9
 
9
10
  def publish(channel, message)
@@ -27,7 +28,7 @@ module Restis
27
28
  redis.subscribe(channel) do |on|
28
29
  on.message do |channel, msg|
29
30
  block.call(redis, channel, msg)
30
- Redis.new.incr(key)
31
+ Redis.new(@args).incr(key)
31
32
  end
32
33
  end
33
34
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restis-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Douglas Campos
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-08-27 00:00:00 -03:00
19
+ date: 2010-08-31 00:00:00 -03:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency