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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/seed_migrations/version.rb +1 -1
  3. data/test/dummy/Rakefile +2 -3
  4. data/test/dummy/app/assets/stylesheets/application.css +1 -13
  5. data/test/dummy/app/models/application_record.rb +3 -0
  6. data/test/dummy/config/application.rb +25 -39
  7. data/test/dummy/config/boot.rb +4 -9
  8. data/test/dummy/config/environment.rb +4 -4
  9. data/test/dummy/config/environments/development.rb +59 -20
  10. data/test/dummy/config/environments/production.rb +63 -43
  11. data/test/dummy/config/environments/test.rb +32 -26
  12. data/test/dummy/config/locales/en.yml +28 -2
  13. data/test/dummy/config/routes.rb +10 -54
  14. data/test/dummy/config.ru +4 -2
  15. data/test/dummy/db/test.sqlite3 +0 -0
  16. data/test/dummy/log/test.log +355 -547
  17. data/test/dummy/tmp/local_secret.txt +1 -0
  18. metadata +24 -75
  19. data/test/dummy/README.rdoc +0 -261
  20. data/test/dummy/app/assets/javascripts/application.js +0 -15
  21. data/test/dummy/app/controllers/application_controller.rb +0 -3
  22. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  23. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  24. data/test/dummy/config/initializers/inflections.rb +0 -15
  25. data/test/dummy/config/initializers/mime_types.rb +0 -5
  26. data/test/dummy/config/initializers/secret_token.rb +0 -7
  27. data/test/dummy/config/initializers/session_store.rb +0 -8
  28. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  29. data/test/dummy/public/404.html +0 -26
  30. data/test/dummy/public/422.html +0 -26
  31. data/test/dummy/public/500.html +0 -25
  32. data/test/dummy/public/favicon.ico +0 -0
  33. data/test/dummy/script/rails +0 -6
  34. data/test/dummy/tmp/development_secret.txt +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcf02709509690f39ba92f36ff4a98f53673d05309185d3091e23947b33ea945
4
- data.tar.gz: f1b205b25832dcfc5c9e9a90946e674d4a643c315e2f2a93522a78801afc5044
3
+ metadata.gz: 4b7642cced7087cbcfc4ef7dfe9e6d4e5ec998b600b5d318a1ba6e0361075b83
4
+ data.tar.gz: 4fda8c8e8df1b20235e95d3456866eb53cac428cf6e5f7abb8fe82df3b09820b
5
5
  SHA512:
6
- metadata.gz: c586fcd5c4efb81bcd52bc676ea3329788dd7e7245ec051f2c34248083eb90f235f1754dc9ed180a9b3e63d79960170243bb67f94b53b6f24104035bc0d1bc64
7
- data.tar.gz: dee0f188a2454d6c018770831230f984505d4a8bd6330b6dfe02cee66a1bfba1dfc0a775b78389594fe0f57256afe872297784862ecbd06feb39b5df7745e2d6
6
+ metadata.gz: a184ccb3ff05195430354d375cab2bb5248782c9d01022b49bb7daf2e96360fa55cef7a0299ebf1f5aae2a1827fe7b058078f0cad2d240969373ad59d7245731
7
+ data.tar.gz: c32cd7f3a7150e201661901e364fa9bd8e1cd84fe21e95a6d08b5f4aefa910458fd98c0e3da556344679b7942166904fbf0d5a92416765cda94ac4e04b5a9cf4
@@ -1,3 +1,3 @@
1
1
  module SeedMigrations
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
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
- require File.expand_path('../config/application', __FILE__)
4
+ require_relative "config/application"
6
5
 
7
- Dummy::Application.load_tasks
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 */
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ primary_abstract_class
3
+ end
@@ -1,46 +1,32 @@
1
- require File.expand_path('../boot', __FILE__)
1
+ require_relative "boot"
2
2
 
3
- require 'rails/all'
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
- Bundler.require
6
- require "seed_migrations"
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
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Custom directories with classes and modules you want to be autoloadable.
15
- # config.autoload_paths += %W(#{config.root}/extras)
16
-
17
- # Only load the plugins named here, in the order given (default is alphabetical).
18
- # :all can be used as a placeholder for all plugins not explicitly named.
19
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
-
21
- # Activate observers that should always be running.
22
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
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
-
@@ -1,10 +1,5 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
1
+ # Set up gems listed in the Gemfile.
2
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
3
3
 
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
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 rails application
2
- require File.expand_path('../application', __FILE__)
1
+ # Load the Rails application.
2
+ require_relative "application"
3
3
 
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -1,33 +1,72 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
1
+ require "active_support/core_ext/integer/time"
3
2
 
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
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 and disable caching
12
- config.consider_all_requests_local = true
13
- config.action_controller.perform_caching = false
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
- # Don't care if the mailer can't send
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
- # Print deprecation notices to the Rails logger
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
- # Only use best-standards-support built into browsers
22
- config.action_dispatch.best_standards_support = :builtin
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
- # Log the query plan for queries taking more than this (works
25
- # with SQLite, MySQL, and PostgreSQL)
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
- # Do not compress assets
29
- config.assets.compress = false
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
- # Expands the lines which load the assets
32
- config.assets.debug = true
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
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
1
+ require "active_support/core_ext/integer/time"
3
2
 
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
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 and caching is turned on
10
- config.consider_all_requests_local = false
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
- # Disable Rails's static asset server (Apache or nginx will already do this)
14
- config.serve_static_assets = false
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
- # Compress JavaScripts and CSS
17
- config.assets.compress = true
21
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
22
+ # config.asset_host = "http://assets.example.com"
18
23
 
19
- # Don't fallback to assets pipeline if a precompiled asset is missed
20
- config.assets.compile = false
24
+ # Store uploaded files on the local file system (see config/storage.yml for options).
25
+ config.active_storage.service = :local
21
26
 
22
- # Generate digests for assets URLs
23
- config.assets.digest = true
27
+ # Assume all access to the app is happening through a SSL-terminating reverse proxy.
28
+ config.assume_ssl = true
24
29
 
25
- # Defaults to Rails.root.join("public/assets")
26
- # config.assets.manifest = YOUR_PATH
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
- # Specifies the header that your server uses for sending files
29
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
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
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
33
- # config.force_ssl = true
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
- # See everything in the log (default is :info)
36
- # config.log_level = :debug
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
- # Prepend all log lines with the following tags
39
- # config.log_tags = [ :subdomain, :uuid ]
43
+ # Prevent health checks from clogging up the logs.
44
+ config.silence_healthcheck_path = "/up"
40
45
 
41
- # Use a different logger for distributed setups
42
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
46
+ # Don't log any deprecations.
47
+ config.active_support.report_deprecations = false
43
48
 
44
- # Use a different cache store in production
49
+ # Replace the default in-process memory cache store with a durable alternative.
45
50
  # config.cache_store = :mem_cache_store
46
51
 
47
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
48
- # config.action_controller.asset_host = "http://assets.example.com"
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
- # Disable delivery errors, bad email addresses will be ignored
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
- # Enable threaded mode
57
- # config.threadsafe!
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 can not be found)
72
+ # the I18n.default_locale when a translation cannot be found).
61
73
  config.i18n.fallbacks = true
62
74
 
63
- # Send deprecation notices to registered listeners
64
- config.active_support.deprecation = :notify
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
- # Log the query plan for queries taking more than this (works
67
- # with SQLite, MySQL, and PostgreSQL)
68
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
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
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
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
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
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
- config.eager_load = false
9
+ # While tests run files are not watched, reloading is not necessary.
10
+ config.enable_reloading = false
11
11
 
12
- # Configure static asset server for tests with Cache-Control for performance
13
- config.serve_static_assets = true
14
- config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
15
-
16
- # Log error messages when you accidentally call methods on nil
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
- # Show full error reports and disable caching
20
- config.consider_all_requests_local = true
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
- # Raise exceptions instead of rendering exception templates
24
- config.action_dispatch.show_exceptions = false
21
+ # Show full error reports.
22
+ config.consider_all_requests_local = true
23
+ config.cache_store = :null_store
25
24
 
26
- # Disable request forgery protection in test environment
27
- config.action_controller.allow_forgery_protection = false
25
+ # Render exception templates for rescuable exceptions and raise for other exceptions.
26
+ config.action_dispatch.show_exceptions = :rescuable
28
27
 
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
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
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
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"
@@ -1,58 +1,14 @@
1
- Dummy::Application.routes.draw do
2
- # The priority is based upon order of creation:
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
- # Sample of regular route:
6
- # match 'products/:id' => 'catalog#view'
7
- # Keep in mind you can assign values other than :controller and :action
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
- # Sample of named route:
10
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
- # This route can be invoked with purchase_url(:id => product.id)
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
- # Sample resource route (maps HTTP verbs to controller actions automatically):
14
- # resources :products
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
@@ -1,4 +1,6 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
3
+ require_relative "config/environment"
4
+
5
+ run Rails.application
6
+ Rails.application.load_server
Binary file