packlink_lite 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/packlink_lite/client.rb +3 -1
- data/lib/packlink_lite/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: b835e41002cc5e6f5ffbd09b39798cd0218c1335
|
4
|
+
data.tar.gz: 8ea85ec52d9539322cf1d65e4510c916612bb429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c01c44658039a1baa87196471ac802c47f7c6ce2e7579883be78002ab261ebf9377e38de777ace638e2d0bcdf4e0297469a1efddc324bb4bb4e4200566d8e17
|
7
|
+
data.tar.gz: 6ae5262bf3f7a90e33956f10bde72299196b093ffd54b7c6822a240b7e67744a4d56cf89f4432db641f3649e1f55c8b0aef16cd29b38a44baafd7040b789043b
|
data/lib/packlink_lite/client.rb
CHANGED
@@ -29,7 +29,9 @@ module PacklinkLite
|
|
29
29
|
def with_error_handling
|
30
30
|
yield
|
31
31
|
rescue Faraday::ClientError => e
|
32
|
-
message = extract_error_message(e.response[:body])
|
32
|
+
message = extract_error_message(e.response[:body]) if e.response
|
33
|
+
message ||= e.message
|
34
|
+
|
33
35
|
raise(Error, message)
|
34
36
|
end
|
35
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packlink_lite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurynas Butkus
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|