balihoo_lpc_client 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/balihoo_lpc_client.rb +1 -0
- data/lib/balihoo_lpc_client/request/base.rb +4 -1
- data/lib/balihoo_lpc_client/version.rb +1 -1
- 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: 083a099c4103cd47e5ac0b5075582d01c01576b6
|
4
|
+
data.tar.gz: 719e0dab691ec008a9ab60737d308722a31764f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12a74a20180da89e57a9c1d6b277aa1d71a7bb5fb589eaaa28a30e1886714b7d9f7acd80f3939d2e38e8bc19e7d5783445325bbddd82c87eed051be685a854b2
|
7
|
+
data.tar.gz: 4d8fc9c0f34e35a83fe34ac8445cedf11316dadd3630fd3146cfb8fbdfa4b7fbcde10b16e381ca29b2d3da5ec1d61cacca5de97c092ae77bc7f50a7fa006040d
|
data/lib/balihoo_lpc_client.rb
CHANGED
@@ -18,8 +18,11 @@ module BalihooLpcClient
|
|
18
18
|
|
19
19
|
def handle_errors_with(klass:, response:)
|
20
20
|
if response.is_a?(String)
|
21
|
-
|
21
|
+
case response
|
22
|
+
when /session has expired/
|
22
23
|
raise ApiSessionExpiredError, response
|
24
|
+
when /Location key: .+ not found for brand: .+/
|
25
|
+
raise LocationKeyNotFoundError, response
|
23
26
|
else
|
24
27
|
raise klass, response
|
25
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: balihoo_lpc_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JD Guzman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|