bisques 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/bisques/message.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e49217963f724790b861acf790814ed5a565ce62
|
4
|
+
data.tar.gz: 52765324bf57d1e9e8c1089862f737f4d87a2aac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 206a292b770361e9ca9d5c0407d91716340a2ac14e1dc5fccc62dff8e33a72d372455677763c470fffd582d200ce4e0fcc45184df539930413181cf2796bc0ed
|
7
|
+
data.tar.gz: 1c46af391216b5ff0d099f4a96818bbd44c9ef7a66f092f56deba8c1875b0fd9fa0df5515f96aa15144061ac22eb45d45da0d44da6fe557a1c655a25bcbdd569
|
data/CHANGELOG
CHANGED
data/lib/bisques/message.rb
CHANGED
@@ -14,6 +14,8 @@ module Bisques
|
|
14
14
|
# @return [Hash] Hash of SQS attributes.
|
15
15
|
attr_reader :attributes
|
16
16
|
|
17
|
+
InvalidObjectError = Class.new(StandardError)
|
18
|
+
|
17
19
|
# @api
|
18
20
|
# @param [Queue] queue
|
19
21
|
# @param [String] id
|
@@ -34,6 +36,8 @@ module Bisques
|
|
34
36
|
#
|
35
37
|
def object
|
36
38
|
@object ||= JSON.parse(body)
|
39
|
+
rescue => error
|
40
|
+
raise InvalidObjectError.new(error.to_s)
|
37
41
|
end
|
38
42
|
|
39
43
|
# @return (see Queue#delete_message)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bisques
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Wells
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|