amqp 1.2.0 → 1.2.1

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: bd66c91f55ab8045cc63d46592f2e909ae43dccf
4
- data.tar.gz: 2cd03735c97ee93a70b0fe43ee027e909f1e7c52
3
+ metadata.gz: 8f2f4d10362c5c533ba2d5b430626abb8e1eaa98
4
+ data.tar.gz: f80eecaca4102e7c3c0a2ff7522a2d090ddb23f4
5
5
  SHA512:
6
- metadata.gz: 5fcd3df4e73c1d14209b9bd9036cadf708e4e8869f15b16bab775a13b0f796a1f55f9bdcbad5d9f12dc039eb1c17e8eb79e1eebca0b41d9e151e64694ac97625
7
- data.tar.gz: 679dca56fb7b1dd36ab7eec48eb8a70249e7ec7117c2405436feaa2c6c7863ba7cc1c1b2acc52fc5d28ac7e5568c501859a136458df400ce53b4578e67322507
6
+ metadata.gz: 0499db6a9bcf66885c76c95824a913571e2833e88fedf6d2b659ca01b3c21c52d30f3fb779eada43918bff9d5b0dbe705f29cc9ff11a32643cf6a592ccca996e
7
+ data.tar.gz: 58bc2ac9aa9412196ab37aaea1c3f968fdf76b8f5ff1bfa430ceec516cc04ed473b4e01dd8ef353184c055d05c5d37ebe80354f91f9d60d663895eec83a16b3f
@@ -10,6 +10,7 @@ rvm:
10
10
  - 1.9.2
11
11
  - 1.9.3
12
12
  - 2.0.0
13
+ - 2.1.0
13
14
  gemfile:
14
15
  - Gemfile
15
16
  - gemfiles/eventmachine-pre
@@ -19,6 +20,7 @@ notifications:
19
20
  branches:
20
21
  only:
21
22
  - master
23
+ - 1.2.x-stable
22
24
  - 1.1.x-stable
23
25
  - 1.0.x-stable
24
26
  matrix:
@@ -1,3 +1,13 @@
1
+ ## Changes Between 1.2.0 and 1.2.1
2
+
3
+ ### Initial Connection Failures Retries
4
+
5
+ Set connection status to closed on connection failure, which
6
+ means connection retries succeed.
7
+
8
+ Contributed by Marius Hanne.
9
+
10
+
1
11
  ## Changes Between 1.1.0 and 1.2.0
2
12
 
3
13
  ### [Authentication Failure Notification](http://www.rabbitmq.com/auth-notification.html) Support
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [Ruby amqp gem](http://rubyamqp.info) is a widely used, feature-rich, well-maintained asynchronous RabbitMQ client with batteries included.
4
4
  This library works with
5
5
 
6
+ * Ruby 2.1
6
7
  * Ruby 2.0
7
8
  * Ruby 1.9.3
8
9
  * [JRuby](http://jruby.org)
@@ -173,9 +173,16 @@ module AMQP
173
173
  # EventMachine::Connection's and Adapter's constructors arity
174
174
  # make it easier to use *args. MK.
175
175
  @settings = Settings.configure(args.first)
176
- @on_tcp_connection_failure = @settings[:on_tcp_connection_failure] || Proc.new { |settings|
177
- raise self.class.tcp_connection_failure_exception_class.new(settings)
176
+
177
+ @on_tcp_connection_failure = Proc.new { |settings|
178
+ closed!
179
+ if cb = @settings[:on_tcp_connection_failure]
180
+ cb.call(settings)
181
+ else
182
+ raise self.class.tcp_connection_failure_exception_class.new(settings)
183
+ end
178
184
  }
185
+
179
186
  @on_possible_authentication_failure = @settings[:on_possible_authentication_failure] || Proc.new { |settings|
180
187
  raise self.class.authentication_failure_exception_class.new(settings)
181
188
  }
@@ -73,6 +73,7 @@ module AMQP
73
73
  def self.configure(settings = nil)
74
74
  case settings
75
75
  when Hash then
76
+ settings = Hash[settings.map {|k, v| [k.to_sym, v] }] # symbolize keys
76
77
  if username = settings.delete(:username)
77
78
  settings[:user] ||= username
78
79
  end
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '1.2.0'
9
+ VERSION = '1.2.1'
10
10
  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.2.0
4
+ version: 1.2.1
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: 2014-01-14 00:00:00.000000000 Z
13
+ date: 2014-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: eventmachine