active_publisher 0.1.4 → 0.1.5

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: 89f0de99d893cd535bab0818b0c5faf8c81dc2c1
4
- data.tar.gz: 7fd7642f67367e062ea4d4b2b3d6f2a35c842f1a
3
+ metadata.gz: 8642d3b14f9c51ef26c7a510c666ffb5d2232994
4
+ data.tar.gz: 1867600d803b42d35de9ef4183ff465097790363
5
5
  SHA512:
6
- metadata.gz: c341eb2bd9a6836f7a92962c44a81ff1ffd84c77e3b10dc3e8659bf43cba8d6153080b31a9324dfac65e0ea592db9ac25dab6e702090bccb749bfc066662d51b
7
- data.tar.gz: 8be22071be21b14c9f915e5ba9f9c30572e3d2dd4a129673dc16a9307255c45416ec92673c45d21305ede09b51f63b0cebc8a5616a31eab13d15fa355a0f6988
6
+ metadata.gz: 92e86bb6809a2ec32fc2359a4fa8e0d1df3c5a5d21f8476e42b1b6c9fc585fa740adae886558c3488380aaebc5224e5ac8b53a9e44fbec55bb347e1212b0cb1f
7
+ data.tar.gz: d572876b68e08aa56261885fd995b0d6e9b249c4c1844625a49445a38c46240ad58eae1dd83025c434db5510fe9c281c454781b4e09c35e44f8ec29010e4aaa4
@@ -4,7 +4,7 @@ rvm:
4
4
  - 2.1
5
5
  - 2.2
6
6
  - jruby-1.7
7
- - jruby-9.0.4.0
7
+ - jruby-9.1.0.0
8
8
  - jruby-head
9
9
  services:
10
10
  - rabbitmq
@@ -33,11 +33,13 @@ module ActivePublisher
33
33
  end
34
34
  end
35
35
 
36
- def self.publishing_options(route, options = {})
37
- options[:mandatory] = false unless options.key(:mandatory)
38
- options[:persistent] = false unless options.key(:persistent)
39
- options[:routing_key] = route
40
-
36
+ def self.publishing_options(route, in_options = {})
37
+ options = {
38
+ :mandatory => false,
39
+ :persistent => false,
40
+ :routing_key => route,
41
+ }.merge(in_options)
42
+
41
43
  if ::RUBY_PLATFORM == "java"
42
44
  java_options = {}
43
45
  java_options[:mandatory] = options.delete(:mandatory)
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
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-05-04 00:00:00.000000000 Z
15
+ date: 2016-05-09 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.5.1
136
+ rubygems_version: 2.5.2
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Aims to make publishing work across MRI and jRuby painless and add some nice