my_api_client 0.16.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +95 -135
- data/.gem_comet.yml +13 -2
- data/.rubocop.yml +5 -1
- data/.rubocop_todo.yml +39 -1
- data/CHANGELOG.md +142 -0
- data/Gemfile +0 -3
- data/Gemfile.lock +70 -64
- data/README.jp.md +126 -5
- data/bin/console +4 -0
- data/example/api_clients/application_api_client.rb +2 -2
- data/example/api_clients/my_rest_api_client.rb +9 -3
- data/gemfiles/{rails_4.2.gemfile → rails_6.1.gemfile} +1 -1
- data/lib/generators/rails/USAGE +1 -1
- data/lib/generators/rails/api_client_generator.rb +6 -0
- data/lib/generators/rails/templates/api_client.rb.erb +1 -1
- data/lib/generators/rspec/USAGE +1 -1
- data/lib/generators/rspec/api_client_generator.rb +6 -0
- data/lib/generators/rspec/templates/api_client_spec.rb.erb +23 -16
- data/lib/my_api_client/base.rb +2 -9
- data/lib/my_api_client/error_handling/generator.rb +0 -2
- data/lib/my_api_client/errors.rb +1 -0
- data/lib/my_api_client/integrations/bugsnag.rb +1 -1
- data/lib/my_api_client/params/params.rb +1 -3
- data/lib/my_api_client/request.rb +3 -3
- data/lib/my_api_client/request/basic.rb +1 -3
- data/lib/my_api_client/request/executor.rb +1 -1
- data/lib/my_api_client/rspec/matchers/request_to.rb +1 -1
- data/lib/my_api_client/rspec/stub.rb +30 -9
- data/lib/my_api_client/version.rb +1 -1
- data/my_api/.ruby-version +1 -1
- data/my_api/Gemfile +3 -0
- data/my_api/Gemfile.lock +116 -108
- data/my_api/app/controllers/pagination_controller.rb +2 -2
- data/my_api/spec/controllers/rest_controller_spec.rb +23 -5
- data/my_api_client.gemspec +3 -3
- data/rails_app/rails_5.2/.rspec +3 -0
- data/rails_app/rails_5.2/Gemfile +17 -0
- data/rails_app/rails_5.2/Gemfile.lock +174 -0
- data/rails_app/rails_5.2/README.md +24 -0
- data/rails_app/rails_5.2/Rakefile +8 -0
- data/rails_app/rails_5.2/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_5.2/app/jobs/application_job.rb +4 -0
- data/rails_app/rails_5.2/bin/bundle +5 -0
- data/rails_app/rails_5.2/bin/rails +6 -0
- data/rails_app/rails_5.2/bin/rake +6 -0
- data/rails_app/rails_5.2/bin/setup +27 -0
- data/rails_app/rails_5.2/bin/update +27 -0
- data/rails_app/rails_5.2/config.ru +7 -0
- data/rails_app/rails_5.2/config/application.rb +37 -0
- data/rails_app/rails_5.2/config/boot.rb +6 -0
- data/rails_app/rails_5.2/config/credentials.yml.enc +1 -0
- data/rails_app/rails_5.2/config/environment.rb +7 -0
- data/rails_app/rails_5.2/config/environments/development.rb +41 -0
- data/rails_app/rails_5.2/config/environments/production.rb +70 -0
- data/rails_app/rails_5.2/config/environments/test.rb +38 -0
- data/rails_app/rails_5.2/config/initializers/application_controller_renderer.rb +9 -0
- data/rails_app/rails_5.2/config/initializers/backtrace_silencers.rb +8 -0
- data/rails_app/rails_5.2/config/initializers/cors.rb +17 -0
- data/rails_app/rails_5.2/config/initializers/filter_parameter_logging.rb +6 -0
- data/rails_app/rails_5.2/config/initializers/inflections.rb +17 -0
- data/rails_app/rails_5.2/config/initializers/mime_types.rb +5 -0
- data/rails_app/rails_5.2/config/initializers/wrap_parameters.rb +11 -0
- data/rails_app/rails_5.2/config/locales/en.yml +33 -0
- data/rails_app/rails_5.2/config/routes.rb +5 -0
- data/rails_app/rails_5.2/config/spring.rb +8 -0
- data/rails_app/rails_5.2/public/robots.txt +1 -0
- data/rails_app/rails_5.2/spec/rails_helper.rb +14 -0
- data/rails_app/rails_5.2/spec/spec_helper.rb +13 -0
- data/rails_app/rails_6.0/.rspec +3 -0
- data/rails_app/rails_6.0/Gemfile +17 -0
- data/rails_app/rails_6.0/Gemfile.lock +190 -0
- data/rails_app/rails_6.0/README.md +24 -0
- data/rails_app/rails_6.0/Rakefile +8 -0
- data/rails_app/rails_6.0/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_6.0/app/jobs/application_job.rb +9 -0
- data/rails_app/rails_6.0/bin/rails +6 -0
- data/rails_app/rails_6.0/bin/rake +6 -0
- data/rails_app/rails_6.0/bin/setup +27 -0
- data/rails_app/rails_6.0/config.ru +7 -0
- data/rails_app/rails_6.0/config/application.rb +39 -0
- data/rails_app/rails_6.0/config/boot.rb +6 -0
- data/rails_app/rails_6.0/config/credentials.yml.enc +1 -0
- data/rails_app/rails_6.0/config/environment.rb +7 -0
- data/rails_app/rails_6.0/config/environments/development.rb +39 -0
- data/rails_app/rails_6.0/config/environments/production.rb +90 -0
- data/rails_app/rails_6.0/config/environments/test.rb +41 -0
- data/rails_app/rails_6.0/config/initializers/application_controller_renderer.rb +9 -0
- data/rails_app/rails_6.0/config/initializers/backtrace_silencers.rb +8 -0
- data/rails_app/rails_6.0/config/initializers/cors.rb +17 -0
- data/rails_app/rails_6.0/config/initializers/filter_parameter_logging.rb +6 -0
- data/rails_app/rails_6.0/config/initializers/inflections.rb +17 -0
- data/rails_app/rails_6.0/config/initializers/mime_types.rb +5 -0
- data/rails_app/rails_6.0/config/initializers/wrap_parameters.rb +11 -0
- data/rails_app/rails_6.0/config/locales/en.yml +33 -0
- data/rails_app/rails_6.0/config/routes.rb +5 -0
- data/rails_app/rails_6.0/config/spring.rb +8 -0
- data/rails_app/rails_6.0/public/robots.txt +1 -0
- data/rails_app/rails_6.0/spec/rails_helper.rb +14 -0
- data/rails_app/rails_6.0/spec/spec_helper.rb +13 -0
- data/rails_app/rails_6.1/.gitattributes +8 -0
- data/rails_app/rails_6.1/.gitignore +28 -0
- data/rails_app/rails_6.1/.rspec +3 -0
- data/rails_app/rails_6.1/Gemfile +17 -0
- data/rails_app/rails_6.1/Gemfile.lock +197 -0
- data/rails_app/rails_6.1/README.md +24 -0
- data/rails_app/rails_6.1/Rakefile +6 -0
- data/rails_app/rails_6.1/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_6.1/app/controllers/concerns/.keep +0 -0
- data/rails_app/rails_6.1/app/javascript/.keep +0 -0
- data/rails_app/rails_6.1/app/models/application_record.rb +5 -0
- data/rails_app/rails_6.1/app/models/concerns/.keep +0 -0
- data/rails_app/rails_6.1/bin/bundle +114 -0
- data/rails_app/rails_6.1/bin/rails +4 -0
- data/rails_app/rails_6.1/bin/rake +4 -0
- data/rails_app/rails_6.1/bin/setup +33 -0
- data/rails_app/rails_6.1/config.ru +6 -0
- data/rails_app/rails_6.1/config/application.rb +42 -0
- data/rails_app/rails_6.1/config/boot.rb +5 -0
- data/rails_app/rails_6.1/config/credentials.yml.enc +1 -0
- data/rails_app/rails_6.1/config/database.yml +25 -0
- data/rails_app/rails_6.1/config/environment.rb +7 -0
- data/rails_app/rails_6.1/config/environments/development.rb +59 -0
- data/rails_app/rails_6.1/config/environments/production.rb +97 -0
- data/rails_app/rails_6.1/config/environments/test.rb +51 -0
- data/rails_app/rails_6.1/config/initializers/application_controller_renderer.rb +9 -0
- data/rails_app/rails_6.1/config/initializers/backtrace_silencers.rb +10 -0
- data/rails_app/rails_6.1/config/initializers/cors.rb +17 -0
- data/rails_app/rails_6.1/config/initializers/filter_parameter_logging.rb +8 -0
- data/rails_app/rails_6.1/config/initializers/inflections.rb +17 -0
- data/rails_app/rails_6.1/config/initializers/mime_types.rb +5 -0
- data/rails_app/rails_6.1/config/initializers/wrap_parameters.rb +16 -0
- data/rails_app/rails_6.1/config/locales/en.yml +33 -0
- data/rails_app/rails_6.1/config/routes.rb +5 -0
- data/rails_app/rails_6.1/db/seeds.rb +8 -0
- data/rails_app/rails_6.1/lib/tasks/.keep +0 -0
- data/rails_app/rails_6.1/public/robots.txt +1 -0
- data/rails_app/rails_6.1/spec/rails_helper.rb +14 -0
- data/rails_app/rails_6.1/spec/spec_helper.rb +13 -0
- data/rails_app/rails_6.1/tmp/.keep +0 -0
- data/rails_app/rails_6.1/tmp/pids/.keep +0 -0
- data/rails_app/rails_6.1/vendor/.keep +0 -0
- metadata +115 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 679868aa1b5a2bc6deb75bfcca9a7882d04c2739871c328510a741823fed3e8e
|
4
|
+
data.tar.gz: c286ec47b78171cf478b53568ab6ade3f618204d2b5223ddad32e35e2715fd6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ee86532b34852778e544a61a50ffdd1ef9b73ae6a6efcf51b7dbb0fcce9e9395d62b53eda6656730bd488b6547cf3471add7d62c6bd2edd1863aa92a4f993c
|
7
|
+
data.tar.gz: da243fd8ab63338bd8e727dc6125b9ecd9c5d361db10fc6d7716af4996ac8b745ac30a88a9bceac8c5d4f7ad0a88badbe01a0ddf140267f4db77173439b496dc
|
data/.circleci/config.yml
CHANGED
@@ -12,31 +12,38 @@ references:
|
|
12
12
|
- &ruby_version
|
13
13
|
ruby_version:
|
14
14
|
type: enum
|
15
|
-
enum: ['2.
|
16
|
-
default: '
|
15
|
+
enum: &ruby_version_enum ['2.5', '2.6', '2.7', '3.0']
|
16
|
+
default: '3.0'
|
17
17
|
- &rails_version
|
18
18
|
rails_version:
|
19
19
|
type: enum
|
20
|
-
enum: ['
|
21
|
-
default: '6.
|
20
|
+
enum: &rails_version_enum ['5.2', '6.0', '6.1']
|
21
|
+
default: '6.1'
|
22
22
|
- &bundler_options
|
23
23
|
bundler_options:
|
24
24
|
type: string
|
25
25
|
default: ''
|
26
26
|
|
27
27
|
executors:
|
28
|
-
|
28
|
+
api_executor:
|
29
29
|
parameters:
|
30
30
|
<<: *ruby_version
|
31
31
|
docker:
|
32
|
-
- image: circleci/ruby:<< parameters.ruby_version
|
32
|
+
- image: circleci/ruby:<< parameters.ruby_version >>
|
33
33
|
working_directory: ~/repo/my_api
|
34
|
-
|
34
|
+
gem_executor:
|
35
35
|
parameters:
|
36
36
|
<<: *ruby_version
|
37
37
|
docker:
|
38
|
-
- image: circleci/ruby:<< parameters.ruby_version
|
38
|
+
- image: circleci/ruby:<< parameters.ruby_version >>
|
39
39
|
working_directory: ~/repo
|
40
|
+
rails_executor:
|
41
|
+
parameters:
|
42
|
+
<<: *ruby_version
|
43
|
+
<<: *rails_version
|
44
|
+
docker:
|
45
|
+
- image: circleci/ruby:<< parameters.ruby_version >>
|
46
|
+
working_directory: ~/repo/rails_app/rails_<< parameters.rails_version >>
|
40
47
|
|
41
48
|
commands:
|
42
49
|
modify_active_support_version:
|
@@ -85,7 +92,7 @@ commands:
|
|
85
92
|
- code-climate/format-coverage:
|
86
93
|
input-type: simplecov
|
87
94
|
prefix: $(readlink -f .)
|
88
|
-
coverage-file: coverage
|
95
|
+
coverage-file: coverage/coverage.json
|
89
96
|
output: coverage/codeclimate.$CIRCLE_BUILD_NUM.json
|
90
97
|
- persist_to_workspace:
|
91
98
|
root: coverage
|
@@ -144,18 +151,18 @@ commands:
|
|
144
151
|
path: ~/repo
|
145
152
|
- run:
|
146
153
|
name: Install Bundler 2.x
|
147
|
-
command: gem install bundler
|
154
|
+
command: gem install bundler -v '~> 2.0'
|
148
155
|
- ruby-orbs/bundle-install:
|
149
156
|
cache_key_prefix: v1-dependencies-<< parameters.ruby_version >>
|
150
157
|
bundle_extra_args: << parameters.bundler_options >>
|
151
158
|
restore_bundled_with: false
|
152
159
|
test_and_deploy_for_api:
|
153
|
-
description:
|
160
|
+
description: Test and build the API
|
154
161
|
steps:
|
155
162
|
- run_rspec_for_api
|
156
163
|
- deploy_api_server
|
157
164
|
test_and_build_for_gem:
|
158
|
-
description:
|
165
|
+
description: Test and build the RubyGem
|
159
166
|
parameters:
|
160
167
|
<<: *rails_version
|
161
168
|
steps:
|
@@ -163,13 +170,44 @@ commands:
|
|
163
170
|
rails_version: << parameters.rails_version >>
|
164
171
|
- run_rspec_for_gem
|
165
172
|
- rake_build
|
173
|
+
verify_api_client_generator:
|
174
|
+
description: Verify the API client generator
|
175
|
+
parameters:
|
176
|
+
<<: *rails_version
|
177
|
+
steps:
|
178
|
+
- run:
|
179
|
+
name: Generate new API client files
|
180
|
+
command: |
|
181
|
+
bin/rails g api_client path/to/resource \
|
182
|
+
get:path/to/resource \
|
183
|
+
post:path/to/resource \
|
184
|
+
--endpoint https://example.com/myapi
|
185
|
+
- run:
|
186
|
+
name: Check the API client files exists
|
187
|
+
command: |
|
188
|
+
test -e "app/api_clients/application_api_client.rb" & \
|
189
|
+
test -e "app/api_clients/path/to/resource_api_client.rb" & \
|
190
|
+
test -e "spec/api_clients/path/to/resource_api_client_spec.rb"
|
191
|
+
- run:
|
192
|
+
name: Run rspec with the generated spec file
|
193
|
+
command: bundle exec rspec -f d spec/api_clients/path/to
|
166
194
|
|
167
195
|
jobs:
|
196
|
+
test_api:
|
197
|
+
parameters:
|
198
|
+
<<: *ruby_version
|
199
|
+
executor:
|
200
|
+
name: api_executor
|
201
|
+
ruby_version: << parameters.ruby_version >>
|
202
|
+
steps:
|
203
|
+
- setup:
|
204
|
+
ruby_version: << parameters.ruby_version >>
|
205
|
+
- run_rspec_for_api
|
168
206
|
deploy_api:
|
169
207
|
parameters:
|
170
208
|
<<: *ruby_version
|
171
209
|
executor:
|
172
|
-
name:
|
210
|
+
name: api_executor
|
173
211
|
ruby_version: << parameters.ruby_version >>
|
174
212
|
steps:
|
175
213
|
- setup:
|
@@ -181,7 +219,7 @@ jobs:
|
|
181
219
|
<<: *rails_version
|
182
220
|
<<: *bundler_options
|
183
221
|
executor:
|
184
|
-
name:
|
222
|
+
name: gem_executor
|
185
223
|
ruby_version: << parameters.ruby_version >>
|
186
224
|
steps:
|
187
225
|
- setup:
|
@@ -189,33 +227,46 @@ jobs:
|
|
189
227
|
bundler_options: << parameters.bundler_options >>
|
190
228
|
- test_and_build_for_gem:
|
191
229
|
rails_version: << parameters.rails_version >>
|
230
|
+
verify_generator:
|
231
|
+
parameters:
|
232
|
+
<<: *ruby_version
|
233
|
+
<<: *rails_version
|
234
|
+
executor:
|
235
|
+
name: rails_executor
|
236
|
+
ruby_version: << parameters.ruby_version >>
|
237
|
+
rails_version: << parameters.rails_version >>
|
238
|
+
steps:
|
239
|
+
- setup:
|
240
|
+
ruby_version: << parameters.ruby_version >>
|
241
|
+
- verify_api_client_generator:
|
242
|
+
rails_version: << parameters.rails_version >>
|
192
243
|
upload-coverage:
|
193
|
-
executor:
|
244
|
+
executor: gem_executor
|
194
245
|
steps:
|
195
246
|
- attach_workspace:
|
196
247
|
at: ~/repo
|
197
248
|
- code-climate/install
|
198
249
|
- code-climate/sum-coverage:
|
199
250
|
input: codeclimate.*.json
|
200
|
-
parts:
|
251
|
+
parts: 24
|
201
252
|
- code-climate/upload-coverage
|
202
253
|
rubocop:
|
203
|
-
executor:
|
254
|
+
executor: gem_executor
|
204
255
|
steps:
|
205
256
|
- setup
|
206
257
|
- rubocop
|
207
258
|
yardoc:
|
208
|
-
executor:
|
259
|
+
executor: gem_executor
|
209
260
|
steps:
|
210
261
|
- setup
|
211
262
|
- yardoc
|
212
263
|
rubocop_challenge:
|
213
|
-
executor:
|
264
|
+
executor: gem_executor
|
214
265
|
steps:
|
215
266
|
- checkout
|
216
267
|
- rubocop_challenge
|
217
268
|
release:
|
218
|
-
executor:
|
269
|
+
executor: gem_executor
|
219
270
|
steps:
|
220
271
|
- setup
|
221
272
|
- release
|
@@ -226,128 +277,37 @@ workflows:
|
|
226
277
|
commit:
|
227
278
|
jobs:
|
228
279
|
- build_gem:
|
229
|
-
name:
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
name: build_on_ruby_2.5_and_rails_5.0
|
250
|
-
ruby_version: '2.5'
|
251
|
-
rails_version: '5.0'
|
252
|
-
- build_gem:
|
253
|
-
name: build_on_ruby_2.5_and_rails_5.1
|
254
|
-
ruby_version: '2.5'
|
255
|
-
rails_version: '5.1'
|
256
|
-
- build_gem:
|
257
|
-
name: build_on_ruby_2.5_and_rails_5.2
|
258
|
-
ruby_version: '2.5'
|
259
|
-
rails_version: '5.2'
|
260
|
-
- build_gem:
|
261
|
-
name: build_on_ruby_2.5_and_rails_6.0
|
262
|
-
ruby_version: '2.5'
|
263
|
-
rails_version: '6.0'
|
264
|
-
- build_gem:
|
265
|
-
name: build_on_ruby_2.6_and_rails_4.2
|
266
|
-
ruby_version: '2.6'
|
267
|
-
rails_version: '4.2'
|
268
|
-
- build_gem:
|
269
|
-
name: build_on_ruby_2.6_and_rails_5.0
|
270
|
-
ruby_version: '2.6'
|
271
|
-
rails_version: '5.0'
|
272
|
-
- build_gem:
|
273
|
-
name: build_on_ruby_2.6_and_rails_5.1
|
274
|
-
ruby_version: '2.6'
|
275
|
-
rails_version: '5.1'
|
276
|
-
- build_gem:
|
277
|
-
name: build_on_ruby_2.6_and_rails_5.2
|
278
|
-
ruby_version: '2.6'
|
279
|
-
rails_version: '5.2'
|
280
|
-
- build_gem:
|
281
|
-
name: build_on_ruby_2.6_and_rails_6.0
|
282
|
-
ruby_version: '2.6'
|
283
|
-
rails_version: '6.0'
|
284
|
-
- build_gem:
|
285
|
-
name: build_on_ruby_2.7_and_rails_5.0
|
286
|
-
ruby_version: '2.7'
|
287
|
-
rails_version: '5.0'
|
288
|
-
- build_gem:
|
289
|
-
name: build_on_ruby_2.7_and_rails_5.1
|
290
|
-
ruby_version: '2.7'
|
291
|
-
rails_version: '5.1'
|
292
|
-
- build_gem:
|
293
|
-
name: build_on_ruby_2.7_and_rails_5.2
|
294
|
-
ruby_version: '2.7'
|
295
|
-
rails_version: '5.2'
|
296
|
-
- build_gem:
|
297
|
-
name: build_on_ruby_2.7_and_rails_6.0_with_integrations
|
298
|
-
ruby_version: '2.7'
|
299
|
-
rails_version: '6.0'
|
300
|
-
bundler_options: '--with integrations'
|
301
|
-
- build_gem:
|
302
|
-
name: build_on_ruby_2.7_and_rails_6.0_without_integrations
|
303
|
-
ruby_version: '2.7'
|
304
|
-
rails_version: '6.0'
|
305
|
-
bundler_options: '--without integrations'
|
280
|
+
name: build_on_ruby_<< matrix.ruby_version >>_and_rails_<< matrix.rails_version >><< matrix.bundler_options >>
|
281
|
+
matrix:
|
282
|
+
parameters:
|
283
|
+
ruby_version: *ruby_version_enum
|
284
|
+
rails_version: *rails_version_enum
|
285
|
+
bundler_options: ['--with integrations', '--without integrations']
|
286
|
+
exclude:
|
287
|
+
- ruby_version: '3.0'
|
288
|
+
rails_version: '5.2'
|
289
|
+
- verify_generator:
|
290
|
+
name: verify_generator_on_ruby_<< matrix.ruby_version >>_and_rails_<< matrix.rails_version >>
|
291
|
+
matrix:
|
292
|
+
parameters:
|
293
|
+
ruby_version: *ruby_version_enum
|
294
|
+
rails_version: *rails_version_enum
|
295
|
+
exclude:
|
296
|
+
- ruby_version: '3.0'
|
297
|
+
rails_version: '5.2'
|
298
|
+
- test_api:
|
299
|
+
ruby_version: '2.7' # Jets supports only Ruby 2.x
|
306
300
|
- rubocop
|
307
301
|
- yardoc
|
308
302
|
- upload-coverage:
|
309
303
|
requires:
|
310
|
-
-
|
311
|
-
-
|
312
|
-
- build_on_ruby_2.4_and_rails_5.1
|
313
|
-
- build_on_ruby_2.4_and_rails_5.2
|
314
|
-
- build_on_ruby_2.5_and_rails_4.2
|
315
|
-
- build_on_ruby_2.5_and_rails_5.0
|
316
|
-
- build_on_ruby_2.5_and_rails_5.1
|
317
|
-
- build_on_ruby_2.5_and_rails_5.2
|
318
|
-
- build_on_ruby_2.5_and_rails_6.0
|
319
|
-
- build_on_ruby_2.6_and_rails_4.2
|
320
|
-
- build_on_ruby_2.6_and_rails_5.0
|
321
|
-
- build_on_ruby_2.6_and_rails_5.1
|
322
|
-
- build_on_ruby_2.6_and_rails_5.2
|
323
|
-
- build_on_ruby_2.6_and_rails_6.0
|
324
|
-
- build_on_ruby_2.7_and_rails_5.0
|
325
|
-
- build_on_ruby_2.7_and_rails_5.1
|
326
|
-
- build_on_ruby_2.7_and_rails_5.2
|
327
|
-
- build_on_ruby_2.7_and_rails_6.0_with_integrations
|
328
|
-
- build_on_ruby_2.7_and_rails_6.0_without_integrations
|
304
|
+
- build_gem
|
305
|
+
- verify_generator # for GitHub requirements
|
329
306
|
- release:
|
330
307
|
context: RubyGems API Key
|
331
308
|
requires:
|
332
|
-
-
|
333
|
-
-
|
334
|
-
- build_on_ruby_2.4_and_rails_5.1
|
335
|
-
- build_on_ruby_2.4_and_rails_5.2
|
336
|
-
- build_on_ruby_2.5_and_rails_4.2
|
337
|
-
- build_on_ruby_2.5_and_rails_5.0
|
338
|
-
- build_on_ruby_2.5_and_rails_5.1
|
339
|
-
- build_on_ruby_2.5_and_rails_5.2
|
340
|
-
- build_on_ruby_2.5_and_rails_6.0
|
341
|
-
- build_on_ruby_2.6_and_rails_4.2
|
342
|
-
- build_on_ruby_2.6_and_rails_5.0
|
343
|
-
- build_on_ruby_2.6_and_rails_5.1
|
344
|
-
- build_on_ruby_2.6_and_rails_5.2
|
345
|
-
- build_on_ruby_2.6_and_rails_6.0
|
346
|
-
- build_on_ruby_2.7_and_rails_5.0
|
347
|
-
- build_on_ruby_2.7_and_rails_5.1
|
348
|
-
- build_on_ruby_2.7_and_rails_5.2
|
349
|
-
- build_on_ruby_2.7_and_rails_6.0_with_integrations
|
350
|
-
- build_on_ruby_2.7_and_rails_6.0_without_integrations
|
309
|
+
- build_gem
|
310
|
+
- verify_generator
|
351
311
|
- rubocop
|
352
312
|
filters:
|
353
313
|
branches:
|
data/.gem_comet.yml
CHANGED
@@ -1,12 +1,23 @@
|
|
1
1
|
# [Usage]
|
2
2
|
#
|
3
3
|
# $ gem install gem_comet
|
4
|
+
# $ gem_comet init
|
4
5
|
# $ gem_comet release {version number, like as "1.2.3"}
|
6
|
+
# $ gem_comet changelog
|
7
|
+
# $ gem_comet versions
|
5
8
|
|
6
|
-
version: 1.
|
7
|
-
|
9
|
+
version: 1.2
|
8
10
|
release:
|
9
11
|
base_branch: master
|
10
12
|
release_branch: release
|
11
13
|
version_file_path: lib/my_api_client/version.rb
|
12
14
|
changelog_file_path: CHANGELOG.md # optional
|
15
|
+
changelog:
|
16
|
+
categories:
|
17
|
+
- Feature
|
18
|
+
- Bugfix
|
19
|
+
- Security
|
20
|
+
- Breaking Change
|
21
|
+
- Rubocop Challenge
|
22
|
+
- Dependabot
|
23
|
+
- Misc
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,7 +1,45 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2021-03-01 23:31:18 UTC using RuboCop version 1.11.0.
|
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
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 5
|
10
|
+
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
11
|
+
Lint/EmptyBlock:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/my_api_client/rspec/matchers/be_handled_as_an_error.rb'
|
14
|
+
- 'spec/support/complete_about.rb'
|
15
|
+
- 'spec/support/complete_within.rb'
|
16
|
+
|
17
|
+
# Offense count: 5
|
18
|
+
Lint/MissingSuper:
|
19
|
+
Exclude:
|
20
|
+
- 'lib/my_api_client/error_handling/generator.rb'
|
21
|
+
- 'lib/my_api_client/error_handling/retry_option_processor.rb'
|
22
|
+
- 'lib/my_api_client/integrations/bugsnag.rb'
|
23
|
+
- 'lib/my_api_client/request/executor.rb'
|
24
|
+
- 'lib/my_api_client/sleeper.rb'
|
25
|
+
|
26
|
+
# Offense count: 6
|
27
|
+
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
|
28
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
29
|
+
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
30
|
+
Naming/VariableNumber:
|
31
|
+
Exclude:
|
32
|
+
- 'spec/lib/my_api_client/error_handling_spec.rb'
|
33
|
+
- 'spec/lib/my_api_client/request/executor_spec.rb'
|
34
|
+
|
35
|
+
# Offense count: 60
|
36
|
+
# Configuration parameters: AllowSubject.
|
37
|
+
RSpec/MultipleMemoizedHelpers:
|
38
|
+
Max: 15
|
39
|
+
|
40
|
+
# Offense count: 3
|
41
|
+
Style/DocumentDynamicEvalDefinition:
|
42
|
+
Exclude:
|
43
|
+
- 'lib/my_api_client/config.rb'
|
44
|
+
- 'lib/my_api_client/request/basic.rb'
|
45
|
+
- 'lib/my_api_client/request/logger.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,147 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## v0.20.0 (Mar 07, 2021)
|
4
|
+
|
5
|
+
### Feature
|
6
|
+
|
7
|
+
* [#456](https://github.com/ryz310/my_api_client/pull/456) Stubbed pagination ([@ryz310](https://github.com/ryz310))
|
8
|
+
|
9
|
+
### Rubocop Challenge
|
10
|
+
|
11
|
+
* [#414](https://github.com/ryz310/my_api_client/pull/414) Style/StringConcatenation-20210106033935 ([@ryz310](https://github.com/ryz310))
|
12
|
+
* [#416](https://github.com/ryz310/my_api_client/pull/416) Style/HashTransformValues-20210106233116 ([@ryz310](https://github.com/ryz310))
|
13
|
+
* [#433](https://github.com/ryz310/my_api_client/pull/433) Lint/SymbolConversion-20210128233108 ([@ryz310](https://github.com/ryz310))
|
14
|
+
* [#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
|
+
|
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
|
+
### Misc
|
31
|
+
|
32
|
+
* [#436](https://github.com/ryz310/my_api_client/pull/436) Use Circle CI matrix ([@ryz310](https://github.com/ryz310))
|
33
|
+
|
34
|
+
## v0.19.0 (Jan 04, 2021)
|
35
|
+
|
36
|
+
### Feature
|
37
|
+
|
38
|
+
* [#402](https://github.com/ryz310/my_api_client/pull/402) Support ruby 3.0 and rails 6.1 ([@ryz310](https://github.com/ryz310))
|
39
|
+
|
40
|
+
### Rubocop Challenge
|
41
|
+
|
42
|
+
* [#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
|
+
|
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
|
+
## v0.18.0 (Dec 04, 2020)
|
62
|
+
|
63
|
+
### Feature
|
64
|
+
|
65
|
+
* [#381](https://github.com/ryz310/my_api_client/pull/381) Add endpoint option to the generator ([@ryz310](https://github.com/ryz310))
|
66
|
+
|
67
|
+
### Breaking Change
|
68
|
+
|
69
|
+
* [#365](https://github.com/ryz310/my_api_client/pull/365) End of support for ruby 2.4 and rails 4.2 ([@ryz310](https://github.com/ryz310))
|
70
|
+
|
71
|
+
### Rubocop Challenge
|
72
|
+
|
73
|
+
* [#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
|
+
|
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
|
+
## v0.17.0 (Sep 20, 2020)
|
87
|
+
|
88
|
+
### Feature
|
89
|
+
|
90
|
+
* [#303](https://github.com/ryz310/my_api_client/pull/303) Change the duration format to milliseconds ([@ryz310](https://github.com/ryz310))
|
91
|
+
* [#308](https://github.com/ryz310/my_api_client/pull/308) Add testing for api client generators ([@ryz310](https://github.com/ryz310))
|
92
|
+
|
93
|
+
### Rubocop Challenge
|
94
|
+
|
95
|
+
* [#311](https://github.com/ryz310/my_api_client/pull/311) Style/GlobalStdStream-20200906233350 ([@ryz310](https://github.com/ryz310))
|
96
|
+
* [#312](https://github.com/ryz310/my_api_client/pull/312) Style/StringConcatenation-20200907233020 ([@ryz310](https://github.com/ryz310))
|
97
|
+
* [#313](https://github.com/ryz310/my_api_client/pull/313) Style/HashTransformValues-20200908233016 ([@ryz310](https://github.com/ryz310))
|
98
|
+
* [#316](https://github.com/ryz310/my_api_client/pull/316) Layout/EmptyLinesAroundAttributeAccessor-20200909233021 ([@ryz310](https://github.com/ryz310))
|
99
|
+
* [#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
|
+
|
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
|
+
## v0.16.1 (Aug 27, 2020)
|
112
|
+
|
113
|
+
### Feature
|
114
|
+
|
115
|
+
* [#296](https://github.com/ryz310/my_api_client/pull/296) Support HTTP PUT method ([@ryz310](https://github.com/ryz310))
|
116
|
+
|
117
|
+
### Rubocop Challenge
|
118
|
+
|
119
|
+
* [#256](https://github.com/ryz310/my_api_client/pull/256) Performance/StartWith-20200523233027 ([@ryz310](https://github.com/ryz310))
|
120
|
+
* [#268](https://github.com/ryz310/my_api_client/pull/268) Lint/RedundantCopDisableDirective-20200622233019 ([@ryz310](https://github.com/ryz310))
|
121
|
+
* [#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
|
+
* [#293](https://github.com/ryz310/my_api_client/pull/293) RSpec/LeadingSubject-20200817233022 ([@ryz310](https://github.com/ryz310))
|
123
|
+
|
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
|
+
### Misc
|
142
|
+
|
143
|
+
* [#271](https://github.com/ryz310/my_api_client/pull/271) Minor fixes ([@ryz310](https://github.com/ryz310))
|
144
|
+
|
3
145
|
## v0.16.0 (Mar 29, 2020)
|
4
146
|
|
5
147
|
### Breaking Change
|