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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df418de7906726ce76a9ef70d0b28bb65f21fe04b5264a6e8f2f6eaeb5a67853
4
- data.tar.gz: 1b193a3d83c5c6449def7557e098f70f1079b01217768587c542fd763f020710
3
+ metadata.gz: 12b7f5e9a806ac569317c8c6afb2baab12a31395cbd73af107b898564ef000b0
4
+ data.tar.gz: 648d271daceff6396cb5d7ca3140a74601dd217539283638f7a5f30adcc272f8
5
5
  SHA512:
6
- metadata.gz: 94f88f67b6a5e455d0be9964e57941e7546add7f731ec066399e515734554f4b31cfb56eebf69b601977a0126b5ac77011dd3d701392cc4b3732df57dc35e19e
7
- data.tar.gz: 7662e7a7d27c917cfea6467cefc24c08def9bb332bd2f76eeb88834ffb465767f05ba4400e66dbd33133b9fa7984d4cf568b75911f5265d9b953b72c7bbda80c
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(response["@odata.nextLink"], nil)
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)
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.3"
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.0
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-03-22 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