reso_api 0.5.0 → 0.5.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: 9c500fe2a36c880879b75b0d1f4784adee06e84efadaaf815659945c69d92110
4
- data.tar.gz: 6cc7a76f597ca6533a1e9ab46f23047b89b1e2b85d11abfb6aa236271791a859
3
+ metadata.gz: 823118714ed44875a71f5f96ca76ce0b3a5a23a83278db2c3c54a0e068cf5072
4
+ data.tar.gz: c2f92407145ef112cee5396057b08ed177e1c2b8c643474a486b52ac82829667
5
5
  SHA512:
6
- metadata.gz: ea3db268bf30fda781e07616489b8295f43473103a291b8cd0d8da76586968810f10beaa9ed185f7772de9b5f0f879672c5ce33e98465c1560e1a689988eb85b
7
- data.tar.gz: fdcdee6fb6c92f2f71f27510a654ed7938166b876cd610c3f09c168f8572c87861250eb6c243e8a2d3b6341cfe37ce64a620b56d726cd4b41d0707cc01e4004e
6
+ metadata.gz: 63f3f312dea1dcedc32c4b11036fc8742164d60ee281c654f208237d49f95064ecf2e0985c2d84244c6c6887ee1b9eeb5da59825ce8d0b4637e992e9810b036f
7
+ data.tar.gz: 3680b1933c16c7706af75a3e5c71d8edd43c95e6b6323a0d61154b00948dff474c844fffb3f2007d9353b5b14de516172b44679e057f345a7f931c7206aa04b5
data/Gemfile.lock CHANGED
@@ -1,74 +1,57 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reso_api (0.2.1)
4
+ reso_api (0.5.0)
5
5
  activesupport
6
6
  oauth2
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.1.4.1)
11
+ activesupport (7.0.3)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
- zeitwerk (~> 2.3)
17
- concurrent-ruby (1.1.9)
18
- diff-lcs (1.4.4)
19
- faraday (1.8.0)
20
- faraday-em_http (~> 1.0)
21
- faraday-em_synchrony (~> 1.0)
22
- faraday-excon (~> 1.1)
23
- faraday-httpclient (~> 1.0.1)
24
- faraday-net_http (~> 1.0)
25
- faraday-net_http_persistent (~> 1.1)
26
- faraday-patron (~> 1.0)
27
- faraday-rack (~> 1.0)
28
- multipart-post (>= 1.2, < 3)
16
+ concurrent-ruby (1.1.10)
17
+ diff-lcs (1.5.0)
18
+ faraday (2.3.0)
19
+ faraday-net_http (~> 2.0)
29
20
  ruby2_keywords (>= 0.0.4)
30
- faraday-em_http (1.0.0)
31
- faraday-em_synchrony (1.0.0)
32
- faraday-excon (1.1.0)
33
- faraday-httpclient (1.0.1)
34
- faraday-net_http (1.0.1)
35
- faraday-net_http_persistent (1.2.0)
36
- faraday-patron (1.0.0)
37
- faraday-rack (1.0.0)
38
- i18n (1.8.10)
21
+ faraday-net_http (2.0.3)
22
+ i18n (1.10.0)
39
23
  concurrent-ruby (~> 1.0)
40
- jwt (2.2.3)
41
- minitest (5.14.4)
24
+ jwt (2.3.0)
25
+ minitest (5.15.0)
42
26
  multi_json (1.15.0)
43
27
  multi_xml (0.6.0)
44
- multipart-post (2.1.1)
45
- oauth2 (1.4.7)
46
- faraday (>= 0.8, < 2.0)
28
+ oauth2 (1.4.9)
29
+ faraday (>= 0.17.3, < 3.0)
47
30
  jwt (>= 1.0, < 3.0)
48
31
  multi_json (~> 1.3)
49
32
  multi_xml (~> 0.5)
50
33
  rack (>= 1.2, < 3)
51
- rack (2.2.3)
34
+ rack (2.2.3.1)
52
35
  rake (13.0.6)
53
- rspec (3.10.0)
54
- rspec-core (~> 3.10.0)
55
- rspec-expectations (~> 3.10.0)
56
- rspec-mocks (~> 3.10.0)
57
- rspec-core (3.10.1)
58
- rspec-support (~> 3.10.0)
59
- rspec-expectations (3.10.1)
36
+ rspec (3.11.0)
37
+ rspec-core (~> 3.11.0)
38
+ rspec-expectations (~> 3.11.0)
39
+ rspec-mocks (~> 3.11.0)
40
+ rspec-core (3.11.0)
41
+ rspec-support (~> 3.11.0)
42
+ rspec-expectations (3.11.0)
60
43
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.10.0)
62
- rspec-mocks (3.10.2)
44
+ rspec-support (~> 3.11.0)
45
+ rspec-mocks (3.11.1)
63
46
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.10.0)
65
- rspec-support (3.10.2)
47
+ rspec-support (~> 3.11.0)
48
+ rspec-support (3.11.0)
66
49
  ruby2_keywords (0.0.5)
67
50
  tzinfo (2.0.4)
68
51
  concurrent-ruby (~> 1.0)
69
- zeitwerk (2.4.2)
70
52
 
71
53
  PLATFORMS
54
+ arm64-darwin-21
72
55
  x86_64-linux
73
56
 
74
57
  DEPENDENCIES
@@ -78,4 +61,4 @@ DEPENDENCIES
78
61
  rspec (~> 3.0)
79
62
 
80
63
  BUNDLED WITH
81
- 2.2.27
64
+ 2.3.7
@@ -180,6 +180,9 @@ module RESO
180
180
  raise StandardError
181
181
  elsif response.is_a?(Hash) && response.has_key?("error")
182
182
  raise StandardError
183
+ elsif response.is_a?(Hash) && response.has_key?("retry-after")
184
+ sleep response["retry-after"].to_i
185
+ raise StandardError
183
186
  end
184
187
  rescue Net::ReadTimeout, StandardError
185
188
  if (retries += 1) <= 5
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.3"
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.0
4
+ version: 0.5.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-06-01 00:00:00.000000000 Z
11
+ date: 2022-07-19 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: []