seed_migrations 1.5.0 → 1.6.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/lib/seed_migrations/version.rb +1 -1
- data/test/dummy/Rakefile +2 -3
- data/test/dummy/app/assets/stylesheets/application.css +1 -13
- data/test/dummy/app/models/application_record.rb +3 -0
- data/test/dummy/config/application.rb +25 -39
- data/test/dummy/config/boot.rb +4 -9
- data/test/dummy/config/environment.rb +4 -4
- data/test/dummy/config/environments/development.rb +59 -20
- data/test/dummy/config/environments/production.rb +63 -43
- data/test/dummy/config/environments/test.rb +32 -26
- data/test/dummy/config/locales/en.yml +28 -2
- data/test/dummy/config/routes.rb +10 -54
- data/test/dummy/config.ru +4 -2
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +355 -547
- data/test/dummy/tmp/local_secret.txt +1 -0
- metadata +24 -75
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dummy/tmp/development_secret.txt +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b7642cced7087cbcfc4ef7dfe9e6d4e5ec998b600b5d318a1ba6e0361075b83
|
|
4
|
+
data.tar.gz: 4fda8c8e8df1b20235e95d3456866eb53cac428cf6e5f7abb8fe82df3b09820b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a184ccb3ff05195430354d375cab2bb5248782c9d01022b49bb7daf2e96360fa55cef7a0299ebf1f5aae2a1827fe7b058078f0cad2d240969373ad59d7245731
|
|
7
|
+
data.tar.gz: c32cd7f3a7150e201661901e364fa9bd8e1cd84fe21e95a6d08b5f4aefa910458fd98c0e3da556344679b7942166904fbf0d5a92416765cda94ac4e04b5a9cf4
|
data/test/dummy/Rakefile
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
#!/usr/bin/env rake
|
|
2
1
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
3
2
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
require_relative "config/application"
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
Rails.application.load_tasks
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
|
10
|
-
*
|
|
11
|
-
*= require_self
|
|
12
|
-
*= require_tree .
|
|
13
|
-
*/
|
|
1
|
+
/* Application styles */
|
|
@@ -1,46 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
require_relative "boot"
|
|
2
2
|
|
|
3
|
-
require
|
|
3
|
+
require "rails"
|
|
4
|
+
# Pick the frameworks you want:
|
|
5
|
+
require "active_model/railtie"
|
|
6
|
+
require "active_record/railtie"
|
|
7
|
+
require "action_controller/railtie"
|
|
8
|
+
require "action_view/railtie"
|
|
9
|
+
require "rails/test_unit/railtie"
|
|
4
10
|
|
|
5
|
-
|
|
6
|
-
|
|
11
|
+
# Require the gems listed in Gemfile, including any gems
|
|
12
|
+
# you've limited to :test, :development, or :production.
|
|
13
|
+
Bundler.require(*Rails.groups)
|
|
7
14
|
|
|
8
15
|
module Dummy
|
|
9
16
|
class Application < Rails::Application
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
#
|
|
13
|
-
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
#
|
|
22
|
-
# config.
|
|
23
|
-
|
|
24
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
25
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
26
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
|
27
|
-
|
|
28
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
29
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
30
|
-
# config.i18n.default_locale = :de
|
|
31
|
-
|
|
32
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
|
33
|
-
config.encoding = "utf-8"
|
|
34
|
-
|
|
35
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
|
36
|
-
config.filter_parameters += [:password]
|
|
37
|
-
|
|
38
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
|
39
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
|
40
|
-
# like if you have constraints or database-specific column types
|
|
41
|
-
# config.active_record.schema_format = :sql
|
|
42
|
-
|
|
43
|
-
config.active_record.legacy_connection_handling = false
|
|
17
|
+
config.load_defaults Rails::VERSION::STRING.to_f
|
|
18
|
+
|
|
19
|
+
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
|
20
|
+
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
|
21
|
+
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
|
22
|
+
config.autoload_lib(ignore: %w[assets tasks])
|
|
23
|
+
|
|
24
|
+
# Configuration for the application, engines, and railties goes here.
|
|
25
|
+
#
|
|
26
|
+
# These settings can be overridden in specific environments using the files
|
|
27
|
+
# in config/environments, which are processed later.
|
|
28
|
+
#
|
|
29
|
+
# config.time_zone = "Central Time (US & Canada)"
|
|
30
|
+
# config.eager_load_paths << Rails.root.join("extras")
|
|
44
31
|
end
|
|
45
32
|
end
|
|
46
|
-
|
data/test/dummy/config/boot.rb
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# Set up gems listed in the Gemfile.
|
|
2
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
|
|
3
3
|
|
|
4
|
-
if File.exist?(
|
|
5
|
-
|
|
6
|
-
require 'bundler'
|
|
7
|
-
Bundler.setup
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
|
4
|
+
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
|
5
|
+
$LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Load the
|
|
2
|
-
|
|
1
|
+
# Load the Rails application.
|
|
2
|
+
require_relative "application"
|
|
3
3
|
|
|
4
|
-
# Initialize the
|
|
5
|
-
|
|
4
|
+
# Initialize the Rails application.
|
|
5
|
+
Rails.application.initialize!
|
|
@@ -1,33 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
#
|
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
|
7
|
-
config.cache_classes = false
|
|
3
|
+
Rails.application.configure do
|
|
4
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
|
8
5
|
|
|
6
|
+
# Make code changes take effect immediately without server restart.
|
|
7
|
+
config.enable_reloading = true
|
|
8
|
+
|
|
9
|
+
# Do not eager load code on boot.
|
|
9
10
|
config.eager_load = false
|
|
10
11
|
|
|
11
|
-
# Show full error reports
|
|
12
|
-
config.consider_all_requests_local
|
|
13
|
-
|
|
12
|
+
# Show full error reports.
|
|
13
|
+
config.consider_all_requests_local = true
|
|
14
|
+
|
|
15
|
+
# Enable server timing.
|
|
16
|
+
config.server_timing = true
|
|
17
|
+
|
|
18
|
+
# Enable/disable Action Controller caching. By default Action Controller caching is disabled.
|
|
19
|
+
# Run rails dev:cache to toggle Action Controller caching.
|
|
20
|
+
if Rails.root.join("tmp/caching-dev.txt").exist?
|
|
21
|
+
config.action_controller.perform_caching = true
|
|
22
|
+
config.action_controller.enable_fragment_cache_logging = true
|
|
23
|
+
config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
|
|
24
|
+
else
|
|
25
|
+
config.action_controller.perform_caching = false
|
|
26
|
+
end
|
|
14
27
|
|
|
15
|
-
#
|
|
28
|
+
# Change to :null_store to avoid any caching.
|
|
29
|
+
config.cache_store = :memory_store
|
|
30
|
+
|
|
31
|
+
# Store uploaded files on the local file system (see config/storage.yml for options).
|
|
32
|
+
config.active_storage.service = :local
|
|
33
|
+
|
|
34
|
+
# Don't care if the mailer can't send.
|
|
16
35
|
config.action_mailer.raise_delivery_errors = false
|
|
17
36
|
|
|
18
|
-
#
|
|
37
|
+
# Make template changes take effect immediately.
|
|
38
|
+
config.action_mailer.perform_caching = false
|
|
39
|
+
|
|
40
|
+
# Set localhost to be used by links generated in mailer templates.
|
|
41
|
+
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
|
|
42
|
+
|
|
43
|
+
# Print deprecation notices to the Rails logger.
|
|
19
44
|
config.active_support.deprecation = :log
|
|
20
45
|
|
|
21
|
-
#
|
|
22
|
-
config.
|
|
46
|
+
# Raise an error on page load if there are pending migrations.
|
|
47
|
+
config.active_record.migration_error = :page_load
|
|
48
|
+
|
|
49
|
+
# Highlight code that triggered database queries in logs.
|
|
50
|
+
config.active_record.verbose_query_logs = true
|
|
51
|
+
|
|
52
|
+
# Append comments with runtime information tags to SQL queries in logs.
|
|
53
|
+
config.active_record.query_log_tags_enabled = true
|
|
54
|
+
|
|
55
|
+
# Highlight code that enqueued background job in logs.
|
|
56
|
+
config.active_job.verbose_enqueue_logs = true
|
|
57
|
+
|
|
58
|
+
# Highlight code that triggered redirect in logs.
|
|
59
|
+
config.action_dispatch.verbose_redirect_logs = true
|
|
60
|
+
|
|
61
|
+
# Raises error for missing translations.
|
|
62
|
+
# config.i18n.raise_on_missing_translations = true
|
|
23
63
|
|
|
24
|
-
#
|
|
25
|
-
|
|
26
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
|
64
|
+
# Annotate rendered view with file names.
|
|
65
|
+
config.action_view.annotate_rendered_view_with_filenames = true
|
|
27
66
|
|
|
28
|
-
#
|
|
29
|
-
config.
|
|
67
|
+
# Uncomment if you wish to allow Action Cable access from any origin.
|
|
68
|
+
# config.action_cable.disable_request_forgery_protection = true
|
|
30
69
|
|
|
31
|
-
#
|
|
32
|
-
config.
|
|
70
|
+
# Raise error when a before_action's only/except options reference missing actions.
|
|
71
|
+
config.action_controller.raise_on_missing_callback_actions = true
|
|
33
72
|
end
|
|
@@ -1,69 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
config.
|
|
6
|
-
|
|
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.enable_reloading = false
|
|
8
|
+
|
|
9
|
+
# Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
|
|
7
10
|
config.eager_load = true
|
|
8
11
|
|
|
9
|
-
# Full error reports are disabled
|
|
10
|
-
config.consider_all_requests_local
|
|
12
|
+
# Full error reports are disabled.
|
|
13
|
+
config.consider_all_requests_local = false
|
|
14
|
+
|
|
15
|
+
# Turn on fragment caching in view templates.
|
|
11
16
|
config.action_controller.perform_caching = true
|
|
12
17
|
|
|
13
|
-
#
|
|
14
|
-
config.
|
|
18
|
+
# Cache assets for far-future expiry since they are all digest stamped.
|
|
19
|
+
config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
|
|
15
20
|
|
|
16
|
-
#
|
|
17
|
-
config.
|
|
21
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
|
22
|
+
# config.asset_host = "http://assets.example.com"
|
|
18
23
|
|
|
19
|
-
#
|
|
20
|
-
config.
|
|
24
|
+
# Store uploaded files on the local file system (see config/storage.yml for options).
|
|
25
|
+
config.active_storage.service = :local
|
|
21
26
|
|
|
22
|
-
#
|
|
23
|
-
config.
|
|
27
|
+
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
|
|
28
|
+
config.assume_ssl = true
|
|
24
29
|
|
|
25
|
-
#
|
|
26
|
-
|
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
|
31
|
+
config.force_ssl = true
|
|
27
32
|
|
|
28
|
-
#
|
|
29
|
-
# config.
|
|
30
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
|
33
|
+
# Skip http-to-https redirect for the default health check endpoint.
|
|
34
|
+
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
|
|
31
35
|
|
|
32
|
-
#
|
|
33
|
-
|
|
36
|
+
# Log to STDOUT with the current request id as a default log tag.
|
|
37
|
+
config.log_tags = [ :request_id ]
|
|
38
|
+
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
|
|
34
39
|
|
|
35
|
-
#
|
|
36
|
-
|
|
40
|
+
# Change to "debug" to log everything (including potentially personally-identifiable information!).
|
|
41
|
+
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
|
|
37
42
|
|
|
38
|
-
#
|
|
39
|
-
|
|
43
|
+
# Prevent health checks from clogging up the logs.
|
|
44
|
+
config.silence_healthcheck_path = "/up"
|
|
40
45
|
|
|
41
|
-
#
|
|
42
|
-
|
|
46
|
+
# Don't log any deprecations.
|
|
47
|
+
config.active_support.report_deprecations = false
|
|
43
48
|
|
|
44
|
-
#
|
|
49
|
+
# Replace the default in-process memory cache store with a durable alternative.
|
|
45
50
|
# config.cache_store = :mem_cache_store
|
|
46
51
|
|
|
47
|
-
#
|
|
48
|
-
# config.
|
|
49
|
-
|
|
50
|
-
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
|
51
|
-
# config.assets.precompile += %w( search.js )
|
|
52
|
+
# Replace the default in-process and non-durable queuing backend for Active Job.
|
|
53
|
+
# config.active_job.queue_adapter = :resque
|
|
52
54
|
|
|
53
|
-
#
|
|
55
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
|
56
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
|
54
57
|
# config.action_mailer.raise_delivery_errors = false
|
|
55
58
|
|
|
56
|
-
#
|
|
57
|
-
|
|
59
|
+
# Set host to be used by links generated in mailer templates.
|
|
60
|
+
config.action_mailer.default_url_options = { host: "example.com" }
|
|
61
|
+
|
|
62
|
+
# Specify outgoing SMTP server. Remember to add smtp/* credentials via bin/rails credentials:edit.
|
|
63
|
+
# config.action_mailer.smtp_settings = {
|
|
64
|
+
# user_name: Rails.application.credentials.dig(:smtp, :user_name),
|
|
65
|
+
# password: Rails.application.credentials.dig(:smtp, :password),
|
|
66
|
+
# address: "smtp.example.com",
|
|
67
|
+
# port: 587,
|
|
68
|
+
# authentication: :plain
|
|
69
|
+
# }
|
|
58
70
|
|
|
59
71
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
60
|
-
# the I18n.default_locale when a translation
|
|
72
|
+
# the I18n.default_locale when a translation cannot be found).
|
|
61
73
|
config.i18n.fallbacks = true
|
|
62
74
|
|
|
63
|
-
#
|
|
64
|
-
config.
|
|
75
|
+
# Do not dump schema after migrations.
|
|
76
|
+
config.active_record.dump_schema_after_migration = false
|
|
77
|
+
|
|
78
|
+
# Only use :id for inspections in production.
|
|
79
|
+
config.active_record.attributes_for_inspect = [ :id ]
|
|
65
80
|
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
81
|
+
# Enable DNS rebinding protection and other `Host` header attacks.
|
|
82
|
+
# config.hosts = [
|
|
83
|
+
# "example.com", # Allow requests from example.com
|
|
84
|
+
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
|
|
85
|
+
# ]
|
|
86
|
+
#
|
|
87
|
+
# Skip DNS rebinding protection for the default health check endpoint.
|
|
88
|
+
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
|
69
89
|
end
|
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# The test environment is used exclusively to run your application's
|
|
2
|
+
# test suite. You never need to work with it otherwise. Remember that
|
|
3
|
+
# your test database is "scratch space" for the test suite and is wiped
|
|
4
|
+
# and recreated between test runs. Don't rely on the data there!
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
#
|
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
|
8
|
-
config.cache_classes = true
|
|
6
|
+
Rails.application.configure do
|
|
7
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
# While tests run files are not watched, reloading is not necessary.
|
|
10
|
+
config.enable_reloading = false
|
|
11
11
|
|
|
12
|
-
#
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
config.whiny_nils = true
|
|
12
|
+
# Eager loading loads your entire application. When running a single test locally,
|
|
13
|
+
# this is usually not necessary, and can slow down your test suite. However, it's
|
|
14
|
+
# recommended that you enable it in continuous integration systems to ensure eager
|
|
15
|
+
# loading is working properly before deploying your code.
|
|
16
|
+
config.eager_load = ENV["CI"].present?
|
|
18
17
|
|
|
19
|
-
#
|
|
20
|
-
config.
|
|
21
|
-
config.action_controller.perform_caching = false
|
|
18
|
+
# Configure public file server for tests with cache-control for performance.
|
|
19
|
+
config.public_file_server.headers = { "cache-control" => "public, max-age=3600" }
|
|
22
20
|
|
|
23
|
-
#
|
|
24
|
-
config.
|
|
21
|
+
# Show full error reports.
|
|
22
|
+
config.consider_all_requests_local = true
|
|
23
|
+
config.cache_store = :null_store
|
|
25
24
|
|
|
26
|
-
#
|
|
27
|
-
config.
|
|
25
|
+
# Render exception templates for rescuable exceptions and raise for other exceptions.
|
|
26
|
+
config.action_dispatch.show_exceptions = :rescuable
|
|
28
27
|
|
|
29
|
-
#
|
|
30
|
-
|
|
31
|
-
# ActionMailer::Base.deliveries array.
|
|
32
|
-
config.action_mailer.delivery_method = :test
|
|
28
|
+
# Disable request forgery protection in test environment.
|
|
29
|
+
config.action_controller.allow_forgery_protection = false
|
|
33
30
|
|
|
34
|
-
# Print deprecation notices to the stderr
|
|
31
|
+
# Print deprecation notices to the stderr.
|
|
35
32
|
config.active_support.deprecation = :stderr
|
|
33
|
+
|
|
34
|
+
# Raises error for missing translations.
|
|
35
|
+
# config.i18n.raise_on_missing_translations = true
|
|
36
|
+
|
|
37
|
+
# Annotate rendered view with file names.
|
|
38
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
|
39
|
+
|
|
40
|
+
# Raise error when a before_action's only/except options reference missing actions.
|
|
41
|
+
config.action_controller.raise_on_missing_callback_actions = true
|
|
36
42
|
end
|
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
1
|
+
# Files in the config/locales directory are used for internationalization and
|
|
2
|
+
# are automatically loaded by Rails. If you want to use locales other than
|
|
3
|
+
# 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
|
+
# To learn more about the API, please read the Rails Internationalization guide
|
|
20
|
+
# at https://guides.rubyonrails.org/i18n.html.
|
|
21
|
+
#
|
|
22
|
+
# Be aware that YAML interprets the following case-insensitive strings as
|
|
23
|
+
# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings
|
|
24
|
+
# must be quoted to be interpreted as strings. For example:
|
|
25
|
+
#
|
|
26
|
+
# en:
|
|
27
|
+
# "yes": yup
|
|
28
|
+
# enabled: "ON"
|
|
3
29
|
|
|
4
30
|
en:
|
|
5
31
|
hello: "Hello world"
|
data/test/dummy/config/routes.rb
CHANGED
|
@@ -1,58 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
#
|
|
3
|
-
# first created -> highest priority.
|
|
1
|
+
Rails.application.routes.draw do
|
|
2
|
+
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
|
4
3
|
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
|
|
4
|
+
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
|
5
|
+
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
|
6
|
+
get "up" => "rails/health#show", as: :rails_health_check
|
|
8
7
|
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
8
|
+
# Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
|
|
9
|
+
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
|
|
10
|
+
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
|
|
12
11
|
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
# Sample resource route with options:
|
|
17
|
-
# resources :products do
|
|
18
|
-
# member do
|
|
19
|
-
# get 'short'
|
|
20
|
-
# post 'toggle'
|
|
21
|
-
# end
|
|
22
|
-
#
|
|
23
|
-
# collection do
|
|
24
|
-
# get 'sold'
|
|
25
|
-
# end
|
|
26
|
-
# end
|
|
27
|
-
|
|
28
|
-
# Sample resource route with sub-resources:
|
|
29
|
-
# resources :products do
|
|
30
|
-
# resources :comments, :sales
|
|
31
|
-
# resource :seller
|
|
32
|
-
# end
|
|
33
|
-
|
|
34
|
-
# Sample resource route with more complex sub-resources
|
|
35
|
-
# resources :products do
|
|
36
|
-
# resources :comments
|
|
37
|
-
# resources :sales do
|
|
38
|
-
# get 'recent', :on => :collection
|
|
39
|
-
# end
|
|
40
|
-
# end
|
|
41
|
-
|
|
42
|
-
# Sample resource route within a namespace:
|
|
43
|
-
# namespace :admin do
|
|
44
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
|
45
|
-
# # (app/controllers/admin/products_controller.rb)
|
|
46
|
-
# resources :products
|
|
47
|
-
# end
|
|
48
|
-
|
|
49
|
-
# You can have the root of your site routed with "root"
|
|
50
|
-
# just remember to delete public/index.html.
|
|
51
|
-
# root :to => 'welcome#index'
|
|
52
|
-
|
|
53
|
-
# See how all your routes lay out with "rake routes"
|
|
54
|
-
|
|
55
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
|
56
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
|
57
|
-
# match ':controller(/:action(/:id))(.:format)'
|
|
12
|
+
# Defines the root path route ("/")
|
|
13
|
+
# root "posts#index"
|
|
58
14
|
end
|
data/test/dummy/config.ru
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|