bunny 0.10.7 → 0.10.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: 35954f10d50b533a9e79fb1cd430c95ada76db3b
4
- data.tar.gz: d52460ee91afe787083bb40421aa4ebee4e9a2b4
3
+ metadata.gz: f535e615daf310f4a1e45b748799a0be9c7eb22d
4
+ data.tar.gz: d12db49e5f7805b56b3d3a28dc0c42a5b64c49b7
5
5
  SHA512:
6
- metadata.gz: 8ba39c8aa2280f5d84fd63171cd44f2252e3a1391647a6661e84d953dc6255e17ba73c81e9d6f1b83cedeef81acea4c03d6ea0fc0923e94a7275e6906f771ac7
7
- data.tar.gz: c6c39c7e4f80423121b1338ee29ead5a6297580fd4e47f58f16de1f85d67c10728506749fca0af9be0a9bba14a4d22e71981dd0f0f941a21f53c10be5f5e1a93
6
+ metadata.gz: 22a391ead25e9969d804a58452e3141606099c51b151b9985e8e2a3b3f116fda829aae2a340564d300b7d5533588fbaf0773a4d4444c5bda628bf1fafcf94384
7
+ data.tar.gz: 035be3322b48d97b81a7655637fc63c51cae129fca10a32a159e2c35d21c3c174203d6ea4975c646318dee09a94a747b169379569b16d626cd69d2cd04e5ee7e
data/Gemfile CHANGED
@@ -19,7 +19,7 @@ extend Module.new {
19
19
  end
20
20
  }
21
21
 
22
- gem "SystemTimer", "1.2", :platform => :ruby_18
22
+ gem "SystemTimer", "~> 1.2.3", :platform => :ruby_18
23
23
 
24
24
  gem "rake", ">= 10.0.4"
25
25
  gem "effin_utf8"
data/README.md CHANGED
@@ -90,7 +90,7 @@ gem install bunny
90
90
  To use Bunny in a project managed with Bundler:
91
91
 
92
92
  ``` ruby
93
- gem "bunny", ">= 0.10.2"
93
+ gem "bunny", ">= 0.10.7"
94
94
  ```
95
95
 
96
96
 
@@ -21,7 +21,7 @@ module Bunny
21
21
 
22
22
  def poll(timeout_in_ms = nil)
23
23
  if timeout_in_ms
24
- Bunny::Timeout.timeout(timeout_in_ms / 1000, Timeout::Error) do
24
+ Bunny::Timeout.timeout(timeout_in_ms / 1000, ::Timeout::Error) do
25
25
  @q.pop
26
26
  end
27
27
  else
@@ -14,7 +14,7 @@ module Bunny
14
14
  READ_RETRY_EXCEPTION_CLASSES << IO::WaitReadable if IO.const_defined?(:WaitReadable)
15
15
 
16
16
  def self.open(host, port, options = {})
17
- Timeout.timeout(options[:socket_timeout]) do
17
+ Timeout.timeout(options[:socket_timeout], ClientTimeout) do
18
18
  sock = new(host, port)
19
19
  if Socket.constants.include?('TCP_NODELAY') || Socket.constants.include?(:TCP_NODELAY)
20
20
  sock.setsockopt(::Socket::IPPROTO_TCP, ::Socket::TCP_NODELAY, true)
@@ -250,12 +250,12 @@ module Bunny
250
250
 
251
251
  def initialize_socket
252
252
  begin
253
- @socket = Bunny::Timeout.timeout(@connect_timeout, ConnectionTimeout) do
253
+ @socket = Bunny::Timeout.timeout(@connect_timeout, ClientTimeout) do
254
254
  Bunny::Socket.open(@host, @port,
255
255
  :keepalive => @opts[:keepalive],
256
256
  :socket_timeout => @connect_timeout)
257
257
  end
258
- rescue StandardError, ConnectionTimeout => e
258
+ rescue StandardError, ClientTimeout => e
259
259
  @status = :not_connected
260
260
  raise Bunny::TCPConnectionFailed.new(e, self.hostname, self.port)
261
261
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "0.10.7"
5
+ VERSION = "0.10.8"
6
6
  end
@@ -1,11 +1,11 @@
1
1
  require "spec_helper"
2
2
 
3
- unless RUBY_ENGINE == "jruby" && !ENV["FORCE_JRUBY_RUN"]
3
+ unless defined?(JRUBY_VERSION) && !ENV["FORCE_JRUBY_RUN"]
4
4
  describe Bunny::Session do
5
5
  # creating thousands of connections means creating
6
6
  # twice as many threads and this won't fly with the JVM
7
7
  # in CI containers. MK.
8
- n = if RUBY_ENGINE == "jruby"
8
+ n = if defined?(JRUBY_VERSION)
9
9
  250
10
10
  else
11
11
  2500
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.7
4
+ version: 0.10.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-09-13 00:00:00.000000000 Z
15
+ date: 2013-10-03 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol