eezee 1.0.12 → 1.0.13

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
  SHA256:
3
- metadata.gz: 5ee55fccb36a352b1f4c7e80acb7aacbdd96a3ee748e8501fe462dccbb91d00c
4
- data.tar.gz: e252cb751c34ee8a5f931f8e16b25a7b917786a8e53ce077820679b8a0b94035
3
+ metadata.gz: 26e0b5f2a8e9d41185e65ccbf53602ab25570deaf81e69283a52e4785b2f5694
4
+ data.tar.gz: 0c0c693f105197d788972e2465af65995de21a212b1195dbdda47ef4ed4969ee
5
5
  SHA512:
6
- metadata.gz: 9de0410372d8c222820a6dd4934b38604f37bcda82939ae87be36b9f4acfbb7bc181e9ff60a64c7ea58de0e2833b78f53bef0ddb1ed76f8c74037d07a4a954f7
7
- data.tar.gz: 1f384c90ce0c78c1423263cf4721b1c16a3e7e3d0f890e59cdcaf904863cb677c08215e2ded9d44e7b7b409159a4cf9a8fdd8beb0e9915669b52d6438fc4072d
6
+ metadata.gz: 661361d14056a28f812cc26b49198dc844081aa281570fdaccfd604eb119ec8afe382ffb849a58354029bea607c00ec13a59d2c71fb796c0a8c9ad80d9d496db
7
+ data.tar.gz: 980bfb3dcda96ecd42b07754c0cb904d4825920a4298cbe975d01ce679d71867ebcf624265c11a158ee025fad5b76bd83237aa5c1536379205e39095cbf86cbb
@@ -4,7 +4,7 @@ module Eezee
4
4
  class RequestError < Error
5
5
  attr_reader :response
6
6
 
7
- def initialize(response)
7
+ def initialize(response = nil)
8
8
  @response = response
9
9
  super(build_message)
10
10
  end
@@ -16,7 +16,7 @@ module Eezee
16
16
  private
17
17
 
18
18
  def build_message
19
- "CODE: #{@response.code} - BODY: #{@response.body.to_json}"
19
+ "CODE: #{@response&.code} - BODY: #{@response&.body&.to_json}"
20
20
  end
21
21
  end
22
22
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Eezee
4
- VERSION = '1.0.12'
4
+ VERSION = '1.0.13'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eezee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - linqueta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-27 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.17.0
20
- - - "~>"
21
- - !ruby/object:Gem::Version
22
- version: '0.17'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.17.0
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '0.17'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bundler
35
29
  requirement: !ruby/object:Gem::Requirement