my_api_client 0.24.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +5 -23
  3. data/.rubocop.yml +7 -0
  4. data/.rubocop_todo.yml +3 -2
  5. data/CHANGELOG.md +33 -0
  6. data/Gemfile.lock +49 -38
  7. data/README.jp.md +2 -4
  8. data/README.md +7 -3
  9. data/lib/generators/generator_helper.rb +4 -0
  10. data/lib/my_api_client/rspec/stub.rb +1 -1
  11. data/lib/my_api_client/version.rb +1 -1
  12. data/my_api/Gemfile +2 -2
  13. data/my_api/Gemfile.lock +107 -92
  14. data/my_api_client.gemspec +3 -2
  15. data/rails_app/rails_6.0/Gemfile.lock +20 -20
  16. data/rails_app/rails_6.1/Gemfile.lock +21 -21
  17. data/rails_app/rails_7.0/Gemfile.lock +20 -20
  18. metadata +21 -43
  19. data/gemfiles/rails_5.0.gemfile +0 -16
  20. data/gemfiles/rails_5.1.gemfile +0 -16
  21. data/gemfiles/rails_5.2.gemfile +0 -16
  22. data/rails_app/rails_5.2/.rspec +0 -3
  23. data/rails_app/rails_5.2/Gemfile +0 -17
  24. data/rails_app/rails_5.2/Gemfile.lock +0 -180
  25. data/rails_app/rails_5.2/README.md +0 -24
  26. data/rails_app/rails_5.2/Rakefile +0 -8
  27. data/rails_app/rails_5.2/app/controllers/application_controller.rb +0 -4
  28. data/rails_app/rails_5.2/app/jobs/application_job.rb +0 -4
  29. data/rails_app/rails_5.2/bin/bundle +0 -5
  30. data/rails_app/rails_5.2/bin/rails +0 -6
  31. data/rails_app/rails_5.2/bin/rake +0 -6
  32. data/rails_app/rails_5.2/bin/setup +0 -27
  33. data/rails_app/rails_5.2/bin/update +0 -27
  34. data/rails_app/rails_5.2/config/application.rb +0 -37
  35. data/rails_app/rails_5.2/config/boot.rb +0 -6
  36. data/rails_app/rails_5.2/config/credentials.yml.enc +0 -1
  37. data/rails_app/rails_5.2/config/environment.rb +0 -7
  38. data/rails_app/rails_5.2/config/environments/development.rb +0 -41
  39. data/rails_app/rails_5.2/config/environments/production.rb +0 -70
  40. data/rails_app/rails_5.2/config/environments/test.rb +0 -38
  41. data/rails_app/rails_5.2/config/initializers/application_controller_renderer.rb +0 -9
  42. data/rails_app/rails_5.2/config/initializers/backtrace_silencers.rb +0 -8
  43. data/rails_app/rails_5.2/config/initializers/cors.rb +0 -17
  44. data/rails_app/rails_5.2/config/initializers/filter_parameter_logging.rb +0 -6
  45. data/rails_app/rails_5.2/config/initializers/inflections.rb +0 -17
  46. data/rails_app/rails_5.2/config/initializers/mime_types.rb +0 -5
  47. data/rails_app/rails_5.2/config/initializers/wrap_parameters.rb +0 -11
  48. data/rails_app/rails_5.2/config/locales/en.yml +0 -33
  49. data/rails_app/rails_5.2/config/routes.rb +0 -5
  50. data/rails_app/rails_5.2/config/spring.rb +0 -8
  51. data/rails_app/rails_5.2/config.ru +0 -7
  52. data/rails_app/rails_5.2/public/robots.txt +0 -1
  53. data/rails_app/rails_5.2/spec/rails_helper.rb +0 -14
  54. data/rails_app/rails_5.2/spec/spec_helper.rb +0 -13
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # The test environment is used exclusively to run your application's
7
- # test suite. You never need to work with it otherwise. Remember that
8
- # your test database is "scratch space" for the test suite and is wiped
9
- # and recreated between test runs. Don't rely on the data there!
10
- config.cache_classes = true
11
-
12
- # Do not eager load code on boot. This avoids loading your whole application
13
- # just for the purpose of running a single test. If you are using a tool that
14
- # preloads Rails for running tests, you may have to set it to true.
15
- config.eager_load = false
16
-
17
- # Configure public file server for tests with Cache-Control for performance.
18
- config.public_file_server.enabled = true
19
- config.public_file_server.headers = {
20
- 'Cache-Control' => "public, max-age=#{1.hour.to_i}",
21
- }
22
-
23
- # Show full error reports and disable caching.
24
- config.consider_all_requests_local = true
25
- config.action_controller.perform_caching = false
26
-
27
- # Raise exceptions instead of rendering exception templates.
28
- config.action_dispatch.show_exceptions = false
29
-
30
- # Disable request forgery protection in test environment.
31
- config.action_controller.allow_forgery_protection = false
32
-
33
- # Print deprecation notices to the stderr.
34
- config.active_support.deprecation = :stderr
35
-
36
- # Raises error for missing translations
37
- # config.action_view.raise_on_missing_translations = true
38
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # ActiveSupport::Reloader.to_prepare do
5
- # ApplicationController.renderer.defaults.merge!(
6
- # http_host: 'example.org',
7
- # https: false
8
- # )
9
- # end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
5
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
6
-
7
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
8
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # Avoid CORS issues when API is called from the frontend app.
5
- # Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests.
6
-
7
- # Read more: https://github.com/cyu/rack-cors
8
-
9
- # Rails.application.config.middleware.insert_before 0, Rack::Cors do
10
- # allow do
11
- # origins 'example.com'
12
- #
13
- # resource '*',
14
- # headers: :any,
15
- # methods: [:get, :post, :put, :patch, :delete, :options, :head]
16
- # end
17
- # end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Configure sensitive parameters which will be filtered from the log file.
6
- Rails.application.config.filter_parameters += [:password]
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # Add new inflection rules using the following format. Inflections
5
- # are locale specific, and you may define rules for as many different
6
- # locales as you wish. All of these examples are active by default:
7
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
8
- # inflect.plural /^(ox)$/i, '\1en'
9
- # inflect.singular /^(ox)en/i, '\1'
10
- # inflect.irregular 'person', 'people'
11
- # inflect.uncountable %w( fish sheep )
12
- # end
13
-
14
- # These inflection rules are supported but not enabled by default:
15
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
16
- # inflect.acronym 'RESTful'
17
- # end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # Add new mime types for use in respond_to blocks:
5
- # Mime::Type.register "text/richtext", :rtf
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # This file contains settings for ActionController::ParamsWrapper which
6
- # is enabled by default.
7
-
8
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
9
- ActiveSupport.on_load(:action_controller) do
10
- wrap_parameters format: [:json]
11
- end
@@ -1,33 +0,0 @@
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 http://guides.rubyonrails.org/i18n.html.
31
-
32
- en:
33
- hello: "Hello world"
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Rails.application.routes.draw do
4
- # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
5
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- %w[
4
- .ruby-version
5
- .rbenv-vars
6
- tmp/restart.txt
7
- tmp/caching-dev.txt
8
- ].each { |path| Spring.watch(path) }
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
1
- # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
@@ -1,14 +0,0 @@
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
12
- config.infer_spec_type_from_file_location!
13
- config.filter_rails_from_backtrace!
14
- end
@@ -1,13 +0,0 @@
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