beetle 1.0.2 → 1.0.3

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: 38d5337d6cffbcdea86794ed57a90b5403b31b64
4
- data.tar.gz: a3d68c6edec501d0d26cc2ab9b4d9686ecbae0d3
3
+ metadata.gz: 0abca6f6500fbad2151808a116640dec7f32a5e5
4
+ data.tar.gz: 42cdc9233665f3d358a2870ab8ddd2f8723c0a78
5
5
  SHA512:
6
- metadata.gz: 36b0ba9716297d323438d664ed7871034f9ba0bb3fec65c506d88796e2b7735106d24bede87252e2108b5321d33a421201386925ec464bc4f491d24080b5d46d
7
- data.tar.gz: 27f67fec37bb7cce77ef3a27e02cf8eff7e25dac1a626cb0ba95ba61badb6db0129c6ca82a08999ccf05e22e6b7e5ee63e14f4bdf4b02332970900da07c830b6
6
+ metadata.gz: 6c1808d2633eb06a7e6b2b85f7f33a10f4d95c2efe2b3cfeedbeed736656ad009215d294f5505806fdd26e8ceefb8cd1d0d01b8469a3212b04eea026e2ef1900
7
+ data.tar.gz: bfb7831e79ed4f90e5cc3afd1ebad94b63cc9ed3c5dd4ba0f202ecd1a709a9ace1e5dcd4ed23ee648375779b3d61650335b8d189d9b49b3a3718b34705407e0b
data/RELEASE_NOTES.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Release Notes
2
2
 
3
+ == Version 1.0.3
4
+
5
+ * fixed that publisher did not allow specifying message properties
6
+
3
7
  == Version 1.0.2
4
8
 
5
9
  * relax hiredis requirements to >= 0.4.5
@@ -1,3 +1,3 @@
1
1
  module Beetle
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/beetle.rb CHANGED
@@ -33,7 +33,7 @@ module Beetle
33
33
  # AMQP options for queue bindings
34
34
  QUEUE_BINDING_KEYS = [:key, :no_wait]
35
35
  # AMQP options for message publishing
36
- PUBLISHING_KEYS = [:key, :mandatory, :immediate, :persistent, :reply_to, :headers]
36
+ PUBLISHING_KEYS = [:key, :mandatory, :immediate, :persistent, :reply_to, :headers, :priority]
37
37
  # AMQP options for subscribing to queues
38
38
  SUBSCRIPTION_KEYS = [:ack, :key]
39
39
 
@@ -46,13 +46,14 @@ module Beetle
46
46
 
47
47
  test "the publishing options should include both the beetle headers and the amqp params" do
48
48
  key = 'fookey'
49
- options = Message.publishing_options(:redundant => true, :key => key, :mandatory => true, :immediate => true, :persistent => true)
49
+ options = Message.publishing_options(:redundant => true, :key => key, :mandatory => true, :immediate => true, :persistent => true, :priority => 10)
50
50
 
51
51
  assert options[:mandatory]
52
52
  assert options[:immediate]
53
53
  assert options[:persistent]
54
54
  assert_equal key, options[:key]
55
55
  assert_equal "1", options[:headers][:flags]
56
+ assert_equal 10, options[:priority]
56
57
  end
57
58
 
58
59
  test "the publishing options should silently ignore other parameters than the valid publishing keys" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beetle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-09-12 00:00:00.000000000 Z
15
+ date: 2016-09-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: uuid4r