bisques 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +4 -0
  3. data/lib/bisques/message.rb +4 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef5dfd8e63a1fffb947d8c3b03c1d2e96ed2df4a
4
- data.tar.gz: 7c984a1c6624ea967ac1f7cc3c1ba24bb6cf85db
3
+ metadata.gz: e49217963f724790b861acf790814ed5a565ce62
4
+ data.tar.gz: 52765324bf57d1e9e8c1089862f737f4d87a2aac
5
5
  SHA512:
6
- metadata.gz: c7afc61d256a4dfaeeb914190cc216d2f8390f772ea5813feaeef22fd9f0d131095e3fbaf59ed5a682a2689dc93bd0effef406e9cced02958bef875ff5bdfea0
7
- data.tar.gz: 90a12e4c7de3cb4df695e5d2b4eff40d1e4b998a07346f3f260ce1adc16c67a12d8be80e833448d936375e100bb0d9952b59f922c22537919c01d816e0508260
6
+ metadata.gz: 206a292b770361e9ca9d5c0407d91716340a2ac14e1dc5fccc62dff8e33a72d372455677763c470fffd582d200ce4e0fcc45184df539930413181cf2796bc0ed
7
+ data.tar.gz: 1c46af391216b5ff0d099f4a96818bbd44c9ef7a66f092f56deba8c1875b0fd9fa0df5515f96aa15144061ac22eb45d45da0d44da6fe557a1c655a25bcbdd569
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === v1.0.5
2
+
3
+ Reraise an error if object could not be parsed
4
+
1
5
  === v1.0.4
2
6
 
3
7
  Add bulk methods
@@ -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
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-15 00:00:00.000000000 Z
11
+ date: 2013-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient