my_api_client 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +6 -6
  3. data/.rubocop.yml +4 -3
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +47 -0
  6. data/Gemfile.lock +65 -64
  7. data/README.jp.md +2 -2
  8. data/README.md +2 -2
  9. data/example/api_clients/my_error_api_client.rb +1 -1
  10. data/example/api_clients/my_header_api_client.rb +1 -1
  11. data/example/api_clients/my_pagination_api_client.rb +2 -2
  12. data/example/api_clients/my_rest_api_client.rb +10 -10
  13. data/example/api_clients/my_status_api_client.rb +1 -1
  14. data/gemfiles/rails_7.1.gemfile +15 -0
  15. data/gemfiles/rails_7.2.gemfile +15 -0
  16. data/lib/my_api_client/error_handling.rb +1 -1
  17. data/lib/my_api_client/errors/network_error.rb +1 -1
  18. data/lib/my_api_client/errors.rb +1 -1
  19. data/lib/my_api_client/exceptions.rb +1 -1
  20. data/lib/my_api_client/params/params.rb +1 -1
  21. data/lib/my_api_client/params/request.rb +8 -8
  22. data/lib/my_api_client/request/basic.rb +2 -2
  23. data/lib/my_api_client/request/executor.rb +1 -1
  24. data/lib/my_api_client/request/pagination.rb +1 -3
  25. data/lib/my_api_client/request.rb +5 -5
  26. data/lib/my_api_client/rspec/matcher_helper.rb +3 -3
  27. data/lib/my_api_client/rspec/matchers/request_to.rb +1 -1
  28. data/lib/my_api_client/version.rb +1 -1
  29. data/my_api/Gemfile +1 -1
  30. data/my_api/Gemfile.lock +53 -49
  31. data/my_api/app/controllers/error_controller.rb +1 -1
  32. data/my_api/app/controllers/pagination_controller.rb +1 -1
  33. data/my_api/app/controllers/rest_controller.rb +4 -4
  34. data/my_api/app/controllers/status_controller.rb +1 -1
  35. data/my_api/spec/controllers/error_controller_spec.rb +4 -4
  36. data/my_api/spec/controllers/status_controller_spec.rb +3 -3
  37. data/my_api_client.gemspec +2 -1
  38. data/rails_app/rails_6.1/Gemfile.lock +73 -71
  39. data/rails_app/rails_7.0/Gemfile.lock +78 -76
  40. data/rails_app/rails_7.1/.dockerignore +31 -0
  41. data/rails_app/rails_7.1/.rspec +1 -0
  42. data/rails_app/rails_7.1/Dockerfile +55 -0
  43. data/rails_app/rails_7.1/Gemfile +16 -0
  44. data/rails_app/rails_7.1/Gemfile.lock +241 -0
  45. data/rails_app/rails_7.1/README.md +24 -0
  46. data/rails_app/rails_7.1/Rakefile +8 -0
  47. data/rails_app/rails_7.1/app/controllers/application_controller.rb +4 -0
  48. data/rails_app/rails_7.1/app/controllers/concerns/.keep +0 -0
  49. data/rails_app/rails_7.1/app/models/application_record.rb +5 -0
  50. data/rails_app/rails_7.1/app/models/concerns/.keep +0 -0
  51. data/rails_app/rails_7.1/bin/bundle +122 -0
  52. data/rails_app/rails_7.1/bin/docker-entrypoint +8 -0
  53. data/rails_app/rails_7.1/bin/rails +6 -0
  54. data/rails_app/rails_7.1/bin/rake +6 -0
  55. data/rails_app/rails_7.1/bin/setup +35 -0
  56. data/rails_app/rails_7.1/config/application.rb +46 -0
  57. data/rails_app/rails_7.1/config/boot.rb +5 -0
  58. data/rails_app/rails_7.1/config/credentials.yml.enc +1 -0
  59. data/rails_app/rails_7.1/config/database.yml +25 -0
  60. data/rails_app/rails_7.1/config/environment.rb +7 -0
  61. data/rails_app/rails_7.1/config/environments/development.rb +58 -0
  62. data/rails_app/rails_7.1/config/environments/production.rb +74 -0
  63. data/rails_app/rails_7.1/config/environments/test.rb +56 -0
  64. data/rails_app/rails_7.1/config/initializers/cors.rb +17 -0
  65. data/rails_app/rails_7.1/config/initializers/filter_parameter_logging.rb +10 -0
  66. data/rails_app/rails_7.1/config/initializers/inflections.rb +17 -0
  67. data/rails_app/rails_7.1/config/locales/en.yml +31 -0
  68. data/rails_app/rails_7.1/config/puma.rb +46 -0
  69. data/rails_app/rails_7.1/config/routes.rb +12 -0
  70. data/rails_app/rails_7.1/config.ru +8 -0
  71. data/rails_app/rails_7.1/db/seeds.rb +10 -0
  72. data/rails_app/rails_7.1/lib/tasks/.keep +0 -0
  73. data/rails_app/rails_7.1/public/robots.txt +2 -0
  74. data/rails_app/rails_7.1/spec/rails_helper.rb +13 -0
  75. data/rails_app/rails_7.1/spec/spec_helper.rb +13 -0
  76. data/rails_app/rails_7.1/storage/.keep +0 -0
  77. data/rails_app/rails_7.1/tmp/.keep +0 -0
  78. data/rails_app/rails_7.1/tmp/pids/.keep +0 -0
  79. data/rails_app/rails_7.1/tmp/storage/.keep +0 -0
  80. data/rails_app/rails_7.1/vendor/.keep +0 -0
  81. data/rails_app/rails_7.2/.dockerignore +42 -0
  82. data/rails_app/rails_7.2/.github/dependabot.yml +12 -0
  83. data/rails_app/rails_7.2/.github/workflows/ci.yml +55 -0
  84. data/rails_app/rails_7.2/.rspec +1 -0
  85. data/rails_app/rails_7.2/Dockerfile +62 -0
  86. data/rails_app/rails_7.2/Gemfile +15 -0
  87. data/rails_app/rails_7.2/Gemfile.lock +240 -0
  88. data/rails_app/rails_7.2/README.md +24 -0
  89. data/rails_app/rails_7.2/Rakefile +8 -0
  90. data/rails_app/rails_7.2/app/controllers/application_controller.rb +4 -0
  91. data/rails_app/rails_7.2/app/controllers/concerns/.keep +0 -0
  92. data/rails_app/rails_7.2/app/models/application_record.rb +5 -0
  93. data/rails_app/rails_7.2/app/models/concerns/.keep +0 -0
  94. data/rails_app/rails_7.2/bin/brakeman +9 -0
  95. data/rails_app/rails_7.2/bin/bundle +122 -0
  96. data/rails_app/rails_7.2/bin/docker-entrypoint +13 -0
  97. data/rails_app/rails_7.2/bin/rails +6 -0
  98. data/rails_app/rails_7.2/bin/rake +6 -0
  99. data/rails_app/rails_7.2/bin/rubocop +10 -0
  100. data/rails_app/rails_7.2/bin/setup +39 -0
  101. data/rails_app/rails_7.2/config/application.rb +46 -0
  102. data/rails_app/rails_7.2/config/boot.rb +5 -0
  103. data/rails_app/rails_7.2/config/credentials.yml.enc +1 -0
  104. data/rails_app/rails_7.2/config/database.yml +32 -0
  105. data/rails_app/rails_7.2/config/environment.rb +7 -0
  106. data/rails_app/rails_7.2/config/environments/development.rb +59 -0
  107. data/rails_app/rails_7.2/config/environments/production.rb +77 -0
  108. data/rails_app/rails_7.2/config/environments/test.rb +53 -0
  109. data/rails_app/rails_7.2/config/initializers/cors.rb +18 -0
  110. data/rails_app/rails_7.2/config/initializers/filter_parameter_logging.rb +10 -0
  111. data/rails_app/rails_7.2/config/initializers/inflections.rb +18 -0
  112. data/rails_app/rails_7.2/config/locales/en.yml +31 -0
  113. data/rails_app/rails_7.2/config/puma.rb +36 -0
  114. data/rails_app/rails_7.2/config/routes.rb +12 -0
  115. data/rails_app/rails_7.2/config.ru +8 -0
  116. data/rails_app/rails_7.2/db/seeds.rb +11 -0
  117. data/rails_app/rails_7.2/lib/tasks/.keep +0 -0
  118. data/rails_app/rails_7.2/public/robots.txt +3 -0
  119. data/rails_app/rails_7.2/spec/rails_helper.rb +13 -0
  120. data/rails_app/rails_7.2/spec/spec_helper.rb +13 -0
  121. data/rails_app/rails_7.2/storage/.keep +0 -0
  122. data/rails_app/rails_7.2/tmp/.keep +0 -0
  123. data/rails_app/rails_7.2/tmp/pids/.keep +0 -0
  124. data/rails_app/rails_7.2/tmp/storage/.keep +0 -0
  125. data/rails_app/rails_7.2/vendor/.keep +0 -0
  126. metadata +107 -4
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryz310
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubocop-rspec_rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
195
209
  - !ruby/object:Gem::Dependency
196
210
  name: simplecov
197
211
  requirement: !ruby/object:Gem::Requirement
@@ -249,6 +263,7 @@ files:
249
263
  - ".rspec"
250
264
  - ".rubocop.yml"
251
265
  - ".rubocop_todo.yml"
266
+ - ".ruby-version"
252
267
  - CHANGELOG.md
253
268
  - CODE_OF_CONDUCT.md
254
269
  - Gemfile
@@ -268,6 +283,8 @@ files:
268
283
  - example/api_clients/my_status_api_client.rb
269
284
  - gemfiles/rails_6.1.gemfile
270
285
  - gemfiles/rails_7.0.gemfile
286
+ - gemfiles/rails_7.1.gemfile
287
+ - gemfiles/rails_7.2.gemfile
271
288
  - lib/generators/generator_helper.rb
272
289
  - lib/generators/rails/USAGE
273
290
  - lib/generators/rails/api_client_generator.rb
@@ -416,6 +433,92 @@ files:
416
433
  - rails_app/rails_7.0/public/robots.txt
417
434
  - rails_app/rails_7.0/spec/rails_helper.rb
418
435
  - rails_app/rails_7.0/spec/spec_helper.rb
436
+ - rails_app/rails_7.1/.dockerignore
437
+ - rails_app/rails_7.1/.rspec
438
+ - rails_app/rails_7.1/Dockerfile
439
+ - rails_app/rails_7.1/Gemfile
440
+ - rails_app/rails_7.1/Gemfile.lock
441
+ - rails_app/rails_7.1/README.md
442
+ - rails_app/rails_7.1/Rakefile
443
+ - rails_app/rails_7.1/app/controllers/application_controller.rb
444
+ - rails_app/rails_7.1/app/controllers/concerns/.keep
445
+ - rails_app/rails_7.1/app/models/application_record.rb
446
+ - rails_app/rails_7.1/app/models/concerns/.keep
447
+ - rails_app/rails_7.1/bin/bundle
448
+ - rails_app/rails_7.1/bin/docker-entrypoint
449
+ - rails_app/rails_7.1/bin/rails
450
+ - rails_app/rails_7.1/bin/rake
451
+ - rails_app/rails_7.1/bin/setup
452
+ - rails_app/rails_7.1/config.ru
453
+ - rails_app/rails_7.1/config/application.rb
454
+ - rails_app/rails_7.1/config/boot.rb
455
+ - rails_app/rails_7.1/config/credentials.yml.enc
456
+ - rails_app/rails_7.1/config/database.yml
457
+ - rails_app/rails_7.1/config/environment.rb
458
+ - rails_app/rails_7.1/config/environments/development.rb
459
+ - rails_app/rails_7.1/config/environments/production.rb
460
+ - rails_app/rails_7.1/config/environments/test.rb
461
+ - rails_app/rails_7.1/config/initializers/cors.rb
462
+ - rails_app/rails_7.1/config/initializers/filter_parameter_logging.rb
463
+ - rails_app/rails_7.1/config/initializers/inflections.rb
464
+ - rails_app/rails_7.1/config/locales/en.yml
465
+ - rails_app/rails_7.1/config/puma.rb
466
+ - rails_app/rails_7.1/config/routes.rb
467
+ - rails_app/rails_7.1/db/seeds.rb
468
+ - rails_app/rails_7.1/lib/tasks/.keep
469
+ - rails_app/rails_7.1/public/robots.txt
470
+ - rails_app/rails_7.1/spec/rails_helper.rb
471
+ - rails_app/rails_7.1/spec/spec_helper.rb
472
+ - rails_app/rails_7.1/storage/.keep
473
+ - rails_app/rails_7.1/tmp/.keep
474
+ - rails_app/rails_7.1/tmp/pids/.keep
475
+ - rails_app/rails_7.1/tmp/storage/.keep
476
+ - rails_app/rails_7.1/vendor/.keep
477
+ - rails_app/rails_7.2/.dockerignore
478
+ - rails_app/rails_7.2/.github/dependabot.yml
479
+ - rails_app/rails_7.2/.github/workflows/ci.yml
480
+ - rails_app/rails_7.2/.rspec
481
+ - rails_app/rails_7.2/Dockerfile
482
+ - rails_app/rails_7.2/Gemfile
483
+ - rails_app/rails_7.2/Gemfile.lock
484
+ - rails_app/rails_7.2/README.md
485
+ - rails_app/rails_7.2/Rakefile
486
+ - rails_app/rails_7.2/app/controllers/application_controller.rb
487
+ - rails_app/rails_7.2/app/controllers/concerns/.keep
488
+ - rails_app/rails_7.2/app/models/application_record.rb
489
+ - rails_app/rails_7.2/app/models/concerns/.keep
490
+ - rails_app/rails_7.2/bin/brakeman
491
+ - rails_app/rails_7.2/bin/bundle
492
+ - rails_app/rails_7.2/bin/docker-entrypoint
493
+ - rails_app/rails_7.2/bin/rails
494
+ - rails_app/rails_7.2/bin/rake
495
+ - rails_app/rails_7.2/bin/rubocop
496
+ - rails_app/rails_7.2/bin/setup
497
+ - rails_app/rails_7.2/config.ru
498
+ - rails_app/rails_7.2/config/application.rb
499
+ - rails_app/rails_7.2/config/boot.rb
500
+ - rails_app/rails_7.2/config/credentials.yml.enc
501
+ - rails_app/rails_7.2/config/database.yml
502
+ - rails_app/rails_7.2/config/environment.rb
503
+ - rails_app/rails_7.2/config/environments/development.rb
504
+ - rails_app/rails_7.2/config/environments/production.rb
505
+ - rails_app/rails_7.2/config/environments/test.rb
506
+ - rails_app/rails_7.2/config/initializers/cors.rb
507
+ - rails_app/rails_7.2/config/initializers/filter_parameter_logging.rb
508
+ - rails_app/rails_7.2/config/initializers/inflections.rb
509
+ - rails_app/rails_7.2/config/locales/en.yml
510
+ - rails_app/rails_7.2/config/puma.rb
511
+ - rails_app/rails_7.2/config/routes.rb
512
+ - rails_app/rails_7.2/db/seeds.rb
513
+ - rails_app/rails_7.2/lib/tasks/.keep
514
+ - rails_app/rails_7.2/public/robots.txt
515
+ - rails_app/rails_7.2/spec/rails_helper.rb
516
+ - rails_app/rails_7.2/spec/spec_helper.rb
517
+ - rails_app/rails_7.2/storage/.keep
518
+ - rails_app/rails_7.2/tmp/.keep
519
+ - rails_app/rails_7.2/tmp/pids/.keep
520
+ - rails_app/rails_7.2/tmp/storage/.keep
521
+ - rails_app/rails_7.2/vendor/.keep
419
522
  homepage: https://github.com/ryz310/my_api_client
420
523
  licenses:
421
524
  - MIT
@@ -429,14 +532,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
429
532
  requirements:
430
533
  - - ">="
431
534
  - !ruby/object:Gem::Version
432
- version: 3.0.0
535
+ version: 3.1.0
433
536
  required_rubygems_version: !ruby/object:Gem::Requirement
434
537
  requirements:
435
538
  - - ">="
436
539
  - !ruby/object:Gem::Version
437
540
  version: '0'
438
541
  requirements: []
439
- rubygems_version: 3.4.19
542
+ rubygems_version: 3.5.14
440
543
  signing_key:
441
544
  specification_version: 4
442
545
  summary: The framework of Web API Client