my_api_client 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +5 -23
  3. data/.rubocop.yml +4 -0
  4. data/.rubocop_todo.yml +2 -2
  5. data/CHANGELOG.md +19 -0
  6. data/Gemfile.lock +35 -29
  7. data/README.jp.md +2 -4
  8. data/README.md +7 -3
  9. data/lib/my_api_client/rspec/stub.rb +1 -1
  10. data/lib/my_api_client/version.rb +1 -1
  11. data/my_api/Gemfile +2 -2
  12. data/my_api/Gemfile.lock +97 -83
  13. data/my_api_client.gemspec +3 -2
  14. data/rails_app/rails_6.0/Gemfile.lock +20 -20
  15. data/rails_app/rails_6.1/Gemfile.lock +21 -21
  16. data/rails_app/rails_7.0/Gemfile.lock +20 -20
  17. metadata +21 -43
  18. data/gemfiles/rails_5.0.gemfile +0 -16
  19. data/gemfiles/rails_5.1.gemfile +0 -16
  20. data/gemfiles/rails_5.2.gemfile +0 -16
  21. data/rails_app/rails_5.2/.rspec +0 -3
  22. data/rails_app/rails_5.2/Gemfile +0 -17
  23. data/rails_app/rails_5.2/Gemfile.lock +0 -180
  24. data/rails_app/rails_5.2/README.md +0 -24
  25. data/rails_app/rails_5.2/Rakefile +0 -8
  26. data/rails_app/rails_5.2/app/controllers/application_controller.rb +0 -4
  27. data/rails_app/rails_5.2/app/jobs/application_job.rb +0 -4
  28. data/rails_app/rails_5.2/bin/bundle +0 -5
  29. data/rails_app/rails_5.2/bin/rails +0 -6
  30. data/rails_app/rails_5.2/bin/rake +0 -6
  31. data/rails_app/rails_5.2/bin/setup +0 -27
  32. data/rails_app/rails_5.2/bin/update +0 -27
  33. data/rails_app/rails_5.2/config/application.rb +0 -37
  34. data/rails_app/rails_5.2/config/boot.rb +0 -6
  35. data/rails_app/rails_5.2/config/credentials.yml.enc +0 -1
  36. data/rails_app/rails_5.2/config/environment.rb +0 -7
  37. data/rails_app/rails_5.2/config/environments/development.rb +0 -41
  38. data/rails_app/rails_5.2/config/environments/production.rb +0 -70
  39. data/rails_app/rails_5.2/config/environments/test.rb +0 -38
  40. data/rails_app/rails_5.2/config/initializers/application_controller_renderer.rb +0 -9
  41. data/rails_app/rails_5.2/config/initializers/backtrace_silencers.rb +0 -8
  42. data/rails_app/rails_5.2/config/initializers/cors.rb +0 -17
  43. data/rails_app/rails_5.2/config/initializers/filter_parameter_logging.rb +0 -6
  44. data/rails_app/rails_5.2/config/initializers/inflections.rb +0 -17
  45. data/rails_app/rails_5.2/config/initializers/mime_types.rb +0 -5
  46. data/rails_app/rails_5.2/config/initializers/wrap_parameters.rb +0 -11
  47. data/rails_app/rails_5.2/config/locales/en.yml +0 -33
  48. data/rails_app/rails_5.2/config/routes.rb +0 -5
  49. data/rails_app/rails_5.2/config/spring.rb +0 -8
  50. data/rails_app/rails_5.2/config.ru +0 -7
  51. data/rails_app/rails_5.2/public/robots.txt +0 -1
  52. data/rails_app/rails_5.2/spec/rails_helper.rb +0 -14
  53. data/rails_app/rails_5.2/spec/spec_helper.rb +0 -13
@@ -1,180 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- my_api_client (0.20.0)
5
- activesupport (>= 5.2.0)
6
- faraday (>= 0.17.1)
7
- jsonpath
8
- sawyer (>= 0.8.2)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- actioncable (5.2.6)
14
- actionpack (= 5.2.6)
15
- nio4r (~> 2.0)
16
- websocket-driver (>= 0.6.1)
17
- actionmailer (5.2.6)
18
- actionpack (= 5.2.6)
19
- actionview (= 5.2.6)
20
- activejob (= 5.2.6)
21
- mail (~> 2.5, >= 2.5.4)
22
- rails-dom-testing (~> 2.0)
23
- actionpack (5.2.6)
24
- actionview (= 5.2.6)
25
- activesupport (= 5.2.6)
26
- rack (~> 2.0, >= 2.0.8)
27
- rack-test (>= 0.6.3)
28
- rails-dom-testing (~> 2.0)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
- actionview (5.2.6)
31
- activesupport (= 5.2.6)
32
- builder (~> 3.1)
33
- erubi (~> 1.4)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
- activejob (5.2.6)
37
- activesupport (= 5.2.6)
38
- globalid (>= 0.3.6)
39
- activemodel (5.2.6)
40
- activesupport (= 5.2.6)
41
- activerecord (5.2.6)
42
- activemodel (= 5.2.6)
43
- activesupport (= 5.2.6)
44
- arel (>= 9.0)
45
- activestorage (5.2.6)
46
- actionpack (= 5.2.6)
47
- activerecord (= 5.2.6)
48
- marcel (~> 1.0.0)
49
- activesupport (5.2.6)
50
- concurrent-ruby (~> 1.0, >= 1.0.2)
51
- i18n (>= 0.7, < 2)
52
- minitest (~> 5.1)
53
- tzinfo (~> 1.1)
54
- addressable (2.8.0)
55
- public_suffix (>= 2.0.2, < 5.0)
56
- arel (9.0.0)
57
- bootsnap (1.4.8)
58
- msgpack (~> 1.0)
59
- builder (3.2.4)
60
- byebug (11.1.3)
61
- concurrent-ruby (1.1.9)
62
- crass (1.0.6)
63
- diff-lcs (1.4.4)
64
- erubi (1.10.0)
65
- faraday (1.4.2)
66
- faraday-em_http (~> 1.0)
67
- faraday-em_synchrony (~> 1.0)
68
- faraday-excon (~> 1.1)
69
- faraday-net_http (~> 1.0)
70
- faraday-net_http_persistent (~> 1.1)
71
- multipart-post (>= 1.2, < 3)
72
- ruby2_keywords (>= 0.0.4)
73
- faraday-em_http (1.0.0)
74
- faraday-em_synchrony (1.0.0)
75
- faraday-excon (1.1.0)
76
- faraday-net_http (1.0.1)
77
- faraday-net_http_persistent (1.1.0)
78
- globalid (0.4.2)
79
- activesupport (>= 4.2.0)
80
- i18n (1.8.10)
81
- concurrent-ruby (~> 1.0)
82
- jsonpath (1.1.0)
83
- multi_json
84
- loofah (2.18.0)
85
- crass (~> 1.0.2)
86
- nokogiri (>= 1.5.9)
87
- mail (2.7.1)
88
- mini_mime (>= 0.1.1)
89
- marcel (1.0.1)
90
- method_source (1.0.0)
91
- mini_mime (1.1.0)
92
- mini_portile2 (2.8.0)
93
- minitest (5.14.4)
94
- msgpack (1.3.3)
95
- multi_json (1.15.0)
96
- multipart-post (2.1.1)
97
- nio4r (2.5.7)
98
- nokogiri (1.13.9)
99
- mini_portile2 (~> 2.8.0)
100
- racc (~> 1.4)
101
- public_suffix (4.0.6)
102
- racc (1.6.0)
103
- rack (2.2.3.1)
104
- rack-test (1.1.0)
105
- rack (>= 1.0, < 3)
106
- rails (5.2.6)
107
- actioncable (= 5.2.6)
108
- actionmailer (= 5.2.6)
109
- actionpack (= 5.2.6)
110
- actionview (= 5.2.6)
111
- activejob (= 5.2.6)
112
- activemodel (= 5.2.6)
113
- activerecord (= 5.2.6)
114
- activestorage (= 5.2.6)
115
- activesupport (= 5.2.6)
116
- bundler (>= 1.3.0)
117
- railties (= 5.2.6)
118
- sprockets-rails (>= 2.0.0)
119
- rails-dom-testing (2.0.3)
120
- activesupport (>= 4.2.0)
121
- nokogiri (>= 1.6)
122
- rails-html-sanitizer (1.4.3)
123
- loofah (~> 2.3)
124
- railties (5.2.6)
125
- actionpack (= 5.2.6)
126
- activesupport (= 5.2.6)
127
- method_source
128
- rake (>= 0.8.7)
129
- thor (>= 0.19.0, < 2.0)
130
- rake (13.0.3)
131
- rspec-core (3.9.2)
132
- rspec-support (~> 3.9.3)
133
- rspec-expectations (3.9.2)
134
- diff-lcs (>= 1.2.0, < 2.0)
135
- rspec-support (~> 3.9.0)
136
- rspec-mocks (3.9.1)
137
- diff-lcs (>= 1.2.0, < 2.0)
138
- rspec-support (~> 3.9.0)
139
- rspec-rails (4.0.1)
140
- actionpack (>= 4.2)
141
- activesupport (>= 4.2)
142
- railties (>= 4.2)
143
- rspec-core (~> 3.9)
144
- rspec-expectations (~> 3.9)
145
- rspec-mocks (~> 3.9)
146
- rspec-support (~> 3.9)
147
- rspec-support (3.9.3)
148
- ruby2_keywords (0.0.4)
149
- sawyer (0.8.2)
150
- addressable (>= 2.3.5)
151
- faraday (> 0.8, < 2.0)
152
- spring (2.1.1)
153
- sprockets (4.0.2)
154
- concurrent-ruby (~> 1.0)
155
- rack (> 1, < 3)
156
- sprockets-rails (3.2.2)
157
- actionpack (>= 4.0)
158
- activesupport (>= 4.0)
159
- sprockets (>= 3.0.0)
160
- thor (1.1.0)
161
- thread_safe (0.3.6)
162
- tzinfo (1.2.10)
163
- thread_safe (~> 0.1)
164
- websocket-driver (0.7.4)
165
- websocket-extensions (>= 0.1.0)
166
- websocket-extensions (0.1.5)
167
-
168
- PLATFORMS
169
- ruby
170
-
171
- DEPENDENCIES
172
- bootsnap (>= 1.1.0)
173
- byebug
174
- my_api_client!
175
- rails (~> 5.2.4)
176
- rspec-rails
177
- spring
178
-
179
- BUNDLED WITH
180
- 2.2.4
@@ -1,24 +0,0 @@
1
- # README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Add your own tasks in files placed in lib/tasks ending in .rake,
4
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
5
-
6
- require_relative 'config/application'
7
-
8
- Rails.application.load_tasks
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationController < ActionController::API
4
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationJob < ActiveJob::Base
4
- end
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
5
- load Gem.bin_path('bundler', 'bundle')
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- APP_PATH = File.expand_path('../config/application', __dir__)
5
- require_relative '../config/boot'
6
- require 'rails/commands'
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require_relative '../config/boot'
5
- require 'rake'
6
- Rake.application.run
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'fileutils'
5
- include FileUtils
6
-
7
- # path to your application root.
8
- APP_ROOT = File.expand_path('..', __dir__)
9
-
10
- def system!(*args)
11
- system(*args) || abort("\n== Command #{args} failed ==")
12
- end
13
-
14
- chdir APP_ROOT do
15
- # This script is a starting point to setup your application.
16
- # Add necessary setup steps to this file.
17
-
18
- puts '== Installing dependencies =='
19
- system! 'gem install bundler --conservative'
20
- system('bundle check') || system!('bundle install')
21
-
22
- puts "\n== Removing old logs and tempfiles =="
23
- system! 'bin/rails log:clear tmp:clear'
24
-
25
- puts "\n== Restarting application server =="
26
- system! 'bin/rails restart'
27
- end
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'fileutils'
5
- include FileUtils
6
-
7
- # path to your application root.
8
- APP_ROOT = File.expand_path('..', __dir__)
9
-
10
- def system!(*args)
11
- system(*args) || abort("\n== Command #{args} failed ==")
12
- end
13
-
14
- chdir APP_ROOT do
15
- # This script is a way to update your development environment automatically.
16
- # Add necessary update steps to this file.
17
-
18
- puts '== Installing dependencies =='
19
- system! 'gem install bundler --conservative'
20
- system('bundle check') || system!('bundle install')
21
-
22
- puts "\n== Removing old logs and tempfiles =="
23
- system! 'bin/rails log:clear tmp:clear'
24
-
25
- puts "\n== Restarting application server =="
26
- system! 'bin/rails restart'
27
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'boot'
4
-
5
- require 'rails'
6
- # Pick the frameworks you want:
7
- require 'active_model/railtie'
8
- require 'active_job/railtie'
9
- # require "active_record/railtie"
10
- # require "active_storage/engine"
11
- require 'action_controller/railtie'
12
- # require "action_mailer/railtie"
13
- require 'action_view/railtie'
14
- # require "action_cable/engine"
15
- # require "sprockets/railtie"
16
- # require "rails/test_unit/railtie"
17
-
18
- # Require the gems listed in Gemfile, including any gems
19
- # you've limited to :test, :development, or :production.
20
- Bundler.require(*Rails.groups)
21
-
22
- module Rails52
23
- class Application < Rails::Application
24
- # Initialize configuration defaults for originally generated Rails version.
25
- config.load_defaults 5.2
26
-
27
- # Settings in config/environments/* take precedence over those specified here.
28
- # Application configuration can go into files in config/initializers
29
- # -- all .rb files in that directory are automatically loaded after loading
30
- # the framework and any gems in your application.
31
-
32
- # Only loads a smaller set of middleware suitable for API only apps.
33
- # Middleware like session, flash, cookies can be added back manually.
34
- # Skip views, helpers and assets when generating a new resource.
35
- config.api_only = true
36
- end
37
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
4
-
5
- require 'bundler/setup' # Set up gems listed in the Gemfile.
6
- require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
@@ -1 +0,0 @@
1
- CoqnHttXAM5P+hqAS+0x/tIF4f6uh4/KQcj8FWFp+43NpgsJJwOtSewgf5cqJk0xZAWpVrlWK/OAA5m2yVqf24wU6ynKaUFlNkNnYXU4Yd1ieQ//kzXX+486aQyuJA0eLdBANvM0DnB7VORl2fyLTj/SpO7koN1fj/GWVQStTGSXZmZpsTgcJi2QD6QAI37SjWMHoDJIg/T/XraZjezjkrACPvlMm3BAO5sPixuZ71PX4pNetEUHwMFmOwkPHaeZt5pNnXTaZSwtyyQuPsxkPerwL3QTxrIJg6z31qRdTLuRIU0o3t80GZOiWkk3p2Lke4wv80owEXzoZqrosOj4HaE9L0wm7gbf9IkGqk3cv7cCKeGIFegjHOIqO/6Pbq7SjFWVBJdBSCgBSZ6NtJgZGjr2zIQ9kV+emnNT--eqdV0aiTwnuTbD85--hOzvwTdx5HfukVZuBwy13w==
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Load the Rails application.
4
- require_relative 'application'
5
-
6
- # Initialize the Rails application.
7
- Rails.application.initialize!
@@ -1,41 +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
- # In the development environment your application's code is reloaded on
7
- # every request. This slows down response time but is perfect for development
8
- # since you don't have to restart the web server when you make code changes.
9
- config.cache_classes = false
10
-
11
- # Do not eager load code on boot.
12
- config.eager_load = false
13
-
14
- # Show full error reports.
15
- config.consider_all_requests_local = true
16
-
17
- # Enable/disable caching. By default caching is disabled.
18
- # Run rails dev:cache to toggle caching.
19
- if Rails.root.join('tmp', 'caching-dev.txt').exist?
20
- config.action_controller.perform_caching = true
21
-
22
- config.cache_store = :memory_store
23
- config.public_file_server.headers = {
24
- 'Cache-Control' => "public, max-age=#{2.days.to_i}",
25
- }
26
- else
27
- config.action_controller.perform_caching = false
28
-
29
- config.cache_store = :null_store
30
- end
31
-
32
- # Print deprecation notices to the Rails logger.
33
- config.active_support.deprecation = :log
34
-
35
- # Raises error for missing translations
36
- # config.action_view.raise_on_missing_translations = true
37
-
38
- # Use an evented file watcher to asynchronously detect changes in source code,
39
- # routes, locales, etc. This feature depends on the listen gem.
40
- # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
41
- end
@@ -1,70 +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
- # 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
- config.action_controller.perform_caching = true
18
-
19
- # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
20
- # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
21
- # config.require_master_key = true
22
-
23
- # Disable serving static files from the `/public` folder by default since
24
- # Apache or NGINX already handles this.
25
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
-
27
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
28
- # config.action_controller.asset_host = 'http://assets.example.com'
29
-
30
- # Specifies the header that your server uses for sending files.
31
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
32
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
33
-
34
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
35
- # config.force_ssl = true
36
-
37
- # Use the lowest log level to ensure availability of diagnostic information
38
- # when problems arise.
39
- config.log_level = :debug
40
-
41
- # Prepend all log lines with the following tags.
42
- config.log_tags = [:request_id]
43
-
44
- # Use a different cache store in production.
45
- # config.cache_store = :mem_cache_store
46
-
47
- # Use a real queuing backend for Active Job (and separate queues per environment)
48
- # config.active_job.queue_adapter = :resque
49
- # config.active_job.queue_name_prefix = "rails_5_2_#{Rails.env}"
50
-
51
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
52
- # the I18n.default_locale when a translation cannot be found).
53
- config.i18n.fallbacks = true
54
-
55
- # Send deprecation notices to registered listeners.
56
- config.active_support.deprecation = :notify
57
-
58
- # Use default logging formatter so that PID and timestamp are not suppressed.
59
- config.log_formatter = ::Logger::Formatter.new
60
-
61
- # Use a different logger for distributed setups.
62
- # require 'syslog/logger'
63
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
64
-
65
- if ENV['RAILS_LOG_TO_STDOUT'].present?
66
- logger = ActiveSupport::Logger.new($stdout)
67
- logger.formatter = config.log_formatter
68
- config.logger = ActiveSupport::TaggedLogging.new(logger)
69
- end
70
- end
@@ -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