reso_api 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bfeffc2a9629c46003d493b06585b6be940ce6ff282991bc86d89e9858e8da8
4
- data.tar.gz: 430c407fcbf090aa10ebf96c98b0742a01e20be21672cd77de49131b7ab7d016
3
+ metadata.gz: bb4efcbd6e142b91dc5db82ab6391f768acfe72018c3a6a1f28f94add767aeb6
4
+ data.tar.gz: 196b5b3ae73192acb4c6d30f974c6a232487115ba4eaa146c2c9b5d1a610328f
5
5
  SHA512:
6
- metadata.gz: e4a5fa56805f806d78434f978c31603e4b2150d2c573e2d8b637f9170e8f87506b71670581df16c24f615d0a10404197f8b0477721173f025b17f107769de543
7
- data.tar.gz: 4b9117e4a8c9d7ff0848160afe64d412a5d84849e7f600c2b28e0053c184ba48832624efe64c687a292704bcfa2796396361da359c2486aad8f4d105c088bae5
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
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-01 00:00:00.000000000 Z
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: []