active_publisher 0.2.1.pre.pre1-java → 0.3.0-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: b7672a8747218decf7e80631c55fde20e12c0334
4
- data.tar.gz: c71efbbbd57edb90be8862cbdfeed1ebe8e03f94
3
+ metadata.gz: d68de1406c1a8d12f48d204706891b85f92f8f38
4
+ data.tar.gz: 7f40ae37793a0e3cd116a8697c0d409e22b54939
5
5
  SHA512:
6
- metadata.gz: 4a705db360480daf9beab209f6aae6f9d2c00888682062080b2d04744d73839d0e74f05e7900737d3e4c56251d17ec5610edbfefe742d6819cb198c809e12a05
7
- data.tar.gz: 3087ccc5c5a78cde2638ee8df03ebdc9222a8d38bcc65d00c9d46e4b3bec65e91eff80d3e6bb09219bf654d15299be78425d4c2f0261a60b2d2a1e5aadf2b330
6
+ metadata.gz: e1d9238b86529974e3bbc6793e557b1066b672e8d158039e1b38aa763eb1d1331bacfef20664cb896b91d467a1823622473402cad2087087411f383ec7db7433
7
+ data.tar.gz: c0bb868985c0e0aaa1fb90551397700688fa06423649e7285606e9c6741db6a87d294cdcaa55fbe502d63406c0f18dbaba0ee16602830932e290e80e5bf6ef36
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-pre1"
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.pre.pre1
4
+ version: 0.3.0
5
5
  platform: java
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-02 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
  requirement: !ruby/object:Gem::Requirement
@@ -145,12 +145,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">"
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
- version: 1.3.1
150
+ version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.6.7
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 features like automatially publishing lifecycle events for ActiveRecord models.