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 +4 -4
- data/lib/reso_api/app/models/reso/api/client.rb +2 -3
- data/lib/reso_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd4c435432b3f47213fb549d9568c9cdc64ad8c1129154d268aa78c30ab1bca1
|
4
|
+
data.tar.gz: 8a1227afa9dd827e231fd02a1df9c205bb1995b7cb54bec36e4e993638bfe19b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
data/lib/reso_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|