bunny 0.9.0.pre13 → 0.9.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog.md +23 -0
  3. data/README.md +2 -2
  4. data/lib/bunny.rb +15 -2
  5. data/lib/bunny/authentication/credentials_encoder.rb +18 -0
  6. data/lib/bunny/authentication/external_mechanism_encoder.rb +1 -0
  7. data/lib/bunny/authentication/plain_mechanism_encoder.rb +2 -0
  8. data/lib/bunny/channel.rb +9 -3
  9. data/lib/bunny/channel_id_allocator.rb +8 -0
  10. data/lib/bunny/concurrent/condition.rb +2 -0
  11. data/lib/bunny/concurrent/continuation_queue.rb +3 -0
  12. data/lib/bunny/concurrent/linked_continuation_queue.rb +3 -0
  13. data/lib/bunny/consumer.rb +2 -0
  14. data/lib/bunny/consumer_tag_generator.rb +1 -0
  15. data/lib/bunny/consumer_work_pool.rb +2 -0
  16. data/lib/bunny/delivery_info.rb +18 -2
  17. data/lib/bunny/exceptions.rb +49 -10
  18. data/lib/bunny/framing.rb +3 -0
  19. data/lib/bunny/heartbeat_sender.rb +4 -1
  20. data/lib/bunny/message_properties.rb +22 -0
  21. data/lib/bunny/queue.rb +49 -0
  22. data/lib/bunny/reader_loop.rb +1 -0
  23. data/lib/bunny/return_info.rb +11 -0
  24. data/lib/bunny/session.rb +53 -19
  25. data/lib/bunny/socket.rb +1 -0
  26. data/lib/bunny/ssl_socket.rb +29 -5
  27. data/lib/bunny/system_timer.rb +2 -0
  28. data/lib/bunny/test_kit.rb +4 -3
  29. data/lib/bunny/transport.rb +41 -25
  30. data/lib/bunny/version.rb +2 -1
  31. data/spec/compatibility/queue_declare_spec.rb +4 -0
  32. data/spec/compatibility/queue_declare_with_default_channel_spec.rb +33 -0
  33. data/spec/higher_level_api/integration/basic_get_spec.rb +35 -0
  34. data/spec/higher_level_api/integration/basic_nack_spec.rb +19 -1
  35. data/spec/higher_level_api/integration/connection_spec.rb +5 -0
  36. data/spec/higher_level_api/integration/queue_unbind_spec.rb +23 -2
  37. data/spec/higher_level_api/integration/tls_connection_spec.rb +47 -0
  38. data/spec/lower_level_api/integration/basic_cancel_spec.rb +8 -1
  39. data/spec/tls/cacert.pem +18 -0
  40. data/spec/tls/client_cert.pem +18 -0
  41. data/spec/tls/client_key.pem +27 -0
  42. data/spec/tls/server_cert.pem +18 -0
  43. data/spec/tls/server_key.pem +27 -0
  44. metadata +16 -2
@@ -0,0 +1,18 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIC5DCCAcygAwIBAgIJAMa8aNd9TfEZMA0GCSqGSIb3DQEBBQUAMCIxETAPBgNV
3
+ BAMTCE15VGVzdENBMQ0wCwYDVQQHEwQxODE1MB4XDTEzMDYwMjE1NTQwMFoXDTE0
4
+ MDYwMjE1NTQwMFowIjERMA8GA1UEAxMITXlUZXN0Q0ExDTALBgNVBAcTBDE4MTUw
5
+ ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDSLh8ZM0+1wVrr4J9KZLLt
6
+ VtGoKEhuTWYa+DvDbdUYaD/G06GfRqsM0eOKuJfoaMz3qY49j/bZXmuG64rGx5oq
7
+ Lp6VBwAw1R3Pmw3rD7XgiK0/7mVmnC4nwQAs9/uCKeAMPHfMDAG33aalxb3FzJfa
8
+ RUiSIY7y7Kt7nCVC53foTFxbt0EKm7wjey1S8P9XkCB8x+ZT5GetzoqulKxt/f1u
9
+ 0K/gVnMUvFmflR4hsx5qBNV6wFEYwMfi+C6q184aJv7jmjumimf9IBOcOkZrDnQD
10
+ +7HeOeZAbMgLtCaacD2SH72s3hIHvgetbIJva+zJkbjjjA+Ycd824WjG+CiOEIch
11
+ AgMBAAGjHTAbMAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEB
12
+ BQUAA4IBAQAvLziFQ56+vNyNAGDD8bQaUY8JElXj4X3vC0nFeN0zuPQz9Aa8UH4A
13
+ Y7e/j3NS2mfYdqC8U3iYEXZwp4qk4/JZ9Sk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HV+tja9TVZV/EMg6c7EGvvhnEYBfmGBm1GJT4kve6A/kcM/wcCgYEA3Tp2
16
+ 0IHeKxRQ68AWuC+KKCXiuoWz2k+Z7smiOKLcDFEQdlcgK8yc1bw72Hl9pHHHuSyg
17
+ k7CIzeuvqBBsOD8nD+xeeqpMkjyObu+6WvdoqDcvBKB2FeyVP/Wo0nevU+Wbtu98
18
+ fK+hQlIXhvMgNce3kb0P3i+F2ky3PEi9mOBRuJkCgYA+3tsLv1ol/PwpER5MWiKb
19
+ fYtwAL+f4nVo84D50n/aUegSKFqfu4WXahcJgNaUCKkaewJ/PUzzENJyI7OkjIF6
20
+ n2gJfaXYVIIc3jHyBeoB92mG27wbymT11/FMJZqNdOmhHzJ/JzTJz6PJq3Nby1oe
21
+ QLm+cvsGpjIp7aXS/lh2hQKBgQCYMmORWPcejhCJ0BIRTutuaXoNNnSgaYkORXus
22
+ GSbn9lEsCQ6h81eml6RYbmSo4Ho2A+TJFndXq6CiMAIzxAa8prHtFAIvzSd0XMrJ
23
+ UFKY/7YCKd5zgNrBMOGfQiXFwz4YYbQ0F6QKe22iMttjBG5e/kHPasRchdC90ZFW
24
+ fmTaaQKBgQDG9Qh+Hg3vcnngbOPaNLUmsTjubRI/O9kU0/c6hK87tmR0vagQqGL5
25
+ pHXo6/z9JQJFbYN2MUnfJH4MvTgD8mhgN9uhkLyv+0OHxKlBW03yG5WFq79qaOJt
26
+ hSMzK/DcwVcntipdBpQWWYw43vIOoX9qKmOBPb9RXcS/26jwEA2KMA==
27
+ -----END RSA PRIVATE KEY-----
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.9.0.pre13
4
+ version: 0.9.0.rc1
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-05-30 00:00:00.000000000 Z
15
+ date: 2013-06-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol
@@ -119,6 +119,7 @@ files:
119
119
  - lib/bunny/version.rb
120
120
  - profiling/basic_publish/with_4K_messages.rb
121
121
  - spec/compatibility/queue_declare_spec.rb
122
+ - spec/compatibility/queue_declare_with_default_channel_spec.rb
122
123
  - spec/higher_level_api/integration/basic_ack_spec.rb
123
124
  - spec/higher_level_api/integration/basic_cancel_spec.rb
124
125
  - spec/higher_level_api/integration/basic_consume_spec.rb
@@ -152,6 +153,7 @@ files:
152
153
  - spec/higher_level_api/integration/queue_purge_spec.rb
153
154
  - spec/higher_level_api/integration/queue_unbind_spec.rb
154
155
  - spec/higher_level_api/integration/sender_selected_distribution_spec.rb
156
+ - spec/higher_level_api/integration/tls_connection_spec.rb
155
157
  - spec/higher_level_api/integration/tx_commit_spec.rb
156
158
  - spec/higher_level_api/integration/tx_rollback_spec.rb
157
159
  - spec/issues/issue100_spec.rb
@@ -167,6 +169,11 @@ files:
167
169
  - spec/stress/concurrent_consumers_stress_spec.rb
168
170
  - spec/stress/concurrent_publishers_stress_spec.rb
169
171
  - spec/stress/long_running_consumer_spec.rb
172
+ - spec/tls/cacert.pem
173
+ - spec/tls/client_cert.pem
174
+ - spec/tls/client_key.pem
175
+ - spec/tls/server_cert.pem
176
+ - spec/tls/server_key.pem
170
177
  - spec/unit/bunny_spec.rb
171
178
  - spec/unit/concurrent/condition_spec.rb
172
179
  - spec/unit/concurrent/linked_continuation_queue_spec.rb
@@ -197,6 +204,7 @@ specification_version: 4
197
204
  summary: Popular easy to use Ruby client for RabbitMQ
198
205
  test_files:
199
206
  - spec/compatibility/queue_declare_spec.rb
207
+ - spec/compatibility/queue_declare_with_default_channel_spec.rb
200
208
  - spec/higher_level_api/integration/basic_ack_spec.rb
201
209
  - spec/higher_level_api/integration/basic_cancel_spec.rb
202
210
  - spec/higher_level_api/integration/basic_consume_spec.rb
@@ -230,6 +238,7 @@ test_files:
230
238
  - spec/higher_level_api/integration/queue_purge_spec.rb
231
239
  - spec/higher_level_api/integration/queue_unbind_spec.rb
232
240
  - spec/higher_level_api/integration/sender_selected_distribution_spec.rb
241
+ - spec/higher_level_api/integration/tls_connection_spec.rb
233
242
  - spec/higher_level_api/integration/tx_commit_spec.rb
234
243
  - spec/higher_level_api/integration/tx_rollback_spec.rb
235
244
  - spec/issues/issue100_spec.rb
@@ -245,6 +254,11 @@ test_files:
245
254
  - spec/stress/concurrent_consumers_stress_spec.rb
246
255
  - spec/stress/concurrent_publishers_stress_spec.rb
247
256
  - spec/stress/long_running_consumer_spec.rb
257
+ - spec/tls/cacert.pem
258
+ - spec/tls/client_cert.pem
259
+ - spec/tls/client_key.pem
260
+ - spec/tls/server_cert.pem
261
+ - spec/tls/server_key.pem
248
262
  - spec/unit/bunny_spec.rb
249
263
  - spec/unit/concurrent/condition_spec.rb
250
264
  - spec/unit/concurrent/linked_continuation_queue_spec.rb