march_hare 2.5.0-java → 2.5.1-java

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: 73b8a86e921a22e112e007dbf65cedf99ac93bfc
4
- data.tar.gz: 147ad313b6744b8b7b1a37991817221d7bdff723
3
+ metadata.gz: 7d812346b01209ab8c2ddb64200f1a9e6d8a7488
4
+ data.tar.gz: e8031aea2ef38e5ed724c1102fe03f8e310b5f28
5
5
  SHA512:
6
- metadata.gz: 8720708bf788850d224c5bb46ef6376f2a18c04f82578e65ca32f5951eefa259e210fcb3b2b39c817415a76257d4d43394f5a75fa03ceceaf55d02d93984f4ad
7
- data.tar.gz: 85d2c3825083117a09cd55d13ddd117c36e5d26b678250a229c58daa21808d326a9d95df62b54ea667495a2a969e5a324c2cebb0a2091bf4a44526dc8a56604f
6
+ metadata.gz: 7d6d22f26143b7fd68b8bb4d4d4e73710675749d8da597171c4ea86e442b947d72177db5244685aa7d72365e4e5873527794176caa1f81ef91bb42519a871e75
7
+ data.tar.gz: be9a1cbf79c8027b5193130d9fdabbcce82efe93bffd4bf3d3d03521a74ed01582068e8ad5f180c436005de63e114af74e3cead616d8bac174007cc01af87ec1
@@ -35,7 +35,7 @@ module MarchHare
35
35
  # @option options [String] :username ("guest") Username
36
36
  # @option options [String] :password ("guest") Password
37
37
  # @option options [String] :vhost ("/") Virtual host to use
38
- # @option options [Integer] :heartbeat (600) Heartbeat interval. 0 means no heartbeat.
38
+ # @option options [Integer] :requested_heartbeat (580) Heartbeat timeout used. 0 means no heartbeat.
39
39
  # @option options [Boolean] :tls (false) Set to true to use TLS/SSL connection. This will switch port to 5671 by default.
40
40
  # @option options [java.util.concurrent.ThreadFactory] :thread_factory Thread factory RabbitMQ Java client will use (useful in restricted PaaS platforms such as GAE)
41
41
  #
@@ -51,7 +51,7 @@ module MarchHare
51
51
  cf.username = username_from(options) if include_username?(options)
52
52
  cf.password = password_from(options) if include_password?(options)
53
53
 
54
- cf.requested_heartbeat = heartbeat_from(options) if include_heartbeat?(options)
54
+ cf.requested_heartbeat = heartbeat_from(options)
55
55
  cf.connection_timeout = connection_timeout_from(options) if include_connection_timeout?(options)
56
56
 
57
57
  cf.thread_factory = thread_factory_from(options) if include_thread_factory?(options)
@@ -321,7 +321,7 @@ module MarchHare
321
321
 
322
322
  # @private
323
323
  def self.heartbeat_from(options)
324
- options[:heartbeat_interval] || options[:requested_heartbeat] || ConnectionFactory::DEFAULT_HEARTBEAT
324
+ options[:heartbeat_interval] || options[:requested_heartbeat] || options[:heartbeat] || ConnectionFactory::DEFAULT_HEARTBEAT
325
325
  end
326
326
 
327
327
  # @private
@@ -344,11 +344,6 @@ module MarchHare
344
344
  !!(options[:password] || options[:pass])
345
345
  end
346
346
 
347
- # @private
348
- def self.include_heartbeat?(options)
349
- !!(options[:heartbeat_interval] || options[:requested_heartbeat] || options[:heartbeat])
350
- end
351
-
352
347
  # @private
353
348
  def self.include_connection_timeout?(options)
354
349
  !!(options[:connection_timeout_interval] || options[:connection_timeout])
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module MarchHare
4
- VERSION = "2.5.0"
4
+ VERSION = "2.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: march_hare
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: java
6
6
  authors:
7
7
  - Theo Hultberg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-17 00:00:00.000000000 Z
12
+ date: 2014-07-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: RabbitMQ client for JRuby built around the official RabbitMQ Java client
15
15
  email: