my_api_client 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +23 -7
  3. data/.rubocop_todo.yml +1 -1
  4. data/CHANGELOG.md +27 -2
  5. data/Gemfile +2 -0
  6. data/Gemfile.lock +23 -21
  7. data/README.jp.md +10 -10
  8. data/README.md +392 -8
  9. data/gemfiles/rails_7.0.gemfile +15 -0
  10. data/lib/generators/rails/templates/api_client.rb.erb +3 -5
  11. data/lib/generators/rspec/templates/api_client_spec.rb.erb +0 -8
  12. data/lib/my_api_client/version.rb +1 -1
  13. data/my_api/Gemfile +1 -1
  14. data/my_api/Gemfile.lock +68 -66
  15. data/my_api/spec/spec_helper.rb +1 -1
  16. data/my_api_client.gemspec +3 -0
  17. data/rails_app/rails_5.2/Gemfile.lock +3 -3
  18. data/rails_app/rails_6.0/Gemfile.lock +15 -9
  19. data/rails_app/rails_6.1/Gemfile +2 -2
  20. data/rails_app/rails_6.1/Gemfile.lock +3 -3
  21. data/rails_app/rails_6.1/Rakefile +3 -1
  22. data/rails_app/rails_6.1/bin/bundle +28 -20
  23. data/rails_app/rails_6.1/bin/rails +4 -2
  24. data/rails_app/rails_6.1/bin/rake +4 -2
  25. data/rails_app/rails_6.1/bin/setup +3 -1
  26. data/rails_app/rails_6.1/config.ru +3 -1
  27. data/rails_app/rails_7.0/Gemfile +13 -0
  28. data/rails_app/rails_7.0/Gemfile.lock +147 -0
  29. data/rails_app/rails_7.0/README.md +24 -0
  30. data/rails_app/rails_7.0/Rakefile +8 -0
  31. data/rails_app/rails_7.0/app/controllers/application_controller.rb +4 -0
  32. data/rails_app/rails_7.0/app/models/application_record.rb +5 -0
  33. data/rails_app/rails_7.0/bin/bundle +122 -0
  34. data/rails_app/rails_7.0/bin/rails +6 -0
  35. data/rails_app/rails_7.0/bin/rake +6 -0
  36. data/rails_app/rails_7.0/bin/setup +35 -0
  37. data/rails_app/rails_7.0/config/application.rb +41 -0
  38. data/rails_app/rails_7.0/config/boot.rb +5 -0
  39. data/rails_app/rails_7.0/config/credentials.yml.enc +1 -0
  40. data/rails_app/rails_7.0/config/database.yml +25 -0
  41. data/rails_app/rails_7.0/config/environment.rb +7 -0
  42. data/rails_app/rails_7.0/config/environments/development.rb +58 -0
  43. data/rails_app/rails_7.0/config/environments/production.rb +70 -0
  44. data/rails_app/rails_7.0/config/environments/test.rb +52 -0
  45. data/rails_app/rails_7.0/config/initializers/cors.rb +17 -0
  46. data/rails_app/rails_7.0/config/initializers/filter_parameter_logging.rb +8 -0
  47. data/rails_app/rails_7.0/config/initializers/inflections.rb +17 -0
  48. data/rails_app/rails_7.0/config/locales/en.yml +33 -0
  49. data/rails_app/rails_7.0/config/routes.rb +8 -0
  50. data/rails_app/rails_7.0/config.ru +8 -0
  51. data/rails_app/rails_7.0/db/seeds.rb +8 -0
  52. data/rails_app/rails_7.0/public/robots.txt +1 -0
  53. data/rails_app/rails_7.0/spec/rails_helper.rb +14 -0
  54. data/rails_app/rails_7.0/spec/spec_helper.rb +13 -0
  55. metadata +34 -4
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t "hello"
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t("hello") %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # "true": "foo"
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at https://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ Rails.application.routes.draw do
4
+ # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
5
+
6
+ # Defines the root path route ("/")
7
+ # root "articles#index"
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is used by Rack-based servers to start the application.
4
+
5
+ require_relative 'config/environment'
6
+
7
+ run Rails.application
8
+ Rails.application.load_server
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ # This file should contain all the record creation needed to seed the database with its default values.
3
+ # The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
4
+ #
5
+ # Examples:
6
+ #
7
+ # movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }])
8
+ # Character.create(name: "Luke", movie: movies.first)
@@ -0,0 +1 @@
1
+ # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+ ENV['RAILS_ENV'] ||= 'test'
5
+ require File.expand_path('../config/environment', __dir__)
6
+ abort('The Rails environment is running in production mode!') if Rails.env.production?
7
+ require 'rspec/rails'
8
+ require 'my_api_client/rspec'
9
+
10
+ RSpec.configure do |config|
11
+ # config.use_active_record = false # [Workaround] See: https://github.com/rspec/rspec-rails/issues/2417
12
+ config.infer_spec_type_from_file_location!
13
+ config.filter_rails_from_backtrace!
14
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |config|
4
+ config.expect_with :rspec do |expectations|
5
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
6
+ end
7
+
8
+ config.mock_with :rspec do |mocks|
9
+ mocks.verify_partial_doubles = true
10
+ end
11
+
12
+ config.shared_context_metadata_behavior = :apply_to_host_groups
13
+ end
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: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryz310
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-07 00:00:00.000000000 Z
11
+ date: 2021-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -256,6 +256,7 @@ files:
256
256
  - gemfiles/rails_5.2.gemfile
257
257
  - gemfiles/rails_6.0.gemfile
258
258
  - gemfiles/rails_6.1.gemfile
259
+ - gemfiles/rails_7.0.gemfile
259
260
  - lib/generators/generator_helper.rb
260
261
  - lib/generators/rails/USAGE
261
262
  - lib/generators/rails/api_client_generator.rb
@@ -438,10 +439,39 @@ files:
438
439
  - rails_app/rails_6.1/tmp/.keep
439
440
  - rails_app/rails_6.1/tmp/pids/.keep
440
441
  - rails_app/rails_6.1/vendor/.keep
442
+ - rails_app/rails_7.0/Gemfile
443
+ - rails_app/rails_7.0/Gemfile.lock
444
+ - rails_app/rails_7.0/README.md
445
+ - rails_app/rails_7.0/Rakefile
446
+ - rails_app/rails_7.0/app/controllers/application_controller.rb
447
+ - rails_app/rails_7.0/app/models/application_record.rb
448
+ - rails_app/rails_7.0/bin/bundle
449
+ - rails_app/rails_7.0/bin/rails
450
+ - rails_app/rails_7.0/bin/rake
451
+ - rails_app/rails_7.0/bin/setup
452
+ - rails_app/rails_7.0/config.ru
453
+ - rails_app/rails_7.0/config/application.rb
454
+ - rails_app/rails_7.0/config/boot.rb
455
+ - rails_app/rails_7.0/config/credentials.yml.enc
456
+ - rails_app/rails_7.0/config/database.yml
457
+ - rails_app/rails_7.0/config/environment.rb
458
+ - rails_app/rails_7.0/config/environments/development.rb
459
+ - rails_app/rails_7.0/config/environments/production.rb
460
+ - rails_app/rails_7.0/config/environments/test.rb
461
+ - rails_app/rails_7.0/config/initializers/cors.rb
462
+ - rails_app/rails_7.0/config/initializers/filter_parameter_logging.rb
463
+ - rails_app/rails_7.0/config/initializers/inflections.rb
464
+ - rails_app/rails_7.0/config/locales/en.yml
465
+ - rails_app/rails_7.0/config/routes.rb
466
+ - rails_app/rails_7.0/db/seeds.rb
467
+ - rails_app/rails_7.0/public/robots.txt
468
+ - rails_app/rails_7.0/spec/rails_helper.rb
469
+ - rails_app/rails_7.0/spec/spec_helper.rb
441
470
  homepage: https://github.com/ryz310/my_api_client
442
471
  licenses:
443
472
  - MIT
444
- metadata: {}
473
+ metadata:
474
+ rubygems_mfa_required: 'true'
445
475
  post_install_message:
446
476
  rdoc_options: []
447
477
  require_paths:
@@ -457,7 +487,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
457
487
  - !ruby/object:Gem::Version
458
488
  version: '0'
459
489
  requirements: []
460
- rubygems_version: 3.2.22
490
+ rubygems_version: 3.2.32
461
491
  signing_key:
462
492
  specification_version: 4
463
493
  summary: The framework of Web API Client