action_subscriber 1.3.0.rc0 → 1.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 +4 -4
- data/bin/action_subscriber +2 -0
- data/lib/action_subscriber/publisher.rb +6 -4
- data/lib/action_subscriber/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae5b2f882ea1029a22240ed01ebe6c7182413df3
|
|
4
|
+
data.tar.gz: 6b231f3f390ec2b9f9f4445a414dbcd8996e4f6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c86487cde5cdc57eb02fcc8188916b1e497e225a27fde9e4e22c4265d8542de32253bbb0c2800d9bfd16382fca3bf692e44fcaec8d9991e9d3dca7acde30fa0c
|
|
7
|
+
data.tar.gz: c8042ece3e2d8867e4d8ef9ba844cba7057277f9a4018d28e1cb035324ff909856142e19189ecf5b67d4265e3f7b6aba2de736ce2c80750ca446a92488bb57c9
|
data/bin/action_subscriber
CHANGED
|
@@ -36,6 +36,8 @@ module ActionSubscriber
|
|
|
36
36
|
::ActionSubscriber::Babou.auto_pop!
|
|
37
37
|
when /subscribe/i then
|
|
38
38
|
::ActionSubscriber::Babou.start_subscribers
|
|
39
|
+
else
|
|
40
|
+
fail "ActionSubscriber.configuration.mode must be 'pop' or 'subscribe'. Currently set to '#{::ActionSubscriber.configuration.mode}'"
|
|
39
41
|
end
|
|
40
42
|
end
|
|
41
43
|
end
|
|
@@ -25,10 +25,12 @@ module ActionSubscriber
|
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def self.publishing_options(route,
|
|
29
|
-
options
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
def self.publishing_options(route, in_options = {})
|
|
29
|
+
options = {
|
|
30
|
+
:mandatory => false,
|
|
31
|
+
:persistent => false,
|
|
32
|
+
:routing_key => route,
|
|
33
|
+
}.merge(in_options)
|
|
32
34
|
|
|
33
35
|
if ::RUBY_PLATFORM == "java"
|
|
34
36
|
java_options = {}
|
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: 1.3.0
|
|
4
|
+
version: 1.3.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: 2015-10-
|
|
15
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: activesupport
|
|
@@ -255,9 +255,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
255
255
|
version: '0'
|
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
257
|
requirements:
|
|
258
|
-
- - "
|
|
258
|
+
- - ">="
|
|
259
259
|
- !ruby/object:Gem::Version
|
|
260
|
-
version:
|
|
260
|
+
version: '0'
|
|
261
261
|
requirements: []
|
|
262
262
|
rubyforge_project:
|
|
263
263
|
rubygems_version: 2.4.8
|