sub_zero 0.0.7 → 0.0.8

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: f2cf7020b04fbe0b483449b22ce2496abe0609d8
4
- data.tar.gz: 62be1b37f9c2e7110977849a8caae2a2b92c2e4c
3
+ metadata.gz: f235400fae55213787d858e89073d09e21cd8cc2
4
+ data.tar.gz: 34a50e151d4e919762a5cd640569b42711ad6036
5
5
  SHA512:
6
- metadata.gz: 58ee453984204c0fbe85c291de872033e3ea6c0e46315b82dac6c9dd480fafdcc328195d3dea8c70c4275443becf5a5a85edcc36fce12bc5449bc2ab8ad4a530
7
- data.tar.gz: 03fc16cda885fb8adbe24dc597a2492641e6c7ab7ced64c9832a1283f199853fa27412a045ca028d73bb941745dfa14f60c1c9aba0b0aa63e0fc7401096851d3
6
+ metadata.gz: d3e0adadfae7721a97c9c0e609072b8d3ac4618892355fca1c4c3bfe7573db03153bc74d48770591a7777d238fac00570cbe2558b0b41a8df32bbfd471a9addd
7
+ data.tar.gz: 497b83c7d5adad849231be2875f18379f7c3adbddb34d21afff09f9a992e742d0d01f6dd6f78ee0af51dd4478c21b71f3d89f977e740f9326c30ac7ed2d8f0e6
@@ -6,18 +6,20 @@ module SubZero
6
6
  response = nil
7
7
  t = request.options.fetch(:timeout, 1000) / 1000.0
8
8
 
9
- ::Timeout.timeout t do
10
9
  context do |c|
11
10
  socket c do |s|
12
- send_message s, request
13
- response = receive_message(s, request)
11
+ begin
12
+ ::Timeout.timeout t do
13
+ send_message s, request
14
+ response = receive_message(s, request)
15
+ end
16
+ rescue ::Timeout::Error
17
+ raise SubZero::Socket::TimeoutError, "call timeout after #{t}ms"
18
+ end
14
19
  end
15
20
  end
16
- end
17
21
 
18
22
  response
19
- rescue ::Timeout::Error
20
- raise SubZero::Socket::TimeoutError, "call timeout after #{t}ms"
21
23
  end
22
24
 
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module SubZero
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sub_zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Rodrigues
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-13 00:00:00.000000000 Z
12
+ date: 2013-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  requirements: []
234
234
  rubyforge_project:
235
- rubygems_version: 2.0.3
235
+ rubygems_version: 2.0.7
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: ZeroMQ GREAT SOA solution