plenty_client 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plenty_client/request.rb +3 -3
- data/lib/plenty_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 054b065baffc15eb98c50f9227cc5b839ae334a6b30d2df2d062a8698b648b1f
|
4
|
+
data.tar.gz: 2fa0a2c078e9032eec8930752b2f9cb061d0103cc2322b195d0a5b2b3b3cc659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd548af217f5e425744324c151479eafb2c0a53cf348999c394235063446b343a9a48e1d808de796a1c87e46c7fbbcf33ffbdbd964c39344c44df788c62096e
|
7
|
+
data.tar.gz: 0cd44a57b9264926954d26c42c08500fe8dd68811007c890b220b0d39c34a9aa69bd9d818d4b43d77d7c14e4f8d1d783d29238dd3d6b8441b9dc78d81f4b17ad
|
@@ -159,11 +159,11 @@ module PlentyClient
|
|
159
159
|
def assert_success_status_code(response)
|
160
160
|
case response.status
|
161
161
|
when 300..399
|
162
|
-
raise RedirectionError, "Invalid response: HTTP status: #{response.status}"
|
162
|
+
raise RedirectionError, "Invalid response: HTTP status: #{response.status}: #{response.body}"
|
163
163
|
when 400..499
|
164
|
-
raise ClientError, "Invalid response: HTTP status: #{response.status}"
|
164
|
+
raise ClientError, "Invalid response: HTTP status: #{response.status}: #{response.body}"
|
165
165
|
when 500..599
|
166
|
-
raise ServerError, "Invalid response: HTTP status: #{response.status}"
|
166
|
+
raise ServerError, "Invalid response: HTTP status: #{response.status}: #{response.body}"
|
167
167
|
end
|
168
168
|
end
|
169
169
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plenty_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dariusch Ochlast
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
321
|
rubyforge_project:
|
322
|
-
rubygems_version: 2.7.
|
322
|
+
rubygems_version: 2.7.9
|
323
323
|
signing_key:
|
324
324
|
specification_version: 4
|
325
325
|
summary: This the first draft of a PlentyMarkets Rest Client for Ruby.
|