march_hare 2.5.0-java → 2.5.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/march_hare/session.rb +3 -8
- data/lib/march_hare/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d812346b01209ab8c2ddb64200f1a9e6d8a7488
|
4
|
+
data.tar.gz: e8031aea2ef38e5ed724c1102fe03f8e310b5f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d6d22f26143b7fd68b8bb4d4d4e73710675749d8da597171c4ea86e442b947d72177db5244685aa7d72365e4e5873527794176caa1f81ef91bb42519a871e75
|
7
|
+
data.tar.gz: be9a1cbf79c8027b5193130d9fdabbcce82efe93bffd4bf3d3d03521a74ed01582068e8ad5f180c436005de63e114af74e3cead616d8bac174007cc01af87ec1
|
data/lib/march_hare/session.rb
CHANGED
@@ -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] :
|
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)
|
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])
|
data/lib/march_hare/version.rb
CHANGED
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.
|
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-
|
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:
|