rbczmq 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/zmq/socket.rb +1 -1
  2. data/lib/zmq/version.rb +1 -1
  3. metadata +5 -4
@@ -120,7 +120,7 @@ class ZMQ::Socket
120
120
  res = priority_peers.sort{|a,b| a.weight <=> b.weight }.last
121
121
  end
122
122
  return uri unless res
123
- "tcp://#{res.target}:#{res.port}"
123
+ "tcp://#{Resolv.getaddress(res.target)}:#{res.port}"
124
124
  rescue
125
125
  uri
126
126
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module ZMQ
4
- VERSION = "0.4"
4
+ VERSION = "0.5"
5
5
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbczmq
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Lourens Naud\xC3\xA9"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-27 00:00:00 Z
18
+ date: 2012-05-10 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake-compiler
@@ -204,3 +204,4 @@ test_files:
204
204
  - test/test_threading.rb
205
205
  - test/test_timer.rb
206
206
  - test/test_zmq.rb
207
+ has_rdoc: true