bunny 0.9.0.pre6 → 0.9.0.pre7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/ChangeLog.md +56 -0
- data/Gemfile +5 -0
- data/README.md +12 -6
- data/bunny.gemspec +1 -1
- data/examples/connection/automatic_recovery_with_basic_get.rb +34 -0
- data/examples/connection/automatic_recovery_with_client_named_queues.rb +6 -3
- data/examples/connection/automatic_recovery_with_server_named_queues.rb +6 -3
- data/lib/bunny/channel.rb +958 -90
- data/lib/bunny/channel_id_allocator.rb +10 -1
- data/lib/bunny/consumer.rb +44 -10
- data/lib/bunny/exceptions.rb +9 -0
- data/lib/bunny/exchange.rb +91 -12
- data/lib/bunny/main_loop.rb +27 -23
- data/lib/bunny/queue.rb +129 -9
- data/lib/bunny/session.rb +118 -24
- data/lib/bunny/system_timer.rb +5 -1
- data/lib/bunny/transport.rb +8 -5
- data/lib/bunny/version.rb +1 -1
- data/spec/higher_level_api/integration/basic_ack_spec.rb +5 -3
- data/spec/higher_level_api/integration/basic_consume_spec.rb +30 -2
- data/spec/higher_level_api/integration/basic_nack_spec.rb +22 -0
- data/spec/higher_level_api/integration/basic_publish_spec.rb +0 -47
- data/spec/higher_level_api/integration/basic_reject_spec.rb +22 -0
- data/spec/higher_level_api/integration/predeclared_exchanges_spec.rb +24 -0
- data/spec/higher_level_api/integration/publishing_edge_cases_spec.rb +63 -0
- data/spec/issues/issue97_attachment.json +1 -0
- data/spec/issues/issue97_spec.rb +174 -0
- metadata +214 -197
metadata
CHANGED
@@ -1,213 +1,230 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0.pre7
|
4
5
|
prerelease: 6
|
5
|
-
version: 0.9.0.pre6
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Chris Duncan
|
9
|
+
- Eric Lindvall
|
10
|
+
- Jakub Stastny aka botanicus
|
11
|
+
- Michael S. Klishin
|
12
|
+
- Stefan Kaes
|
13
|
+
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
16
|
+
date: 2013-02-12 00:00:00.000000000 Z
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
19
|
+
name: amq-protocol
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.2.0
|
25
|
+
none: false
|
26
|
+
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 1.2.0
|
31
|
+
none: false
|
32
|
+
prerelease: false
|
33
|
+
type: :runtime
|
30
34
|
description: Easy to use synchronous Ruby client for RabbitMQ
|
31
|
-
email:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
35
|
+
email:
|
36
|
+
- !binary |-
|
37
|
+
Y2VsbGRlZUBnbWFpbC5jb20=
|
38
|
+
- !binary |-
|
39
|
+
ZXJpY0A1c3RvcHMuY29t
|
40
|
+
- !binary |-
|
41
|
+
c3Rhc3RueUAxMDFpZGVhcy5jeg==
|
42
|
+
- !binary |-
|
43
|
+
bWljaGFlbEBub3ZlbWJlcmFpbi5jb20=
|
44
|
+
- !binary |-
|
45
|
+
c2thZXNAcmFpbHNleHByZXNzLmRl
|
37
46
|
executables: []
|
38
|
-
|
39
47
|
extensions: []
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
48
|
+
extra_rdoc_files:
|
49
|
+
- README.md
|
50
|
+
files:
|
51
|
+
- ".gitignore"
|
52
|
+
- ".rspec"
|
53
|
+
- ".travis.yml"
|
54
|
+
- ".yardopts"
|
55
|
+
- ChangeLog.md
|
56
|
+
- Gemfile
|
57
|
+
- LICENSE
|
58
|
+
- README.md
|
59
|
+
- bin/ci/before_build.sh
|
60
|
+
- bunny.gemspec
|
61
|
+
- examples/connection/authentication_failure.rb
|
62
|
+
- examples/connection/automatic_recovery_with_basic_get.rb
|
63
|
+
- examples/connection/automatic_recovery_with_client_named_queues.rb
|
64
|
+
- examples/connection/automatic_recovery_with_multiple_consumers.rb
|
65
|
+
- examples/connection/automatic_recovery_with_server_named_queues.rb
|
66
|
+
- examples/connection/channel_level_exception.rb
|
67
|
+
- examples/connection/heartbeat.rb
|
68
|
+
- examples/connection/unknown_host.rb
|
69
|
+
- examples/guides/exchanges/direct_exchange_routing.rb
|
70
|
+
- examples/guides/exchanges/fanout_exchange_routing.rb
|
71
|
+
- examples/guides/exchanges/headers_exchange_routing.rb
|
72
|
+
- examples/guides/exchanges/mandatory_messages.rb
|
73
|
+
- examples/guides/extensions/alternate_exchange.rb
|
74
|
+
- examples/guides/extensions/basic_nack.rb
|
75
|
+
- examples/guides/extensions/consumer_cancellation_notification.rb
|
76
|
+
- examples/guides/extensions/dead_letter_exchange.rb
|
77
|
+
- examples/guides/extensions/exchange_to_exchange_bindings.rb
|
78
|
+
- examples/guides/extensions/per_message_ttl.rb
|
79
|
+
- examples/guides/extensions/per_queue_message_ttl.rb
|
80
|
+
- examples/guides/extensions/publisher_confirms.rb
|
81
|
+
- examples/guides/extensions/queue_lease.rb
|
82
|
+
- examples/guides/extensions/sender_selected_distribution.rb
|
83
|
+
- examples/guides/getting_started/blabbr.rb
|
84
|
+
- examples/guides/getting_started/hello_world.rb
|
85
|
+
- examples/guides/getting_started/weathr.rb
|
86
|
+
- examples/guides/queues/redeliveries.rb
|
87
|
+
- lib/bunny.rb
|
88
|
+
- lib/bunny/authentication/credentials_encoder.rb
|
89
|
+
- lib/bunny/authentication/external_mechanism_encoder.rb
|
90
|
+
- lib/bunny/authentication/plain_mechanism_encoder.rb
|
91
|
+
- lib/bunny/channel.rb
|
92
|
+
- lib/bunny/channel_id_allocator.rb
|
93
|
+
- lib/bunny/compatibility.rb
|
94
|
+
- lib/bunny/concurrent/condition.rb
|
95
|
+
- lib/bunny/consumer.rb
|
96
|
+
- lib/bunny/consumer_tag_generator.rb
|
97
|
+
- lib/bunny/consumer_work_pool.rb
|
98
|
+
- lib/bunny/delivery_info.rb
|
99
|
+
- lib/bunny/exceptions.rb
|
100
|
+
- lib/bunny/exchange.rb
|
101
|
+
- lib/bunny/framing.rb
|
102
|
+
- lib/bunny/heartbeat_sender.rb
|
103
|
+
- lib/bunny/main_loop.rb
|
104
|
+
- lib/bunny/message_properties.rb
|
105
|
+
- lib/bunny/queue.rb
|
106
|
+
- lib/bunny/return_info.rb
|
107
|
+
- lib/bunny/session.rb
|
108
|
+
- lib/bunny/socket.rb
|
109
|
+
- lib/bunny/system_timer.rb
|
110
|
+
- lib/bunny/transport.rb
|
111
|
+
- lib/bunny/version.rb
|
112
|
+
- spec/compatibility/queue_declare_spec.rb
|
113
|
+
- spec/higher_level_api/integration/basic_ack_spec.rb
|
114
|
+
- spec/higher_level_api/integration/basic_cancel_spec.rb
|
115
|
+
- spec/higher_level_api/integration/basic_consume_spec.rb
|
116
|
+
- spec/higher_level_api/integration/basic_get_spec.rb
|
117
|
+
- spec/higher_level_api/integration/basic_nack_spec.rb
|
118
|
+
- spec/higher_level_api/integration/basic_publish_spec.rb
|
119
|
+
- spec/higher_level_api/integration/basic_qos_spec.rb
|
120
|
+
- spec/higher_level_api/integration/basic_recover_spec.rb
|
121
|
+
- spec/higher_level_api/integration/basic_reject_spec.rb
|
122
|
+
- spec/higher_level_api/integration/basic_return_spec.rb
|
123
|
+
- spec/higher_level_api/integration/channel_close_spec.rb
|
124
|
+
- spec/higher_level_api/integration/channel_flow_spec.rb
|
125
|
+
- spec/higher_level_api/integration/channel_open_spec.rb
|
126
|
+
- spec/higher_level_api/integration/channel_open_stress_spec.rb
|
127
|
+
- spec/higher_level_api/integration/confirm_select_spec.rb
|
128
|
+
- spec/higher_level_api/integration/connection_spec.rb
|
129
|
+
- spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
|
130
|
+
- spec/higher_level_api/integration/dead_lettering_spec.rb
|
131
|
+
- spec/higher_level_api/integration/exchange_bind_spec.rb
|
132
|
+
- spec/higher_level_api/integration/exchange_declare_spec.rb
|
133
|
+
- spec/higher_level_api/integration/exchange_delete_spec.rb
|
134
|
+
- spec/higher_level_api/integration/exchange_unbind_spec.rb
|
135
|
+
- spec/higher_level_api/integration/message_properties_access_spec.rb
|
136
|
+
- spec/higher_level_api/integration/predeclared_exchanges_spec.rb
|
137
|
+
- spec/higher_level_api/integration/publisher_confirms_spec.rb
|
138
|
+
- spec/higher_level_api/integration/publishing_edge_cases_spec.rb
|
139
|
+
- spec/higher_level_api/integration/queue_bind_spec.rb
|
140
|
+
- spec/higher_level_api/integration/queue_declare_spec.rb
|
141
|
+
- spec/higher_level_api/integration/queue_delete_spec.rb
|
142
|
+
- spec/higher_level_api/integration/queue_purge_spec.rb
|
143
|
+
- spec/higher_level_api/integration/queue_unbind_spec.rb
|
144
|
+
- spec/higher_level_api/integration/sender_selected_distribution_spec.rb
|
145
|
+
- spec/higher_level_api/integration/tx_commit_spec.rb
|
146
|
+
- spec/higher_level_api/integration/tx_rollback_spec.rb
|
147
|
+
- spec/issues/issue78_spec.rb
|
148
|
+
- spec/issues/issue83_spec.rb
|
149
|
+
- spec/issues/issue97_attachment.json
|
150
|
+
- spec/issues/issue97_spec.rb
|
151
|
+
- spec/lower_level_api/integration/basic_cancel_spec.rb
|
152
|
+
- spec/lower_level_api/integration/basic_consume_spec.rb
|
153
|
+
- spec/spec_helper.rb
|
154
|
+
- spec/unit/bunny_spec.rb
|
155
|
+
- spec/unit/concurrent/condition_spec.rb
|
156
|
+
- spec/unit/transport_spec.rb
|
145
157
|
homepage: http://github.com/ruby-amqp/bunny
|
146
|
-
licenses:
|
147
|
-
|
148
|
-
post_install_message:
|
158
|
+
licenses:
|
159
|
+
- MIT
|
160
|
+
post_install_message:
|
149
161
|
rdoc_options: []
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: !binary |-
|
169
|
+
MA==
|
154
170
|
none: false
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
171
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - !binary |-
|
174
|
+
Pg==
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 1.3.1
|
160
177
|
none: false
|
161
|
-
requirements:
|
162
|
-
- - ">"
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: 1.3.1
|
165
178
|
requirements: []
|
166
|
-
|
167
|
-
rubyforge_project:
|
179
|
+
rubyforge_project:
|
168
180
|
rubygems_version: 1.8.24
|
169
|
-
signing_key:
|
181
|
+
signing_key:
|
170
182
|
specification_version: 3
|
171
183
|
summary: Easy to use synchronous Ruby client for RabbitMQ
|
172
|
-
test_files:
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
184
|
+
test_files:
|
185
|
+
- spec/compatibility/queue_declare_spec.rb
|
186
|
+
- spec/higher_level_api/integration/basic_ack_spec.rb
|
187
|
+
- spec/higher_level_api/integration/basic_cancel_spec.rb
|
188
|
+
- spec/higher_level_api/integration/basic_consume_spec.rb
|
189
|
+
- spec/higher_level_api/integration/basic_get_spec.rb
|
190
|
+
- spec/higher_level_api/integration/basic_nack_spec.rb
|
191
|
+
- spec/higher_level_api/integration/basic_publish_spec.rb
|
192
|
+
- spec/higher_level_api/integration/basic_qos_spec.rb
|
193
|
+
- spec/higher_level_api/integration/basic_recover_spec.rb
|
194
|
+
- spec/higher_level_api/integration/basic_reject_spec.rb
|
195
|
+
- spec/higher_level_api/integration/basic_return_spec.rb
|
196
|
+
- spec/higher_level_api/integration/channel_close_spec.rb
|
197
|
+
- spec/higher_level_api/integration/channel_flow_spec.rb
|
198
|
+
- spec/higher_level_api/integration/channel_open_spec.rb
|
199
|
+
- spec/higher_level_api/integration/channel_open_stress_spec.rb
|
200
|
+
- spec/higher_level_api/integration/confirm_select_spec.rb
|
201
|
+
- spec/higher_level_api/integration/connection_spec.rb
|
202
|
+
- spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
|
203
|
+
- spec/higher_level_api/integration/dead_lettering_spec.rb
|
204
|
+
- spec/higher_level_api/integration/exchange_bind_spec.rb
|
205
|
+
- spec/higher_level_api/integration/exchange_declare_spec.rb
|
206
|
+
- spec/higher_level_api/integration/exchange_delete_spec.rb
|
207
|
+
- spec/higher_level_api/integration/exchange_unbind_spec.rb
|
208
|
+
- spec/higher_level_api/integration/message_properties_access_spec.rb
|
209
|
+
- spec/higher_level_api/integration/predeclared_exchanges_spec.rb
|
210
|
+
- spec/higher_level_api/integration/publisher_confirms_spec.rb
|
211
|
+
- spec/higher_level_api/integration/publishing_edge_cases_spec.rb
|
212
|
+
- spec/higher_level_api/integration/queue_bind_spec.rb
|
213
|
+
- spec/higher_level_api/integration/queue_declare_spec.rb
|
214
|
+
- spec/higher_level_api/integration/queue_delete_spec.rb
|
215
|
+
- spec/higher_level_api/integration/queue_purge_spec.rb
|
216
|
+
- spec/higher_level_api/integration/queue_unbind_spec.rb
|
217
|
+
- spec/higher_level_api/integration/sender_selected_distribution_spec.rb
|
218
|
+
- spec/higher_level_api/integration/tx_commit_spec.rb
|
219
|
+
- spec/higher_level_api/integration/tx_rollback_spec.rb
|
220
|
+
- spec/issues/issue78_spec.rb
|
221
|
+
- spec/issues/issue83_spec.rb
|
222
|
+
- spec/issues/issue97_attachment.json
|
223
|
+
- spec/issues/issue97_spec.rb
|
224
|
+
- spec/lower_level_api/integration/basic_cancel_spec.rb
|
225
|
+
- spec/lower_level_api/integration/basic_consume_spec.rb
|
226
|
+
- spec/spec_helper.rb
|
227
|
+
- spec/unit/bunny_spec.rb
|
228
|
+
- spec/unit/concurrent/condition_spec.rb
|
229
|
+
- spec/unit/transport_spec.rb
|
230
|
+
has_rdoc: true
|