bunny 1.1.9 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +10 -40
- data/README.md +6 -3
- data/lib/bunny/transport.rb +0 -1
- data/lib/bunny/version.rb +1 -1
- data/spec/higher_level_api/integration/queue_unbind_spec.rb +1 -1
- metadata +1 -3
- data/spec/higher_level_api/integration/channel_flow_spec.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f18caee12de5783891349254c21dc99fac3bf763
|
4
|
+
data.tar.gz: df8fbda1c395fe0627b0c563d80410aa1064af54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b264d5692cb7840a520c0b101e042fd9c09b98ac2de888afedb2aecbd12d2b5cde655459d25982bc63e987f2b2fc69160744e96f3ccc45f0a35d655883e4559
|
7
|
+
data.tar.gz: de3bc0b5d8ee2118cc8b8ba1bc459f2b4e5f96a3af619d420f2e52a7f86df46ca16dabb4aff99509de8cc4387c1c1bc04dd509637af89353e9b9639764a87b66
|
data/ChangeLog.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
## Changes between Bunny 1.1.
|
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
|
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
|
-
|
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
|
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
|
-
|
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.
|
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.
|
98
|
+
gem "bunny", "~> 1.1.7"
|
96
99
|
```
|
97
100
|
|
98
101
|
|
data/lib/bunny/transport.rb
CHANGED
data/lib/bunny/version.rb
CHANGED
@@ -42,7 +42,7 @@ describe Bunny::Queue, "NOT bound to an exchange" do
|
|
42
42
|
end
|
43
43
|
|
44
44
|
|
45
|
-
it "
|
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.
|
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
|