reso_api 0.5.1 → 0.5.2
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 -1
- data/lib/reso_api/version.rb +1 -1
- data/license.md +21 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb4efcbd6e142b91dc5db82ab6391f768acfe72018c3a6a1f28f94add767aeb6
|
4
|
+
data.tar.gz: 196b5b3ae73192acb4c6d30f974c6a232487115ba4eaa146c2c9b5d1a610328f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53f38b2ab327a82f32ab5296ffad4698f8f3e304557becda120c3010ab40e52a4db923d49ef26e914366e0d210d749baa84b7f3a1b7300d0bedfb43d8c7ca8e2
|
7
|
+
data.tar.gz: 3ab0add11e6b7b6adbf25c8cebe4203cead5e74b5276f83fe121df34d100224aefb05ababbcb5f9eb7c20a1f64c38e0ee669b908ce90b24cd446081a5d74c07c
|
@@ -85,7 +85,6 @@ module RESO
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
88
|
-
threads.each(&:join)
|
89
88
|
else
|
90
89
|
return perform_call(endpoint, params)
|
91
90
|
end
|
@@ -180,6 +179,9 @@ module RESO
|
|
180
179
|
raise StandardError
|
181
180
|
elsif response.is_a?(Hash) && response.has_key?("error")
|
182
181
|
raise StandardError
|
182
|
+
elsif response.is_a?(Hash) && response.has_key?("retry-after")
|
183
|
+
sleep response["retry-after"].to_i
|
184
|
+
raise StandardError
|
183
185
|
end
|
184
186
|
rescue Net::ReadTimeout, StandardError
|
185
187
|
if (retries += 1) <= 5
|
data/lib/reso_api/version.rb
CHANGED
data/license.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 Michael Edlund
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
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.5.
|
4
|
+
version: 0.5.2
|
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-06-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- lib/reso_api/app/models/reso/api/client.rb
|
104
104
|
- lib/reso_api/config/inflections.rb
|
105
105
|
- lib/reso_api/version.rb
|
106
|
+
- license.md
|
106
107
|
- reso_api.gemspec
|
107
108
|
homepage: https://github.com/arcticleo/reso_api
|
108
109
|
licenses: []
|