amqp 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/lib/amqp/exceptions.rb +8 -0
- data/lib/amqp/version.rb +1 -1
- data/repl +3 -0
- data/spec/integration/connection_close_spec.rb +23 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b474fa8cecd7ea1ba095811ee1798338db1e0ab
|
4
|
+
data.tar.gz: 6464f1611b35aa95be57ee3500d1e77b32c2eaf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31ee1dc8e153698b827d793879fe2bbe92f88823eee7eb3dc1743bf24ef09353f0479609bde744242a2608baecd47dfef214233575ea0c33ea5360ed6116e70b
|
7
|
+
data.tar.gz: f49e7b6f83fb9fbe310c272fa00d3d1ad715ab01fa0c800fc10817c6440a066fee19e6af1540355d4ec32ee374c4ab784e4f8d92656050bfb9b0c841e6d3dc19
|
data/Gemfile
CHANGED
data/lib/amqp/exceptions.rb
CHANGED
@@ -75,4 +75,12 @@ module AMQP
|
|
75
75
|
super("Channel with id = #{instance.channel} is closed, you can't use it anymore!")
|
76
76
|
end
|
77
77
|
end # ChannelClosedError
|
78
|
+
|
79
|
+
# Raised on attempt to use a connection that was previously closed
|
80
|
+
# @api public
|
81
|
+
class ConnectionClosedError < Error
|
82
|
+
def initialize(frame)
|
83
|
+
super("The connection is closed, you can't use it anymore!")
|
84
|
+
end
|
85
|
+
end # ConnectionClosedError
|
78
86
|
end # AMQP
|
data/lib/amqp/version.rb
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
|
5
|
+
describe AMQP::Session, "#close(&callback)" do
|
6
|
+
include EventedSpec::AMQPSpec
|
7
|
+
|
8
|
+
it "takes a callback which will run when we get back connection.close-ok" do
|
9
|
+
@events = []
|
10
|
+
|
11
|
+
c = AMQP.connect do |session|
|
12
|
+
@events << :open_ok
|
13
|
+
session.close do |session, close_ok|
|
14
|
+
@events << :close_ok
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
done(0.3) {
|
19
|
+
c.should be_closed
|
20
|
+
@events.should == [:open_ok, :close_ok]
|
21
|
+
}
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aman Gupta
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-11-
|
13
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: eventmachine
|
@@ -254,6 +254,7 @@ files:
|
|
254
254
|
- lib/amqp/utilities/event_loop_helper.rb
|
255
255
|
- lib/amqp/utilities/server_type.rb
|
256
256
|
- lib/amqp/version.rb
|
257
|
+
- repl
|
257
258
|
- spec/integration/authentication_spec.rb
|
258
259
|
- spec/integration/automatic_binding_for_default_direct_exchange_spec.rb
|
259
260
|
- spec/integration/automatic_recovery_predicate_spec.rb
|
@@ -264,6 +265,7 @@ files:
|
|
264
265
|
- spec/integration/channel_level_exception_handling_spec.rb
|
265
266
|
- spec/integration/channel_level_exception_with_multiple_channels_spec.rb
|
266
267
|
- spec/integration/concurrent_publishing_on_a_shared_channel_spec.rb
|
268
|
+
- spec/integration/connection_close_spec.rb
|
267
269
|
- spec/integration/connection_level_exception_handling_spec.rb
|
268
270
|
- spec/integration/declare_and_immediately_bind_a_server_named_queue_spec.rb
|
269
271
|
- spec/integration/declare_one_hundred_server_named_queues_spec.rb
|
@@ -322,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
324
|
version: '0'
|
323
325
|
requirements: []
|
324
326
|
rubyforge_project: amqp
|
325
|
-
rubygems_version: 2.1.
|
327
|
+
rubygems_version: 2.1.11
|
326
328
|
signing_key:
|
327
329
|
specification_version: 4
|
328
330
|
summary: Widely used, feature-rich asynchronous RabbitMQ client with batteries included
|