my_api_client 0.15.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +169 -95
  3. data/.dependabot/config.yml +2 -5
  4. data/.rubocop.yml +5 -1
  5. data/.rubocop_challenge.yml +1 -0
  6. data/.rubocop_todo.yml +53 -1
  7. data/CHANGELOG.md +171 -0
  8. data/Gemfile +0 -3
  9. data/Gemfile.lock +70 -64
  10. data/README.jp.md +97 -24
  11. data/bin/console +4 -0
  12. data/example/api_clients/application_api_client.rb +2 -10
  13. data/example/api_clients/my_rest_api_client.rb +9 -3
  14. data/gemfiles/{rails_4.2.gemfile → rails_6.1.gemfile} +1 -1
  15. data/lib/generators/rails/USAGE +1 -1
  16. data/lib/generators/rails/api_client_generator.rb +6 -0
  17. data/lib/generators/rails/templates/api_client.rb.erb +1 -1
  18. data/lib/generators/rails/templates/application_api_client.rb.erb +0 -11
  19. data/lib/generators/rspec/USAGE +1 -1
  20. data/lib/generators/rspec/api_client_generator.rb +6 -0
  21. data/lib/generators/rspec/templates/api_client_spec.rb.erb +23 -16
  22. data/lib/my_api_client.rb +5 -0
  23. data/lib/my_api_client/base.rb +4 -9
  24. data/lib/my_api_client/default_error_handlers.rb +64 -0
  25. data/lib/my_api_client/error_handling.rb +3 -4
  26. data/lib/my_api_client/error_handling/generator.rb +23 -7
  27. data/lib/my_api_client/errors.rb +1 -53
  28. data/lib/my_api_client/errors/api_limit_error.rb +6 -0
  29. data/lib/my_api_client/errors/client_error.rb +93 -0
  30. data/lib/my_api_client/errors/network_error.rb +43 -0
  31. data/lib/my_api_client/errors/server_error.rb +42 -0
  32. data/lib/my_api_client/params/params.rb +1 -3
  33. data/lib/my_api_client/request.rb +2 -2
  34. data/lib/my_api_client/request/basic.rb +1 -3
  35. data/lib/my_api_client/request/executor.rb +1 -1
  36. data/lib/my_api_client/version.rb +1 -1
  37. data/my_api/Gemfile.lock +89 -87
  38. data/my_api/app/controllers/pagination_controller.rb +1 -1
  39. data/my_api/spec/controllers/rest_controller_spec.rb +23 -5
  40. data/my_api_client.gemspec +2 -2
  41. data/rails_app/rails_5.2/.rspec +3 -0
  42. data/rails_app/rails_5.2/Gemfile +17 -0
  43. data/rails_app/rails_5.2/Gemfile.lock +174 -0
  44. data/rails_app/rails_5.2/README.md +24 -0
  45. data/rails_app/rails_5.2/Rakefile +8 -0
  46. data/rails_app/rails_5.2/app/controllers/application_controller.rb +4 -0
  47. data/rails_app/rails_5.2/app/jobs/application_job.rb +4 -0
  48. data/rails_app/rails_5.2/bin/bundle +5 -0
  49. data/rails_app/rails_5.2/bin/rails +6 -0
  50. data/rails_app/rails_5.2/bin/rake +6 -0
  51. data/rails_app/rails_5.2/bin/setup +27 -0
  52. data/rails_app/rails_5.2/bin/update +27 -0
  53. data/rails_app/rails_5.2/config.ru +7 -0
  54. data/rails_app/rails_5.2/config/application.rb +37 -0
  55. data/rails_app/rails_5.2/config/boot.rb +6 -0
  56. data/rails_app/rails_5.2/config/credentials.yml.enc +1 -0
  57. data/rails_app/rails_5.2/config/environment.rb +7 -0
  58. data/rails_app/rails_5.2/config/environments/development.rb +41 -0
  59. data/rails_app/rails_5.2/config/environments/production.rb +70 -0
  60. data/rails_app/rails_5.2/config/environments/test.rb +38 -0
  61. data/rails_app/rails_5.2/config/initializers/application_controller_renderer.rb +9 -0
  62. data/rails_app/rails_5.2/config/initializers/backtrace_silencers.rb +8 -0
  63. data/rails_app/rails_5.2/config/initializers/cors.rb +17 -0
  64. data/rails_app/rails_5.2/config/initializers/filter_parameter_logging.rb +6 -0
  65. data/rails_app/rails_5.2/config/initializers/inflections.rb +17 -0
  66. data/rails_app/rails_5.2/config/initializers/mime_types.rb +5 -0
  67. data/rails_app/rails_5.2/config/initializers/wrap_parameters.rb +11 -0
  68. data/rails_app/rails_5.2/config/locales/en.yml +33 -0
  69. data/rails_app/rails_5.2/config/routes.rb +5 -0
  70. data/rails_app/rails_5.2/config/spring.rb +8 -0
  71. data/rails_app/rails_5.2/public/robots.txt +1 -0
  72. data/rails_app/rails_5.2/spec/rails_helper.rb +14 -0
  73. data/rails_app/rails_5.2/spec/spec_helper.rb +13 -0
  74. data/rails_app/rails_6.0/.rspec +3 -0
  75. data/rails_app/rails_6.0/Gemfile +17 -0
  76. data/rails_app/rails_6.0/Gemfile.lock +190 -0
  77. data/rails_app/rails_6.0/README.md +24 -0
  78. data/rails_app/rails_6.0/Rakefile +8 -0
  79. data/rails_app/rails_6.0/app/controllers/application_controller.rb +4 -0
  80. data/rails_app/rails_6.0/app/jobs/application_job.rb +9 -0
  81. data/rails_app/rails_6.0/bin/rails +6 -0
  82. data/rails_app/rails_6.0/bin/rake +6 -0
  83. data/rails_app/rails_6.0/bin/setup +27 -0
  84. data/rails_app/rails_6.0/config.ru +7 -0
  85. data/rails_app/rails_6.0/config/application.rb +39 -0
  86. data/rails_app/rails_6.0/config/boot.rb +6 -0
  87. data/rails_app/rails_6.0/config/credentials.yml.enc +1 -0
  88. data/rails_app/rails_6.0/config/environment.rb +7 -0
  89. data/rails_app/rails_6.0/config/environments/development.rb +39 -0
  90. data/rails_app/rails_6.0/config/environments/production.rb +90 -0
  91. data/rails_app/rails_6.0/config/environments/test.rb +41 -0
  92. data/rails_app/rails_6.0/config/initializers/application_controller_renderer.rb +9 -0
  93. data/rails_app/rails_6.0/config/initializers/backtrace_silencers.rb +8 -0
  94. data/rails_app/rails_6.0/config/initializers/cors.rb +17 -0
  95. data/rails_app/rails_6.0/config/initializers/filter_parameter_logging.rb +6 -0
  96. data/rails_app/rails_6.0/config/initializers/inflections.rb +17 -0
  97. data/rails_app/rails_6.0/config/initializers/mime_types.rb +5 -0
  98. data/rails_app/rails_6.0/config/initializers/wrap_parameters.rb +11 -0
  99. data/rails_app/rails_6.0/config/locales/en.yml +33 -0
  100. data/rails_app/rails_6.0/config/routes.rb +5 -0
  101. data/rails_app/rails_6.0/config/spring.rb +8 -0
  102. data/rails_app/rails_6.0/public/robots.txt +1 -0
  103. data/rails_app/rails_6.0/spec/rails_helper.rb +14 -0
  104. data/rails_app/rails_6.0/spec/spec_helper.rb +13 -0
  105. data/rails_app/rails_6.1/.gitattributes +8 -0
  106. data/rails_app/rails_6.1/.gitignore +28 -0
  107. data/rails_app/rails_6.1/.rspec +3 -0
  108. data/rails_app/rails_6.1/Gemfile +17 -0
  109. data/rails_app/rails_6.1/Gemfile.lock +197 -0
  110. data/rails_app/rails_6.1/README.md +24 -0
  111. data/rails_app/rails_6.1/Rakefile +6 -0
  112. data/rails_app/rails_6.1/app/controllers/application_controller.rb +4 -0
  113. data/rails_app/rails_6.1/app/controllers/concerns/.keep +0 -0
  114. data/rails_app/rails_6.1/app/javascript/.keep +0 -0
  115. data/rails_app/rails_6.1/app/models/application_record.rb +5 -0
  116. data/rails_app/rails_6.1/app/models/concerns/.keep +0 -0
  117. data/rails_app/rails_6.1/bin/bundle +114 -0
  118. data/rails_app/rails_6.1/bin/rails +4 -0
  119. data/rails_app/rails_6.1/bin/rake +4 -0
  120. data/rails_app/rails_6.1/bin/setup +33 -0
  121. data/rails_app/rails_6.1/config.ru +6 -0
  122. data/rails_app/rails_6.1/config/application.rb +42 -0
  123. data/rails_app/rails_6.1/config/boot.rb +5 -0
  124. data/rails_app/rails_6.1/config/credentials.yml.enc +1 -0
  125. data/rails_app/rails_6.1/config/database.yml +25 -0
  126. data/rails_app/rails_6.1/config/environment.rb +7 -0
  127. data/rails_app/rails_6.1/config/environments/development.rb +59 -0
  128. data/rails_app/rails_6.1/config/environments/production.rb +97 -0
  129. data/rails_app/rails_6.1/config/environments/test.rb +51 -0
  130. data/rails_app/rails_6.1/config/initializers/application_controller_renderer.rb +9 -0
  131. data/rails_app/rails_6.1/config/initializers/backtrace_silencers.rb +10 -0
  132. data/rails_app/rails_6.1/config/initializers/cors.rb +17 -0
  133. data/rails_app/rails_6.1/config/initializers/filter_parameter_logging.rb +8 -0
  134. data/rails_app/rails_6.1/config/initializers/inflections.rb +17 -0
  135. data/rails_app/rails_6.1/config/initializers/mime_types.rb +5 -0
  136. data/rails_app/rails_6.1/config/initializers/wrap_parameters.rb +16 -0
  137. data/rails_app/rails_6.1/config/locales/en.yml +33 -0
  138. data/rails_app/rails_6.1/config/routes.rb +5 -0
  139. data/rails_app/rails_6.1/db/seeds.rb +8 -0
  140. data/rails_app/rails_6.1/lib/tasks/.keep +0 -0
  141. data/rails_app/rails_6.1/public/robots.txt +1 -0
  142. data/rails_app/rails_6.1/spec/rails_helper.rb +14 -0
  143. data/rails_app/rails_6.1/spec/spec_helper.rb +13 -0
  144. data/rails_app/rails_6.1/tmp/.keep +0 -0
  145. data/rails_app/rails_6.1/tmp/pids/.keep +0 -0
  146. data/rails_app/rails_6.1/vendor/.keep +0 -0
  147. metadata +119 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b40beeb8a70a00452e59208a5c7e2d5dee2c8155d2e23b5cd950e1a7e6f3eb1
4
- data.tar.gz: 15c927bb0954c12225a73955b23b7ccc71b784a2cb63832f7914a757f2ac2ed2
3
+ metadata.gz: 5609ea96b6fa8a515176a95b02ffedf732d4d1fe79a0885ed5a893c804000df7
4
+ data.tar.gz: ae8465d2dedbd0f1c3f06d2c00ede391959ed710c2c60cc00830bee2ba88975f
5
5
  SHA512:
6
- metadata.gz: c57cfcf7db9a8b9d45ee0c603402c910d2ea59bc0f3b406ba2c91388e9b0bab0997fe948dea5944fbc06499ea259c83579a154158808cce7433ea8d0beb02236
7
- data.tar.gz: acc4846d877c8aace073858a102c72cc13245d6b13c94542b90d5da43798d04a6317533797b3e92a7e7710f532936ae551a0fa9cb1dcc8151bf58c68f5f06e24
6
+ metadata.gz: 57d9a99fcba5b23a291817626d2d1813d3867335ce9129f74b2208cbed97c1b0ab9e63ee6ca3174f64bfacd43d3c6ff1d27e3c635e467d155c07772205816bb4
7
+ data.tar.gz: 63eb822667774d43a146407d413a873ddca0361f9aac1c1afad687a65626cc8fb5f5f162ba150cf08622a0f0ad8b0aec47daa32c4331c21f6dc3cf8dc60356bb
@@ -12,31 +12,38 @@ references:
12
12
  - &ruby_version
13
13
  ruby_version:
14
14
  type: enum
15
- enum: ['2.4', '2.5', '2.6', '2.7']
16
- default: '2.7'
15
+ 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: ['4.2', '5.0', '5.1', '5.2', '6.0']
21
- default: '6.0'
20
+ 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
- executor_for_api:
28
+ api_executor:
29
29
  parameters:
30
30
  <<: *ruby_version
31
31
  docker:
32
- - image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
32
+ - image: circleci/ruby:<< parameters.ruby_version >>
33
33
  working_directory: ~/repo/my_api
34
- executor_for_gem:
34
+ gem_executor:
35
35
  parameters:
36
36
  <<: *ruby_version
37
37
  docker:
38
- - image: circleci/ruby:<< parameters.ruby_version >>-node-browsers
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:
@@ -144,18 +151,18 @@ commands:
144
151
  path: ~/repo
145
152
  - run:
146
153
  name: Install Bundler 2.x
147
- command: gem install bundler:2.1.2
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: Build the API
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: Build the RubyGem
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: executor_for_api
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: executor_for_gem
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: executor_for_gem
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: 19
251
+ parts: 13
201
252
  - code-climate/upload-coverage
202
253
  rubocop:
203
- executor: executor_for_gem
254
+ executor: gem_executor
204
255
  steps:
205
256
  - setup
206
257
  - rubocop
207
258
  yardoc:
208
- executor: executor_for_gem
259
+ executor: gem_executor
209
260
  steps:
210
261
  - setup
211
262
  - yardoc
212
263
  rubocop_challenge:
213
- executor: executor_for_gem
264
+ executor: gem_executor
214
265
  steps:
215
266
  - checkout
216
267
  - rubocop_challenge
217
268
  release:
218
- executor: executor_for_gem
269
+ executor: gem_executor
219
270
  steps:
220
271
  - setup
221
272
  - release
@@ -225,34 +276,6 @@ workflows:
225
276
 
226
277
  commit:
227
278
  jobs:
228
- - build_gem:
229
- name: build_on_ruby_2.4_and_rails_4.2
230
- ruby_version: '2.4'
231
- rails_version: '4.2'
232
- - build_gem:
233
- name: build_on_ruby_2.4_and_rails_5.0
234
- ruby_version: '2.4'
235
- rails_version: '5.0'
236
- - build_gem:
237
- name: build_on_ruby_2.4_and_rails_5.1
238
- ruby_version: '2.4'
239
- rails_version: '5.1'
240
- - build_gem:
241
- name: build_on_ruby_2.4_and_rails_5.2
242
- ruby_version: '2.4'
243
- rails_version: '5.2'
244
- - build_gem:
245
- name: build_on_ruby_2.5_and_rails_4.2
246
- ruby_version: '2.5'
247
- rails_version: '4.2'
248
- - build_gem:
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
279
  - build_gem:
257
280
  name: build_on_ruby_2.5_and_rails_5.2
258
281
  ruby_version: '2.5'
@@ -262,17 +285,9 @@ workflows:
262
285
  ruby_version: '2.5'
263
286
  rails_version: '6.0'
264
287
  - 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'
288
+ name: build_on_ruby_2.5_and_rails_6.1
289
+ ruby_version: '2.5'
290
+ rails_version: '6.1'
276
291
  - build_gem:
277
292
  name: build_on_ruby_2.6_and_rails_5.2
278
293
  ruby_version: '2.6'
@@ -282,72 +297,131 @@ workflows:
282
297
  ruby_version: '2.6'
283
298
  rails_version: '6.0'
284
299
  - 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'
300
+ name: build_on_ruby_2.6_and_rails_6.1
301
+ ruby_version: '2.6'
302
+ rails_version: '6.1'
292
303
  - build_gem:
293
304
  name: build_on_ruby_2.7_and_rails_5.2
294
305
  ruby_version: '2.7'
295
306
  rails_version: '5.2'
296
307
  - build_gem:
297
- name: build_on_ruby_2.7_and_rails_6.0_with_integrations
308
+ name: build_on_ruby_2.7_and_rails_6.0
298
309
  ruby_version: '2.7'
299
310
  rails_version: '6.0'
311
+ - build_gem:
312
+ name: build_on_ruby_2.7_and_rails_6.1_with_integrations
313
+ ruby_version: '2.7'
314
+ rails_version: '6.1'
300
315
  bundler_options: '--with integrations'
301
316
  - build_gem:
302
- name: build_on_ruby_2.7_and_rails_6.0_without_integrations
317
+ name: build_on_ruby_2.7_and_rails_6.1_without_integrations
303
318
  ruby_version: '2.7'
319
+ rails_version: '6.1'
320
+ bundler_options: '--without integrations'
321
+ - build_gem:
322
+ name: build_on_ruby_3.0_and_rails_6.0
323
+ ruby_version: '3.0'
304
324
  rails_version: '6.0'
325
+ - build_gem:
326
+ name: build_on_ruby_3.0_and_rails_6.1_with_integrations
327
+ ruby_version: '3.0'
328
+ rails_version: '6.1'
329
+ bundler_options: '--with integrations'
330
+ - build_gem:
331
+ name: build_on_ruby_3.0_and_rails_6.1_without_integrations
332
+ ruby_version: '3.0'
333
+ rails_version: '6.1'
305
334
  bundler_options: '--without integrations'
335
+ - verify_generator:
336
+ name: verify_generator_on_ruby_2.5_and_rails_5.2
337
+ ruby_version: '2.5'
338
+ rails_version: '5.2'
339
+ - verify_generator:
340
+ name: verify_generator_on_ruby_2.5_and_rails_6.0
341
+ ruby_version: '2.5'
342
+ rails_version: '6.0'
343
+ - verify_generator:
344
+ name: verify_generator_on_ruby_2.5_and_rails_6.1
345
+ ruby_version: '2.5'
346
+ rails_version: '6.1'
347
+ - verify_generator:
348
+ name: verify_generator_on_ruby_2.6_and_rails_5.2
349
+ ruby_version: '2.6'
350
+ rails_version: '5.2'
351
+ - verify_generator:
352
+ name: verify_generator_on_ruby_2.6_and_rails_6.0
353
+ ruby_version: '2.6'
354
+ rails_version: '6.0'
355
+ - verify_generator:
356
+ name: verify_generator_on_ruby_2.6_and_rails_6.1
357
+ ruby_version: '2.6'
358
+ rails_version: '6.1'
359
+ - verify_generator:
360
+ name: verify_generator_on_ruby_2.7_and_rails_5.2
361
+ ruby_version: '2.7'
362
+ rails_version: '5.2'
363
+ - verify_generator:
364
+ name: verify_generator_on_ruby_2.7_and_rails_6.0
365
+ ruby_version: '2.7'
366
+ rails_version: '6.0'
367
+ - verify_generator:
368
+ name: verify_generator_on_ruby_2.7_and_rails_6.1
369
+ ruby_version: '2.7'
370
+ rails_version: '6.1'
371
+ - verify_generator:
372
+ name: verify_generator_on_ruby_3.0_and_rails_6.0
373
+ ruby_version: '3.0'
374
+ rails_version: '6.0'
375
+ - verify_generator:
376
+ name: verify_generator_on_ruby_3.0_and_rails_6.1
377
+ ruby_version: '3.0'
378
+ rails_version: '6.1'
379
+ - test_api:
380
+ ruby_version: '2.7' # Jets supports only Ruby 2.x
306
381
  - rubocop
307
382
  - yardoc
308
383
  - upload-coverage:
309
384
  requires:
310
- - build_on_ruby_2.4_and_rails_4.2
311
- - build_on_ruby_2.4_and_rails_5.0
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
385
  - build_on_ruby_2.5_and_rails_5.2
318
386
  - 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
387
+ - build_on_ruby_2.5_and_rails_6.1
322
388
  - build_on_ruby_2.6_and_rails_5.2
323
389
  - 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
390
+ - build_on_ruby_2.6_and_rails_6.1
326
391
  - 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
392
+ - build_on_ruby_2.7_and_rails_6.0
393
+ - build_on_ruby_2.7_and_rails_6.1_with_integrations
394
+ - build_on_ruby_2.7_and_rails_6.1_without_integrations
395
+ - build_on_ruby_3.0_and_rails_6.0
396
+ - build_on_ruby_3.0_and_rails_6.1_with_integrations
397
+ - build_on_ruby_3.0_and_rails_6.1_without_integrations
329
398
  - release:
330
399
  context: RubyGems API Key
331
400
  requires:
332
- - build_on_ruby_2.4_and_rails_4.2
333
- - build_on_ruby_2.4_and_rails_5.0
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
401
  - build_on_ruby_2.5_and_rails_5.2
340
402
  - 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
403
+ - build_on_ruby_2.5_and_rails_6.1
344
404
  - build_on_ruby_2.6_and_rails_5.2
345
405
  - 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
406
+ - build_on_ruby_2.6_and_rails_6.1
348
407
  - 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
408
+ - build_on_ruby_2.7_and_rails_6.0
409
+ - build_on_ruby_2.7_and_rails_6.1_with_integrations
410
+ - build_on_ruby_2.7_and_rails_6.1_without_integrations
411
+ - build_on_ruby_3.0_and_rails_6.0
412
+ - build_on_ruby_3.0_and_rails_6.1_with_integrations
413
+ - build_on_ruby_3.0_and_rails_6.1_without_integrations
414
+ - verify_generator_on_ruby_2.5_and_rails_5.2
415
+ - verify_generator_on_ruby_2.5_and_rails_6.0
416
+ - verify_generator_on_ruby_2.5_and_rails_6.1
417
+ - verify_generator_on_ruby_2.6_and_rails_5.2
418
+ - verify_generator_on_ruby_2.6_and_rails_6.0
419
+ - verify_generator_on_ruby_2.6_and_rails_6.1
420
+ - verify_generator_on_ruby_2.7_and_rails_5.2
421
+ - verify_generator_on_ruby_2.7_and_rails_6.0
422
+ - verify_generator_on_ruby_2.7_and_rails_6.1
423
+ - verify_generator_on_ruby_3.0_and_rails_6.0
424
+ - verify_generator_on_ruby_3.0_and_rails_6.1
351
425
  - rubocop
352
426
  filters:
353
427
  branches:
@@ -2,16 +2,13 @@ version: 1
2
2
  update_configs:
3
3
  - package_manager: "ruby:bundler"
4
4
  directory: "/"
5
- update_schedule: "weekly"
5
+ update_schedule: "live"
6
6
  default_reviewers:
7
7
  - "ryz310"
8
8
  default_assignees:
9
9
  - "ryz310"
10
10
  default_labels:
11
11
  - "dependabot"
12
- ignored_updates:
13
- - match:
14
- dependency_name: "rubocop*"
15
12
  automerged_updates:
16
13
  - match:
17
14
  dependency_type: "development"
@@ -21,7 +18,7 @@ update_configs:
21
18
  update_type: "semver:patch"
22
19
  - package_manager: "ruby:bundler"
23
20
  directory: "/my_api"
24
- update_schedule: "weekly"
21
+ update_schedule: "live"
25
22
  default_reviewers:
26
23
  - "ryz310"
27
24
  default_assignees:
@@ -5,7 +5,11 @@ require:
5
5
  inherit_from: .rubocop_todo.yml
6
6
 
7
7
  AllCops:
8
- TargetRubyVersion: 2.4
8
+ TargetRubyVersion: 2.5
9
+ NewCops: enable
10
+ Exclude:
11
+ - rails_app/**/*
12
+ - vendor/bundle/**/*
9
13
 
10
14
  Layout/LineLength:
11
15
  Max: 100