bunny 2.15.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +56 -39
  3. data/lib/bunny/channel.rb +89 -13
  4. data/lib/bunny/consumer.rb +2 -2
  5. data/lib/bunny/consumer_work_pool.rb +1 -1
  6. data/lib/bunny/delivery_info.rb +1 -1
  7. data/lib/bunny/queue.rb +36 -2
  8. data/lib/bunny/reader_loop.rb +11 -11
  9. data/lib/bunny/session.rb +71 -25
  10. data/lib/bunny/transport.rb +49 -12
  11. data/lib/bunny/version.rb +1 -1
  12. data/lib/bunny.rb +45 -4
  13. metadata +29 -228
  14. data/.github/ISSUE_TEMPLATE.md +0 -18
  15. data/.gitignore +0 -28
  16. data/.rspec +0 -1
  17. data/.travis.yml +0 -33
  18. data/.yardopts +0 -8
  19. data/CONTRIBUTING.md +0 -132
  20. data/ChangeLog.md +0 -2084
  21. data/Gemfile +0 -55
  22. data/LICENSE +0 -21
  23. data/Rakefile +0 -54
  24. data/benchmarks/basic_publish/with_128K_messages.rb +0 -35
  25. data/benchmarks/basic_publish/with_1k_messages.rb +0 -35
  26. data/benchmarks/basic_publish/with_4K_messages.rb +0 -35
  27. data/benchmarks/basic_publish/with_64K_messages.rb +0 -35
  28. data/benchmarks/channel_open.rb +0 -28
  29. data/benchmarks/mutex_and_monitor.rb +0 -42
  30. data/benchmarks/queue_declare.rb +0 -29
  31. data/benchmarks/queue_declare_and_bind.rb +0 -29
  32. data/benchmarks/queue_declare_bind_and_delete.rb +0 -29
  33. data/benchmarks/synchronized_sorted_set.rb +0 -53
  34. data/benchmarks/write_vs_write_nonblock.rb +0 -49
  35. data/bunny.gemspec +0 -34
  36. data/docker/Dockerfile +0 -24
  37. data/docker/apt/preferences.d/erlang +0 -3
  38. data/docker/apt/sources.list.d/bintray.rabbitmq.list +0 -2
  39. data/docker/docker-entrypoint.sh +0 -26
  40. data/docker/rabbitmq.conf +0 -29
  41. data/docker-compose.yml +0 -28
  42. data/examples/connection/authentication_failure.rb +0 -16
  43. data/examples/connection/automatic_recovery_with_basic_get.rb +0 -40
  44. data/examples/connection/automatic_recovery_with_client_named_queues.rb +0 -36
  45. data/examples/connection/automatic_recovery_with_multiple_consumers.rb +0 -46
  46. data/examples/connection/automatic_recovery_with_republishing.rb +0 -109
  47. data/examples/connection/automatic_recovery_with_server_named_queues.rb +0 -35
  48. data/examples/connection/channel_level_exception.rb +0 -27
  49. data/examples/connection/disabled_automatic_recovery.rb +0 -34
  50. data/examples/connection/heartbeat.rb +0 -17
  51. data/examples/connection/manually_reconnecting_consumer.rb +0 -23
  52. data/examples/connection/manually_reconnecting_publisher.rb +0 -28
  53. data/examples/connection/unknown_host.rb +0 -16
  54. data/examples/consumers/high_and_low_priority.rb +0 -50
  55. data/examples/guides/exchanges/direct_exchange_routing.rb +0 -36
  56. data/examples/guides/exchanges/fanout_exchange_routing.rb +0 -28
  57. data/examples/guides/exchanges/headers_exchange_routing.rb +0 -31
  58. data/examples/guides/exchanges/mandatory_messages.rb +0 -30
  59. data/examples/guides/extensions/alternate_exchange.rb +0 -30
  60. data/examples/guides/extensions/basic_nack.rb +0 -33
  61. data/examples/guides/extensions/connection_blocked.rb +0 -35
  62. data/examples/guides/extensions/consumer_cancellation_notification.rb +0 -39
  63. data/examples/guides/extensions/dead_letter_exchange.rb +0 -32
  64. data/examples/guides/extensions/exchange_to_exchange_bindings.rb +0 -29
  65. data/examples/guides/extensions/per_message_ttl.rb +0 -36
  66. data/examples/guides/extensions/per_queue_message_ttl.rb +0 -36
  67. data/examples/guides/extensions/publisher_confirms.rb +0 -28
  68. data/examples/guides/extensions/queue_lease.rb +0 -26
  69. data/examples/guides/extensions/sender_selected_distribution.rb +0 -32
  70. data/examples/guides/getting_started/blabbr.rb +0 -27
  71. data/examples/guides/getting_started/hello_world.rb +0 -22
  72. data/examples/guides/getting_started/weathr.rb +0 -49
  73. data/examples/guides/queues/one_off_consumer.rb +0 -25
  74. data/examples/guides/queues/redeliveries.rb +0 -81
  75. data/profiling/basic_publish/with_4K_messages.rb +0 -33
  76. data/repl +0 -3
  77. data/spec/config/enabled_plugins +0 -1
  78. data/spec/config/rabbitmq.conf +0 -13
  79. data/spec/higher_level_api/integration/basic_ack_spec.rb +0 -230
  80. data/spec/higher_level_api/integration/basic_cancel_spec.rb +0 -142
  81. data/spec/higher_level_api/integration/basic_consume_spec.rb +0 -349
  82. data/spec/higher_level_api/integration/basic_consume_with_objects_spec.rb +0 -54
  83. data/spec/higher_level_api/integration/basic_get_spec.rb +0 -80
  84. data/spec/higher_level_api/integration/basic_nack_spec.rb +0 -82
  85. data/spec/higher_level_api/integration/basic_publish_spec.rb +0 -74
  86. data/spec/higher_level_api/integration/basic_qos_spec.rb +0 -57
  87. data/spec/higher_level_api/integration/basic_reject_spec.rb +0 -152
  88. data/spec/higher_level_api/integration/basic_return_spec.rb +0 -33
  89. data/spec/higher_level_api/integration/channel_close_spec.rb +0 -66
  90. data/spec/higher_level_api/integration/channel_open_spec.rb +0 -57
  91. data/spec/higher_level_api/integration/connection_recovery_spec.rb +0 -483
  92. data/spec/higher_level_api/integration/connection_spec.rb +0 -563
  93. data/spec/higher_level_api/integration/connection_stop_spec.rb +0 -83
  94. data/spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb +0 -128
  95. data/spec/higher_level_api/integration/dead_lettering_spec.rb +0 -75
  96. data/spec/higher_level_api/integration/exchange_bind_spec.rb +0 -31
  97. data/spec/higher_level_api/integration/exchange_declare_spec.rb +0 -237
  98. data/spec/higher_level_api/integration/exchange_delete_spec.rb +0 -105
  99. data/spec/higher_level_api/integration/exchange_unbind_spec.rb +0 -40
  100. data/spec/higher_level_api/integration/exclusive_queue_spec.rb +0 -28
  101. data/spec/higher_level_api/integration/heartbeat_spec.rb +0 -49
  102. data/spec/higher_level_api/integration/message_properties_access_spec.rb +0 -95
  103. data/spec/higher_level_api/integration/predeclared_exchanges_spec.rb +0 -24
  104. data/spec/higher_level_api/integration/publisher_confirms_spec.rb +0 -191
  105. data/spec/higher_level_api/integration/publishing_edge_cases_spec.rb +0 -87
  106. data/spec/higher_level_api/integration/queue_bind_spec.rb +0 -109
  107. data/spec/higher_level_api/integration/queue_declare_spec.rb +0 -285
  108. data/spec/higher_level_api/integration/queue_delete_spec.rb +0 -41
  109. data/spec/higher_level_api/integration/queue_purge_spec.rb +0 -30
  110. data/spec/higher_level_api/integration/queue_unbind_spec.rb +0 -54
  111. data/spec/higher_level_api/integration/read_only_consumer_spec.rb +0 -60
  112. data/spec/higher_level_api/integration/sender_selected_distribution_spec.rb +0 -36
  113. data/spec/higher_level_api/integration/tls_connection_spec.rb +0 -262
  114. data/spec/higher_level_api/integration/toxiproxy_spec.rb +0 -76
  115. data/spec/higher_level_api/integration/tx_commit_spec.rb +0 -21
  116. data/spec/higher_level_api/integration/tx_rollback_spec.rb +0 -21
  117. data/spec/higher_level_api/integration/with_channel_spec.rb +0 -25
  118. data/spec/issues/issue100_spec.rb +0 -42
  119. data/spec/issues/issue141_spec.rb +0 -43
  120. data/spec/issues/issue202_spec.rb +0 -15
  121. data/spec/issues/issue224_spec.rb +0 -40
  122. data/spec/issues/issue465_spec.rb +0 -32
  123. data/spec/issues/issue549_spec.rb +0 -30
  124. data/spec/issues/issue78_spec.rb +0 -72
  125. data/spec/issues/issue83_spec.rb +0 -30
  126. data/spec/issues/issue97_attachment.json +0 -1
  127. data/spec/issues/issue97_spec.rb +0 -175
  128. data/spec/lower_level_api/integration/basic_cancel_spec.rb +0 -83
  129. data/spec/lower_level_api/integration/basic_consume_spec.rb +0 -99
  130. data/spec/spec_helper.rb +0 -47
  131. data/spec/stress/channel_close_stress_spec.rb +0 -64
  132. data/spec/stress/channel_open_stress_spec.rb +0 -84
  133. data/spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb +0 -28
  134. data/spec/stress/concurrent_consumers_stress_spec.rb +0 -71
  135. data/spec/stress/concurrent_publishers_stress_spec.rb +0 -54
  136. data/spec/stress/connection_open_close_spec.rb +0 -52
  137. data/spec/stress/merry_go_round_spec.rb +0 -105
  138. data/spec/tls/ca_certificate.pem +0 -29
  139. data/spec/tls/ca_key.pem +0 -52
  140. data/spec/tls/client_certificate.pem +0 -29
  141. data/spec/tls/client_key.pem +0 -51
  142. data/spec/tls/generate-server-cert.sh +0 -8
  143. data/spec/tls/server-openssl.cnf +0 -10
  144. data/spec/tls/server.csr +0 -16
  145. data/spec/tls/server_certificate.pem +0 -29
  146. data/spec/tls/server_key.pem +0 -51
  147. data/spec/toxiproxy_helper.rb +0 -28
  148. data/spec/unit/bunny_spec.rb +0 -15
  149. data/spec/unit/concurrent/atomic_fixnum_spec.rb +0 -35
  150. data/spec/unit/concurrent/condition_spec.rb +0 -82
  151. data/spec/unit/concurrent/linked_continuation_queue_spec.rb +0 -35
  152. data/spec/unit/concurrent/synchronized_sorted_set_spec.rb +0 -73
  153. data/spec/unit/exchange_recovery_spec.rb +0 -39
  154. data/spec/unit/version_delivery_tag_spec.rb +0 -28
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: 2.15.0
4
+ version: 2.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan
@@ -9,10 +9,10 @@ authors:
9
9
  - Jakub Stastny aka botanicus
10
10
  - Michael S. Klishin
11
11
  - Stefan Kaes
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2020-04-08 00:00:00.000000000 Z
15
+ date: 2023-06-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol
@@ -34,7 +34,27 @@ dependencies:
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.3.1
37
- description: Easy to use, feature complete Ruby client for RabbitMQ 3.3 and later
37
+ - !ruby/object:Gem::Dependency
38
+ name: sorted_set
39
+ requirement: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '1'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.2
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 1.0.2
57
+ description: Easy to use, feature complete Ruby client for RabbitMQ 3.9 and later
38
58
  versions.
39
59
  email:
40
60
  - michael.s.klishin@gmail.com
@@ -43,68 +63,7 @@ extensions: []
43
63
  extra_rdoc_files:
44
64
  - README.md
45
65
  files:
46
- - ".github/ISSUE_TEMPLATE.md"
47
- - ".gitignore"
48
- - ".rspec"
49
- - ".travis.yml"
50
- - ".yardopts"
51
- - CONTRIBUTING.md
52
- - ChangeLog.md
53
- - Gemfile
54
- - LICENSE
55
66
  - README.md
56
- - Rakefile
57
- - benchmarks/basic_publish/with_128K_messages.rb
58
- - benchmarks/basic_publish/with_1k_messages.rb
59
- - benchmarks/basic_publish/with_4K_messages.rb
60
- - benchmarks/basic_publish/with_64K_messages.rb
61
- - benchmarks/channel_open.rb
62
- - benchmarks/mutex_and_monitor.rb
63
- - benchmarks/queue_declare.rb
64
- - benchmarks/queue_declare_and_bind.rb
65
- - benchmarks/queue_declare_bind_and_delete.rb
66
- - benchmarks/synchronized_sorted_set.rb
67
- - benchmarks/write_vs_write_nonblock.rb
68
- - bunny.gemspec
69
- - docker-compose.yml
70
- - docker/Dockerfile
71
- - docker/apt/preferences.d/erlang
72
- - docker/apt/sources.list.d/bintray.rabbitmq.list
73
- - docker/docker-entrypoint.sh
74
- - docker/rabbitmq.conf
75
- - examples/connection/authentication_failure.rb
76
- - examples/connection/automatic_recovery_with_basic_get.rb
77
- - examples/connection/automatic_recovery_with_client_named_queues.rb
78
- - examples/connection/automatic_recovery_with_multiple_consumers.rb
79
- - examples/connection/automatic_recovery_with_republishing.rb
80
- - examples/connection/automatic_recovery_with_server_named_queues.rb
81
- - examples/connection/channel_level_exception.rb
82
- - examples/connection/disabled_automatic_recovery.rb
83
- - examples/connection/heartbeat.rb
84
- - examples/connection/manually_reconnecting_consumer.rb
85
- - examples/connection/manually_reconnecting_publisher.rb
86
- - examples/connection/unknown_host.rb
87
- - examples/consumers/high_and_low_priority.rb
88
- - examples/guides/exchanges/direct_exchange_routing.rb
89
- - examples/guides/exchanges/fanout_exchange_routing.rb
90
- - examples/guides/exchanges/headers_exchange_routing.rb
91
- - examples/guides/exchanges/mandatory_messages.rb
92
- - examples/guides/extensions/alternate_exchange.rb
93
- - examples/guides/extensions/basic_nack.rb
94
- - examples/guides/extensions/connection_blocked.rb
95
- - examples/guides/extensions/consumer_cancellation_notification.rb
96
- - examples/guides/extensions/dead_letter_exchange.rb
97
- - examples/guides/extensions/exchange_to_exchange_bindings.rb
98
- - examples/guides/extensions/per_message_ttl.rb
99
- - examples/guides/extensions/per_queue_message_ttl.rb
100
- - examples/guides/extensions/publisher_confirms.rb
101
- - examples/guides/extensions/queue_lease.rb
102
- - examples/guides/extensions/sender_selected_distribution.rb
103
- - examples/guides/getting_started/blabbr.rb
104
- - examples/guides/getting_started/hello_world.rb
105
- - examples/guides/getting_started/weathr.rb
106
- - examples/guides/queues/one_off_consumer.rb
107
- - examples/guides/queues/redeliveries.rb
108
67
  - lib/amq/protocol/extensions.rb
109
68
  - lib/bunny.rb
110
69
  - lib/bunny/authentication/credentials_encoder.rb
@@ -142,91 +101,11 @@ files:
142
101
  - lib/bunny/transport.rb
143
102
  - lib/bunny/version.rb
144
103
  - lib/bunny/versioned_delivery_tag.rb
145
- - profiling/basic_publish/with_4K_messages.rb
146
- - repl
147
- - spec/config/enabled_plugins
148
- - spec/config/rabbitmq.conf
149
- - spec/higher_level_api/integration/basic_ack_spec.rb
150
- - spec/higher_level_api/integration/basic_cancel_spec.rb
151
- - spec/higher_level_api/integration/basic_consume_spec.rb
152
- - spec/higher_level_api/integration/basic_consume_with_objects_spec.rb
153
- - spec/higher_level_api/integration/basic_get_spec.rb
154
- - spec/higher_level_api/integration/basic_nack_spec.rb
155
- - spec/higher_level_api/integration/basic_publish_spec.rb
156
- - spec/higher_level_api/integration/basic_qos_spec.rb
157
- - spec/higher_level_api/integration/basic_reject_spec.rb
158
- - spec/higher_level_api/integration/basic_return_spec.rb
159
- - spec/higher_level_api/integration/channel_close_spec.rb
160
- - spec/higher_level_api/integration/channel_open_spec.rb
161
- - spec/higher_level_api/integration/connection_recovery_spec.rb
162
- - spec/higher_level_api/integration/connection_spec.rb
163
- - spec/higher_level_api/integration/connection_stop_spec.rb
164
- - spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
165
- - spec/higher_level_api/integration/dead_lettering_spec.rb
166
- - spec/higher_level_api/integration/exchange_bind_spec.rb
167
- - spec/higher_level_api/integration/exchange_declare_spec.rb
168
- - spec/higher_level_api/integration/exchange_delete_spec.rb
169
- - spec/higher_level_api/integration/exchange_unbind_spec.rb
170
- - spec/higher_level_api/integration/exclusive_queue_spec.rb
171
- - spec/higher_level_api/integration/heartbeat_spec.rb
172
- - spec/higher_level_api/integration/message_properties_access_spec.rb
173
- - spec/higher_level_api/integration/predeclared_exchanges_spec.rb
174
- - spec/higher_level_api/integration/publisher_confirms_spec.rb
175
- - spec/higher_level_api/integration/publishing_edge_cases_spec.rb
176
- - spec/higher_level_api/integration/queue_bind_spec.rb
177
- - spec/higher_level_api/integration/queue_declare_spec.rb
178
- - spec/higher_level_api/integration/queue_delete_spec.rb
179
- - spec/higher_level_api/integration/queue_purge_spec.rb
180
- - spec/higher_level_api/integration/queue_unbind_spec.rb
181
- - spec/higher_level_api/integration/read_only_consumer_spec.rb
182
- - spec/higher_level_api/integration/sender_selected_distribution_spec.rb
183
- - spec/higher_level_api/integration/tls_connection_spec.rb
184
- - spec/higher_level_api/integration/toxiproxy_spec.rb
185
- - spec/higher_level_api/integration/tx_commit_spec.rb
186
- - spec/higher_level_api/integration/tx_rollback_spec.rb
187
- - spec/higher_level_api/integration/with_channel_spec.rb
188
- - spec/issues/issue100_spec.rb
189
- - spec/issues/issue141_spec.rb
190
- - spec/issues/issue202_spec.rb
191
- - spec/issues/issue224_spec.rb
192
- - spec/issues/issue465_spec.rb
193
- - spec/issues/issue549_spec.rb
194
- - spec/issues/issue78_spec.rb
195
- - spec/issues/issue83_spec.rb
196
- - spec/issues/issue97_attachment.json
197
- - spec/issues/issue97_spec.rb
198
- - spec/lower_level_api/integration/basic_cancel_spec.rb
199
- - spec/lower_level_api/integration/basic_consume_spec.rb
200
- - spec/spec_helper.rb
201
- - spec/stress/channel_close_stress_spec.rb
202
- - spec/stress/channel_open_stress_spec.rb
203
- - spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
204
- - spec/stress/concurrent_consumers_stress_spec.rb
205
- - spec/stress/concurrent_publishers_stress_spec.rb
206
- - spec/stress/connection_open_close_spec.rb
207
- - spec/stress/merry_go_round_spec.rb
208
- - spec/tls/ca_certificate.pem
209
- - spec/tls/ca_key.pem
210
- - spec/tls/client_certificate.pem
211
- - spec/tls/client_key.pem
212
- - spec/tls/generate-server-cert.sh
213
- - spec/tls/server-openssl.cnf
214
- - spec/tls/server.csr
215
- - spec/tls/server_certificate.pem
216
- - spec/tls/server_key.pem
217
- - spec/toxiproxy_helper.rb
218
- - spec/unit/bunny_spec.rb
219
- - spec/unit/concurrent/atomic_fixnum_spec.rb
220
- - spec/unit/concurrent/condition_spec.rb
221
- - spec/unit/concurrent/linked_continuation_queue_spec.rb
222
- - spec/unit/concurrent/synchronized_sorted_set_spec.rb
223
- - spec/unit/exchange_recovery_spec.rb
224
- - spec/unit/version_delivery_tag_spec.rb
225
104
  homepage: http://rubybunny.info
226
105
  licenses:
227
106
  - MIT
228
107
  metadata: {}
229
- post_install_message:
108
+ post_install_message:
230
109
  rdoc_options: []
231
110
  require_paths:
232
111
  - lib
@@ -234,93 +113,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
113
  requirements:
235
114
  - - ">="
236
115
  - !ruby/object:Gem::Version
237
- version: '2.2'
116
+ version: '2.5'
238
117
  required_rubygems_version: !ruby/object:Gem::Requirement
239
118
  requirements:
240
119
  - - ">="
241
120
  - !ruby/object:Gem::Version
242
121
  version: '0'
243
122
  requirements: []
244
- rubygems_version: 3.1.2
245
- signing_key:
123
+ rubygems_version: 3.5.0.dev
124
+ signing_key:
246
125
  specification_version: 4
247
126
  summary: Popular easy to use Ruby client for RabbitMQ
248
- test_files:
249
- - spec/config/enabled_plugins
250
- - spec/config/rabbitmq.conf
251
- - spec/higher_level_api/integration/basic_ack_spec.rb
252
- - spec/higher_level_api/integration/basic_cancel_spec.rb
253
- - spec/higher_level_api/integration/basic_consume_spec.rb
254
- - spec/higher_level_api/integration/basic_consume_with_objects_spec.rb
255
- - spec/higher_level_api/integration/basic_get_spec.rb
256
- - spec/higher_level_api/integration/basic_nack_spec.rb
257
- - spec/higher_level_api/integration/basic_publish_spec.rb
258
- - spec/higher_level_api/integration/basic_qos_spec.rb
259
- - spec/higher_level_api/integration/basic_reject_spec.rb
260
- - spec/higher_level_api/integration/basic_return_spec.rb
261
- - spec/higher_level_api/integration/channel_close_spec.rb
262
- - spec/higher_level_api/integration/channel_open_spec.rb
263
- - spec/higher_level_api/integration/connection_recovery_spec.rb
264
- - spec/higher_level_api/integration/connection_spec.rb
265
- - spec/higher_level_api/integration/connection_stop_spec.rb
266
- - spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
267
- - spec/higher_level_api/integration/dead_lettering_spec.rb
268
- - spec/higher_level_api/integration/exchange_bind_spec.rb
269
- - spec/higher_level_api/integration/exchange_declare_spec.rb
270
- - spec/higher_level_api/integration/exchange_delete_spec.rb
271
- - spec/higher_level_api/integration/exchange_unbind_spec.rb
272
- - spec/higher_level_api/integration/exclusive_queue_spec.rb
273
- - spec/higher_level_api/integration/heartbeat_spec.rb
274
- - spec/higher_level_api/integration/message_properties_access_spec.rb
275
- - spec/higher_level_api/integration/predeclared_exchanges_spec.rb
276
- - spec/higher_level_api/integration/publisher_confirms_spec.rb
277
- - spec/higher_level_api/integration/publishing_edge_cases_spec.rb
278
- - spec/higher_level_api/integration/queue_bind_spec.rb
279
- - spec/higher_level_api/integration/queue_declare_spec.rb
280
- - spec/higher_level_api/integration/queue_delete_spec.rb
281
- - spec/higher_level_api/integration/queue_purge_spec.rb
282
- - spec/higher_level_api/integration/queue_unbind_spec.rb
283
- - spec/higher_level_api/integration/read_only_consumer_spec.rb
284
- - spec/higher_level_api/integration/sender_selected_distribution_spec.rb
285
- - spec/higher_level_api/integration/tls_connection_spec.rb
286
- - spec/higher_level_api/integration/toxiproxy_spec.rb
287
- - spec/higher_level_api/integration/tx_commit_spec.rb
288
- - spec/higher_level_api/integration/tx_rollback_spec.rb
289
- - spec/higher_level_api/integration/with_channel_spec.rb
290
- - spec/issues/issue100_spec.rb
291
- - spec/issues/issue141_spec.rb
292
- - spec/issues/issue202_spec.rb
293
- - spec/issues/issue224_spec.rb
294
- - spec/issues/issue465_spec.rb
295
- - spec/issues/issue549_spec.rb
296
- - spec/issues/issue78_spec.rb
297
- - spec/issues/issue83_spec.rb
298
- - spec/issues/issue97_attachment.json
299
- - spec/issues/issue97_spec.rb
300
- - spec/lower_level_api/integration/basic_cancel_spec.rb
301
- - spec/lower_level_api/integration/basic_consume_spec.rb
302
- - spec/spec_helper.rb
303
- - spec/stress/channel_close_stress_spec.rb
304
- - spec/stress/channel_open_stress_spec.rb
305
- - spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
306
- - spec/stress/concurrent_consumers_stress_spec.rb
307
- - spec/stress/concurrent_publishers_stress_spec.rb
308
- - spec/stress/connection_open_close_spec.rb
309
- - spec/stress/merry_go_round_spec.rb
310
- - spec/tls/ca_certificate.pem
311
- - spec/tls/ca_key.pem
312
- - spec/tls/client_certificate.pem
313
- - spec/tls/client_key.pem
314
- - spec/tls/generate-server-cert.sh
315
- - spec/tls/server-openssl.cnf
316
- - spec/tls/server.csr
317
- - spec/tls/server_certificate.pem
318
- - spec/tls/server_key.pem
319
- - spec/toxiproxy_helper.rb
320
- - spec/unit/bunny_spec.rb
321
- - spec/unit/concurrent/atomic_fixnum_spec.rb
322
- - spec/unit/concurrent/condition_spec.rb
323
- - spec/unit/concurrent/linked_continuation_queue_spec.rb
324
- - spec/unit/concurrent/synchronized_sorted_set_spec.rb
325
- - spec/unit/exchange_recovery_spec.rb
326
- - spec/unit/version_delivery_tag_spec.rb
127
+ test_files: []
@@ -1,18 +0,0 @@
1
- ## Does This Really Belong to GitHub issues?
2
-
3
- If you find a bug you understand well, poor default, incorrect or unclear piece of documentation,
4
- or missing feature, please [file an
5
- issue](http://github.com/ruby-amqp/bunny/issues) on GitHub.
6
-
7
- Please use [Bunny's mailing list](http://groups.google.com/group/ruby-amqp) for questions,
8
- investigations, and discussions. GitHub issues should be used for specific, well understood, actionable
9
- maintainers and contributors can work on.
10
-
11
- When filing an issue, please specify
12
-
13
- * Which Bunny and RabbitMQ versions are used
14
- * Recent RabbitMQ log file contents
15
- * Full exception stack traces
16
- * Steps to reproduce or a failing test case
17
-
18
- This would greatly help the maintainers help you.
data/.gitignore DELETED
@@ -1,28 +0,0 @@
1
- .DS_Store
2
- .*.swp
3
- *.class
4
- *.rbc
5
- *.gem
6
- /doc/
7
- .yardoc
8
- .rvmrc
9
- Gemfile.lock
10
- .rbx/*
11
- .tags
12
- .tags_sorted_by_file
13
- .Apple*
14
- /bin/*
15
- .bundle/*
16
- vendor/*
17
- playground/*
18
- *.org
19
- repl-*
20
- debug/*
21
- *.dump
22
- deploy.docs.sh
23
- .ruby-version
24
- .idea
25
- *.srl
26
- spec/tls/*.pem
27
- spec/tls/*.pem~
28
- spec/tls/*.p12
data/.rspec DELETED
@@ -1 +0,0 @@
1
- -c -fp
data/.travis.yml DELETED
@@ -1,33 +0,0 @@
1
- dist: bionic
2
- language: ruby
3
- bundler_args: --without development
4
- cache: bundler
5
- before_install:
6
- - gem install bundler
7
- before_script:
8
- - "./bin/ci/install_on_debian.sh"
9
- - until sudo lsof -i:5672; do echo "Waiting for RabbitMQ to start..."; sleep 1; done
10
- - "./bin/ci/before_build.sh"
11
- script: "bundle exec rake integration_without_recovery"
12
- rvm:
13
- - ruby-head
14
- - "2.7.1"
15
- - "2.6.6"
16
- - "2.5.8"
17
- - "2.4.10"
18
- - "2.3.8"
19
- notifications:
20
- email: michael@rabbitmq.com
21
- services:
22
- - rabbitmq
23
- branches:
24
- only:
25
- - master
26
- - 2.14.x-stable
27
- - 2.13.x-stable
28
- env:
29
- - CI=true
30
- matrix:
31
- allow_failures:
32
- rvm:
33
- - ruby-head
data/.yardopts DELETED
@@ -1,8 +0,0 @@
1
- --no-private
2
- --protected
3
- --markup="markdown" lib/**/*.rb
4
- --main README.md
5
- --hide-tag todo
6
- -
7
- LICENSE
8
- ChangeLog.md
data/CONTRIBUTING.md DELETED
@@ -1,132 +0,0 @@
1
- ## Overview
2
-
3
- This project **does not** use GitHub issues for questions, investigations, discussions, and so on.
4
- Issues are appropriate for something specific enough for a maintainer or contributor to work on:
5
-
6
- * There should be enough information to reproduce the behavior observed in a reasonable amount of time
7
- * It should be reasonably clear why the behavior should be changed and why this cannot or should not be addressed
8
- in application code, a separate library and so on
9
-
10
- All issues that do not satisfy the above properties belong to the [Ruby RabbitMQ clients mailing list](http://groups.google.com/forum/#!forum/ruby-amqp). Pull request that do not satisfy them have a high chance
11
- of being closed.
12
-
13
- ## Submitting a Pull Request
14
-
15
- Please read the sections below to get an idea about how to run Bunny test suites first. Successfully
16
- running all tests, at least with `CI` environment variable exported to `true`, is an important
17
- first step for any contributor.
18
-
19
- Once you have a passing test suite, create a branch and make your changes on it.
20
- When you are done with your changes and all
21
- tests pass, write a [good, detailed commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) submit a pull request on GitHub.
22
-
23
- ## Pre-requisites
24
-
25
- The project uses Bundler for dependency management and requires RabbitMQ `3.5+` to be running
26
- locally with the `rabbitmq-management` and `rabbitmq_consistent_hash_exchange` plugins enabled.
27
-
28
- ### Running the Specs
29
-
30
- The specs require RabbitMQ to be running locally with a specific set of virtual hosts
31
- and users. RabbitMQ can be provisioned and started any way that's convenient to you
32
- as long as it has a suitable TLS keys configuration and management plugin enabled.
33
- Make sure you have a recent version of RabbitMQ (> `3.7.10`).
34
-
35
- The test suite can either use a locally available RabbitMQ node ([generic binary builds](http://www.rabbitmq.com/install-generic-unix.html)
36
- are an option that works well) or by running a RabbitMQ server in a Docker container.
37
-
38
- ### Using a locally installed RabbitMQ node
39
-
40
- It is possible to start a local RabbitMQ node from the repository root. It is not necessarily
41
- optimal but can be a good starting point but is a useful example:
42
-
43
- ```
44
- RABBITMQ_NODENAME=bunny RABBITMQ_CONFIG_FILE=./spec/config/rabbitmq.conf RABBITMQ_ENABLED_PLUGINS_FILE=./spec/config/enabled_plugins rabbitmq-server
45
- ```
46
-
47
- The specs need the RabbitMQ management plugin to be enabled and include TLS connectivity tests,
48
- so the node must be configured to use a [certificate and key pair](http://www.rabbitmq.com/ssl.html#certificates-and-keys).
49
- The config and enabled plugin files in the spec/config directory take care of that
50
- but certificates must be provisioned locally. By default there's a set of CA, server, and client certificates pre-generated at `spec/tls`.
51
-
52
- The `BUNNY_CERTIFICATE_DIR` environment variable can be used to a directory containing a CA certificate
53
- and a certificate/key pair to be used by the server. The directory can be generated using
54
- [tls-gen](https://github.com/michaelklishin/tls-gen)'s basic profile. This option is recommended.
55
-
56
- `BUNNY_RABBITMQ_HOSTNAME` can be used to override the expected server hostname for [peer verification](http://www.rabbitmq.com/ssl.html#peer-verification) in the TLS test suite:
57
-
58
- ```
59
- BUNNY_CERTIFICATE_DIR="/path/to/tls-gen/basic/result" BUNNY_RABBITMQ_HOSTNAME="mayflower" bundle exec rspec
60
-
61
- ```
62
-
63
- Certificates can be generated with [tls-gen](https://github.com/michaelklishin/tls-gen)'s basic profile.
64
- In that case they include a Subject Alternative Name of `localhost` for improved portability.
65
-
66
-
67
- ### Node Setup
68
-
69
- There is also a script that preconfigured the node for Bunny tests. It is sufficient to run
70
- it once but if RabbitMQ is reset it has to be executed again:
71
-
72
- ```
73
- RABBITMQ_NODENAME=bunny ./bin/ci/before_build
74
- ```
75
-
76
- The script uses `rabbitmqctl` and `rabbitmq-plugins`
77
- to set up RabbitMQ in a way that Bunny test suites expect. Two environment variables,
78
- `RABBITMQCTL` and `RABBITMQ_PLUGINS`, are available to control what `rabbitmqctl` and
79
- `rabbitmq-plugins` commands will be used. By default they are taken from `PATH`
80
- and prefixed with `sudo`.
81
-
82
- And then run the core integration suite:
83
-
84
- ```
85
- RABBITMQ_NODENAME=bunny CI=true rspec
86
- ```
87
-
88
- #### Running a RabbitMQ server in a Docker container
89
-
90
- First off you have to [install Docker Compose](https://docker.github.io/compose/install/) (and by proxy Docker).
91
- Version >= 1.6.0+ is required for compose version 2 syntax.
92
-
93
- After those have been installed (and the `docker-compose` command is available on your command line path), run
94
-
95
- ```
96
- docker-compose build && docker-compose run --service-ports rabbitmq
97
- ```
98
-
99
- The first time you do this, it will take some time, since it has to download everything it needs
100
- to build the Docker image.
101
-
102
- The RabbitMQ server will run in the foreground in the terminal where you started it. You can stop
103
- it by pressing CTRL+C. If you want to run it in the background, pass `-d` to `docker-compose`.
104
-
105
- ### Toxiproxy
106
-
107
- If Toxiproxy is running locally on standard ports or started via Docker:
108
-
109
- ```
110
- docker-compose run --service-ports toxiproxy
111
- ```
112
-
113
- then Bunny will run additional resiliency tests.
114
-
115
- ### Running Test Suites
116
-
117
- Prior to running the tests, configure the RabbitMQ permissions by running `./bin/ci/before_build`
118
- if you have RabbitMQ locally installed, if you are running RabbitMQ via Docker as above this step
119
- is not required as the setup is baked in.
120
-
121
- Make sure you have those two installed and then run integration tests:
122
-
123
- bundle install
124
- rake integration
125
-
126
- It is possible to run all tests:
127
-
128
- bundle exec rspec
129
-
130
- It is possible to run only integration and regression tests but exclude unit and stress tests:
131
-
132
- CI=true bundle exec rspec spec/higher_level_api/ spec/lower_level_api spec/issues spec/higher_level_api/integration/connection_recovery_spec.rb