my_api_client 0.14.0 → 0.18.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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +99 -53
- data/.dependabot/config.yml +19 -1
- data/.rubocop.yml +5 -1
- data/.rubocop_challenge.yml +5 -0
- data/.rubocop_todo.yml +53 -1
- data/CHANGELOG.md +192 -0
- data/Gemfile +0 -3
- data/Gemfile.lock +60 -56
- data/README.jp.md +159 -24
- data/bin/console +4 -0
- data/example/api_clients/application_api_client.rb +2 -10
- data/example/api_clients/my_pagination_api_client.rb +18 -0
- data/example/api_clients/my_rest_api_client.rb +9 -3
- data/lib/generators/rails/USAGE +1 -1
- data/lib/generators/rails/api_client_generator.rb +6 -0
- data/lib/generators/rails/templates/api_client.rb.erb +1 -1
- data/lib/generators/rails/templates/application_api_client.rb.erb +0 -11
- data/lib/generators/rspec/USAGE +1 -1
- data/lib/generators/rspec/api_client_generator.rb +6 -0
- data/lib/generators/rspec/templates/api_client_spec.rb.erb +23 -16
- data/lib/my_api_client.rb +7 -0
- data/lib/my_api_client/base.rb +4 -2
- data/lib/my_api_client/default_error_handlers.rb +64 -0
- data/lib/my_api_client/error_handling.rb +6 -6
- data/lib/my_api_client/error_handling/generator.rb +23 -7
- data/lib/my_api_client/errors.rb +1 -53
- data/lib/my_api_client/errors/api_limit_error.rb +6 -0
- data/lib/my_api_client/errors/client_error.rb +93 -0
- data/lib/my_api_client/errors/network_error.rb +43 -0
- data/lib/my_api_client/errors/server_error.rb +42 -0
- data/lib/my_api_client/params/params.rb +1 -3
- data/lib/my_api_client/request.rb +29 -34
- data/lib/my_api_client/request/basic.rb +32 -0
- data/lib/my_api_client/request/executor.rb +1 -1
- data/lib/my_api_client/request/pagination.rb +39 -0
- data/lib/my_api_client/version.rb +1 -1
- data/my_api/.ruby-version +1 -1
- data/my_api/Gemfile.lock +86 -86
- data/my_api/README.md +6 -0
- data/my_api/app/controllers/pagination_controller.rb +58 -0
- data/my_api/config/routes.rb +1 -0
- data/my_api/spec/controllers/pagination_controller_spec.rb +73 -0
- data/my_api/spec/controllers/rest_controller_spec.rb +23 -5
- data/my_api/spec/spec_helper.rb +5 -0
- data/my_api_client.gemspec +2 -2
- data/rails_app/rails_5.2/.rspec +3 -0
- data/rails_app/rails_5.2/Gemfile +17 -0
- data/rails_app/rails_5.2/Gemfile.lock +171 -0
- data/rails_app/rails_5.2/README.md +24 -0
- data/rails_app/rails_5.2/Rakefile +8 -0
- data/rails_app/rails_5.2/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_5.2/app/jobs/application_job.rb +4 -0
- data/rails_app/rails_5.2/bin/bundle +5 -0
- data/rails_app/rails_5.2/bin/rails +6 -0
- data/rails_app/rails_5.2/bin/rake +6 -0
- data/rails_app/rails_5.2/bin/setup +27 -0
- data/rails_app/rails_5.2/bin/update +27 -0
- data/rails_app/rails_5.2/config.ru +7 -0
- data/rails_app/rails_5.2/config/application.rb +37 -0
- data/rails_app/rails_5.2/config/boot.rb +6 -0
- data/rails_app/rails_5.2/config/credentials.yml.enc +1 -0
- data/rails_app/rails_5.2/config/environment.rb +7 -0
- data/rails_app/rails_5.2/config/environments/development.rb +41 -0
- data/rails_app/rails_5.2/config/environments/production.rb +70 -0
- data/rails_app/rails_5.2/config/environments/test.rb +38 -0
- data/rails_app/rails_5.2/config/initializers/application_controller_renderer.rb +9 -0
- data/rails_app/rails_5.2/config/initializers/backtrace_silencers.rb +8 -0
- data/rails_app/rails_5.2/config/initializers/cors.rb +17 -0
- data/rails_app/rails_5.2/config/initializers/filter_parameter_logging.rb +6 -0
- data/rails_app/rails_5.2/config/initializers/inflections.rb +17 -0
- data/rails_app/rails_5.2/config/initializers/mime_types.rb +5 -0
- data/rails_app/rails_5.2/config/initializers/wrap_parameters.rb +11 -0
- data/rails_app/rails_5.2/config/locales/en.yml +33 -0
- data/rails_app/rails_5.2/config/routes.rb +5 -0
- data/rails_app/rails_5.2/config/spring.rb +8 -0
- data/rails_app/rails_5.2/public/robots.txt +1 -0
- data/rails_app/rails_5.2/spec/rails_helper.rb +14 -0
- data/rails_app/rails_5.2/spec/spec_helper.rb +13 -0
- data/rails_app/rails_6.0/.rspec +3 -0
- data/rails_app/rails_6.0/Gemfile +17 -0
- data/rails_app/rails_6.0/Gemfile.lock +186 -0
- data/rails_app/rails_6.0/README.md +24 -0
- data/rails_app/rails_6.0/Rakefile +8 -0
- data/rails_app/rails_6.0/app/controllers/application_controller.rb +4 -0
- data/rails_app/rails_6.0/app/jobs/application_job.rb +9 -0
- data/rails_app/rails_6.0/bin/rails +6 -0
- data/rails_app/rails_6.0/bin/rake +6 -0
- data/rails_app/rails_6.0/bin/setup +27 -0
- data/rails_app/rails_6.0/config.ru +7 -0
- data/rails_app/rails_6.0/config/application.rb +39 -0
- data/rails_app/rails_6.0/config/boot.rb +6 -0
- data/rails_app/rails_6.0/config/credentials.yml.enc +1 -0
- data/rails_app/rails_6.0/config/environment.rb +7 -0
- data/rails_app/rails_6.0/config/environments/development.rb +39 -0
- data/rails_app/rails_6.0/config/environments/production.rb +90 -0
- data/rails_app/rails_6.0/config/environments/test.rb +41 -0
- data/rails_app/rails_6.0/config/initializers/application_controller_renderer.rb +9 -0
- data/rails_app/rails_6.0/config/initializers/backtrace_silencers.rb +8 -0
- data/rails_app/rails_6.0/config/initializers/cors.rb +17 -0
- data/rails_app/rails_6.0/config/initializers/filter_parameter_logging.rb +6 -0
- data/rails_app/rails_6.0/config/initializers/inflections.rb +17 -0
- data/rails_app/rails_6.0/config/initializers/mime_types.rb +5 -0
- data/rails_app/rails_6.0/config/initializers/wrap_parameters.rb +11 -0
- data/rails_app/rails_6.0/config/locales/en.yml +33 -0
- data/rails_app/rails_6.0/config/routes.rb +5 -0
- data/rails_app/rails_6.0/config/spring.rb +8 -0
- data/rails_app/rails_6.0/public/robots.txt +1 -0
- data/rails_app/rails_6.0/spec/rails_helper.rb +14 -0
- data/rails_app/rails_6.0/spec/spec_helper.rb +13 -0
- metadata +81 -8
- data/gemfiles/rails_4.2.gemfile +0 -15
- data/renovate.json +0 -21
@@ -0,0 +1,90 @@
|
|
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
|
+
# Code is not reloaded between requests.
|
7
|
+
config.cache_classes = true
|
8
|
+
|
9
|
+
# Eager load code on boot. This eager loads most of Rails and
|
10
|
+
# your application in memory, allowing both threaded web servers
|
11
|
+
# and those relying on copy on write to perform better.
|
12
|
+
# Rake tasks automatically ignore this option for performance.
|
13
|
+
config.eager_load = true
|
14
|
+
|
15
|
+
# Full error reports are disabled and caching is turned on.
|
16
|
+
config.consider_all_requests_local = false
|
17
|
+
|
18
|
+
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
19
|
+
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
20
|
+
# config.require_master_key = true
|
21
|
+
|
22
|
+
# Disable serving static files from the `/public` folder by default since
|
23
|
+
# Apache or NGINX already handles this.
|
24
|
+
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
25
|
+
|
26
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
27
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
28
|
+
|
29
|
+
# Specifies the header that your server uses for sending files.
|
30
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
31
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
32
|
+
|
33
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
34
|
+
# config.force_ssl = true
|
35
|
+
|
36
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
37
|
+
# when problems arise.
|
38
|
+
config.log_level = :debug
|
39
|
+
|
40
|
+
# Prepend all log lines with the following tags.
|
41
|
+
config.log_tags = [:request_id]
|
42
|
+
|
43
|
+
# Use a different cache store in production.
|
44
|
+
# config.cache_store = :mem_cache_store
|
45
|
+
|
46
|
+
# Use a real queuing backend for Active Job (and separate queues per environment).
|
47
|
+
# config.active_job.queue_adapter = :resque
|
48
|
+
# config.active_job.queue_name_prefix = "rails_6_0_production"
|
49
|
+
|
50
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
51
|
+
# the I18n.default_locale when a translation cannot be found).
|
52
|
+
config.i18n.fallbacks = true
|
53
|
+
|
54
|
+
# Send deprecation notices to registered listeners.
|
55
|
+
config.active_support.deprecation = :notify
|
56
|
+
|
57
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
58
|
+
config.log_formatter = ::Logger::Formatter.new
|
59
|
+
|
60
|
+
# Use a different logger for distributed setups.
|
61
|
+
# require 'syslog/logger'
|
62
|
+
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
63
|
+
|
64
|
+
if ENV['RAILS_LOG_TO_STDOUT'].present?
|
65
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
66
|
+
logger.formatter = config.log_formatter
|
67
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
68
|
+
end
|
69
|
+
|
70
|
+
# Inserts middleware to perform automatic connection switching.
|
71
|
+
# The `database_selector` hash is used to pass options to the DatabaseSelector
|
72
|
+
# middleware. The `delay` is used to determine how long to wait after a write
|
73
|
+
# to send a subsequent read to the primary.
|
74
|
+
#
|
75
|
+
# The `database_resolver` class is used by the middleware to determine which
|
76
|
+
# database is appropriate to use based on the time delay.
|
77
|
+
#
|
78
|
+
# The `database_resolver_context` class is used by the middleware to set
|
79
|
+
# timestamps for the last write to the primary. The resolver uses the context
|
80
|
+
# class timestamps to determine how long to wait before reading from the
|
81
|
+
# replica.
|
82
|
+
#
|
83
|
+
# By default Rails will store a last write timestamp in the session. The
|
84
|
+
# DatabaseSelector middleware is designed as such you can define your own
|
85
|
+
# strategy for connection switching and pass that into the middleware through
|
86
|
+
# these configuration options.
|
87
|
+
# config.active_record.database_selector = { delay: 2.seconds }
|
88
|
+
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
|
89
|
+
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
90
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# The test environment is used exclusively to run your application's
|
4
|
+
# test suite. You never need to work with it otherwise. Remember that
|
5
|
+
# your test database is "scratch space" for the test suite and is wiped
|
6
|
+
# and recreated between test runs. Don't rely on the data there!
|
7
|
+
|
8
|
+
Rails.application.configure do
|
9
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
10
|
+
|
11
|
+
config.cache_classes = false
|
12
|
+
config.action_view.cache_template_loading = true
|
13
|
+
|
14
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
15
|
+
# just for the purpose of running a single test. If you are using a tool that
|
16
|
+
# preloads Rails for running tests, you may have to set it to true.
|
17
|
+
config.eager_load = false
|
18
|
+
|
19
|
+
# Configure public file server for tests with Cache-Control for performance.
|
20
|
+
config.public_file_server.enabled = true
|
21
|
+
config.public_file_server.headers = {
|
22
|
+
'Cache-Control' => "public, max-age=#{1.hour.to_i}",
|
23
|
+
}
|
24
|
+
|
25
|
+
# Show full error reports and disable caching.
|
26
|
+
config.consider_all_requests_local = true
|
27
|
+
config.action_controller.perform_caching = false
|
28
|
+
config.cache_store = :null_store
|
29
|
+
|
30
|
+
# Raise exceptions instead of rendering exception templates.
|
31
|
+
config.action_dispatch.show_exceptions = false
|
32
|
+
|
33
|
+
# Disable request forgery protection in test environment.
|
34
|
+
config.action_controller.allow_forgery_protection = false
|
35
|
+
|
36
|
+
# Print deprecation notices to the stderr.
|
37
|
+
config.active_support.deprecation = :stderr
|
38
|
+
|
39
|
+
# Raises error for missing translations.
|
40
|
+
# config.action_view.raise_on_missing_translations = true
|
41
|
+
end
|
@@ -0,0 +1,8 @@
|
|
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!
|
@@ -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,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,11 @@
|
|
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
|
@@ -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 @@
|
|
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
|
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.
|
4
|
+
version: 0.18.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-03
|
11
|
+
date: 2020-12-03 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:
|
19
|
+
version: 5.0.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:
|
26
|
+
version: 5.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +234,7 @@ files:
|
|
234
234
|
- ".gitignore"
|
235
235
|
- ".rspec"
|
236
236
|
- ".rubocop.yml"
|
237
|
+
- ".rubocop_challenge.yml"
|
237
238
|
- ".rubocop_todo.yml"
|
238
239
|
- CHANGELOG.md
|
239
240
|
- CODE_OF_CONDUCT.md
|
@@ -248,9 +249,9 @@ files:
|
|
248
249
|
- example/api_clients/application_api_client.rb
|
249
250
|
- example/api_clients/my_error_api_client.rb
|
250
251
|
- example/api_clients/my_errors.rb
|
252
|
+
- example/api_clients/my_pagination_api_client.rb
|
251
253
|
- example/api_clients/my_rest_api_client.rb
|
252
254
|
- example/api_clients/my_status_api_client.rb
|
253
|
-
- gemfiles/rails_4.2.gemfile
|
254
255
|
- gemfiles/rails_5.0.gemfile
|
255
256
|
- gemfiles/rails_5.1.gemfile
|
256
257
|
- gemfiles/rails_5.2.gemfile
|
@@ -266,17 +267,24 @@ files:
|
|
266
267
|
- lib/my_api_client.rb
|
267
268
|
- lib/my_api_client/base.rb
|
268
269
|
- lib/my_api_client/config.rb
|
270
|
+
- lib/my_api_client/default_error_handlers.rb
|
269
271
|
- lib/my_api_client/error_handling.rb
|
270
272
|
- lib/my_api_client/error_handling/generator.rb
|
271
273
|
- lib/my_api_client/error_handling/retry_option_processor.rb
|
272
274
|
- lib/my_api_client/errors.rb
|
275
|
+
- lib/my_api_client/errors/api_limit_error.rb
|
276
|
+
- lib/my_api_client/errors/client_error.rb
|
277
|
+
- lib/my_api_client/errors/network_error.rb
|
278
|
+
- lib/my_api_client/errors/server_error.rb
|
273
279
|
- lib/my_api_client/exceptions.rb
|
274
280
|
- lib/my_api_client/integrations/bugsnag.rb
|
275
281
|
- lib/my_api_client/params/params.rb
|
276
282
|
- lib/my_api_client/params/request.rb
|
277
283
|
- lib/my_api_client/request.rb
|
284
|
+
- lib/my_api_client/request/basic.rb
|
278
285
|
- lib/my_api_client/request/executor.rb
|
279
286
|
- lib/my_api_client/request/logger.rb
|
287
|
+
- lib/my_api_client/request/pagination.rb
|
280
288
|
- lib/my_api_client/rspec.rb
|
281
289
|
- lib/my_api_client/rspec/matcher_helper.rb
|
282
290
|
- lib/my_api_client/rspec/matchers/be_handled_as_an_error.rb
|
@@ -297,6 +305,7 @@ files:
|
|
297
305
|
- my_api/Rakefile
|
298
306
|
- my_api/app/controllers/application_controller.rb
|
299
307
|
- my_api/app/controllers/error_controller.rb
|
308
|
+
- my_api/app/controllers/pagination_controller.rb
|
300
309
|
- my_api/app/controllers/rest_controller.rb
|
301
310
|
- my_api/app/controllers/status_controller.rb
|
302
311
|
- my_api/app/helpers/application_helper.rb
|
@@ -316,13 +325,77 @@ files:
|
|
316
325
|
- my_api/public/favicon.ico
|
317
326
|
- my_api/public/index.html
|
318
327
|
- my_api/spec/controllers/error_controller_spec.rb
|
328
|
+
- my_api/spec/controllers/pagination_controller_spec.rb
|
319
329
|
- my_api/spec/controllers/rest_controller_spec.rb
|
320
330
|
- my_api/spec/controllers/status_controller_spec.rb
|
321
331
|
- my_api/spec/fixtures/payloads/posts-index.json
|
322
332
|
- my_api/spec/fixtures/payloads/posts-show.json
|
323
333
|
- my_api/spec/spec_helper.rb
|
324
334
|
- my_api_client.gemspec
|
325
|
-
-
|
335
|
+
- rails_app/rails_5.2/.rspec
|
336
|
+
- rails_app/rails_5.2/Gemfile
|
337
|
+
- rails_app/rails_5.2/Gemfile.lock
|
338
|
+
- rails_app/rails_5.2/README.md
|
339
|
+
- rails_app/rails_5.2/Rakefile
|
340
|
+
- rails_app/rails_5.2/app/controllers/application_controller.rb
|
341
|
+
- rails_app/rails_5.2/app/jobs/application_job.rb
|
342
|
+
- rails_app/rails_5.2/bin/bundle
|
343
|
+
- rails_app/rails_5.2/bin/rails
|
344
|
+
- rails_app/rails_5.2/bin/rake
|
345
|
+
- rails_app/rails_5.2/bin/setup
|
346
|
+
- rails_app/rails_5.2/bin/update
|
347
|
+
- rails_app/rails_5.2/config.ru
|
348
|
+
- rails_app/rails_5.2/config/application.rb
|
349
|
+
- rails_app/rails_5.2/config/boot.rb
|
350
|
+
- rails_app/rails_5.2/config/credentials.yml.enc
|
351
|
+
- rails_app/rails_5.2/config/environment.rb
|
352
|
+
- rails_app/rails_5.2/config/environments/development.rb
|
353
|
+
- rails_app/rails_5.2/config/environments/production.rb
|
354
|
+
- rails_app/rails_5.2/config/environments/test.rb
|
355
|
+
- rails_app/rails_5.2/config/initializers/application_controller_renderer.rb
|
356
|
+
- rails_app/rails_5.2/config/initializers/backtrace_silencers.rb
|
357
|
+
- rails_app/rails_5.2/config/initializers/cors.rb
|
358
|
+
- rails_app/rails_5.2/config/initializers/filter_parameter_logging.rb
|
359
|
+
- rails_app/rails_5.2/config/initializers/inflections.rb
|
360
|
+
- rails_app/rails_5.2/config/initializers/mime_types.rb
|
361
|
+
- rails_app/rails_5.2/config/initializers/wrap_parameters.rb
|
362
|
+
- rails_app/rails_5.2/config/locales/en.yml
|
363
|
+
- rails_app/rails_5.2/config/routes.rb
|
364
|
+
- rails_app/rails_5.2/config/spring.rb
|
365
|
+
- rails_app/rails_5.2/public/robots.txt
|
366
|
+
- rails_app/rails_5.2/spec/rails_helper.rb
|
367
|
+
- rails_app/rails_5.2/spec/spec_helper.rb
|
368
|
+
- rails_app/rails_6.0/.rspec
|
369
|
+
- rails_app/rails_6.0/Gemfile
|
370
|
+
- rails_app/rails_6.0/Gemfile.lock
|
371
|
+
- rails_app/rails_6.0/README.md
|
372
|
+
- rails_app/rails_6.0/Rakefile
|
373
|
+
- rails_app/rails_6.0/app/controllers/application_controller.rb
|
374
|
+
- rails_app/rails_6.0/app/jobs/application_job.rb
|
375
|
+
- rails_app/rails_6.0/bin/rails
|
376
|
+
- rails_app/rails_6.0/bin/rake
|
377
|
+
- rails_app/rails_6.0/bin/setup
|
378
|
+
- rails_app/rails_6.0/config.ru
|
379
|
+
- rails_app/rails_6.0/config/application.rb
|
380
|
+
- rails_app/rails_6.0/config/boot.rb
|
381
|
+
- rails_app/rails_6.0/config/credentials.yml.enc
|
382
|
+
- rails_app/rails_6.0/config/environment.rb
|
383
|
+
- rails_app/rails_6.0/config/environments/development.rb
|
384
|
+
- rails_app/rails_6.0/config/environments/production.rb
|
385
|
+
- rails_app/rails_6.0/config/environments/test.rb
|
386
|
+
- rails_app/rails_6.0/config/initializers/application_controller_renderer.rb
|
387
|
+
- rails_app/rails_6.0/config/initializers/backtrace_silencers.rb
|
388
|
+
- rails_app/rails_6.0/config/initializers/cors.rb
|
389
|
+
- rails_app/rails_6.0/config/initializers/filter_parameter_logging.rb
|
390
|
+
- rails_app/rails_6.0/config/initializers/inflections.rb
|
391
|
+
- rails_app/rails_6.0/config/initializers/mime_types.rb
|
392
|
+
- rails_app/rails_6.0/config/initializers/wrap_parameters.rb
|
393
|
+
- rails_app/rails_6.0/config/locales/en.yml
|
394
|
+
- rails_app/rails_6.0/config/routes.rb
|
395
|
+
- rails_app/rails_6.0/config/spring.rb
|
396
|
+
- rails_app/rails_6.0/public/robots.txt
|
397
|
+
- rails_app/rails_6.0/spec/rails_helper.rb
|
398
|
+
- rails_app/rails_6.0/spec/spec_helper.rb
|
326
399
|
homepage: https://github.com/ryz310/my_api_client
|
327
400
|
licenses:
|
328
401
|
- MIT
|
@@ -335,14 +408,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
335
408
|
requirements:
|
336
409
|
- - ">="
|
337
410
|
- !ruby/object:Gem::Version
|
338
|
-
version: 2.
|
411
|
+
version: 2.5.0
|
339
412
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
413
|
requirements:
|
341
414
|
- - ">="
|
342
415
|
- !ruby/object:Gem::Version
|
343
416
|
version: '0'
|
344
417
|
requirements: []
|
345
|
-
rubygems_version: 3.1.
|
418
|
+
rubygems_version: 3.1.4
|
346
419
|
signing_key:
|
347
420
|
specification_version: 4
|
348
421
|
summary: The framework of Web API Client
|