restool 1.0.5 → 1.0.6

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: 05ec555dd4ba0c213f8e83605d1540a6c882e321a36efe26648f2667e84cf09a
4
- data.tar.gz: 15e3008576a39d6d1911f0fbd42b9b272feec61dd14960746affe76061a45fab
3
+ metadata.gz: 95451fc7e658c3bca0d2af8d254a1530ae1d6d1e8c7aa31ad0e369951b6b77be
4
+ data.tar.gz: 7492e578d982244136e98ac7590d3ce4d2dfddca9c842dc65c698f2a90364533
5
5
  SHA512:
6
- metadata.gz: e11f57af7e2bfab4fe7ba87ed3cec7935457a8b8717510aea5d37e7a28e329532befaeb21b07eba47c8933b18234b53e77be1e6607f12131c1d3ac2c2b51553a
7
- data.tar.gz: 9b0c9f4955b16048588b071ebf631fcdeeb374bf204cf729d61511c1091b67e18aa0d824d414df9485cd212c92848148293adaf7fea75dc9768a9f9e9fc3ee88
6
+ metadata.gz: 6ec9c452afc61f8bf57216397a4b70cf8fe988f08fb39be23f76d7397a0bf1df433b670f6e67c8042ef34aa418cfe88ff473a2b332f1ddc33d93a0918e7e8b7a
7
+ data.tar.gz: 766c6154576649165c80f36eaaee92bb0655c614db31f6177b8d2dd8d448531860176dbef20024dbb5cf00ae5bbea22ebfb4c7fbdb5543719520ad835a18d5dd
@@ -10,9 +10,10 @@ module Restool
10
10
  def self.execute(remote_client, operation, path, params, headers,
11
11
  response_handler, representations, basic_auth)
12
12
  remote_response = remote_client.make_request(path, operation.method, params, headers,
13
- basic_auth)
13
+ basic_auth)
14
14
 
15
- response = response_handler.call(remote_response.body, remote_response.code)
15
+ response = response_handler.call(remote_response.body, remote_response.code,
16
+ remote_response.each_header.to_h)
16
17
 
17
18
  return response if operation.response.nil?
18
19
 
@@ -1,3 +1,3 @@
1
1
  module Restool
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -1,15 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Andres Zeni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-09 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2021-07-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: factory_bot
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-its
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3'
13
69
  description: Make HTTP requests and handle its responses using simple method calls.
14
70
  Restool turns your HTTP API and its responses into Ruby interfaces.
15
71
  email: