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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dbeb4724a2b0f7b8edeb830c9bfccedfc46a4e5
4
- data.tar.gz: 71affff157e0f499e1c2cc34a55d198d4fc84592
3
+ metadata.gz: 0b474fa8cecd7ea1ba095811ee1798338db1e0ab
4
+ data.tar.gz: 6464f1611b35aa95be57ee3500d1e77b32c2eaf7
5
5
  SHA512:
6
- metadata.gz: d69618a365c2bb56a9cd58e252e8037a09962148bb15ec7278969d7367a727e4a917728af1ddc35490173f90666a365bbc39eaa3112ac05d60979f4ac65ca877
7
- data.tar.gz: 9502c2910f75b2a1bfb966a5204de41b75a9cc3cdbbd7f25662dfe2e20da85b3248a1e27a49b54105b382a46a64b0fdae6b300c6422453e9abd9becfd6dfc2c6
6
+ metadata.gz: 31ee1dc8e153698b827d793879fe2bbe92f88823eee7eb3dc1743bf24ef09353f0479609bde744242a2608baecd47dfef214233575ea0c33ea5360ed6116e70b
7
+ data.tar.gz: f49e7b6f83fb9fbe310c272fa00d3d1ad715ab01fa0c800fc10817c6440a066fee19e6af1540355d4ec32ee374c4ab784e4f8d92656050bfb9b0c841e6d3dc19
data/Gemfile CHANGED
@@ -24,7 +24,6 @@ group :development do
24
24
 
25
25
  platform :ruby do
26
26
  gem "rdiscount"
27
- gem "yajl-ruby"
28
27
 
29
28
  # To test event loop helper and various Rack apps
30
29
  gem "thin"
@@ -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
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '1.1.3'
9
+ VERSION = '1.1.4'
10
10
  end
data/repl ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ bundle exec irb -Ilib -r'amqp'
@@ -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.3
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-22 00:00:00.000000000 Z
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.9
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