pebbles-river 0.0.2 → 0.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: 32827f1f43724f8f2d5cf53943d89b519be5be11
4
- data.tar.gz: 38db2f8b16ea69ca288e4f5c26c5debe1556356a
3
+ metadata.gz: 50b6e0bec4e386f14856c276c287051414987cbe
4
+ data.tar.gz: 661538b058ac70c4decc2278acb4d964e313f68f
5
5
  SHA512:
6
- metadata.gz: 077a5f0d4d2dc0f2f02cd38b839b49bd14a5bb2201023e2fbdc3fc4f6e4ee6f2370fceba64d97e10e17fb609f14bb8f4af1601acbe8c439b3b23ebef4900b237
7
- data.tar.gz: b2b43a50bdeba51c83dcdebec4bf94dce4096d239aabd7189954a19d6446c775949ca92eb0b78ca61453c4aab249676da214d425f8bc3d508c5eb01bca269a33
6
+ metadata.gz: dc4ca4ded39c202dc5aaba3a0b1fe4033b15eca6ba117e9b3d587a7ef3c292a806813f13429824cf29aae0be4a347cfc90b13afa28af97c18cf29afc5f60f555
7
+ data.tar.gz: 0977a2aa1116cbc9454c384f67430f83cb8da1334dac83da8e38af7cef70dba99b468d3bc4853dd05a54d71e9d4267abd301ce8b1d03bd8b6232849d0966c9cb
@@ -16,6 +16,7 @@ module Pebbles
16
16
 
17
17
  attr_reader :payload
18
18
  attr_reader :queue
19
+ attr_reader :raw_message
19
20
 
20
21
  def self.deserialize_payload(payload)
21
22
  if payload
@@ -40,7 +41,11 @@ module Pebbles
40
41
  end
41
42
 
42
43
  def delivery_tag
43
- @raw_message[:delivery_details][:delivery_tag]
44
+ delivery_details[:delivery_tag]
45
+ end
46
+
47
+ def delivery_details
48
+ @raw_message[:delivery_details] || {}
44
49
  end
45
50
 
46
51
  def ack
@@ -1,5 +1,5 @@
1
1
  module Pebbles
2
2
  module River
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebbles-river
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Staubo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-16 00:00:00.000000000 Z
12
+ date: 2014-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pebblebed