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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c54b51f851b774863bbc2fc32114bc2afdaf2071
4
- data.tar.gz: 27fde9f70f57f705acbca344387e10a01967d8c3
3
+ metadata.gz: b835e41002cc5e6f5ffbd09b39798cd0218c1335
4
+ data.tar.gz: 8ea85ec52d9539322cf1d65e4510c916612bb429
5
5
  SHA512:
6
- metadata.gz: 0a4b49c77711ca79b5a4800fe3ac33f37cee35befbc37fa7ce32d6fcbfb10a62ca40fcbc2d6acb98a67f075f49fccb26321aa162280a769c5277bb6da66dcbc8
7
- data.tar.gz: 5d8955d8f0a1b99b7b7924e648d9606d3b9b7cd25ada19cd1f01b1eb3792abae2db83618db250039b635cb263e972988fb740ce26d53c24dca72ee4931240206
6
+ metadata.gz: 8c01c44658039a1baa87196471ac802c47f7c6ce2e7579883be78002ab261ebf9377e38de777ace638e2d0bcdf4e0297469a1efddc324bb4bb4e4200566d8e17
7
+ data.tar.gz: 6ae5262bf3f7a90e33956f10bde72299196b093ffd54b7c6822a240b7e67744a4d56cf89f4432db641f3649e1f55c8b0aef16cd29b38a44baafd7040b789043b
@@ -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]) || e.message
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
 
@@ -1,3 +1,3 @@
1
1
  module PacklinkLite
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
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.0
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: 2017-12-07 00:00:00.000000000 Z
11
+ date: 2018-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday