active_publisher 0.2.1 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d0c107b0f6d33d4ec22737be7be38b8c14a4504
4
- data.tar.gz: df3f5c1406b673a9af6d876cc51e88ff79468e44
3
+ metadata.gz: 9d8dc1803e915b78f127dfa54c7f716e0929727a
4
+ data.tar.gz: 5c69b27822b0d1c5817c9a3ae4059a4364f78cc2
5
5
  SHA512:
6
- metadata.gz: 7a23864417b08563d6761396b2e744e9bb3a0857354e50e976dcb0327881bcf199457ec495ea4e7bf05799d596a0de97bd59e0a745d8b1b7ae6dd6102b6127a7
7
- data.tar.gz: 5543124c23da627915d5b3f0576a885ad6b6beb8d4586ceff14a2a5cf01144095011788b98cec13b2fdc82657f2edf9815598f47fa34ff1576b2b154d87e7251
6
+ metadata.gz: ceb1258a8c92aadc6ae56935dd005a21a6bccfb21a5c8d3eed9d2bab7e7b43ab9f373f980cce052a9c0bb19403a8d75b435d84a9a74c283996fec308db67c922
7
+ data.tar.gz: 8edf37ae3960b1b4e544ec404db1ea1cb275294c56f6efddc19c675eb567c70630e6844a7676bc794d4c78665091d115eb8fe5bbb3a2ad0387dcbefb7d7da39f
data/README.md CHANGED
@@ -51,12 +51,17 @@ Defaults for the configuration are:
51
51
  :heartbeat => 5,
52
52
  :host => "localhost",
53
53
  :hosts => [],
54
+ :password => "guest",
54
55
  :port => 5672,
55
56
  :publisher_confirms => false,
56
57
  :seconds_to_wait_for_graceful_shutdown => 30,
57
58
  :timeout => 1,
59
+ :tls => false,
60
+ :tls_ca_certificates => [],
61
+ :tls_cert => nil,
62
+ :tls_key => nil,
58
63
  :username => "guest",
59
- :password => "guest",
64
+ :verify_peer => true,
60
65
  :virtual_host => "/"
61
66
  }
62
67
  ```
@@ -10,8 +10,13 @@ module ActivePublisher
10
10
  :port,
11
11
  :publisher_confirms,
12
12
  :seconds_to_wait_for_graceful_shutdown,
13
- :username,
14
13
  :timeout,
14
+ :tls,
15
+ :tls_ca_certificates,
16
+ :tls_cert,
17
+ :tls_key,
18
+ :username,
19
+ :verify_peer,
15
20
  :virtual_host
16
21
 
17
22
  CONFIGURATION_MUTEX = ::Mutex.new
@@ -25,12 +30,17 @@ module ActivePublisher
25
30
  :heartbeat => 5,
26
31
  :host => "localhost",
27
32
  :hosts => [],
33
+ :password => "guest",
28
34
  :port => 5672,
29
35
  :publisher_confirms => false,
30
36
  :seconds_to_wait_for_graceful_shutdown => 30,
31
37
  :timeout => 1,
38
+ :tls => false,
39
+ :tls_ca_certificates => [],
40
+ :tls_cert => nil,
41
+ :tls_key => nil,
32
42
  :username => "guest",
33
- :password => "guest",
43
+ :verify_peer => true,
34
44
  :virtual_host => "/"
35
45
  }
36
46
 
@@ -42,15 +42,20 @@ module ActivePublisher
42
42
 
43
43
  def self.connection_options
44
44
  {
45
+ :automatically_recover => true,
46
+ :continuation_timeout => ::ActivePublisher.configuration.timeout * 1_000.0, #convert sec to ms
45
47
  :heartbeat => ::ActivePublisher.configuration.heartbeat,
46
48
  :hosts => ::ActivePublisher.configuration.hosts,
49
+ :network_recovery_interval => NETWORK_RECOVERY_INTERVAL,
47
50
  :pass => ::ActivePublisher.configuration.password,
48
51
  :port => ::ActivePublisher.configuration.port,
49
- :user => ::ActivePublisher.configuration.username,
50
- :continuation_timeout => ::ActivePublisher.configuration.timeout * 1_000.0, #convert sec to ms
51
- :automatically_recover => true,
52
- :network_recovery_interval => NETWORK_RECOVERY_INTERVAL,
53
52
  :recover_from_connection_close => true,
53
+ :tls => ::ActivePublisher.configuration.tls,
54
+ :tls_ca_certificates => ::ActivePublisher.configuration.tls_ca_certificates,
55
+ :tls_cert => ::ActivePublisher.configuration.tls_cert,
56
+ :tls_key => ::ActivePublisher.configuration.tls_key,
57
+ :user => ::ActivePublisher.configuration.username,
58
+ :verify_peer => ::ActivePublisher.configuration.verify_peer,
54
59
  }
55
60
  end
56
61
  private_class_method :connection_options
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
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: 0.2.1
4
+ version: 0.3.0
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: 2016-12-07 00:00:00.000000000 Z
15
+ date: 2017-02-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.5.1
153
+ rubygems_version: 2.6.10
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Aims to make publishing work across MRI and jRuby painless and add some nice