reso_transport 1.5.18 → 1.5.19

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: 5b3402fbb54b2def806edab7eb86c501b511979ba7f9c91565fec9350cc30fa7
4
- data.tar.gz: 84f6931f9ac9c8d7e42e46abc5b3bdf7d8116493fe128550b55b7192589b4e41
3
+ metadata.gz: ff26d270c5202a27d5df7a52dc122c1790c017cdf6e7547830fa7386d9996ec7
4
+ data.tar.gz: b4bacea38b43b18ab14989219ab0c0f8d3c0e9587a6a9ff539be2c8b6f05d355
5
5
  SHA512:
6
- metadata.gz: 98b3df1517d3bf82d7ff2d6d764ac840c9773cae1ee3a098d126250a5fdcfd9651827268fe20a7fec5d729438f1ce211856b3ba39595a2cdba358cd2105c7d96
7
- data.tar.gz: ffcf28ea52fd5959bdf5b702466ea015a028eac746d7ed50888a948494cf8e89b968410dd4b068a4bfe0582c78fab8d4586f551a2a2b06e0cc3653fc2d0cf833
6
+ metadata.gz: 7d8cd7b433014eebe9cb4e5d703d32891f57b75ab510c8d80e0126aa6b676d02fdcc11d779f8a44f9657b0a18402ecea1074f7b1ca874a1d760d1008a010dd1a
7
+ data.tar.gz: b634920adeb8f9367ca38437137b1976ad96c549995a91fed47593a673519b45febffcf84922925d721d8ff57a2d322a8d5910d184e6d08ce6a76a2aaf9d058e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reso_transport (1.5.18)
4
+ reso_transport (1.5.19)
5
5
  faraday (~> 1.0.1)
6
6
 
7
7
  GEM
@@ -91,9 +91,7 @@ module ResoTransport
91
91
  end
92
92
 
93
93
  def response
94
- next_link_or_params = use_next_link? ? next_link : compile_params
95
-
96
- resource.get(next_link_or_params)
94
+ use_next_link? ? resource.get_next_link_results(next_link) : resource.get(compile_params)
97
95
  rescue Faraday::ConnectionFailed
98
96
  raise NoResponse.new(resource.request, nil, resource)
99
97
  end
@@ -43,6 +43,13 @@ module ResoTransport
43
43
  end
44
44
  end
45
45
 
46
+ def get_next_link_results(next_link)
47
+ client.connection.get(next_link) do |req|
48
+ req.headers['Accept'] = 'application/json'
49
+ @request = req
50
+ end
51
+ end
52
+
46
53
  def url
47
54
  return local['ResourcePath'].gsub(%r{^/}, '') if local
48
55
 
@@ -1,3 +1,3 @@
1
1
  module ResoTransport
2
- VERSION = '1.5.18'.freeze
2
+ VERSION = '1.5.19'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso_transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.18
4
+ version: 1.5.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Druse
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday