amq-client 0.7.0.alpha34 → 0.7.0.alpha35
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Gemfile +1 -1
- data/README.textile +1 -1
- data/bin/ci/before_build.sh +24 -0
- data/examples/eventmachine_adapter/extensions/rabbitmq/handling_confirm_select_ok.rb +2 -2
- data/examples/eventmachine_adapter/extensions/rabbitmq/publisher_confirmations_with_transient_messages.rb +1 -1
- data/examples/eventmachine_adapter/extensions/rabbitmq/publisher_confirmations_with_unroutable_message.rb +1 -1
- data/lib/amq/client.rb +29 -17
- data/lib/amq/client/adapter.rb +8 -504
- data/lib/amq/client/adapters/coolio.rb +4 -282
- data/lib/amq/client/adapters/event_machine.rb +4 -382
- data/lib/amq/client/async/adapter.rb +517 -0
- data/lib/amq/client/async/adapters/coolio.rb +291 -0
- data/lib/amq/client/async/adapters/event_machine.rb +392 -0
- data/lib/amq/client/async/adapters/eventmachine.rb +1 -0
- data/lib/amq/client/async/callbacks.rb +71 -0
- data/lib/amq/client/async/channel.rb +385 -0
- data/lib/amq/client/async/entity.rb +66 -0
- data/lib/amq/client/async/exchange.rb +157 -0
- data/lib/amq/client/async/extensions/rabbitmq/basic.rb +38 -0
- data/lib/amq/client/async/extensions/rabbitmq/confirm.rb +248 -0
- data/lib/amq/client/async/queue.rb +455 -0
- data/lib/amq/client/callbacks.rb +6 -65
- data/lib/amq/client/channel.rb +4 -376
- data/lib/amq/client/entity.rb +6 -57
- data/lib/amq/client/exchange.rb +4 -148
- data/lib/amq/client/extensions/rabbitmq/basic.rb +4 -28
- data/lib/amq/client/extensions/rabbitmq/confirm.rb +5 -240
- data/lib/amq/client/queue.rb +5 -450
- data/lib/amq/client/version.rb +1 -1
- data/spec/unit/client_spec.rb +10 -30
- metadata +16 -22
data/lib/amq/client/version.rb
CHANGED
data/spec/unit/client_spec.rb
CHANGED
@@ -7,12 +7,12 @@ require "amq/client"
|
|
7
7
|
describe AMQ::Client do
|
8
8
|
if RUBY_PLATFORM =~ /java/
|
9
9
|
ADAPTERS = {
|
10
|
-
:event_machine => "EventMachineClient"
|
10
|
+
:event_machine => "Async::EventMachineClient"
|
11
11
|
}
|
12
12
|
else
|
13
13
|
ADAPTERS = {
|
14
|
-
:event_machine => "EventMachineClient",
|
15
|
-
:coolio => "CoolioClient"
|
14
|
+
:event_machine => "Async::EventMachineClient",
|
15
|
+
:coolio => "Async::CoolioClient"
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
@@ -41,43 +41,23 @@ describe AMQ::Client do
|
|
41
41
|
default_timeout 1
|
42
42
|
|
43
43
|
context "with specified adapter" do
|
44
|
-
it "should connect using socket adapter" do
|
45
|
-
pending "Socket adapter is currently broken" do
|
46
|
-
AMQ::Client.connect(:adapter => :socket) do |client|
|
47
|
-
client.class.name.should eql("AMQ::Client::SocketClient")
|
48
|
-
done
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
44
|
it "should connect using event_machine adapter" do
|
54
45
|
em do
|
55
46
|
AMQ::Client.connect(:adapter => :event_machine) do |client|
|
56
|
-
client.class.name.should eql("AMQ::Client::EventMachineClient")
|
47
|
+
client.class.name.should eql("AMQ::Client::Async::EventMachineClient")
|
57
48
|
done
|
58
49
|
end
|
59
50
|
end
|
60
|
-
end
|
51
|
+
end # it
|
61
52
|
|
62
53
|
it "should connect using coolio adapter", :nojruby => true do
|
63
54
|
coolio do
|
64
55
|
AMQ::Client.connect(:adapter => :coolio) do |client|
|
65
|
-
client.class.name.should eql("AMQ::Client::CoolioClient")
|
56
|
+
client.class.name.should eql("AMQ::Client::Async::CoolioClient")
|
66
57
|
done
|
67
58
|
end
|
68
59
|
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
|
73
|
-
it "should default to the socket adapter" do
|
74
|
-
pending "Socket adapter is currently broken" do
|
75
|
-
AMQ::Client.connect do |client|
|
76
|
-
client.class.name.should eql("AMQ::Client::SocketClient")
|
77
|
-
done
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
60
|
+
end # it
|
61
|
+
end # context "with specified adapter"
|
62
|
+
end # describe .connect
|
63
|
+
end # describe AMQ::Client
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amq-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -3702664342
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 0.7.0.
|
11
|
+
- 35
|
12
|
+
version: 0.7.0.alpha35
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Jakub Stastny
|
@@ -20,7 +20,7 @@ autorequire:
|
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
22
|
|
23
|
-
date: 2011-06-
|
23
|
+
date: 2011-06-23 00:00:00 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: eventmachine
|
@@ -64,15 +64,6 @@ extensions: []
|
|
64
64
|
|
65
65
|
extra_rdoc_files:
|
66
66
|
- README.textile
|
67
|
-
- doc/_index.html
|
68
|
-
- doc/AMQ.html
|
69
|
-
- doc/class_list.html
|
70
|
-
- doc/file.README.html
|
71
|
-
- doc/file_list.html
|
72
|
-
- doc/frames.html
|
73
|
-
- doc/index.html
|
74
|
-
- doc/method_list.html
|
75
|
-
- doc/top-level-namespace.html
|
76
67
|
files:
|
77
68
|
- .gitignore
|
78
69
|
- .gitmodules
|
@@ -84,6 +75,7 @@ files:
|
|
84
75
|
- LICENSE
|
85
76
|
- README.textile
|
86
77
|
- amq-client.gemspec
|
78
|
+
- bin/ci/before_build.sh
|
87
79
|
- bin/set_test_suite_realms_up.sh
|
88
80
|
- examples/coolio_adapter/basic_consume.rb
|
89
81
|
- examples/coolio_adapter/basic_consume_with_acknowledgements.rb
|
@@ -157,6 +149,17 @@ files:
|
|
157
149
|
- lib/amq/client/adapter.rb
|
158
150
|
- lib/amq/client/adapters/coolio.rb
|
159
151
|
- lib/amq/client/adapters/event_machine.rb
|
152
|
+
- lib/amq/client/async/adapter.rb
|
153
|
+
- lib/amq/client/async/adapters/coolio.rb
|
154
|
+
- lib/amq/client/async/adapters/event_machine.rb
|
155
|
+
- lib/amq/client/async/adapters/eventmachine.rb
|
156
|
+
- lib/amq/client/async/callbacks.rb
|
157
|
+
- lib/amq/client/async/channel.rb
|
158
|
+
- lib/amq/client/async/entity.rb
|
159
|
+
- lib/amq/client/async/exchange.rb
|
160
|
+
- lib/amq/client/async/extensions/rabbitmq/basic.rb
|
161
|
+
- lib/amq/client/async/extensions/rabbitmq/confirm.rb
|
162
|
+
- lib/amq/client/async/queue.rb
|
160
163
|
- lib/amq/client/callbacks.rb
|
161
164
|
- lib/amq/client/channel.rb
|
162
165
|
- lib/amq/client/entity.rb
|
@@ -216,15 +219,6 @@ files:
|
|
216
219
|
- spec/unit/client/settings_spec.rb
|
217
220
|
- spec/unit/client_spec.rb
|
218
221
|
- tasks.rb
|
219
|
-
- doc/_index.html
|
220
|
-
- doc/AMQ.html
|
221
|
-
- doc/class_list.html
|
222
|
-
- doc/file.README.html
|
223
|
-
- doc/file_list.html
|
224
|
-
- doc/frames.html
|
225
|
-
- doc/index.html
|
226
|
-
- doc/method_list.html
|
227
|
-
- doc/top-level-namespace.html
|
228
222
|
homepage: http://github.com/ruby-amqp/amq-client
|
229
223
|
licenses: []
|
230
224
|
|