bunny 1.1.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 599abad9bdef5adbd29c5c54876d168c8a26ed54
4
- data.tar.gz: 6eb7cb3ac38f41b63e413b9c48ad0f61f9329d8a
3
+ metadata.gz: f18caee12de5783891349254c21dc99fac3bf763
4
+ data.tar.gz: df8fbda1c395fe0627b0c563d80410aa1064af54
5
5
  SHA512:
6
- metadata.gz: b660ece369b534e871a94e3e38373e1e3c203e29779086f6d7164d373b0540561382e9024823718f4be9e777ea117d0ade3cfa05885df3b0bdd09452cba82f1b
7
- data.tar.gz: 20f8107b871686b62e16495344605c85b4864d1d4cfbe131bb3ec16df0ac2af48d32dba0ec420b675ca7b0200274e8798b0f1d0500341131f0ea84fc4afdd504
6
+ metadata.gz: 2b264d5692cb7840a520c0b101e042fd9c09b98ac2de888afedb2aecbd12d2b5cde655459d25982bc63e987f2b2fc69160744e96f3ccc45f0a35d655883e4559
7
+ data.tar.gz: de3bc0b5d8ee2118cc8b8ba1bc459f2b4e5f96a3af619d420f2e52a7f86df46ca16dabb4aff99509de8cc4387c1c1bc04dd509637af89353e9b9639764a87b66
@@ -1,9 +1,9 @@
1
- ## Changes between Bunny 1.1.8 and 1.1.9
1
+ ## Changes between Bunny 1.1.0 and 1.2.0
2
2
 
3
3
  ### :key Supported in Bunny::Channel#queue_bind
4
4
 
5
5
  It is now possible to use `:key` (which Bunny versions prior to 0.9 used)
6
- as well as `:routing_key` as an argument to `Bunny::Queue#bind`.
6
+ as well as `:routing_key` as an argument to `Bunny::Queue#bind`.
7
7
 
8
8
  ### System Exceptions Not Rescued by the Library
9
9
 
@@ -12,45 +12,18 @@ it automatically does so (e.g. when dispatching deliveries to consumers).
12
12
 
13
13
  Contributed by Alex Young.
14
14
 
15
- ## Changes between Bunny 1.1.7 and 1.1.8
16
15
 
17
16
  ### Initial Socket Connection Timeout Again Raises Bunny::TCPConnectionFailed
18
17
 
19
18
  Initial socket connection timeout again raises `Bunny::TCPConnectionFailed`
20
19
  on the connection origin thread.
21
20
 
22
- ## Changes between Bunny 1.1.6 and 1.1.7
23
-
24
- ### Heartbeat Sender Thread Leak
25
-
26
- `Bunny::Session#close` no longer leaks heartbeat sender
27
- threads.
28
-
29
- Contributed by m-o-e.
30
-
31
-
32
- ## Changes between Bunny 1.1.5 and 1.1.6
33
-
34
- ### Cherry-picked Missing Commit from Master
35
-
36
- `Bunny::Session#clean_up_on_shutdown` was cherry-picked from master.
37
-
38
- ### Routing Key Limit
39
-
40
- Per AMQP 0-9-1 spec, routing keys cannot be longer than 255 characters.
41
- `Bunny::Channel#basic_publish` and `Bunny::Exchange#publish` now enforces
42
- this limit.
43
-
44
-
45
- ## Changes between Bunny 1.1.4 and 1.1.5
46
-
47
- ### Thread Leak Plugged
21
+ ### Thread Leaks Plugged
48
22
 
49
23
  `Bunny::Session#close` on connections that have experienced a network failure
50
- will correctly clean up I/O thread.
24
+ will correctly clean up I/O and heartbeat sender threads.
51
25
 
52
-
53
- ## Changes between Bunny 1.1.3 and 1.1.4
26
+ Contributed by m-o-e.
54
27
 
55
28
  ### Bunny::Concurrent::ContinuationQueue#poll Rounding Fix
56
29
 
@@ -59,9 +32,11 @@ to the nearest second.
59
32
 
60
33
  Contributed by Brian Abreu.
61
34
 
35
+ ### Routing Key Limit
62
36
 
63
- ## Changes between Bunny 1.1.2 and 1.1.3
64
-
37
+ Per AMQP 0-9-1 spec, routing keys cannot be longer than 255 characters.
38
+ `Bunny::Channel#basic_publish` and `Bunny::Exchange#publish` now enforces
39
+ this limit.
65
40
 
66
41
  ### Nagle's Algorithm Disabled Correctly
67
42
 
@@ -72,9 +47,6 @@ sending a lot of small messages very frequently.
72
47
 
73
48
  [Contributed](https://github.com/ruby-amqp/bunny/pull/187) by Nelson Gauthier (AirBnB).
74
49
 
75
-
76
- ## Changes between Bunny 1.1.1 and 1.1.2
77
-
78
50
  ### Internal Exchanges
79
51
 
80
52
  Exchanges now can be declared as internal:
@@ -89,9 +61,6 @@ for [Exchange-to-Exchange bindings](http://rabbitmq.com/e2e.html) and various
89
61
  plugins but apps may still need to bind them. Now it is possible
90
62
  to do so with Bunny.
91
63
 
92
-
93
- ## Changes between Bunny 1.1.0 and 1.1.1
94
-
95
64
  ### Uncaught Consumer Exceptions
96
65
 
97
66
  Uncaught consumer exceptions are now handled by uncaught exceptions
@@ -104,6 +73,7 @@ end
104
73
  ```
105
74
 
106
75
 
76
+
107
77
  ## Changes between Bunny 1.1.0.rc1 and 1.1.0
108
78
 
109
79
  ### Synchronized Session#create_channel and Session#close_channel
data/README.md CHANGED
@@ -48,10 +48,13 @@ Specific examples:
48
48
 
49
49
  Bunny 0.9 and more recent versions support
50
50
 
51
- * CRuby 2.0.0, 1.9.3, 1.9.2, and 1.8.7
52
- * JRuby 1.7+
51
+ * CRuby 2.1, CRuby 2.0, 1.9.3, 1.9.2, and 1.8.7
53
52
  * Rubinius 2.0+
54
53
 
54
+ Bunny works sufficiently well on JRuby but there are known
55
+ JRuby bugs that cause high CPU burn. JRuby users should
56
+ use [March Hare](http://rubymarchhare.info).
57
+
55
58
 
56
59
  ## Supported RabbitMQ Versions
57
60
 
@@ -92,7 +95,7 @@ gem install bunny
92
95
  To use Bunny in a project managed with Bundler:
93
96
 
94
97
  ``` ruby
95
- gem "bunny", "~> 1.1.0"
98
+ gem "bunny", "~> 1.1.7"
96
99
  ```
97
100
 
98
101
 
@@ -47,7 +47,6 @@ module Bunny
47
47
 
48
48
  @writes_mutex = @session.mutex_impl.new
49
49
 
50
- maybe_initialize_socket
51
50
  prepare_tls_context(opts) if @tls_enabled
52
51
  end
53
52
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "1.1.9"
5
+ VERSION = "1.2.0"
6
6
  end
@@ -42,7 +42,7 @@ describe Bunny::Queue, "NOT bound to an exchange" do
42
42
  end
43
43
 
44
44
 
45
- it "cannot be unbound (raises a channel error)" do
45
+ it "is idempotent (succeeds)" do
46
46
  ch = connection.create_channel
47
47
  x = ch.fanout("amq.fanout")
48
48
  q = ch.queue("", :exclusive => true)
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.1.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan
@@ -150,7 +150,6 @@ files:
150
150
  - spec/higher_level_api/integration/basic_reject_spec.rb
151
151
  - spec/higher_level_api/integration/basic_return_spec.rb
152
152
  - spec/higher_level_api/integration/channel_close_spec.rb
153
- - spec/higher_level_api/integration/channel_flow_spec.rb
154
153
  - spec/higher_level_api/integration/channel_open_spec.rb
155
154
  - spec/higher_level_api/integration/confirm_select_spec.rb
156
155
  - spec/higher_level_api/integration/connection_spec.rb
@@ -247,7 +246,6 @@ test_files:
247
246
  - spec/higher_level_api/integration/basic_reject_spec.rb
248
247
  - spec/higher_level_api/integration/basic_return_spec.rb
249
248
  - spec/higher_level_api/integration/channel_close_spec.rb
250
- - spec/higher_level_api/integration/channel_flow_spec.rb
251
249
  - spec/higher_level_api/integration/channel_open_spec.rb
252
250
  - spec/higher_level_api/integration/confirm_select_spec.rb
253
251
  - spec/higher_level_api/integration/connection_spec.rb
@@ -1,21 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Bunny::Channel, "#flow" do
4
- let(:connection) do
5
- c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed")
6
- c.start
7
- c
8
- end
9
-
10
- after :each do
11
- connection.close
12
- end
13
-
14
- it "is supported" do
15
- ch = connection.create_channel
16
-
17
- ch.flow(true).should be_instance_of(AMQ::Protocol::Channel::FlowOk)
18
- ch.flow(false).should be_instance_of(AMQ::Protocol::Channel::FlowOk)
19
- ch.flow(true).should be_instance_of(AMQ::Protocol::Channel::FlowOk)
20
- end
21
- end