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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 701ee841b7168f2d83ddc0767b410fb4d823fd44
4
- data.tar.gz: bba2c85bfac1967c60c52435b0142ea40651c78a
3
+ metadata.gz: ae5b2f882ea1029a22240ed01ebe6c7182413df3
4
+ data.tar.gz: 6b231f3f390ec2b9f9f4445a414dbcd8996e4f6c
5
5
  SHA512:
6
- metadata.gz: 19326dcda78b48629968f5ea1355634824bc8265b4877c9a21d67733beefccbe526f56113aadfb33c1802d6526ba4e132806ffe61599d2180746b9b8cb85c282
7
- data.tar.gz: 62156cbacea3f77657ca7fa1ed649a1698f450f3c59d7d39866ee82603009b4796751aaede0647cf728091f83f8951093d312a2e1dc7008b9a03abf5b03a845d
6
+ metadata.gz: c86487cde5cdc57eb02fcc8188916b1e497e225a27fde9e4e22c4265d8542de32253bbb0c2800d9bfd16382fca3bf692e44fcaec8d9991e9d3dca7acde30fa0c
7
+ data.tar.gz: c8042ece3e2d8867e4d8ef9ba844cba7057277f9a4018d28e1cb035324ff909856142e19189ecf5b67d4265e3f7b6aba2de736ce2c80750ca446a92488bb57c9
@@ -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, options = {})
29
- options[:mandatory] = false unless options.key(:mandatory)
30
- options[:persistent] = false unless options.key(:persistent)
31
- options[:routing_key] = route
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 = {}
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "1.3.0.rc0"
2
+ VERSION = "1.3.0"
3
3
  end
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.rc0
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-14 00:00:00.000000000 Z
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: 1.3.1
260
+ version: '0'
261
261
  requirements: []
262
262
  rubyforge_project:
263
263
  rubygems_version: 2.4.8