my_api_client 0.20.0 → 0.21.0

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: 679868aa1b5a2bc6deb75bfcca9a7882d04c2739871c328510a741823fed3e8e
4
- data.tar.gz: c286ec47b78171cf478b53568ab6ade3f618204d2b5223ddad32e35e2715fd6b
3
+ metadata.gz: b75ed030236b72fee9861be661bbecd751a648f8321cc1e90031db1ed2fb2f0e
4
+ data.tar.gz: 5820b1ce0ec76df6202294f6b709f34ac318dbe3991c67215c85c6183ad75343
5
5
  SHA512:
6
- metadata.gz: 14ee86532b34852778e544a61a50ffdd1ef9b73ae6a6efcf51b7dbb0fcce9e9395d62b53eda6656730bd488b6547cf3471add7d62c6bd2edd1863aa92a4f993c
7
- data.tar.gz: da243fd8ab63338bd8e727dc6125b9ecd9c5d361db10fc6d7716af4996ac8b745ac30a88a9bceac8c5d4f7ad0a88badbe01a0ddf140267f4db77173439b496dc
6
+ metadata.gz: b2a944933d33c80b3c8541862349496f232f1e383b61341c2c7bfdb273e988aa29e03889b93ff6c60dd26227cf2f8db824ea283b6cec0dce4b41a395c049314c
7
+ data.tar.gz: f33b2f18977e899bea13eddc065f9b9adbe1de333d49813522a4c499279a574a9b658a9a8be42d6f30f6604da8e4943fc93688f42dd5e068b2c0281c62d5ebec
data/.circleci/config.yml CHANGED
@@ -12,7 +12,7 @@ references:
12
12
  - &ruby_version
13
13
  ruby_version:
14
14
  type: enum
15
- enum: &ruby_version_enum ['2.5', '2.6', '2.7', '3.0']
15
+ enum: &ruby_version_enum ['2.6', '2.7', '3.0']
16
16
  default: '3.0'
17
17
  - &rails_version
18
18
  rails_version:
@@ -248,7 +248,7 @@ jobs:
248
248
  - code-climate/install
249
249
  - code-climate/sum-coverage:
250
250
  input: codeclimate.*.json
251
- parts: 24
251
+ parts: 18
252
252
  - code-climate/upload-coverage
253
253
  rubocop:
254
254
  executor: gem_executor
@@ -333,7 +333,7 @@ workflows:
333
333
  # only: [master]
334
334
  # jobs:
335
335
  # - deploy_api:
336
- # ruby_version: '2.5'
336
+ # ruby_version: '3.0'
337
337
  # - build_gem:
338
338
  # requires: [deploy_api]
339
339
 
@@ -0,0 +1,32 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "08:00"
8
+ timezone: Japan
9
+ open-pull-requests-limit: 10
10
+ reviewers:
11
+ - ryz310
12
+ assignees:
13
+ - ryz310
14
+ labels:
15
+ - dependabot
16
+ ignore:
17
+ - dependency-name: rubocop
18
+ versions:
19
+ - 1.9.0
20
+ - package-ecosystem: bundler
21
+ directory: "/my_api"
22
+ schedule:
23
+ interval: daily
24
+ time: "08:00"
25
+ timezone: Japan
26
+ open-pull-requests-limit: 10
27
+ reviewers:
28
+ - ryz310
29
+ assignees:
30
+ - ryz310
31
+ labels:
32
+ - dependabot
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ require:
5
5
  inherit_from: .rubocop_todo.yml
6
6
 
7
7
  AllCops:
8
- TargetRubyVersion: 2.5
8
+ TargetRubyVersion: 2.6
9
9
  NewCops: enable
10
10
  Exclude:
11
11
  - rails_app/**/*
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2021-03-01 23:31:18 UTC using RuboCop version 1.11.0.
3
+ # on 2021-07-23 23:31:16 UTC using RuboCop version 1.18.4.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Change log
2
2
 
3
+ ## v0.21.0 (Aug 07, 2021)
4
+
5
+ ### Feature
6
+
7
+ * [#570](https://github.com/ryz310/my_api_client/pull/570) Stubbing status code on testing ([@ryz310](https://github.com/ryz310))
8
+
9
+ ### Breaking Change
10
+
11
+ * [#561](https://github.com/ryz310/my_api_client/pull/561) Goodbye Ruby 2.5.x! ([@ryz310](https://github.com/ryz310))
12
+
13
+ ### Rubocop Challenge
14
+
15
+ * [#523](https://github.com/ryz310/my_api_client/pull/523) Layout/LineEndStringConcatenationIndentation-20210629233103 ([@ryz310](https://github.com/ryz310))
16
+ * [#562](https://github.com/ryz310/my_api_client/pull/562) Re-generate .rubocop_todo.yml with RuboCop v1.18.4 ([@ryz310](https://github.com/ryz310))
17
+
18
+ ### Misc
19
+
20
+ * [#509](https://github.com/ryz310/my_api_client/pull/509) Fix the problem of mimemagic gem dependency ([@ryz310](https://github.com/ryz310))
21
+ * [#559](https://github.com/ryz310/my_api_client/pull/559) Fix gemfiles compatibility ([@ryz310](https://github.com/ryz310))
22
+
3
23
  ## v0.20.0 (Mar 07, 2021)
4
24
 
5
25
  ### Feature
@@ -13,20 +33,6 @@
13
33
  * [#433](https://github.com/ryz310/my_api_client/pull/433) Lint/SymbolConversion-20210128233108 ([@ryz310](https://github.com/ryz310))
14
34
  * [#452](https://github.com/ryz310/my_api_client/pull/452) Re-generate .rubocop_todo.yml with RuboCop v1.11.0 ([@ryz310](https://github.com/ryz310))
15
35
 
16
- ### Dependabot
17
-
18
- * [#415](https://github.com/ryz310/my_api_client/pull/415) ryz310/dependabot/bundler/bugsnag-6.19.0 ([@ryz310](https://github.com/ryz310))
19
- * [#421](https://github.com/ryz310/my_api_client/pull/421) Update simplecov requirement from = 0.17.1 to = 0.21.2 ([@ryz310](https://github.com/ryz310))
20
- * [#427](https://github.com/ryz310/my_api_client/pull/427) ryz310/dependabot/bundler/my_api/jets-3.0.2 ([@ryz310](https://github.com/ryz310))
21
- * [#426](https://github.com/ryz310/my_api_client/pull/426) ryz310/dependabot/bundler/my_api/nokogiri-1.11.0 ([@ryz310](https://github.com/ryz310))
22
- * [#435](https://github.com/ryz310/my_api_client/pull/435) ryz310/dependabot/bundler/my_api/capybara-3.35.3 ([@ryz310](https://github.com/ryz310))
23
- * [#440](https://github.com/ryz310/my_api_client/pull/440) ryz310/dependabot/bundler/rubocop-rspec-2.2.0 ([@ryz310](https://github.com/ryz310))
24
- * [#444](https://github.com/ryz310/my_api_client/pull/444) ryz310/dependabot/bundler/my_api/actionpack-6.1.2.1 ([@ryz310](https://github.com/ryz310))
25
- * [#447](https://github.com/ryz310/my_api_client/pull/447) ryz310/dependabot/bundler/activesupport-6.1.3 ([@ryz310](https://github.com/ryz310))
26
- * [#453](https://github.com/ryz310/my_api_client/pull/453) ryz310/dependabot/bundler/rubocop-performance-1.10.1 ([@ryz310](https://github.com/ryz310))
27
- * [#454](https://github.com/ryz310/my_api_client/pull/454) ryz310/dependabot/bundler/my_api/puma-5.2.2 ([@ryz310](https://github.com/ryz310))
28
- * [#455](https://github.com/ryz310/my_api_client/pull/455) ryz310/dependabot/bundler/webmock-3.12.1 ([@ryz310](https://github.com/ryz310))
29
-
30
36
  ### Misc
31
37
 
32
38
  * [#436](https://github.com/ryz310/my_api_client/pull/436) Use Circle CI matrix ([@ryz310](https://github.com/ryz310))
@@ -41,23 +47,6 @@
41
47
 
42
48
  * [#400](https://github.com/ryz310/my_api_client/pull/400) Re-generate .rubocop_todo.yml with RuboCop v1.7.0 ([@ryz310](https://github.com/ryz310))
43
49
 
44
- ### Dependabot
45
-
46
- * [#352](https://github.com/ryz310/my_api_client/pull/352) Bump jets from 2.3.17 to 2.3.18 in /my_api ([@ryz310](https://github.com/ryz310))
47
- * [#391](https://github.com/ryz310/my_api_client/pull/391) ryz310/dependabot/bundler/rubocop-1.6.1 ([@ryz310](https://github.com/ryz310))
48
- * [#392](https://github.com/ryz310/my_api_client/pull/392) ryz310/dependabot/bundler/my_api/puma-5.1.1 ([@ryz310](https://github.com/ryz310))
49
- * [#395](https://github.com/ryz310/my_api_client/pull/395) ryz310/dependabot/bundler/rubocop-rspec-2.1.0 ([@ryz310](https://github.com/ryz310))
50
- * [#396](https://github.com/ryz310/my_api_client/pull/396) ryz310/dependabot/bundler/webmock-3.11.0 ([@ryz310](https://github.com/ryz310))
51
- * [#398](https://github.com/ryz310/my_api_client/pull/398) ryz310/dependabot/bundler/rake-13.0.3 ([@ryz310](https://github.com/ryz310))
52
- * [#401](https://github.com/ryz310/my_api_client/pull/401) ryz310/dependabot/bundler/yard-0.9.26 ([@ryz310](https://github.com/ryz310))
53
- * [#403](https://github.com/ryz310/my_api_client/pull/403) ryz310/dependabot/bundler/jsonpath-1.1.0 ([@ryz310](https://github.com/ryz310))
54
- * [#404](https://github.com/ryz310/my_api_client/pull/404) Bump faraday from 1.2.0 to 1.3.0 ([@ryz310](https://github.com/ryz310))
55
- * [#406](https://github.com/ryz310/my_api_client/pull/406) ryz310/dependabot/bundler/rubocop-performance-1.9.2 ([@ryz310](https://github.com/ryz310))
56
- * [#407](https://github.com/ryz310/my_api_client/pull/407) Bump nokogiri from 1.10.10 to 1.11.0 in /my_api ([@ryz310](https://github.com/ryz310))
57
- * [#408](https://github.com/ryz310/my_api_client/pull/408) Bump nokogiri from 1.10.10 to 1.11.0 in /rails_app/rails_5.2 ([@ryz310](https://github.com/ryz310))
58
- * [#409](https://github.com/ryz310/my_api_client/pull/409) Bump nokogiri from 1.10.10 to 1.11.0 in /rails_app/rails_6.1 ([@ryz310](https://github.com/ryz310))
59
- * [#410](https://github.com/ryz310/my_api_client/pull/410) Bump nokogiri from 1.10.10 to 1.11.0 in /rails_app/rails_6.0 ([@ryz310](https://github.com/ryz310))
60
-
61
50
  ## v0.18.0 (Dec 04, 2020)
62
51
 
63
52
  ### Feature
@@ -72,17 +61,6 @@
72
61
 
73
62
  * [#383](https://github.com/ryz310/my_api_client/pull/383) Re-generate .rubocop_todo.yml with RuboCop v1.5.1 ([@ryz310](https://github.com/ryz310))
74
63
 
75
- ### Dependabot
76
-
77
- * [#338](https://github.com/ryz310/my_api_client/pull/338) ryz310/dependabot/bundler/faraday-1.1.0 ([@ryz310](https://github.com/ryz310))
78
- * [#344](https://github.com/ryz310/my_api_client/pull/344) ryz310/dependabot/bundler/bugsnag-6.18.0 ([@ryz310](https://github.com/ryz310))
79
- * [#345](https://github.com/ryz310/my_api_client/pull/345) ryz310/dependabot/bundler/rspec-3.10.0 ([@ryz310](https://github.com/ryz310))
80
- * [#356](https://github.com/ryz310/my_api_client/pull/356) ryz310/dependabot/bundler/webmock-3.10.0 ([@ryz310](https://github.com/ryz310))
81
- * [#369](https://github.com/ryz310/my_api_client/pull/369) ryz310/dependabot/bundler/jsonpath-1.0.6 ([@ryz310](https://github.com/ryz310))
82
- * [#376](https://github.com/ryz310/my_api_client/pull/376) ryz310/dependabot/bundler/rubocop-performance-1.9.1 ([@ryz310](https://github.com/ryz310))
83
- * [#380](https://github.com/ryz310/my_api_client/pull/380) ryz310/dependabot/bundler/rubocop-rspec-2.0.1 ([@ryz310](https://github.com/ryz310))
84
- * [#382](https://github.com/ryz310/my_api_client/pull/382) ryz310/dependabot/bundler/rubocop-1.5.1 ([@ryz310](https://github.com/ryz310))
85
-
86
64
  ## v0.17.0 (Sep 20, 2020)
87
65
 
88
66
  ### Feature
@@ -98,16 +76,6 @@
98
76
  * [#316](https://github.com/ryz310/my_api_client/pull/316) Layout/EmptyLinesAroundAttributeAccessor-20200909233021 ([@ryz310](https://github.com/ryz310))
99
77
  * [#320](https://github.com/ryz310/my_api_client/pull/320) Re-generate .rubocop_todo.yml with RuboCop v0.91.0 ([@ryz310](https://github.com/ryz310))
100
78
 
101
- ### Dependabot
102
-
103
- * [#299](https://github.com/ryz310/my_api_client/pull/299) ryz310/dependabot/bundler/bugsnag-6.17.0 ([@ryz310](https://github.com/ryz310))
104
- * [#310](https://github.com/ryz310/my_api_client/pull/310) ryz310/dependabot/bundler/rubocop-performance-1.8.0 ([@ryz310](https://github.com/ryz310))
105
- * [#314](https://github.com/ryz310/my_api_client/pull/314) ryz310/dependabot/bundler/activesupport-5.2.4.4 ([@ryz310](https://github.com/ryz310))
106
- * [#315](https://github.com/ryz310/my_api_client/pull/315) ryz310/dependabot/bundler/my_api/actionview-6.0.3.3 ([@ryz310](https://github.com/ryz310))
107
- * [#318](https://github.com/ryz310/my_api_client/pull/318) ryz310/dependabot/bundler/webmock-3.9.1 ([@ryz310](https://github.com/ryz310))
108
- * [#319](https://github.com/ryz310/my_api_client/pull/319) ryz310/dependabot/bundler/rubocop-0.91.0 ([@ryz310](https://github.com/ryz310))
109
- * [#321](https://github.com/ryz310/my_api_client/pull/321) ryz310/dependabot/bundler/my_api/puma-5.0.0 ([@ryz310](https://github.com/ryz310))
110
-
111
79
  ## v0.16.1 (Aug 27, 2020)
112
80
 
113
81
  ### Feature
@@ -121,23 +89,6 @@
121
89
  * [#289](https://github.com/ryz310/my_api_client/pull/289) Re-generate .rubocop_todo.yml with RuboCop v0.89.1 ([@ryz310](https://github.com/ryz310))
122
90
  * [#293](https://github.com/ryz310/my_api_client/pull/293) RSpec/LeadingSubject-20200817233022 ([@ryz310](https://github.com/ryz310))
123
91
 
124
- ### Dependabot
125
-
126
- * [#232](https://github.com/ryz310/my_api_client/pull/232) ryz310/dependabot/bundler/faraday-1.0.1 ([@ryz310](https://github.com/ryz310))
127
- * [#241](https://github.com/ryz310/my_api_client/pull/241) ryz310/dependabot/bundler/my_api/byebug-11.1.3 ([@ryz310](https://github.com/ryz310))
128
- * [#243](https://github.com/ryz310/my_api_client/pull/243) ryz310/dependabot/bundler/yard-0.9.25 ([@ryz310](https://github.com/ryz310))
129
- * [#248](https://github.com/ryz310/my_api_client/pull/248) ryz310/dependabot/bundler/activesupport-5.2.4.3 ([@ryz310](https://github.com/ryz310))
130
- * [#251](https://github.com/ryz310/my_api_client/pull/251) ryz310/dependabot/bundler/my_api/puma-4.3.5 ([@ryz310](https://github.com/ryz310))
131
- * [#257](https://github.com/ryz310/my_api_client/pull/257) ryz310/dependabot/bundler/my_api/dynomite-1.2.6 ([@ryz310](https://github.com/ryz310))
132
- * [#264](https://github.com/ryz310/my_api_client/pull/264) ryz310/dependabot/bundler/my_api/rack-2.2.3 ([@ryz310](https://github.com/ryz310))
133
- * [#265](https://github.com/ryz310/my_api_client/pull/265) ryz310/dependabot/bundler/my_api/actionpack-6.0.3.2 ([@ryz310](https://github.com/ryz310))
134
- * [#266](https://github.com/ryz310/my_api_client/pull/266) ryz310/dependabot/bundler/my_api/capybara-3.33.0 ([@ryz310](https://github.com/ryz310))
135
- * [#281](https://github.com/ryz310/my_api_client/pull/281) ryz310/dependabot/bundler/rubocop-performance-1.7.1 ([@ryz310](https://github.com/ryz310))
136
- * [#287](https://github.com/ryz310/my_api_client/pull/287) ryz310/dependabot/bundler/my_api/kramdown-2.3.0 ([@ryz310](https://github.com/ryz310))
137
- * [#290](https://github.com/ryz310/my_api_client/pull/290) ryz310/dependabot/bundler/bugsnag-6.16.0 ([@ryz310](https://github.com/ryz310))
138
- * [#294](https://github.com/ryz310/my_api_client/pull/294) ryz310/dependabot/bundler/my_api/jets-2.3.17 ([@ryz310](https://github.com/ryz310))
139
- * [#295](https://github.com/ryz310/my_api_client/pull/295) ryz310/dependabot/bundler/rubocop-rspec-1.43.2 ([@ryz310](https://github.com/ryz310))
140
-
141
92
  ### Misc
142
93
 
143
94
  * [#271](https://github.com/ryz310/my_api_client/pull/271) Minor fixes ([@ryz310](https://github.com/ryz310))
@@ -193,11 +144,6 @@ You can check default `error_handling` or `retry_on` here.
193
144
 
194
145
  See: https://github.com/ryz310/my_api_client/blob/master/lib/my_api_client/default_error_handlers.rb
195
146
 
196
- ### Dependabot
197
-
198
- * [#227](https://github.com/ryz310/my_api_client/pull/227) ryz310/dependabot/bundler/pry-byebug-3.9.0 ([@ryz310](https://github.com/ryz310))
199
- * [#228](https://github.com/ryz310/my_api_client/pull/228) ryz310/dependabot/bundler/my_api/jets-2.3.15 ([@ryz310](https://github.com/ryz310))
200
-
201
147
  ### Misc
202
148
 
203
149
  * [#229](https://github.com/ryz310/my_api_client/pull/229) Edit dependabot configuration ([@ryz310](https://github.com/ryz310))
@@ -319,24 +265,6 @@ See: https://github.com/ryz310/my_api_client/blob/master/lib/my_api_client/defau
319
265
  * [#205](https://github.com/ryz310/my_api_client/pull/205) Re-generate .rubocop_todo.yml with RuboCop v0.80.0 ([@ryz310](https://github.com/ryz310))
320
266
  * [#210](https://github.com/ryz310/my_api_client/pull/210) Re-generate .rubocop_todo.yml with RuboCop v0.80.1 ([@ryz310](https://github.com/ryz310))
321
267
 
322
- ### Dependabot
323
-
324
- * [#190](https://github.com/ryz310/my_api_client/pull/190) Add a config file of the dependabot ([@ryz310](https://github.com/ryz310))
325
- * [#183](https://github.com/ryz310/my_api_client/pull/183) Bump pry-byebug from 3.7.0 to 3.8.0 ([@ryz310](https://github.com/ryz310))
326
- * [#194](https://github.com/ryz310/my_api_client/pull/194) Bump bugsnag from 6.12.2 to 6.13.0 ([@ryz310](https://github.com/ryz310))
327
- * [#197](https://github.com/ryz310/my_api_client/pull/197) Bump webmock from 3.8.0 to 3.8.1 ([@ryz310](https://github.com/ryz310))
328
- * [#199](https://github.com/ryz310/my_api_client/pull/199) Bump webmock from 3.8.1 to 3.8.2 ([@ryz310](https://github.com/ryz310))
329
- * [#216](https://github.com/ryz310/my_api_client/pull/216) Bump webmock from 3.8.2 to 3.8.3 ([@ryz310](https://github.com/ryz310))
330
-
331
- ### Renovate
332
-
333
- * [#193](https://github.com/ryz310/my_api_client/pull/193) Change renovate automerge setting ([@ryz310](https://github.com/ryz310))
334
- * [#189](https://github.com/ryz310/my_api_client/pull/189) Update the renovate settings ([@ryz310](https://github.com/ryz310))
335
- * [#184](https://github.com/ryz310/my_api_client/pull/184) Update ruby-orbs orb to v1.5.1 ([@ryz310](https://github.com/ryz310))
336
- * [#185](https://github.com/ryz310/my_api_client/pull/185) Update ruby-orbs orb to v1.5.4 ([@ryz310](https://github.com/ryz310))
337
- * [#187](https://github.com/ryz310/my_api_client/pull/187) Update ruby-orbs orb to v1.5.6 ([@ryz310](https://github.com/ryz310))
338
- * [#192](https://github.com/ryz310/my_api_client/pull/192) Update ruby-orbs orb to v1.6.0 ([@ryz310](https://github.com/ryz310))
339
-
340
268
  ## v0.13.0 (Jan 21, 2020)
341
269
 
342
270
  ### Feature
@@ -366,11 +294,6 @@ See: https://github.com/ryz310/my_api_client/blob/master/lib/my_api_client/defau
366
294
  * [#158](https://github.com/ryz310/my_api_client/pull/158) Re-generate .rubocop_todo.yml with RuboCop v0.78.0 ([@ryz310](https://github.com/ryz310))
367
295
  * [#168](https://github.com/ryz310/my_api_client/pull/168) Re-generate .rubocop_todo.yml with RuboCop v0.79.0 ([@ryz310](https://github.com/ryz310))
368
296
 
369
- ### Dependabot
370
-
371
- * [#156](https://github.com/ryz310/my_api_client/pull/156) Bump rubocop-rspec from 1.37.0 to 1.37.1 ([@ryz310](https://github.com/ryz310))
372
- * [#159](https://github.com/ryz310/my_api_client/pull/159) Bump rubocop-performance from 1.5.1 to 1.5.2 ([@ryz310](https://github.com/ryz310))
373
-
374
297
  ## v0.10.3 (Dec 05, 2019)
375
298
 
376
299
  ### Bugfix
@@ -382,18 +305,6 @@ See: https://github.com/ryz310/my_api_client/blob/master/lib/my_api_client/defau
382
305
  * [#136](https://github.com/ryz310/my_api_client/pull/136) Re-generate .rubocop_todo.yml with RuboCop v0.76.0 ([@ryz310](https://github.com/ryz310))
383
306
  * [#148](https://github.com/ryz310/my_api_client/pull/148) Re-generate .rubocop_todo.yml with RuboCop v0.77.0 ([@ryz310](https://github.com/ryz310))
384
307
 
385
- ### Dependabot
386
-
387
- * [#139](https://github.com/ryz310/my_api_client/pull/139) Bump rake from 13.0.0 to 13.0.1 ([@ryz310](https://github.com/ryz310))
388
- * [#140](https://github.com/ryz310/my_api_client/pull/140) Bump rubocop-performance from 1.5.0 to 1.5.1 ([@ryz310](https://github.com/ryz310))
389
- * [#146](https://github.com/ryz310/my_api_client/pull/146) Bump rubocop-rspec from 1.36.0 to 1.37.0 ([@ryz310](https://github.com/ryz310))
390
-
391
- ### Renovate
392
-
393
- * [#137](https://github.com/ryz310/my_api_client/pull/137) Configure Renovate ([@ryz310](https://github.com/ryz310))
394
- * [#138](https://github.com/ryz310/my_api_client/pull/138) Update ruby-orbs orb to v1.4.4 ([@ryz310](https://github.com/ryz310))
395
- * [#141](https://github.com/ryz310/my_api_client/pull/141) Update ruby-orbs orb to v1.4.5 ([@ryz310](https://github.com/ryz310))
396
-
397
308
  ## 0.10.2 (Oct 23, 2019)
398
309
 
399
310
  ### Bugfix
@@ -417,7 +328,6 @@ See: https://github.com/ryz310/my_api_client/blob/master/lib/my_api_client/defau
417
328
 
418
329
  * Modify request specifications ([#120](https://github.com/ryz310/my_api_client/pull/120))
419
330
  * Re-generate .rubocop_todo.yml with RuboCop v0.75.1 ([#121](https://github.com/ryz310/my_api_client/pull/121))
420
- * ryz310/dependabot/bundler/jsonpath-1.0.5 ([#123](https://github.com/ryz310/my_api_client/pull/123))
421
331
 
422
332
  ## 0.9.2 (Oct 8, 2019)
423
333
 
@@ -433,12 +343,6 @@ See: https://github.com/ryz310/my_api_client/blob/master/lib/my_api_client/defau
433
343
  * Support Rails 6.0 ([#101](https://github.com/ryz310/my_api_client/pull/101))
434
344
 
435
345
  * deprecated/my_api_client_stub ([#102](https://github.com/ryz310/my_api_client/pull/102))
436
- * dependabot/bundler/rake-tw-13.0 ([#105](https://github.com/ryz310/my_api_client/pull/105))
437
- * dependabot/bundler/webmock-3.7.5 ([#108](https://github.com/ryz310/my_api_client/pull/108))
438
- * dependabot/bundler/bugsnag-6.12.1 ([#109](https://github.com/ryz310/my_api_client/pull/109))
439
- * dependabot/bundler/simplecov-0.17.1 ([#110](https://github.com/ryz310/my_api_client/pull/110))
440
- * dependabot/bundler/rubocop-rspec-1.36.0 ([#111](https://github.com/ryz310/my_api_client/pull/111))
441
- * dependabot/bundler/rubocop-performance-1.5.0 ([#115](https://github.com/ryz310/my_api_client/pull/115))
442
346
 
443
347
  ## 0.9.1 (July 25, 2019)
444
348
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- my_api_client (0.20.0)
4
+ my_api_client (0.21.0)
5
5
  activesupport (>= 5.2.0)
6
6
  faraday (>= 0.17.1)
7
7
  jsonpath
@@ -10,31 +10,45 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (6.1.3)
13
+ activesupport (6.1.4)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
15
  i18n (>= 1.6, < 2)
16
16
  minitest (>= 5.1)
17
17
  tzinfo (~> 2.0)
18
18
  zeitwerk (~> 2.3)
19
- addressable (2.7.0)
19
+ addressable (2.8.0)
20
20
  public_suffix (>= 2.0.2, < 5.0)
21
21
  ast (2.4.2)
22
- bugsnag (6.19.0)
22
+ bugsnag (6.21.0)
23
23
  concurrent-ruby (~> 1.0)
24
24
  byebug (11.1.3)
25
25
  coderay (1.1.3)
26
- concurrent-ruby (1.1.8)
26
+ concurrent-ruby (1.1.9)
27
27
  crack (0.4.5)
28
28
  rexml
29
29
  diff-lcs (1.4.4)
30
- docile (1.3.5)
31
- faraday (1.3.0)
30
+ docile (1.4.0)
31
+ faraday (1.6.0)
32
+ faraday-em_http (~> 1.0)
33
+ faraday-em_synchrony (~> 1.0)
34
+ faraday-excon (~> 1.1)
35
+ faraday-httpclient (~> 1.0.1)
32
36
  faraday-net_http (~> 1.0)
37
+ faraday-net_http_persistent (~> 1.1)
38
+ faraday-patron (~> 1.0)
39
+ faraday-rack (~> 1.0)
33
40
  multipart-post (>= 1.2, < 3)
34
- ruby2_keywords
41
+ ruby2_keywords (>= 0.0.4)
42
+ faraday-em_http (1.0.0)
43
+ faraday-em_synchrony (1.0.0)
44
+ faraday-excon (1.1.0)
45
+ faraday-httpclient (1.0.1)
35
46
  faraday-net_http (1.0.1)
47
+ faraday-net_http_persistent (1.2.0)
48
+ faraday-patron (1.0.0)
49
+ faraday-rack (1.0.0)
36
50
  hashdiff (1.0.1)
37
- i18n (1.8.9)
51
+ i18n (1.8.10)
38
52
  concurrent-ruby (~> 1.0)
39
53
  jsonpath (1.1.0)
40
54
  multi_json
@@ -43,7 +57,7 @@ GEM
43
57
  multi_json (1.15.0)
44
58
  multipart-post (2.1.1)
45
59
  parallel (1.20.1)
46
- parser (3.0.0.0)
60
+ parser (3.0.2.0)
47
61
  ast (~> 2.4.1)
48
62
  pry (0.13.1)
49
63
  coderay (~> 1.1)
@@ -53,9 +67,9 @@ GEM
53
67
  pry (~> 0.13.0)
54
68
  public_suffix (4.0.6)
55
69
  rainbow (3.0.0)
56
- rake (13.0.3)
70
+ rake (13.0.6)
57
71
  regexp_parser (2.1.1)
58
- rexml (3.2.4)
72
+ rexml (3.2.5)
59
73
  rspec (3.10.0)
60
74
  rspec-core (~> 3.10.0)
61
75
  rspec-expectations (~> 3.10.0)
@@ -71,25 +85,25 @@ GEM
71
85
  rspec-support (3.10.2)
72
86
  rspec_junit_formatter (0.4.1)
73
87
  rspec-core (>= 2, < 4, != 2.12.0)
74
- rubocop (1.11.0)
88
+ rubocop (1.18.4)
75
89
  parallel (~> 1.10)
76
90
  parser (>= 3.0.0.0)
77
91
  rainbow (>= 2.2.2, < 4.0)
78
92
  regexp_parser (>= 1.8, < 3.0)
79
93
  rexml
80
- rubocop-ast (>= 1.2.0, < 2.0)
94
+ rubocop-ast (>= 1.8.0, < 2.0)
81
95
  ruby-progressbar (~> 1.7)
82
96
  unicode-display_width (>= 1.4.0, < 3.0)
83
- rubocop-ast (1.4.1)
84
- parser (>= 2.7.1.5)
85
- rubocop-performance (1.10.1)
86
- rubocop (>= 0.90.0, < 2.0)
97
+ rubocop-ast (1.9.0)
98
+ parser (>= 3.0.1.1)
99
+ rubocop-performance (1.11.4)
100
+ rubocop (>= 1.7.0, < 2.0)
87
101
  rubocop-ast (>= 0.4.0)
88
- rubocop-rspec (2.2.0)
102
+ rubocop-rspec (2.4.0)
89
103
  rubocop (~> 1.0)
90
104
  rubocop-ast (>= 1.1.0)
91
105
  ruby-progressbar (1.11.0)
92
- ruby2_keywords (0.0.4)
106
+ ruby2_keywords (0.0.5)
93
107
  sawyer (0.8.2)
94
108
  addressable (>= 2.3.5)
95
109
  faraday (> 0.8, < 2.0)
@@ -98,12 +112,12 @@ GEM
98
112
  simplecov-html (~> 0.11)
99
113
  simplecov_json_formatter (~> 0.1)
100
114
  simplecov-html (0.12.3)
101
- simplecov_json_formatter (0.1.2)
115
+ simplecov_json_formatter (0.1.3)
102
116
  tzinfo (2.0.4)
103
117
  concurrent-ruby (~> 1.0)
104
118
  unicode-display_width (2.0.0)
105
- webmock (3.12.1)
106
- addressable (>= 2.3.6)
119
+ webmock (3.14.0)
120
+ addressable (>= 2.8.0)
107
121
  crack (>= 0.3.2)
108
122
  hashdiff (>= 0.4.0, < 2.0.0)
109
123
  yard (0.9.26)
@@ -128,4 +142,4 @@ DEPENDENCIES
128
142
  yard
129
143
 
130
144
  BUNDLED WITH
131
- 2.2.3
145
+ 2.2.22
data/README.jp.md CHANGED
@@ -12,7 +12,7 @@ MyApiClient は API リクエストクラスを作成するための汎用的な
12
12
 
13
13
  ## Supported Versions
14
14
 
15
- * Ruby 2.5, 2.6, 2.7, 3.0
15
+ * Ruby 2.6, 2.7, 3.0
16
16
  * Rails 5.2, 6.0, 6.1
17
17
 
18
18
  ## Installation
@@ -630,14 +630,15 @@ stub_api_client_all(ExampleApiClient, request: { raise: MyApiClient::Error })
630
630
  expect { execute_api_request }.to raise_error(MyApiClient::Error)
631
631
  ```
632
632
 
633
- なお、発生した例外に含まれるレスポンスパラメータもスタブ化したい場合は、 `response` オプションと同時に指定することが可能です。
633
+ なお、発生した例外に含まれるレスポンスパラメータやステータスコードもスタブ化したい場合は、 `response` オプションと同時に指定することが可能です。
634
634
 
635
635
  ```ruby
636
636
  stub_api_client_all(
637
637
  ExampleApiClient,
638
638
  request: {
639
639
  raise: MyApiClient::Error,
640
- response: { message: 'error' }
640
+ response: { message: 'error' },
641
+ status_code: 429
641
642
  }
642
643
  )
643
644
 
@@ -646,6 +647,8 @@ begin
646
647
  rescue MyApiClient::Error => e
647
648
  response_body = e.params.response.data.to_h
648
649
  expect(response_body).to eq(message: 'error')
650
+ status_code = e.params.response.status
651
+ expect(status_code).to eq(429)
649
652
  end
650
653
  ```
651
654
 
@@ -671,7 +674,7 @@ MyPaginationApiClient.new.pagination.each do |response|
671
674
  end
672
675
  ```
673
676
 
674
- なお、 `Enumerable` の各値にはここまで紹介した `response`, `raise`, `Prox` など全てのオプションが利用可能です。
677
+ なお、 `Enumerable` の各値にはここまで紹介した `response`, `raise`, `Proc` など全てのオプションが利用可能です。
675
678
 
676
679
  ```ruby
677
680
  stub_api_client_all(