reso_api 0.4.1 → 0.4.4

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: 1308c7aa20b15c5aa0182575eb75e2a8a559b666de0ad71e1fd2e88d596e161c
4
- data.tar.gz: '009565c60f86a0cd7af1272de8be1960577cc721d366d6216799728a6b9d816c'
3
+ metadata.gz: cd4c435432b3f47213fb549d9568c9cdc64ad8c1129154d268aa78c30ab1bca1
4
+ data.tar.gz: 8a1227afa9dd827e231fd02a1df9c205bb1995b7cb54bec36e4e993638bfe19b
5
5
  SHA512:
6
- metadata.gz: 19afef8507aa12c680ec019d956380d7a9333fb02ea25a35ab1c7695d0c42180490730d8da684125c48e7cc918218566753b1e2ad2834528c362386eae765b03
7
- data.tar.gz: 808c88eeca611e3b33203de52b865074bbef6ea74bd9ec3aedba809b3627a10ec4ff58ebdab855edaca9fe6cb0d60a2c39774d24b1b3c754dee7ab4c22533774
6
+ metadata.gz: de3f5246183a14b62a0ddbe9697a8c67127a9e3a6add49f2a5ae32957406746fc49af9a8f2337b3fa7d87183e0eca6e4033bad89c327376dda076baee7150db6
7
+ data.tar.gz: 510ee54a5972125a86ebbc141272a6f6793e3dafb0deb63d41ac970a8ff9df0f93106994b03e646dc6a7f117a3ac9f8ae6ff5a4c6e9fa910e160208bd52b0fb4
@@ -65,8 +65,7 @@ module RESO
65
65
  response = perform_call(endpoint, params)
66
66
  response["value"].each{|hash| block.call(hash)} if response["value"].class.eql?(Array)
67
67
  while (next_link = response["@odata.nextLink"]).present?
68
- endpoint = next_link.delete_prefix(base_url)
69
- response = perform_call(endpoint, nil)
68
+ response = perform_call(next_link, nil)
70
69
  response["value"].each{|hash| block.call(hash)} if response["value"].class.eql?(Array)
71
70
  end
72
71
  else
@@ -133,7 +132,7 @@ module RESO
133
132
  end
134
133
 
135
134
  def uri_for_endpoint endpoint
136
- return URI([base_url, endpoint].join)
135
+ return URI(endpoint).host ? URI(endpoint) : URI([base_url, endpoint].join)
137
136
  end
138
137
 
139
138
  def perform_call(endpoint, params)
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler