amq-client 0.7.0.alpha35 → 0.8.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.
- data/.rspec +0 -1
- data/.travis.yml +9 -3
- data/Gemfile +22 -12
- data/amq-client.gemspec +1 -1
- data/examples/coolio_adapter/example_helper.rb +2 -0
- data/examples/eventmachine_adapter/basic_consume_with_acknowledgements.rb +3 -3
- data/examples/eventmachine_adapter/{connection_failure_callback.rb → error_handling/connection_failure_callback.rb} +4 -8
- data/examples/eventmachine_adapter/{connection_failure_exception.rb → error_handling/connection_failure_exception.rb} +5 -9
- data/examples/eventmachine_adapter/{connection_loss_handler.rb → error_handling/connection_loss_handler_that_fails_over.rb} +12 -12
- data/examples/eventmachine_adapter/error_handling/connection_loss_handler_with_automatic_recovery.rb +85 -0
- data/examples/eventmachine_adapter/error_handling/connection_loss_handler_with_manual_recovery.rb +85 -0
- data/examples/eventmachine_adapter/error_handling/handling_a_channel_level_exception.rb +2 -5
- data/examples/eventmachine_adapter/example_helper.rb +2 -0
- data/examples/eventmachine_adapter/server_capabilities.rb +12 -0
- data/examples/eventmachine_adapter/tls/tls_without_peer_verification.rb +2 -2
- data/lib/amq/client/async/adapter.rb +170 -31
- data/lib/amq/client/async/adapters/coolio.rb +18 -1
- data/lib/amq/client/async/adapters/event_machine.rb +48 -32
- data/lib/amq/client/async/adapters/eventmachine.rb +3 -1
- data/lib/amq/client/async/callbacks.rb +9 -7
- data/lib/amq/client/async/channel.rb +113 -20
- data/lib/amq/client/async/consumer.rb +270 -0
- data/lib/amq/client/async/exchange.rb +137 -16
- data/lib/amq/client/async/extensions/rabbitmq/confirm.rb +4 -4
- data/lib/amq/client/async/queue.rb +217 -113
- data/lib/amq/client/callbacks.rb +2 -0
- data/lib/amq/client/consumer_tag_generator.rb +24 -0
- data/lib/amq/client/exceptions.rb +10 -6
- data/lib/amq/client/handlers_registry.rb +2 -0
- data/lib/amq/client/queue.rb +2 -0
- data/lib/amq/client/server_named_entity.rb +1 -8
- data/lib/amq/client/settings.rb +64 -2
- data/lib/amq/client/version.rb +3 -1
- data/spec/benchmarks/adapters.rb +2 -0
- data/spec/client/framing/io_frame_spec.rb +9 -6
- data/spec/integration/coolio/basic_ack_spec.rb +2 -0
- data/spec/integration/coolio/basic_cancel_spec.rb +2 -0
- data/spec/integration/coolio/basic_consume_spec.rb +58 -0
- data/spec/integration/coolio/basic_get_spec.rb +2 -0
- data/spec/integration/coolio/basic_return_spec.rb +2 -0
- data/spec/integration/coolio/channel_close_spec.rb +2 -0
- data/spec/integration/coolio/channel_flow_spec.rb +2 -0
- data/spec/integration/coolio/connection_close_spec.rb +2 -0
- data/spec/integration/coolio/connection_start_spec.rb +2 -0
- data/spec/integration/coolio/exchange_declare_spec.rb +8 -6
- data/spec/integration/coolio/spec_helper.rb +2 -0
- data/spec/integration/coolio/tx_commit_spec.rb +2 -1
- data/spec/integration/coolio/tx_rollback_spec.rb +1 -1
- data/spec/integration/eventmachine/basic_ack_spec.rb +3 -1
- data/spec/integration/eventmachine/basic_cancel_spec.rb +2 -0
- data/spec/integration/eventmachine/basic_consume_spec.rb +90 -6
- data/spec/integration/eventmachine/basic_get_spec.rb +2 -0
- data/spec/integration/eventmachine/basic_return_spec.rb +2 -0
- data/spec/integration/eventmachine/channel_close_spec.rb +2 -0
- data/spec/integration/eventmachine/channel_flow_spec.rb +4 -2
- data/spec/integration/eventmachine/concurrent_basic_publish_spec.rb +79 -0
- data/spec/integration/eventmachine/connection_close_spec.rb +2 -0
- data/spec/integration/eventmachine/connection_start_spec.rb +2 -0
- data/spec/integration/eventmachine/exchange_declare_spec.rb +4 -2
- data/spec/integration/eventmachine/queue_declare_spec.rb +2 -0
- data/spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb +2 -0
- data/spec/integration/eventmachine/spec_helper.rb +2 -0
- data/spec/integration/eventmachine/tx_commit_spec.rb +2 -1
- data/spec/integration/eventmachine/tx_rollback_spec.rb +1 -1
- data/spec/regression/bad_frame_slicing_in_adapters_spec.rb +2 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/unit/client/settings_spec.rb +92 -3
- metadata +24 -23
- data/CONTRIBUTORS +0 -3
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amq-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 63
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 8
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 35
|
12
|
-
version: 0.7.0.alpha35
|
10
|
+
version: 0.8.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Jakub Stastny
|
@@ -20,7 +18,8 @@ autorequire:
|
|
20
18
|
bindir: bin
|
21
19
|
cert_chain: []
|
22
20
|
|
23
|
-
date: 2011-
|
21
|
+
date: 2011-07-25 00:00:00 +04:00
|
22
|
+
default_executable:
|
24
23
|
dependencies:
|
25
24
|
- !ruby/object:Gem::Dependency
|
26
25
|
name: eventmachine
|
@@ -44,14 +43,12 @@ dependencies:
|
|
44
43
|
requirements:
|
45
44
|
- - ">="
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
hash:
|
46
|
+
hash: 63
|
48
47
|
segments:
|
49
48
|
- 0
|
50
|
-
-
|
49
|
+
- 8
|
51
50
|
- 0
|
52
|
-
|
53
|
-
- 6
|
54
|
-
version: 0.7.0.alpha6
|
51
|
+
version: 0.8.0
|
55
52
|
type: :runtime
|
56
53
|
version_requirements: *id002
|
57
54
|
description: amq-client is a fully-featured, low-level AMQP 0.9.1 client with pluggable networking I/O adapters (EventMachine, cool.io, Eventpanda and so on) and supposed to back more opinionated AMQP clients (such as amqp gem) or be used directly in cases when access to more advanced AMQP 0.9.1 features is more important that convenient APIs
|
@@ -70,7 +67,6 @@ files:
|
|
70
67
|
- .rspec
|
71
68
|
- .travis.yml
|
72
69
|
- .yardopts
|
73
|
-
- CONTRIBUTORS
|
74
70
|
- Gemfile
|
75
71
|
- LICENSE
|
76
72
|
- README.textile
|
@@ -106,9 +102,11 @@ files:
|
|
106
102
|
- examples/eventmachine_adapter/channel_close.rb
|
107
103
|
- examples/eventmachine_adapter/channel_flow.rb
|
108
104
|
- examples/eventmachine_adapter/channel_level_exception_handling.rb
|
109
|
-
- examples/eventmachine_adapter/connection_failure_callback.rb
|
110
|
-
- examples/eventmachine_adapter/connection_failure_exception.rb
|
111
|
-
- examples/eventmachine_adapter/
|
105
|
+
- examples/eventmachine_adapter/error_handling/connection_failure_callback.rb
|
106
|
+
- examples/eventmachine_adapter/error_handling/connection_failure_exception.rb
|
107
|
+
- examples/eventmachine_adapter/error_handling/connection_loss_handler_that_fails_over.rb
|
108
|
+
- examples/eventmachine_adapter/error_handling/connection_loss_handler_with_automatic_recovery.rb
|
109
|
+
- examples/eventmachine_adapter/error_handling/connection_loss_handler_with_manual_recovery.rb
|
112
110
|
- examples/eventmachine_adapter/error_handling/handling_a_channel_level_exception.rb
|
113
111
|
- examples/eventmachine_adapter/example_helper.rb
|
114
112
|
- examples/eventmachine_adapter/exchange_declare.rb
|
@@ -120,6 +118,7 @@ files:
|
|
120
118
|
- examples/eventmachine_adapter/queue_declare.rb
|
121
119
|
- examples/eventmachine_adapter/queue_purge.rb
|
122
120
|
- examples/eventmachine_adapter/queue_unbind.rb
|
121
|
+
- examples/eventmachine_adapter/server_capabilities.rb
|
123
122
|
- examples/eventmachine_adapter/tls/tls_without_peer_verification.rb
|
124
123
|
- examples/eventmachine_adapter/tx_commit.rb
|
125
124
|
- examples/eventmachine_adapter/tx_rollback.rb
|
@@ -155,6 +154,7 @@ files:
|
|
155
154
|
- lib/amq/client/async/adapters/eventmachine.rb
|
156
155
|
- lib/amq/client/async/callbacks.rb
|
157
156
|
- lib/amq/client/async/channel.rb
|
157
|
+
- lib/amq/client/async/consumer.rb
|
158
158
|
- lib/amq/client/async/entity.rb
|
159
159
|
- lib/amq/client/async/exchange.rb
|
160
160
|
- lib/amq/client/async/extensions/rabbitmq/basic.rb
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/amq/client/async/queue.rb
|
163
163
|
- lib/amq/client/callbacks.rb
|
164
164
|
- lib/amq/client/channel.rb
|
165
|
+
- lib/amq/client/consumer_tag_generator.rb
|
165
166
|
- lib/amq/client/entity.rb
|
166
167
|
- lib/amq/client/exceptions.rb
|
167
168
|
- lib/amq/client/exchange.rb
|
@@ -202,6 +203,7 @@ files:
|
|
202
203
|
- spec/integration/eventmachine/basic_return_spec.rb
|
203
204
|
- spec/integration/eventmachine/channel_close_spec.rb
|
204
205
|
- spec/integration/eventmachine/channel_flow_spec.rb
|
206
|
+
- spec/integration/eventmachine/concurrent_basic_publish_spec.rb
|
205
207
|
- spec/integration/eventmachine/connection_close_spec.rb
|
206
208
|
- spec/integration/eventmachine/connection_start_spec.rb
|
207
209
|
- spec/integration/eventmachine/exchange_declare_spec.rb
|
@@ -219,6 +221,7 @@ files:
|
|
219
221
|
- spec/unit/client/settings_spec.rb
|
220
222
|
- spec/unit/client_spec.rb
|
221
223
|
- tasks.rb
|
224
|
+
has_rdoc: true
|
222
225
|
homepage: http://github.com/ruby-amqp/amq-client
|
223
226
|
licenses: []
|
224
227
|
|
@@ -239,18 +242,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
243
|
none: false
|
241
244
|
requirements:
|
242
|
-
- - "
|
245
|
+
- - ">="
|
243
246
|
- !ruby/object:Gem::Version
|
244
|
-
hash:
|
247
|
+
hash: 3
|
245
248
|
segments:
|
246
|
-
-
|
247
|
-
|
248
|
-
- 1
|
249
|
-
version: 1.3.1
|
249
|
+
- 0
|
250
|
+
version: "0"
|
250
251
|
requirements: []
|
251
252
|
|
252
253
|
rubyforge_project: amq-client
|
253
|
-
rubygems_version: 1.
|
254
|
+
rubygems_version: 1.6.2
|
254
255
|
signing_key:
|
255
256
|
specification_version: 3
|
256
257
|
summary: amq-client is a fully-featured, low-level AMQP 0.9.1 client
|
data/CONTRIBUTORS
DELETED