active_publisher 1.0.2 → 1.0.3

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: 189cb97dd17aea5bb76996ee2e0d9e69819e2631
4
- data.tar.gz: c78987edbadf58cd4ab2faca31d538fa3843018d
3
+ metadata.gz: 0ac1af1debd71a77adb6f64eec91a8b8f80cd623
4
+ data.tar.gz: 4dfe6761ddc756f032c111d44278bc7ff3337816
5
5
  SHA512:
6
- metadata.gz: c2e64b42274fa00b5c04c2d0cebecfd5d21580974c7abc3aa644fd47e168be0fa55955abbc621ede570ae87a107b98e719cfd045ed10bf01fc021751722f08b3
7
- data.tar.gz: eb47ef5ea9227a571d64e57d0dfc8fdeb0bef287abeb5cbb504d462683ba5fb899d7089ee4d5556aa58e5296ecb5d5af65a0bc91269b86e6e1dee5a9b6756a69
6
+ metadata.gz: bd6f6846845e788f6a86f4d6f872506cdca7e6c0abce164866e55ab0e718dd8d16f0dcf4a3d8cb472d18ce66bf073ab309f2db1a1e286a6015c91c11d991d4b6
7
+ data.tar.gz: 1b7e17a5de175b94c995b7e16c38dd9d027c357c25f46bb6ce50185535883e5c62ab717bc0371c4473e03298650022802af528d06fe5c40e57e4cc80403ef820
@@ -6,6 +6,7 @@ module ActivePublisher
6
6
  :heartbeat,
7
7
  :host,
8
8
  :hosts,
9
+ :network_recovery_interval,
9
10
  :password,
10
11
  :port,
11
12
  :publisher_confirms,
@@ -21,6 +22,7 @@ module ActivePublisher
21
22
  :virtual_host
22
23
 
23
24
  CONFIGURATION_MUTEX = ::Mutex.new
25
+ NETWORK_RECOVERY_INTERVAL = 1.freeze
24
26
 
25
27
  DEFAULTS = {
26
28
  :error_handler => lambda { |error, env_hash|
@@ -32,6 +34,7 @@ module ActivePublisher
32
34
  :host => "localhost",
33
35
  :hosts => [],
34
36
  :password => "guest",
37
+ :network_recovery_interval => NETWORK_RECOVERY_INTERVAL,
35
38
  :port => 5672,
36
39
  :publisher_confirms => false,
37
40
  :publisher_confirms_timeout => 5_000, #specified as a number of milliseconds
@@ -3,7 +3,6 @@ require 'thread'
3
3
  module ActivePublisher
4
4
  module Connection
5
5
  CONNECTION_MUTEX = ::Mutex.new
6
- NETWORK_RECOVERY_INTERVAL = 1.freeze
7
6
 
8
7
  def self.connected?
9
8
  connection.try(:connected?)
@@ -46,7 +45,7 @@ module ActivePublisher
46
45
  :continuation_timeout => ::ActivePublisher.configuration.timeout * 1_000.0, #convert sec to ms
47
46
  :heartbeat => ::ActivePublisher.configuration.heartbeat,
48
47
  :hosts => ::ActivePublisher.configuration.hosts,
49
- :network_recovery_interval => NETWORK_RECOVERY_INTERVAL,
48
+ :network_recovery_interval => ::ActivePublisher.configuration.network_recovery_interval,
50
49
  :pass => ::ActivePublisher.configuration.password,
51
50
  :port => ::ActivePublisher.configuration.port,
52
51
  :recover_from_connection_close => true,
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2017-10-16 00:00:00.000000000 Z
15
+ date: 2017-12-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny