action_subscriber 4.0.1 → 4.1.0

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: 3a06cad234357e4194584f11c8b6ea3525ea14f2
4
- data.tar.gz: 796c79df7cd3a5a3d74564bfa4c21632aaf83fa8
3
+ metadata.gz: 7b0844296458260c50c20826245f5a783ed80c45
4
+ data.tar.gz: 70f905d4084445c9bd6acacc0a7fe487081c1abb
5
5
  SHA512:
6
- metadata.gz: 65460f70236d3d4a0bb9318c8653ae74b3dddb703ffc8d12426111648c12d692b741ead806265eca4c52d417cdb62736ec8b570dcad6e2b13f69758e704d5f93
7
- data.tar.gz: dfa68d0a77ff67ecc5be071d5e5591558ab93e9d0f8f02164f9012c277e05c9254e7303ef279e9a486b709c5179113ab6fe0a78c7892995494eaaf90a2285208
6
+ metadata.gz: b43e261bf03707d66ba31e8bc260fa9424b547f3de5ed86bc39741b2486a3314d856707ac19b88d8965e1cbf7868cc7c3996d29d4f85830d9d9a4f0f8ccc6697
7
+ data.tar.gz: 511a595019bd2f6c6d410cea15dbd56f144dc8b9535fd18319f9541a6b20551e8f51e1bd7e7076787dc5110d0a66adc1e74476cea5f89b88b322cdbaa94d0e7b
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: ruby
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
  name: activesupport
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  version: '0'
269
269
  requirements: []
270
270
  rubyforge_project:
271
- rubygems_version: 2.5.1
271
+ rubygems_version: 2.6.10
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: ActionSubscriber is a DSL that allows a rails app to consume messages from