action_subscriber 4.0.1-java → 4.1.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: 5c2bd0c36772ce139da18524e37b253d7a545514
4
- data.tar.gz: 716d362dc0b3d1ad7ee30db6cf210f00b9624573
3
+ metadata.gz: 259c8246fe7732723811e68b37adb7cda17b13e1
4
+ data.tar.gz: 0072e06d017d17b8995e9d0d20466672842e6849
5
5
  SHA512:
6
- metadata.gz: cd64c79a16e0987060cdd9c6ec3a7a3e4438aa38e191b23b5df2fa96e7c26fa9d51d7c80d9ba57dd089e8b0493ff2532024d57ffbda93c7a5b356866199b0170
7
- data.tar.gz: b7b99090f4a886fd6e23be47af501152fdca6a23b2bc473d99858d3a8dd72b359df882a9b446dc0bfe521e8fe9713e6a5b24b14fc3caa764d97fccbf828ec355
6
+ metadata.gz: 716db41300dc1f49bfb8213a0d97ec4f2fe4798b10770a92bdd8ac6198ae5ec860a8b194cce9210c9e4cd2d9bcf209b96e8142217166ab327b27987a38ad035b
7
+ data.tar.gz: 96a9ed128280f4cbdd022964197fc3b65a452ba15a9febb73b21d48830d1a325d3d7b40c642834e85db5a5e13f7de98046c9a057f15b3044cdf61baac7566a70
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.4
4
- - 2.3.0
5
- - jruby-9.0.4.0
6
- - jruby-9.1.5.0
3
+ - 2.2.6
4
+ - 2.3.3
5
+ - jruby-9.0.5.0
6
+ - jruby-9.1.7.0
7
7
  - jruby-head
8
8
  services:
9
9
  - rabbitmq
data/README.md CHANGED
@@ -108,6 +108,13 @@ Other configuration options include :
108
108
  * config.hosts - an array of hostnames in your cluster (ie `["rabbit1.myapp.com", "rabbit2.myapp.com"]`)
109
109
  * config.threadpool_size - set the number of threads availiable to action_subscriber
110
110
  * config.timeout - how many seconds to allow rabbit to respond before timing out
111
+ * config.tls - true/false whether to use TLS when connecting to the server
112
+ * config.tls_ca_certificats - a list of ca certificates to use for verifying the servers TLS certificate
113
+ * config.tls_cert - a client certificate to use during the TLS handshake
114
+ * config.tls_key - a key to use during the TLS handshake
115
+ * config.verify_peer - whether to attempt to validate the server's TLS certificate
116
+
117
+ > Note: TLS is not handled identically in `bunny` and `march_hare`. The configuration options we provide are passed through as provided. For details on expected behavior please check the `bunny` or `march_hare` documentation based on whether you are running in MRI or jRuby.
111
118
 
112
119
  Message Acknowledgment
113
120
  ----------------------
@@ -155,3 +162,20 @@ easily test your public methods without dependence on data from Rabbit. You can
155
162
  optionally pass data for your mock subscriber to consume if you wish.
156
163
 
157
164
  ``` subject { mock_subscriber(:header => "test_header", :payload => "payload") } ```
165
+
166
+ Development
167
+ ===========
168
+
169
+ If you want to work on `action_subscriber` you will need to have a rabbitmq instance running locally on port 5672 with a management plugin enabled on port 15672. Usually the easiest way to accomplish this is to use docker and run the command:
170
+
171
+ ```
172
+ $ docker run --net=host --rm=true --hostname diagon --name rabbit rabbitmq:3.6.6-management
173
+ ```
174
+
175
+ Now that rabbitmq is running you can clone this project and run:
176
+
177
+ ```
178
+ $ cd action_subscriber
179
+ $ bundle install
180
+ $ bundle exec rspec
181
+ ```
@@ -14,9 +14,14 @@ module ActionSubscriber
14
14
  :port,
15
15
  :prefetch,
16
16
  :seconds_to_wait_for_graceful_shutdown,
17
- :username,
18
17
  :threadpool_size,
19
18
  :timeout,
19
+ :tls,
20
+ :tls_ca_certificates,
21
+ :tls_cert,
22
+ :tls_key,
23
+ :username,
24
+ :verify_peer,
20
25
  :virtual_host
21
26
 
22
27
  CONFIGURATION_MUTEX = ::Mutex.new
@@ -32,6 +37,7 @@ module ActionSubscriber
32
37
  :seconds_to_wait_for_graceful_shutdown => 30,
33
38
  :threadpool_size => 8,
34
39
  :timeout => 1,
40
+ :tls => false,
35
41
  :username => "guest",
36
42
  :password => "guest",
37
43
  :virtual_host => "/"
@@ -69,7 +69,12 @@ module ActionSubscriber
69
69
  :port => ::ActionSubscriber.configuration.port,
70
70
  :recover_from_connection_close => true,
71
71
  :threadpool_size => ::ActionSubscriber.configuration.threadpool_size,
72
+ :tls => ::ActionSubscriber.configuration.tls,
73
+ :tls_ca_certificates => ::ActionSubscriber.configuration.tls_ca_certificates,
74
+ :tls_cert => ::ActionSubscriber.configuration.tls_cert,
75
+ :tls_key => ::ActionSubscriber.configuration.tls_key,
72
76
  :user => ::ActionSubscriber.configuration.username,
77
+ :verify_peer => ::ActionSubscriber.configuration.verify_peer,
73
78
  :vhost => ::ActionSubscriber.configuration.virtual_host,
74
79
  }
75
80
  end
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "4.0.1"
2
+ VERSION = "4.1.0"
3
3
  end
@@ -9,6 +9,7 @@ describe ::ActionSubscriber::Configuration do
9
9
  specify { expect(subject.seconds_to_wait_for_graceful_shutdown).to eq(30) }
10
10
  specify { expect(subject.threadpool_size).to eq(8) }
11
11
  specify { expect(subject.timeout).to eq(1) }
12
+ specify { expect(subject.tls).to eq(false) }
12
13
  end
13
14
 
14
15
  describe "add_decoder" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_subscriber
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.1.0
5
5
  platform: java
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-11-21 00:00:00.000000000 Z
15
+ date: 2017-01-25 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  requirements: []
269
269
  rubyforge_project:
270
- rubygems_version: 2.6.6
270
+ rubygems_version: 2.6.10
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: ActionSubscriber is a DSL that allows a rails app to consume messages from a RabbitMQ broker.