my_api_client 0.14.0.pre → 0.17.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.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +179 -38
  3. data/.dependabot/config.yml +19 -1
  4. data/.envrc.skeleton +1 -0
  5. data/.rubocop.yml +9 -1
  6. data/.rubocop_challenge.yml +5 -0
  7. data/.rubocop_todo.yml +29 -1
  8. data/CHANGELOG.md +177 -1
  9. data/Gemfile.lock +47 -45
  10. data/README.jp.md +156 -21
  11. data/bin/console +4 -0
  12. data/example/api_clients/application_api_client.rb +13 -0
  13. data/example/api_clients/my_error_api_client.rb +34 -0
  14. data/example/api_clients/my_errors.rb +27 -0
  15. data/example/api_clients/my_pagination_api_client.rb +18 -0
  16. data/example/api_clients/my_rest_api_client.rb +48 -0
  17. data/example/api_clients/my_status_api_client.rb +22 -0
  18. data/lib/generators/rails/templates/application_api_client.rb.erb +0 -11
  19. data/lib/generators/rspec/templates/api_client_spec.rb.erb +22 -15
  20. data/lib/my_api_client.rb +7 -0
  21. data/lib/my_api_client/base.rb +4 -2
  22. data/lib/my_api_client/default_error_handlers.rb +64 -0
  23. data/lib/my_api_client/error_handling.rb +6 -6
  24. data/lib/my_api_client/error_handling/generator.rb +23 -7
  25. data/lib/my_api_client/errors.rb +1 -53
  26. data/lib/my_api_client/errors/api_limit_error.rb +6 -0
  27. data/lib/my_api_client/errors/client_error.rb +93 -0
  28. data/lib/my_api_client/errors/network_error.rb +43 -0
  29. data/lib/my_api_client/errors/server_error.rb +42 -0
  30. data/lib/my_api_client/request.rb +29 -34
  31. data/lib/my_api_client/request/basic.rb +32 -0
  32. data/lib/my_api_client/request/executor.rb +1 -1
  33. data/lib/my_api_client/request/pagination.rb +39 -0
  34. data/lib/my_api_client/rspec/matchers/request_to.rb +3 -4
  35. data/lib/my_api_client/version.rb +1 -1
  36. data/my_api/.envrc.skeleton +3 -0
  37. data/my_api/.gitignore +14 -0
  38. data/my_api/.jetskeep +1 -0
  39. data/my_api/.rspec +3 -0
  40. data/my_api/.ruby-version +1 -0
  41. data/my_api/Gemfile +23 -0
  42. data/my_api/Gemfile.lock +243 -0
  43. data/my_api/Procfile +7 -0
  44. data/my_api/README.md +54 -0
  45. data/my_api/Rakefile +4 -0
  46. data/my_api/app/controllers/application_controller.rb +5 -0
  47. data/my_api/app/controllers/error_controller.rb +21 -0
  48. data/my_api/app/controllers/pagination_controller.rb +58 -0
  49. data/my_api/app/controllers/rest_controller.rb +60 -0
  50. data/my_api/app/controllers/status_controller.rb +11 -0
  51. data/my_api/app/helpers/application_helper.rb +5 -0
  52. data/my_api/app/jobs/application_job.rb +7 -0
  53. data/my_api/app/models/application_item.rb +5 -0
  54. data/my_api/config.ru +7 -0
  55. data/my_api/config/application.rb +73 -0
  56. data/my_api/config/dynamodb.yml +22 -0
  57. data/my_api/config/environments/development.rb +9 -0
  58. data/my_api/config/environments/production.rb +11 -0
  59. data/my_api/config/environments/test.rb +9 -0
  60. data/my_api/config/routes.rb +17 -0
  61. data/my_api/db/.gitkeep +0 -0
  62. data/my_api/public/404.html +67 -0
  63. data/my_api/public/422.html +67 -0
  64. data/my_api/public/500.html +66 -0
  65. data/my_api/public/favicon.ico +0 -0
  66. data/my_api/public/index.html +91 -0
  67. data/my_api/spec/controllers/error_controller_spec.rb +43 -0
  68. data/my_api/spec/controllers/pagination_controller_spec.rb +73 -0
  69. data/my_api/spec/controllers/rest_controller_spec.rb +99 -0
  70. data/my_api/spec/controllers/status_controller_spec.rb +47 -0
  71. data/my_api/spec/fixtures/payloads/posts-index.json +51 -0
  72. data/my_api/spec/fixtures/payloads/posts-show.json +53 -0
  73. data/my_api/spec/spec_helper.rb +31 -0
  74. data/rails_app/rails_5.2/.rspec +3 -0
  75. data/rails_app/rails_5.2/Gemfile +18 -0
  76. data/rails_app/rails_5.2/Gemfile.lock +171 -0
  77. data/rails_app/rails_5.2/README.md +24 -0
  78. data/rails_app/rails_5.2/Rakefile +8 -0
  79. data/rails_app/rails_5.2/app/controllers/application_controller.rb +4 -0
  80. data/rails_app/rails_5.2/app/jobs/application_job.rb +4 -0
  81. data/rails_app/rails_5.2/bin/bundle +5 -0
  82. data/rails_app/rails_5.2/bin/rails +6 -0
  83. data/rails_app/rails_5.2/bin/rake +6 -0
  84. data/rails_app/rails_5.2/bin/setup +27 -0
  85. data/rails_app/rails_5.2/bin/update +27 -0
  86. data/rails_app/rails_5.2/config.ru +7 -0
  87. data/rails_app/rails_5.2/config/application.rb +37 -0
  88. data/rails_app/rails_5.2/config/boot.rb +6 -0
  89. data/rails_app/rails_5.2/config/credentials.yml.enc +1 -0
  90. data/rails_app/rails_5.2/config/environment.rb +7 -0
  91. data/rails_app/rails_5.2/config/environments/development.rb +41 -0
  92. data/rails_app/rails_5.2/config/environments/production.rb +70 -0
  93. data/rails_app/rails_5.2/config/environments/test.rb +38 -0
  94. data/rails_app/rails_5.2/config/initializers/application_controller_renderer.rb +9 -0
  95. data/rails_app/rails_5.2/config/initializers/backtrace_silencers.rb +8 -0
  96. data/rails_app/rails_5.2/config/initializers/cors.rb +17 -0
  97. data/rails_app/rails_5.2/config/initializers/filter_parameter_logging.rb +6 -0
  98. data/rails_app/rails_5.2/config/initializers/inflections.rb +17 -0
  99. data/rails_app/rails_5.2/config/initializers/mime_types.rb +5 -0
  100. data/rails_app/rails_5.2/config/initializers/wrap_parameters.rb +11 -0
  101. data/rails_app/rails_5.2/config/locales/en.yml +33 -0
  102. data/rails_app/rails_5.2/config/routes.rb +5 -0
  103. data/rails_app/rails_5.2/config/spring.rb +8 -0
  104. data/rails_app/rails_5.2/public/robots.txt +1 -0
  105. data/rails_app/rails_5.2/spec/rails_helper.rb +14 -0
  106. data/rails_app/rails_5.2/spec/spec_helper.rb +13 -0
  107. data/rails_app/rails_6.0/.rspec +3 -0
  108. data/rails_app/rails_6.0/Gemfile +17 -0
  109. data/rails_app/rails_6.0/Gemfile.lock +186 -0
  110. data/rails_app/rails_6.0/README.md +24 -0
  111. data/rails_app/rails_6.0/Rakefile +8 -0
  112. data/rails_app/rails_6.0/app/controllers/application_controller.rb +4 -0
  113. data/rails_app/rails_6.0/app/jobs/application_job.rb +9 -0
  114. data/rails_app/rails_6.0/bin/rails +6 -0
  115. data/rails_app/rails_6.0/bin/rake +6 -0
  116. data/rails_app/rails_6.0/bin/setup +27 -0
  117. data/rails_app/rails_6.0/config.ru +7 -0
  118. data/rails_app/rails_6.0/config/application.rb +39 -0
  119. data/rails_app/rails_6.0/config/boot.rb +6 -0
  120. data/rails_app/rails_6.0/config/credentials.yml.enc +1 -0
  121. data/rails_app/rails_6.0/config/environment.rb +7 -0
  122. data/rails_app/rails_6.0/config/environments/development.rb +39 -0
  123. data/rails_app/rails_6.0/config/environments/production.rb +90 -0
  124. data/rails_app/rails_6.0/config/environments/test.rb +41 -0
  125. data/rails_app/rails_6.0/config/initializers/application_controller_renderer.rb +9 -0
  126. data/rails_app/rails_6.0/config/initializers/backtrace_silencers.rb +8 -0
  127. data/rails_app/rails_6.0/config/initializers/cors.rb +17 -0
  128. data/rails_app/rails_6.0/config/initializers/filter_parameter_logging.rb +6 -0
  129. data/rails_app/rails_6.0/config/initializers/inflections.rb +17 -0
  130. data/rails_app/rails_6.0/config/initializers/mime_types.rb +5 -0
  131. data/rails_app/rails_6.0/config/initializers/wrap_parameters.rb +11 -0
  132. data/rails_app/rails_6.0/config/locales/en.yml +33 -0
  133. data/rails_app/rails_6.0/config/routes.rb +5 -0
  134. data/rails_app/rails_6.0/config/spring.rb +8 -0
  135. data/rails_app/rails_6.0/public/robots.txt +1 -0
  136. data/rails_app/rails_6.0/spec/rails_helper.rb +14 -0
  137. data/rails_app/rails_6.0/spec/spec_helper.rb +13 -0
  138. metadata +120 -5
  139. data/renovate.json +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d52de78feca8df4a1daac75f796382190d0f383c5f0e379111544d18ae863627
4
- data.tar.gz: 76fd03b48893738aa1a1953592c877eba6dd43a6b9c4066a197453f9425ecfa7
3
+ metadata.gz: 4e3243e1c615b0f94cd59c9b0c47c9c8de69dd17c3113a0a5f32e3d1dfaebff5
4
+ data.tar.gz: 8b3405efa79ef2c94aa97b0bbb8b90e1c445f2b27bbe590d70a1cc2efac49466
5
5
  SHA512:
6
- metadata.gz: 95069064c4d7e6f31abbe302db40d11f574726c11631513d3e40b3fd158e77e95ab81079d0fd4033833aac826722455938fc69605acbee0c2ecb58b11a3c949f
7
- data.tar.gz: 2c5fceee08ba837afb4901feca3d531e09c8a5d4c2ba6756b2eddd9f185050686e1eed304e077f82aa2f4aa85fe1cb723c17ec7de32470210fc1347cc94ea5fa
6
+ metadata.gz: 7ddd98c45754dd5bc65695e73671debea7467bc961bc35cc4ad5167d421e407260fd941eacc1ef264eed44ce588ef2a739cd075254353e14889bcafe176618f3
7
+ data.tar.gz: 574d774f927aca3693b7f11bb2d1aae12d1300625b492ccfb8c31d1313856c6f754f3d06524b85d60504bafac9f6b6ec2b89e9bdf3eb42995ef0658bbc39459e
@@ -25,12 +25,25 @@ references:
25
25
  default: ''
26
26
 
27
27
  executors:
28
- default:
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
+ working_directory: ~/repo/my_api
34
+ gem_executor:
35
+ parameters:
36
+ <<: *ruby_version
37
+ docker:
38
+ - image: circleci/ruby:<< parameters.ruby_version >>
33
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 >>
34
47
 
35
48
  commands:
36
49
  modify_active_support_version:
@@ -41,8 +54,28 @@ commands:
41
54
  - run: |
42
55
  cp gemfiles/rails_<< parameters.rails_version >>.gemfile Gemfile
43
56
  bundle update activesupport
44
- run_rspec:
45
- description: Run RSpec
57
+ run_rspec_for_api:
58
+ description: Run RSpec for the API
59
+ steps:
60
+ - run:
61
+ name: Execute RSpec
62
+ command: |
63
+ bundle exec rspec --format documentation \
64
+ --color \
65
+ --format RspecJunitFormatter
66
+ deploy_api_server:
67
+ description: Deploy the API server on the AWS
68
+ steps:
69
+ - run:
70
+ name: Install RSync
71
+ command: sudo apt-get install -y rsync
72
+ - run:
73
+ # This command is not currently work. It could't reference uploaded gem file.
74
+ # You can execute `$ bundle exec jets deploy` on your local.
75
+ name: Deploy the API server with jets
76
+ command: JETS_AGREE=yes bundle exec jets deploy
77
+ run_rspec_for_gem:
78
+ description: Run RSpec for the gem
46
79
  steps:
47
80
  - code-climate/install
48
81
  - run:
@@ -114,40 +147,100 @@ commands:
114
147
  <<: *ruby_version
115
148
  <<: *bundler_options
116
149
  steps:
117
- - checkout
150
+ - checkout:
151
+ path: ~/repo
118
152
  - run:
119
153
  name: Install Bundler 2.x
120
- command: gem install bundler:2.1.2
154
+ command: gem install bundler -v '~> 2.0'
121
155
  - ruby-orbs/bundle-install:
122
156
  cache_key_prefix: v1-dependencies-<< parameters.ruby_version >>
123
157
  bundle_extra_args: << parameters.bundler_options >>
124
- test_and_build:
125
- description: Build the RubyGem
158
+ restore_bundled_with: false
159
+ test_and_deploy_for_api:
160
+ description: Test and build the API
161
+ steps:
162
+ - run_rspec_for_api
163
+ - deploy_api_server
164
+ test_and_build_for_gem:
165
+ description: Test and build the RubyGem
126
166
  parameters:
127
167
  <<: *rails_version
128
168
  steps:
129
169
  - modify_active_support_version:
130
170
  rails_version: << parameters.rails_version >>
131
- - run_rspec
171
+ - run_rspec_for_gem
132
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
+ - run:
185
+ name: Check the API client files exists
186
+ command: |
187
+ test -e "app/api_clients/application_api_client.rb" & \
188
+ test -e "app/api_clients/path/to/resource_api_client.rb" & \
189
+ test -e "spec/api_clients/path/to/resource_api_client_spec.rb"
190
+ - run:
191
+ name: Run rspec with the generated spec file
192
+ command: bundle exec rspec -f d spec/api_clients/path/to
133
193
 
134
194
  jobs:
135
- build:
195
+ test_api:
196
+ parameters:
197
+ <<: *ruby_version
198
+ executor:
199
+ name: api_executor
200
+ ruby_version: << parameters.ruby_version >>
201
+ steps:
202
+ - setup:
203
+ ruby_version: << parameters.ruby_version >>
204
+ - run_rspec_for_api
205
+ deploy_api:
206
+ parameters:
207
+ <<: *ruby_version
208
+ executor:
209
+ name: api_executor
210
+ ruby_version: << parameters.ruby_version >>
211
+ steps:
212
+ - setup:
213
+ ruby_version: << parameters.ruby_version >>
214
+ - test_and_deploy_for_api
215
+ build_gem:
136
216
  parameters:
137
217
  <<: *ruby_version
138
218
  <<: *rails_version
139
219
  <<: *bundler_options
140
220
  executor:
141
- name: default
221
+ name: gem_executor
142
222
  ruby_version: << parameters.ruby_version >>
143
223
  steps:
144
224
  - setup:
145
225
  ruby_version: << parameters.ruby_version >>
146
226
  bundler_options: << parameters.bundler_options >>
147
- - test_and_build:
227
+ - test_and_build_for_gem:
228
+ rails_version: << parameters.rails_version >>
229
+ verify_generator:
230
+ parameters:
231
+ <<: *ruby_version
232
+ <<: *rails_version
233
+ executor:
234
+ name: rails_executor
235
+ ruby_version: << parameters.ruby_version >>
236
+ rails_version: << parameters.rails_version >>
237
+ steps:
238
+ - setup:
239
+ ruby_version: << parameters.ruby_version >>
240
+ - verify_api_client_generator:
148
241
  rails_version: << parameters.rails_version >>
149
242
  upload-coverage:
150
- executor: default
243
+ executor: gem_executor
151
244
  steps:
152
245
  - attach_workspace:
153
246
  at: ~/repo
@@ -157,22 +250,22 @@ jobs:
157
250
  parts: 19
158
251
  - code-climate/upload-coverage
159
252
  rubocop:
160
- executor: default
253
+ executor: gem_executor
161
254
  steps:
162
255
  - setup
163
256
  - rubocop
164
257
  yardoc:
165
- executor: default
258
+ executor: gem_executor
166
259
  steps:
167
260
  - setup
168
261
  - yardoc
169
262
  rubocop_challenge:
170
- executor: default
263
+ executor: gem_executor
171
264
  steps:
172
265
  - checkout
173
266
  - rubocop_challenge
174
267
  release:
175
- executor: default
268
+ executor: gem_executor
176
269
  steps:
177
270
  - setup
178
271
  - release
@@ -182,84 +275,113 @@ workflows:
182
275
 
183
276
  commit:
184
277
  jobs:
185
- - build:
278
+ - build_gem:
186
279
  name: build_on_ruby_2.4_and_rails_4.2
187
280
  ruby_version: '2.4'
188
281
  rails_version: '4.2'
189
- - build:
282
+ - build_gem:
190
283
  name: build_on_ruby_2.4_and_rails_5.0
191
284
  ruby_version: '2.4'
192
285
  rails_version: '5.0'
193
- - build:
286
+ - build_gem:
194
287
  name: build_on_ruby_2.4_and_rails_5.1
195
288
  ruby_version: '2.4'
196
289
  rails_version: '5.1'
197
- - build:
290
+ - build_gem:
198
291
  name: build_on_ruby_2.4_and_rails_5.2
199
292
  ruby_version: '2.4'
200
293
  rails_version: '5.2'
201
- - build:
294
+ - build_gem:
202
295
  name: build_on_ruby_2.5_and_rails_4.2
203
296
  ruby_version: '2.5'
204
297
  rails_version: '4.2'
205
- - build:
298
+ - build_gem:
206
299
  name: build_on_ruby_2.5_and_rails_5.0
207
300
  ruby_version: '2.5'
208
301
  rails_version: '5.0'
209
- - build:
302
+ - build_gem:
210
303
  name: build_on_ruby_2.5_and_rails_5.1
211
304
  ruby_version: '2.5'
212
305
  rails_version: '5.1'
213
- - build:
306
+ - build_gem:
214
307
  name: build_on_ruby_2.5_and_rails_5.2
215
308
  ruby_version: '2.5'
216
309
  rails_version: '5.2'
217
- - build:
310
+ - build_gem:
218
311
  name: build_on_ruby_2.5_and_rails_6.0
219
312
  ruby_version: '2.5'
220
313
  rails_version: '6.0'
221
- - build:
314
+ - build_gem:
222
315
  name: build_on_ruby_2.6_and_rails_4.2
223
316
  ruby_version: '2.6'
224
317
  rails_version: '4.2'
225
- - build:
318
+ - build_gem:
226
319
  name: build_on_ruby_2.6_and_rails_5.0
227
320
  ruby_version: '2.6'
228
321
  rails_version: '5.0'
229
- - build:
322
+ - build_gem:
230
323
  name: build_on_ruby_2.6_and_rails_5.1
231
324
  ruby_version: '2.6'
232
325
  rails_version: '5.1'
233
- - build:
326
+ - build_gem:
234
327
  name: build_on_ruby_2.6_and_rails_5.2
235
328
  ruby_version: '2.6'
236
329
  rails_version: '5.2'
237
- - build:
330
+ - build_gem:
238
331
  name: build_on_ruby_2.6_and_rails_6.0
239
332
  ruby_version: '2.6'
240
333
  rails_version: '6.0'
241
- - build:
334
+ - build_gem:
242
335
  name: build_on_ruby_2.7_and_rails_5.0
243
336
  ruby_version: '2.7'
244
337
  rails_version: '5.0'
245
- - build:
338
+ - build_gem:
246
339
  name: build_on_ruby_2.7_and_rails_5.1
247
340
  ruby_version: '2.7'
248
341
  rails_version: '5.1'
249
- - build:
342
+ - build_gem:
250
343
  name: build_on_ruby_2.7_and_rails_5.2
251
344
  ruby_version: '2.7'
252
345
  rails_version: '5.2'
253
- - build:
346
+ - build_gem:
254
347
  name: build_on_ruby_2.7_and_rails_6.0_with_integrations
255
348
  ruby_version: '2.7'
256
349
  rails_version: '6.0'
257
350
  bundler_options: '--with integrations'
258
- - build:
351
+ - build_gem:
259
352
  name: build_on_ruby_2.7_and_rails_6.0_without_integrations
260
353
  ruby_version: '2.7'
261
354
  rails_version: '6.0'
262
355
  bundler_options: '--without integrations'
356
+ - verify_generator:
357
+ name: verify_generator_on_ruby_2.4_and_rails_5.2
358
+ ruby_version: '2.4'
359
+ rails_version: '5.2'
360
+ - verify_generator:
361
+ name: verify_generator_on_ruby_2.5_and_rails_5.2
362
+ ruby_version: '2.5'
363
+ rails_version: '5.2'
364
+ - verify_generator:
365
+ name: verify_generator_on_ruby_2.5_and_rails_6.0
366
+ ruby_version: '2.5'
367
+ rails_version: '6.0'
368
+ - verify_generator:
369
+ name: verify_generator_on_ruby_2.6_and_rails_5.2
370
+ ruby_version: '2.6'
371
+ rails_version: '5.2'
372
+ - verify_generator:
373
+ name: verify_generator_on_ruby_2.6_and_rails_6.0
374
+ ruby_version: '2.6'
375
+ rails_version: '6.0'
376
+ - verify_generator:
377
+ name: verify_generator_on_ruby_2.7_and_rails_5.2
378
+ ruby_version: '2.7'
379
+ rails_version: '5.2'
380
+ - verify_generator:
381
+ name: verify_generator_on_ruby_2.7_and_rails_6.0
382
+ ruby_version: '2.7'
383
+ rails_version: '6.0'
384
+ - test_api
263
385
  - rubocop
264
386
  - yardoc
265
387
  - upload-coverage:
@@ -305,6 +427,13 @@ workflows:
305
427
  - build_on_ruby_2.7_and_rails_5.2
306
428
  - build_on_ruby_2.7_and_rails_6.0_with_integrations
307
429
  - build_on_ruby_2.7_and_rails_6.0_without_integrations
430
+ - verify_generator_on_ruby_2.4_and_rails_5.2
431
+ - verify_generator_on_ruby_2.5_and_rails_5.2
432
+ - verify_generator_on_ruby_2.5_and_rails_6.0
433
+ - verify_generator_on_ruby_2.6_and_rails_5.2
434
+ - verify_generator_on_ruby_2.6_and_rails_6.0
435
+ - verify_generator_on_ruby_2.7_and_rails_5.2
436
+ - verify_generator_on_ruby_2.7_and_rails_6.0
308
437
  - rubocop
309
438
  filters:
310
439
  branches:
@@ -317,11 +446,23 @@ workflows:
317
446
  cron: "30 23 * * *" # 8:30am every day (JST)
318
447
  filters:
319
448
  branches:
320
- only:
321
- - master
449
+ only: [master]
322
450
  jobs:
323
451
  - rubocop_challenge
324
452
 
453
+ # deploy_api_server:
454
+ # triggers:
455
+ # - schedule:
456
+ # cron: "0 12 * * *" # 3:00am every day (JST)
457
+ # filters:
458
+ # branches:
459
+ # only: [master]
460
+ # jobs:
461
+ # - deploy_api:
462
+ # ruby_version: '2.5'
463
+ # - build_gem:
464
+ # requires: [deploy_api]
465
+
325
466
  experimental:
326
467
  notify:
327
468
  branches:
@@ -2,9 +2,27 @@ version: 1
2
2
  update_configs:
3
3
  - package_manager: "ruby:bundler"
4
4
  directory: "/"
5
- update_schedule: "daily"
5
+ update_schedule: "live"
6
6
  default_reviewers:
7
7
  - "ryz310"
8
+ default_assignees:
9
+ - "ryz310"
10
+ default_labels:
11
+ - "dependabot"
12
+ automerged_updates:
13
+ - match:
14
+ dependency_type: "development"
15
+ update_type: "all"
16
+ - match:
17
+ dependency_type: "production"
18
+ update_type: "semver:patch"
19
+ - package_manager: "ruby:bundler"
20
+ directory: "/my_api"
21
+ update_schedule: "live"
22
+ default_reviewers:
23
+ - "ryz310"
24
+ default_assignees:
25
+ - "ryz310"
8
26
  default_labels:
9
27
  - "dependabot"
10
28
  automerged_updates:
@@ -1 +1,2 @@
1
1
  export GITHUB_ACCESS_TOKEN={GITHUB_ACCESS_TOKEN}
2
+ export MY_API_ENDPOINT={API gateway endtpoint of "my_api" for integration testing}
@@ -6,22 +6,29 @@ inherit_from: .rubocop_todo.yml
6
6
 
7
7
  AllCops:
8
8
  TargetRubyVersion: 2.4
9
+ NewCops: enable
10
+ Exclude:
11
+ - rails_app/**/*
12
+ - vendor/bundle/**/*
9
13
 
10
14
  Layout/LineLength:
11
15
  Max: 100
16
+ Exclude:
17
+ - my_api/config/application.rb
12
18
 
13
19
  Metrics/BlockLength:
14
20
  Exclude:
15
21
  - 'my_api_client.gemspec'
16
22
  - 'lib/my_api_client/rspec/matchers/**/*'
17
23
  - 'spec/**/*'
24
+ - 'my_api/spec/**/*'
18
25
 
19
26
  Metrics/MethodLength:
20
27
  Max: 15
21
28
 
22
29
  Naming/AccessorMethodName:
23
30
  Exclude:
24
- - spec/dummy_app/api_clients/example_api_client.rb
31
+ - example/api_clients/**/*
25
32
  - spec/lib/my_api_client/rspec/matchers/be_handled_as_an_error_spec.rb
26
33
 
27
34
  Style/TrailingCommaInArrayLiteral:
@@ -32,6 +39,7 @@ Style/TrailingCommaInHashLiteral:
32
39
 
33
40
  RSpec/DescribeClass:
34
41
  Exclude:
42
+ - 'spec/integrations/api_clients/**/*'
35
43
  - 'spec/lib/my_api_client/rspec/matchers/**/*'
36
44
 
37
45
  RSpec/ExampleLength:
@@ -0,0 +1,5 @@
1
+ ---
2
+ Ignore:
3
+ - Performance/StartWith
4
+ - Style/HashTransformValues
5
+ - Style/StringConcatenation