reso_api 0.4.0 → 0.4.3
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 +3 -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: 12b7f5e9a806ac569317c8c6afb2baab12a31395cbd73af107b898564ef000b0
|
4
|
+
data.tar.gz: 648d271daceff6396cb5d7ca3140a74601dd217539283638f7a5f30adcc272f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5429af1915fc760009e6d71df44a11b05bc02bbf8061b633fbfbf2259d5fbeb5f1a7c8f3e09ac694b06e617e5ce51e74355c3c280236b88d94fd5b09127342d
|
7
|
+
data.tar.gz: ab2a41f5ce319722ab3994bec50990a5856818fe2d7227320d848c689d563f092294000e1beddfcf73617ec636860d467061b769cf13f16bb8fd5c1300e6e36f
|
@@ -64,8 +64,8 @@ module RESO
|
|
64
64
|
if !block.nil?
|
65
65
|
response = perform_call(endpoint, params)
|
66
66
|
response["value"].each{|hash| block.call(hash)} if response["value"].class.eql?(Array)
|
67
|
-
while response["@odata.nextLink"].present?
|
68
|
-
response = perform_call(
|
67
|
+
while (next_link = response["@odata.nextLink"]).present?
|
68
|
+
response = perform_call(next_link, nil)
|
69
69
|
response["value"].each{|hash| block.call(hash)} if response["value"].class.eql?(Array)
|
70
70
|
end
|
71
71
|
else
|
@@ -132,7 +132,7 @@ module RESO
|
|
132
132
|
end
|
133
133
|
|
134
134
|
def uri_for_endpoint endpoint
|
135
|
-
return URI([base_url, endpoint].join)
|
135
|
+
return URI(endpoint).host.blank? ? URI([base_url, endpoint].join) : endpoint
|
136
136
|
end
|
137
137
|
|
138
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.3
|
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
|