0mq 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/0mq/poll_interruptible.rb +7 -2
  3. metadata +20 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f5853df137983c39643738260536be6283df3a5
4
- data.tar.gz: b9d8a07715d0a9e28a0d785a96cd2c98b4f5e7ab
3
+ metadata.gz: b804860f9ff37973173ff9061a18674bfebfdc1d
4
+ data.tar.gz: fb5c958be97696bed9da3faa6c04bc7362377234
5
5
  SHA512:
6
- metadata.gz: d71708e4a35e312ac7d4c01fb8193c414f99d90e777784742e1f4e2fa128e8bbd42853e288562e4b0591042703415a05011777622a15a59e10f8501ea8c30577
7
- data.tar.gz: f1557ddadcf7b3ed574f74983b0c017db99ffe22946034c21a632acfc28ddb71787544415d8e264da8d54ae0383314e9353b4207f5281c898b7a5d10ba9bf408
6
+ metadata.gz: 16dbace3339b1acf206c4f9cdcb33bedb8a92291748feec4c6a437b55a3595245aa6ba12502f8e39ddf4416ffd543288a4e164ad47ed56960e2e48da117acd1c
7
+ data.tar.gz: 31357bb71a7f4f43525f328ee87a195472d6d4f1d22f1391f44b456043cb4e3841353f7922b5a7d75e8a22fe0e6c7e19ea59932a482b8f0596ac9449095c212e
@@ -43,7 +43,11 @@ module ZMQ
43
43
  block.call nil, nil if block
44
44
 
45
45
  socket.send_array ["OKAY"]
46
- @int_sock_rep.close if kill
46
+
47
+ if kill
48
+ @int_sock_rep.close
49
+ @dead = true
50
+ end
47
51
  else
48
52
  block.call socket, revents if block
49
53
  end
@@ -78,9 +82,10 @@ module ZMQ
78
82
 
79
83
  @int_sock_req.send_array ["KILL"]
80
84
  @int_sock_req.recv_array
85
+
81
86
  @int_sock_req.close
82
87
 
83
- @dead = true
88
+ true
84
89
  end
85
90
 
86
91
  # Permanently kill the Poll object
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 0mq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe McIlvain
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-03 00:00:00.000000000 Z
12
+ date: 2014-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi-rzmq-core
@@ -85,16 +85,30 @@ dependencies:
85
85
  name: rspec
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: '3.0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: '3.0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rspec-its
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '1.0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '1.0'
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: fivemat
100
114
  requirement: !ruby/object:Gem::Requirement