redis_ha 0.1.2 → 0.1.3

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.
@@ -87,7 +87,7 @@ class RedisHA::Connection < Socket
87
87
 
88
88
  def setup(redis)
89
89
  addr = [redis.fetch(:port), redis.fetch(:host)]
90
- addr[1] = (TCPSocket.gethostbyname(addr[1])[4])
90
+ addr[1] = (TCPSocket.gethostbyname(addr[1]).last)
91
91
  @__addr = Socket.pack_sockaddr_in(*addr)
92
92
  end
93
93
 
data/lib/test.rb CHANGED
@@ -17,7 +17,8 @@ pool = RedisHA::ConnectionPool.new
17
17
  pool.retry_timeout = 0.5
18
18
  pool.read_timeout = 10.1
19
19
  pool.connect(
20
- {:host => "localhost", :port => 6379, :db => 2})
20
+ {:host => "localhost", :port => 6379, :db => 2},
21
+ {:host => "127.0.0.1", :port => 6380, :db => 2})
21
22
 
22
23
  #map = RedisHA::HashMap.new(pool, "fnordmap")
23
24
  #set = RedisHA::Set.new(pool, "fnordset")
@@ -27,7 +28,7 @@ pool.connect(
27
28
  #puts pool.smembers("fnordset").inspect
28
29
  #puts set.get.inspect
29
30
 
30
- puts pool.get("dawanda:session:fnord").inspect
31
+ puts pool.ping.inspect
31
32
  exit
32
33
 
33
34
  Ripl.start :binding => binding
data/redis_ha.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "redis_ha"
6
- s.version = "0.1.2"
6
+ s.version = "0.1.3"
7
7
  s.date = Date.today.to_s
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Paul Asmuth"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_ha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-23 00:00:00.000000000 Z
12
+ date: 2012-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &21888020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,12 +21,7 @@ dependencies:
21
21
  version: 2.2.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 2.2.2
24
+ version_requirements: *21888020
30
25
  description: Three basic CRDTs (set, hashmap and counter) for redis. Also includes
31
26
  a ConnectionPool that allows you to run concurrent redis commands on multiple connections
32
27
  w/o using eventmachine/em-hiredis.
@@ -68,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
63
  version: '0'
69
64
  requirements: []
70
65
  rubyforge_project:
71
- rubygems_version: 1.8.24
66
+ rubygems_version: 1.8.17
72
67
  signing_key:
73
68
  specification_version: 3
74
69
  summary: basic CRDTs and a HA connection pool for redis