my_api_client 0.18.0 → 0.19.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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +73 -45
  3. data/.rubocop_challenge.yml +0 -4
  4. data/.rubocop_todo.yml +1 -1
  5. data/CHANGELOG.md +27 -0
  6. data/Gemfile.lock +35 -33
  7. data/README.jp.md +2 -2
  8. data/gemfiles/rails_6.1.gemfile +15 -0
  9. data/lib/my_api_client/base.rb +2 -9
  10. data/lib/my_api_client/version.rb +1 -1
  11. data/my_api/Gemfile.lock +36 -34
  12. data/my_api/app/controllers/pagination_controller.rb +1 -1
  13. data/my_api_client.gemspec +1 -1
  14. data/rails_app/rails_5.2/Gemfile.lock +12 -9
  15. data/rails_app/rails_5.2/config/environments/production.rb +1 -1
  16. data/rails_app/rails_6.0/Gemfile.lock +12 -8
  17. data/rails_app/rails_6.0/config/environments/production.rb +1 -1
  18. data/rails_app/rails_6.1/.gitattributes +8 -0
  19. data/rails_app/rails_6.1/.gitignore +28 -0
  20. data/rails_app/rails_6.1/.rspec +3 -0
  21. data/rails_app/rails_6.1/Gemfile +17 -0
  22. data/rails_app/rails_6.1/Gemfile.lock +197 -0
  23. data/rails_app/rails_6.1/README.md +24 -0
  24. data/rails_app/rails_6.1/Rakefile +6 -0
  25. data/rails_app/rails_6.1/app/controllers/application_controller.rb +4 -0
  26. data/rails_app/rails_6.1/app/controllers/concerns/.keep +0 -0
  27. data/rails_app/rails_6.1/app/javascript/.keep +0 -0
  28. data/rails_app/rails_6.1/app/models/application_record.rb +5 -0
  29. data/rails_app/rails_6.1/app/models/concerns/.keep +0 -0
  30. data/rails_app/rails_6.1/bin/bundle +114 -0
  31. data/rails_app/rails_6.1/bin/rails +4 -0
  32. data/rails_app/rails_6.1/bin/rake +4 -0
  33. data/rails_app/rails_6.1/bin/setup +33 -0
  34. data/rails_app/rails_6.1/config.ru +6 -0
  35. data/rails_app/rails_6.1/config/application.rb +42 -0
  36. data/rails_app/rails_6.1/config/boot.rb +5 -0
  37. data/rails_app/rails_6.1/config/credentials.yml.enc +1 -0
  38. data/rails_app/rails_6.1/config/database.yml +25 -0
  39. data/rails_app/rails_6.1/config/environment.rb +7 -0
  40. data/rails_app/rails_6.1/config/environments/development.rb +59 -0
  41. data/rails_app/rails_6.1/config/environments/production.rb +97 -0
  42. data/rails_app/rails_6.1/config/environments/test.rb +51 -0
  43. data/rails_app/rails_6.1/config/initializers/application_controller_renderer.rb +9 -0
  44. data/rails_app/rails_6.1/config/initializers/backtrace_silencers.rb +10 -0
  45. data/rails_app/rails_6.1/config/initializers/cors.rb +17 -0
  46. data/rails_app/rails_6.1/config/initializers/filter_parameter_logging.rb +8 -0
  47. data/rails_app/rails_6.1/config/initializers/inflections.rb +17 -0
  48. data/rails_app/rails_6.1/config/initializers/mime_types.rb +5 -0
  49. data/rails_app/rails_6.1/config/initializers/wrap_parameters.rb +16 -0
  50. data/rails_app/rails_6.1/config/locales/en.yml +33 -0
  51. data/rails_app/rails_6.1/config/routes.rb +5 -0
  52. data/rails_app/rails_6.1/db/seeds.rb +8 -0
  53. data/rails_app/rails_6.1/lib/tasks/.keep +0 -0
  54. data/rails_app/rails_6.1/public/robots.txt +1 -0
  55. data/rails_app/rails_6.1/spec/rails_helper.rb +14 -0
  56. data/rails_app/rails_6.1/spec/spec_helper.rb +13 -0
  57. data/rails_app/rails_6.1/tmp/.keep +0 -0
  58. data/rails_app/rails_6.1/tmp/pids/.keep +0 -0
  59. data/rails_app/rails_6.1/vendor/.keep +0 -0
  60. metadata +48 -5
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/integer/time'
4
+
5
+ # The test environment is used exclusively to run your application's
6
+ # test suite. You never need to work with it otherwise. Remember that
7
+ # your test database is "scratch space" for the test suite and is wiped
8
+ # and recreated between test runs. Don't rely on the data there!
9
+
10
+ Rails.application.configure do
11
+ # Settings specified here will take precedence over those in config/application.rb.
12
+
13
+ config.cache_classes = true
14
+
15
+ # Do not eager load code on boot. This avoids loading your whole application
16
+ # just for the purpose of running a single test. If you are using a tool that
17
+ # preloads Rails for running tests, you may have to set it to true.
18
+ config.eager_load = false
19
+
20
+ # Configure public file server for tests with Cache-Control for performance.
21
+ config.public_file_server.enabled = true
22
+ config.public_file_server.headers = {
23
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}",
24
+ }
25
+
26
+ # Show full error reports and disable caching.
27
+ config.consider_all_requests_local = true
28
+ config.action_controller.perform_caching = false
29
+ config.cache_store = :null_store
30
+
31
+ # Raise exceptions instead of rendering exception templates.
32
+ config.action_dispatch.show_exceptions = false
33
+
34
+ # Disable request forgery protection in test environment.
35
+ config.action_controller.allow_forgery_protection = false
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raise exceptions for disallowed deprecations.
41
+ config.active_support.disallowed_deprecation = :raise
42
+
43
+ # Tell Active Support which deprecation messages to disallow.
44
+ config.active_support.disallowed_deprecation_warnings = []
45
+
46
+ # Raises error for missing translations.
47
+ # config.i18n.raise_on_missing_translations = true
48
+
49
+ # Annotate rendered view with file names.
50
+ # config.action_view.annotate_rendered_view_with_filenames = true
51
+ end
@@ -0,0 +1,9 @@
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
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
6
+ # Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
7
+
8
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
9
+ # by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
10
+ Rails.backtrace_cleaner.remove_silencers! if ENV['BACKTRACE']
@@ -0,0 +1,17 @@
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
@@ -0,0 +1,8 @@
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 += %i[
7
+ passw secret token _key crypt salt certificate otp ssn
8
+ ]
@@ -0,0 +1,17 @@
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
@@ -0,0 +1,5 @@
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
@@ -0,0 +1,16 @@
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
12
+
13
+ # To enable root element in JSON for ActiveRecord objects.
14
+ # ActiveSupport.on_load(:active_record) do
15
+ # self.include_root_in_json = true
16
+ # end
@@ -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,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ Rails.application.routes.draw do
4
+ # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
5
+ end
@@ -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)
File without changes
@@ -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
File without changes
File without changes
File without changes
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.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryz310
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2021-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.0
19
+ version: 5.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.0.0
26
+ version: 5.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -256,6 +256,7 @@ files:
256
256
  - gemfiles/rails_5.1.gemfile
257
257
  - gemfiles/rails_5.2.gemfile
258
258
  - gemfiles/rails_6.0.gemfile
259
+ - gemfiles/rails_6.1.gemfile
259
260
  - lib/generators/generator_helper.rb
260
261
  - lib/generators/rails/USAGE
261
262
  - lib/generators/rails/api_client_generator.rb
@@ -396,6 +397,48 @@ files:
396
397
  - rails_app/rails_6.0/public/robots.txt
397
398
  - rails_app/rails_6.0/spec/rails_helper.rb
398
399
  - rails_app/rails_6.0/spec/spec_helper.rb
400
+ - rails_app/rails_6.1/.gitattributes
401
+ - rails_app/rails_6.1/.gitignore
402
+ - rails_app/rails_6.1/.rspec
403
+ - rails_app/rails_6.1/Gemfile
404
+ - rails_app/rails_6.1/Gemfile.lock
405
+ - rails_app/rails_6.1/README.md
406
+ - rails_app/rails_6.1/Rakefile
407
+ - rails_app/rails_6.1/app/controllers/application_controller.rb
408
+ - rails_app/rails_6.1/app/controllers/concerns/.keep
409
+ - rails_app/rails_6.1/app/javascript/.keep
410
+ - rails_app/rails_6.1/app/models/application_record.rb
411
+ - rails_app/rails_6.1/app/models/concerns/.keep
412
+ - rails_app/rails_6.1/bin/bundle
413
+ - rails_app/rails_6.1/bin/rails
414
+ - rails_app/rails_6.1/bin/rake
415
+ - rails_app/rails_6.1/bin/setup
416
+ - rails_app/rails_6.1/config.ru
417
+ - rails_app/rails_6.1/config/application.rb
418
+ - rails_app/rails_6.1/config/boot.rb
419
+ - rails_app/rails_6.1/config/credentials.yml.enc
420
+ - rails_app/rails_6.1/config/database.yml
421
+ - rails_app/rails_6.1/config/environment.rb
422
+ - rails_app/rails_6.1/config/environments/development.rb
423
+ - rails_app/rails_6.1/config/environments/production.rb
424
+ - rails_app/rails_6.1/config/environments/test.rb
425
+ - rails_app/rails_6.1/config/initializers/application_controller_renderer.rb
426
+ - rails_app/rails_6.1/config/initializers/backtrace_silencers.rb
427
+ - rails_app/rails_6.1/config/initializers/cors.rb
428
+ - rails_app/rails_6.1/config/initializers/filter_parameter_logging.rb
429
+ - rails_app/rails_6.1/config/initializers/inflections.rb
430
+ - rails_app/rails_6.1/config/initializers/mime_types.rb
431
+ - rails_app/rails_6.1/config/initializers/wrap_parameters.rb
432
+ - rails_app/rails_6.1/config/locales/en.yml
433
+ - rails_app/rails_6.1/config/routes.rb
434
+ - rails_app/rails_6.1/db/seeds.rb
435
+ - rails_app/rails_6.1/lib/tasks/.keep
436
+ - rails_app/rails_6.1/public/robots.txt
437
+ - rails_app/rails_6.1/spec/rails_helper.rb
438
+ - rails_app/rails_6.1/spec/spec_helper.rb
439
+ - rails_app/rails_6.1/tmp/.keep
440
+ - rails_app/rails_6.1/tmp/pids/.keep
441
+ - rails_app/rails_6.1/vendor/.keep
399
442
  homepage: https://github.com/ryz310/my_api_client
400
443
  licenses:
401
444
  - MIT
@@ -415,7 +458,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
415
458
  - !ruby/object:Gem::Version
416
459
  version: '0'
417
460
  requirements: []
418
- rubygems_version: 3.1.4
461
+ rubygems_version: 3.2.3
419
462
  signing_key:
420
463
  specification_version: 4
421
464
  summary: The framework of Web API Client