rapa 0.5.4 → 0.5.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: 99c5ffe4c3de7048313caf6adac60329635e2315
4
- data.tar.gz: 4baa9be1a9122505643aea52f9fec12cb1ace24f
3
+ metadata.gz: 7d058890cd8319a14d3c8144f70500958ff24e95
4
+ data.tar.gz: 59f3b8daa22daef074f6b2ba55bd808fad864715
5
5
  SHA512:
6
- metadata.gz: 80857814a20dac64b2145861917c413d4e22374afe57307f6310995db9f17955ddf399b8dac781d345ae085ee31820317a29593d746bb71b3570790a0634741e
7
- data.tar.gz: d639f85b8c8e15f42d2d3c681cb98ddfab71b09692c87ce89a8281b63f44f32542dc900f7ea71dc4c14c60c841002d3239e36bc74f15afa1bb7d897400f6791e
6
+ metadata.gz: 1fd8ef923e17602b3015217e7b0a00f27f3724b10657f278eaa0d85879eb3ffe7474693085fb7a8d0653915198811fbc48f93b91b678df0807b0986d38b788aa
7
+ data.tar.gz: 4d9f8eccd0bf3c83c028eef1a7603d92c86622cd7b971f20561b8d29d176200f303eb04e08ed71eda2d445fc9f013f47d4d2ac355c8a4b9f4153c492044c6fa8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.5.5
2
+
3
+ - Support error handling methods on ListItemsResponse
4
+
1
5
  ## v0.5.4
2
6
 
3
7
  - Support YYYY date format
@@ -1,6 +1,23 @@
1
1
  module Rapa
2
2
  module Responses
3
3
  class ListItemsResponse < BaseResponse
4
+ # @return [Rapa::Error]
5
+ def error
6
+ if value = body.dig("ItemLookupErrorResponse", "Error")
7
+ ::Rapa::Error.new(value)
8
+ end
9
+ end
10
+
11
+ # @return [Boolean]
12
+ def has_error?
13
+ !error.nil?
14
+ end
15
+
16
+ # @return [Boolean]
17
+ def has_valid_request?
18
+ body.dig("ItemLookupResponse", "Items", "Request", "IsValid") == "True"
19
+ end
20
+
4
21
  private
5
22
 
6
23
  # @note Override
data/lib/rapa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rapa
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.5.2
196
+ rubygems_version: 2.6.11
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: An API client library for Amazon Product Advertising API, written in Ruby.