my_api_client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +16 -16
- data/lib/my_api_client/error_handling/generator.rb +1 -1
- data/lib/my_api_client/exceptions.rb +11 -0
- data/lib/my_api_client/version.rb +1 -1
- data/my_api/Gemfile +1 -1
- data/my_api/Gemfile.lock +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bb264840d0afd66355f973a3a19fc6aa5e3ea0ecd58a99bf557aff067bc323d
|
4
|
+
data.tar.gz: fb24229652289a5b924d585a5e24807397f946987e38195fd1bbd292da6083cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03b973918920394204062f1584a081382dd0d7763a5b48b335c89637e97115969f965cc792ff5ad7477332a1205c9eec3cfde17465c35d69e21cef332bf91f17
|
7
|
+
data.tar.gz: f52ae41dafa15db16d13929ad4f3c06258ca8403e7cb69c67fa9a62380e7b870d9014ca15986a7a13bfa72ac2c1b89eef1a37db1ec351b8faba860937fb8b774
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## v1.1.0 (Jan 09, 2024)
|
4
|
+
|
5
|
+
### Bugfix
|
6
|
+
|
7
|
+
- [#970](https://github.com/ryz310/my_api_client/pull/970) Fix handling when the error changes after a retry ([@ashimomura](https://github.com/ashimomura))
|
8
|
+
|
9
|
+
### Dependabot
|
10
|
+
|
11
|
+
- [#965](https://github.com/ryz310/my_api_client/pull/965) Bump faraday from 2.7.12 to 2.8.1 ([@ryz310](https://github.com/ryz310))
|
12
|
+
- [#972](https://github.com/ryz310/my_api_client/pull/972) Bump rubocop-performance from 1.19.1 to 1.20.2 ([@ryz310](https://github.com/ryz310))
|
13
|
+
|
3
14
|
## v1.0.0 (Dec 07, 2023)
|
4
15
|
|
5
16
|
### Feature
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
my_api_client (1.
|
4
|
+
my_api_client (1.1.0)
|
5
5
|
activesupport (>= 6.1.0)
|
6
6
|
faraday (>= 0.17.1)
|
7
7
|
jsonpath
|
@@ -20,11 +20,11 @@ GEM
|
|
20
20
|
minitest (>= 5.1)
|
21
21
|
mutex_m
|
22
22
|
tzinfo (~> 2.0)
|
23
|
-
addressable (2.8.
|
23
|
+
addressable (2.8.6)
|
24
24
|
public_suffix (>= 2.0.2, < 6.0)
|
25
25
|
ast (2.4.2)
|
26
26
|
base64 (0.2.0)
|
27
|
-
bigdecimal (3.1.
|
27
|
+
bigdecimal (3.1.5)
|
28
28
|
bugsnag (6.26.0)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
30
|
byebug (11.1.3)
|
@@ -37,12 +37,12 @@ GEM
|
|
37
37
|
docile (1.4.0)
|
38
38
|
drb (2.2.0)
|
39
39
|
ruby2_keywords
|
40
|
-
faraday (2.
|
40
|
+
faraday (2.8.1)
|
41
41
|
base64
|
42
42
|
faraday-net_http (>= 2.0, < 3.1)
|
43
43
|
ruby2_keywords (>= 0.0.4)
|
44
44
|
faraday-net_http (3.0.2)
|
45
|
-
hashdiff (1.0
|
45
|
+
hashdiff (1.1.0)
|
46
46
|
i18n (1.14.1)
|
47
47
|
concurrent-ruby (~> 1.0)
|
48
48
|
json (2.7.1)
|
@@ -53,8 +53,8 @@ GEM
|
|
53
53
|
minitest (5.20.0)
|
54
54
|
multi_json (1.15.0)
|
55
55
|
mutex_m (0.2.0)
|
56
|
-
parallel (1.
|
57
|
-
parser (3.
|
56
|
+
parallel (1.24.0)
|
57
|
+
parser (3.3.0.2)
|
58
58
|
ast (~> 2.4.1)
|
59
59
|
racc
|
60
60
|
pry (0.14.2)
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
racc (1.7.3)
|
68
68
|
rainbow (3.1.1)
|
69
69
|
rake (13.1.0)
|
70
|
-
regexp_parser (2.
|
70
|
+
regexp_parser (2.9.0)
|
71
71
|
rexml (3.2.6)
|
72
72
|
rspec (3.12.0)
|
73
73
|
rspec-core (~> 3.12.0)
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
rspec-support (3.12.1)
|
85
85
|
rspec_junit_formatter (0.6.0)
|
86
86
|
rspec-core (>= 2, < 4, != 2.12.0)
|
87
|
-
rubocop (1.
|
87
|
+
rubocop (1.59.0)
|
88
88
|
json (~> 2.3)
|
89
89
|
language_server-protocol (>= 3.17.0)
|
90
90
|
parallel (~> 1.10)
|
@@ -97,16 +97,16 @@ GEM
|
|
97
97
|
unicode-display_width (>= 2.4.0, < 3.0)
|
98
98
|
rubocop-ast (1.30.0)
|
99
99
|
parser (>= 3.2.1.0)
|
100
|
-
rubocop-capybara (2.
|
100
|
+
rubocop-capybara (2.20.0)
|
101
101
|
rubocop (~> 1.41)
|
102
|
-
rubocop-factory_bot (2.
|
103
|
-
rubocop (~> 1.
|
104
|
-
rubocop-performance (1.
|
105
|
-
rubocop (>= 1.
|
106
|
-
rubocop-ast (>=
|
102
|
+
rubocop-factory_bot (2.25.1)
|
103
|
+
rubocop (~> 1.41)
|
104
|
+
rubocop-performance (1.20.2)
|
105
|
+
rubocop (>= 1.48.1, < 2.0)
|
106
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
107
107
|
rubocop-rake (0.6.0)
|
108
108
|
rubocop (~> 1.0)
|
109
|
-
rubocop-rspec (2.
|
109
|
+
rubocop-rspec (2.26.1)
|
110
110
|
rubocop (~> 1.40)
|
111
111
|
rubocop-capybara (~> 2.17)
|
112
112
|
rubocop-factory_bot (~> 2.22)
|
@@ -55,5 +55,16 @@ module MyApiClient
|
|
55
55
|
@retry_count += 1
|
56
56
|
@retry_result = call(*args)
|
57
57
|
end
|
58
|
+
|
59
|
+
# call the handler for exception
|
60
|
+
#
|
61
|
+
# @note
|
62
|
+
# To avoid handling the exception of the retry origin on the second and subsequent retries,
|
63
|
+
# make exception.cause visited.
|
64
|
+
# @override ActiveSupport::Rescuable#rescue_with_handler
|
65
|
+
# @param exception [Exception] Target exception
|
66
|
+
def rescue_with_handler(exception)
|
67
|
+
self.class.rescue_with_handler(exception, object: self, visited_exceptions: [exception.cause])
|
68
|
+
end
|
58
69
|
end
|
59
70
|
end
|
data/my_api/Gemfile
CHANGED
@@ -7,7 +7,7 @@ gem 'jets', '~> 4.0.10'
|
|
7
7
|
gem 'dynomite'
|
8
8
|
|
9
9
|
# See: https://github.com/boltops-tools/jets/issues/523
|
10
|
-
gem 'nokogiri', '~> 1.
|
10
|
+
gem 'nokogiri', '~> 1.16.0'
|
11
11
|
|
12
12
|
# development and test groups are not bundled as part of the deployment
|
13
13
|
group :development, :test do
|
data/my_api/Gemfile.lock
CHANGED
@@ -189,12 +189,12 @@ GEM
|
|
189
189
|
timeout
|
190
190
|
net-smtp (0.4.0)
|
191
191
|
net-protocol
|
192
|
-
nio4r (2.
|
193
|
-
nokogiri (1.
|
192
|
+
nio4r (2.7.0)
|
193
|
+
nokogiri (1.16.0)
|
194
194
|
mini_portile2 (~> 2.8.2)
|
195
195
|
racc (~> 1.4)
|
196
196
|
public_suffix (5.0.1)
|
197
|
-
puma (6.4.
|
197
|
+
puma (6.4.2)
|
198
198
|
nio4r (~> 2.0)
|
199
199
|
racc (1.7.3)
|
200
200
|
rack (2.2.8)
|
@@ -257,7 +257,7 @@ DEPENDENCIES
|
|
257
257
|
dynomite
|
258
258
|
jets (~> 4.0.10)
|
259
259
|
launchy
|
260
|
-
nokogiri (~> 1.
|
260
|
+
nokogiri (~> 1.16.0)
|
261
261
|
puma
|
262
262
|
rack
|
263
263
|
rspec
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryz310
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|