bunny 1.0.0.rc1 → 1.0.0.rc2

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: c339ebb8c3d6a344a35638a8c685e7e5986719e1
4
- data.tar.gz: e59fed7a29900b78dcaa9bf9e67ecb7824948054
3
+ metadata.gz: 7a93cb605a6fdd64b33d36cf15c2348e3a63d1f4
4
+ data.tar.gz: fb0cf9a5bbfa5d87a01a3e88ac5b4e194912cb6a
5
5
  SHA512:
6
- metadata.gz: 4172c0cf99d0fca5c2c5fa40d07a5ad82be055dea6867a4d19ecd54599059ea9a0ec16f317083ab4b27d0ad807159b57e5bbccf23440a1f5ef3a3bf3ee8baf08
7
- data.tar.gz: e0d292b13d4bed1cb5bf046453dd11ad3562359364d0ee9c15ff4934ebaee461344c087ea63fa31e43f5fd56f0af8d2f54375c1cc7217c454aa3b55cfb873b89
6
+ metadata.gz: 9dddb5e6345033db760b2b12be7c5bd61831d5a68d64b6b471c22557beae60d2a48aec300becea2509bfe66b5acf25ce606e7f8ed6a37c9be279ffb365da326c
7
+ data.tar.gz: eaf13dac3eb2d00be80afd360890dc85633054ff2acdb899fb0166958e4ca0a2ec5dd09fa1bc9d71f8e6e1d464773398e5d4d3673283eb081cb5e89baa157f9c
@@ -1,4 +1,12 @@
1
- ## Changes between Bunny 1.0.0.pre6 and 1.0.0.pre7
1
+ ## Changes between Bunny 1.0.0.rc1 and 1.0.0.rc2
2
+
3
+ ### Ruby 1.8.7 Compatibility Fixes
4
+
5
+ Ruby 1.8.7 compatibility fixes around timeouts.
6
+
7
+
8
+
9
+ ## Changes between Bunny 1.0.0.pre6 and 1.0.0.rc1
2
10
 
3
11
  ### amq-protocol Update
4
12
 
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.0"
93
+ gem "bunny", ">= 1.0.0.rc1"
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 = "1.0.0.rc1"
5
+ VERSION = "1.0.0.rc2"
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: 1.0.0.rc1
4
+ version: 1.0.0.rc2
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-10-01 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