reso_api 0.4.3 → 0.4.6

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: 12b7f5e9a806ac569317c8c6afb2baab12a31395cbd73af107b898564ef000b0
4
- data.tar.gz: 648d271daceff6396cb5d7ca3140a74601dd217539283638f7a5f30adcc272f8
3
+ metadata.gz: 7e36e84a9836dcd15e9fd545c3b4eb4b42759771dc9593d410de6ed8d6558ff4
4
+ data.tar.gz: ff23c4f1a94ee411f42a8d2f25e05e39d20a1e47a13ea2f5a0314b2a31a36b45
5
5
  SHA512:
6
- metadata.gz: f5429af1915fc760009e6d71df44a11b05bc02bbf8061b633fbfbf2259d5fbeb5f1a7c8f3e09ac694b06e617e5ce51e74355c3c280236b88d94fd5b09127342d
7
- data.tar.gz: ab2a41f5ce319722ab3994bec50990a5856818fe2d7227320d848c689d563f092294000e1beddfcf73617ec636860d467061b769cf13f16bb8fd5c1300e6e36f
6
+ metadata.gz: abd9c1f86ec78924c29b13a23c52b27e5f0ebfdcc888d52e3391a4d25ba606ccd3b49d4e4fba36339ebd14f22c5415244a81ab7201afbc9e5a9de5ec597c5a03
7
+ data.tar.gz: a3f09fb8c92dd56d1b8f1d0c5e24d5321d33d2d218de2172f50999ea5be02e46264e335bbb33dde12a806ea3e2ebb51a1381f4448c1ca4f771c1de998a6b1f8c
@@ -132,7 +132,7 @@ module RESO
132
132
  end
133
133
 
134
134
  def uri_for_endpoint endpoint
135
- return URI(endpoint).host.blank? ? URI([base_url, endpoint].join) : endpoint
135
+ return URI(endpoint).host ? URI(endpoint) : URI([base_url, endpoint].join)
136
136
  end
137
137
 
138
138
  def perform_call(endpoint, params)
@@ -145,6 +145,7 @@ module RESO
145
145
  request = Net::HTTP::Get.new(uri.request_uri)
146
146
  request['Authorization'] = "Bearer #{oauth2_token}"
147
147
  response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
148
+ http.max_retries = 10
148
149
  http.request(request)
149
150
  end
150
151
  return JSON(response.body) rescue response.body
@@ -1,2 +1,5 @@
1
1
  module RESO
2
+ def self.table_name_prefix
3
+ "reso_"
4
+ end
2
5
  end
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.6"
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.3
4
+ version: 0.4.6
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-04-25 00:00:00.000000000 Z
11
+ date: 2022-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler