themes 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +5 -13
  2. data/Rakefile +2 -1
  3. data/lib/themes.rb +6 -5
  4. data/lib/themes/engine.rb +1 -3
  5. data/lib/themes/loader.rb +3 -0
  6. data/lib/themes/version.rb +1 -1
  7. data/spec/dummy/log/test.log +0 -264
  8. data/spec/{dummy → dummy3}/README.rdoc +0 -0
  9. data/spec/{dummy → dummy3}/Rakefile +0 -0
  10. data/spec/dummy3/app +1 -0
  11. data/spec/{dummy → dummy3}/config.ru +0 -0
  12. data/spec/{dummy → dummy3}/config/application.rb +0 -0
  13. data/spec/{dummy → dummy3}/config/boot.rb +0 -0
  14. data/spec/{dummy → dummy3}/config/database.yml +0 -0
  15. data/spec/{dummy → dummy3}/config/environment.rb +0 -0
  16. data/spec/{dummy → dummy3}/config/environments/development.rb +0 -0
  17. data/spec/{dummy → dummy3}/config/environments/production.rb +0 -0
  18. data/spec/{dummy → dummy3}/config/environments/test.rb +0 -0
  19. data/spec/{dummy → dummy3}/config/initializers/backtrace_silencers.rb +0 -0
  20. data/spec/{dummy → dummy3}/config/initializers/inflections.rb +0 -0
  21. data/spec/{dummy → dummy3}/config/initializers/mime_types.rb +0 -0
  22. data/spec/{dummy → dummy3}/config/initializers/secret_token.rb +0 -0
  23. data/spec/{dummy → dummy3}/config/initializers/session_store.rb +0 -0
  24. data/spec/{dummy → dummy3}/config/initializers/wrap_parameters.rb +0 -0
  25. data/spec/{dummy → dummy3}/config/locales/en.yml +0 -0
  26. data/spec/{dummy → dummy3}/config/routes.rb +0 -0
  27. data/spec/{dummy → dummy3}/config/themes/test.rb +0 -0
  28. data/spec/dummy3/log/test.log +232 -0
  29. data/spec/{dummy → dummy3}/public/404.html +0 -0
  30. data/spec/{dummy → dummy3}/public/422.html +0 -0
  31. data/spec/{dummy → dummy3}/public/500.html +0 -0
  32. data/spec/{dummy → dummy3}/public/favicon.ico +0 -0
  33. data/spec/{dummy → dummy3}/script/rails +0 -0
  34. data/spec/dummy4/README.rdoc +261 -0
  35. data/spec/dummy4/Rakefile +7 -0
  36. data/spec/dummy4/app +1 -0
  37. data/spec/dummy4/bin/bundle +3 -0
  38. data/spec/dummy4/bin/rails +4 -0
  39. data/spec/dummy4/bin/rake +4 -0
  40. data/spec/dummy4/bin/setup +29 -0
  41. data/spec/dummy4/config.ru +4 -0
  42. data/spec/dummy4/config/application.rb +26 -0
  43. data/spec/dummy4/config/boot.rb +3 -0
  44. data/spec/dummy4/config/database.yml +26 -0
  45. data/spec/dummy4/config/environment.rb +5 -0
  46. data/spec/dummy4/config/environments/development.rb +41 -0
  47. data/spec/dummy4/config/environments/production.rb +79 -0
  48. data/spec/dummy4/config/environments/test.rb +42 -0
  49. data/spec/dummy4/config/initializers/assets.rb +11 -0
  50. data/spec/dummy4/config/initializers/backtrace_silencers.rb +7 -0
  51. data/spec/dummy4/config/initializers/cookies_serializer.rb +3 -0
  52. data/spec/dummy4/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/spec/dummy4/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy4/config/initializers/mime_types.rb +4 -0
  55. data/spec/dummy4/config/initializers/secret_token.rb +12 -0
  56. data/spec/dummy4/config/initializers/session_store.rb +3 -0
  57. data/spec/dummy4/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/dummy4/config/locales/en.yml +23 -0
  59. data/spec/dummy4/config/routes.rb +57 -0
  60. data/spec/dummy4/config/secrets.yml +22 -0
  61. data/spec/dummy4/config/themes/test.rb +8 -0
  62. data/spec/dummy4/log/test.log +196 -0
  63. data/spec/dummy4/public/404.html +26 -0
  64. data/spec/dummy4/public/422.html +26 -0
  65. data/spec/dummy4/public/500.html +25 -0
  66. data/spec/dummy4/public/favicon.ico +0 -0
  67. data/spec/dummy4/script/rails +6 -0
  68. data/spec/dummy5/README.rdoc +261 -0
  69. data/spec/dummy5/Rakefile +7 -0
  70. data/spec/dummy5/app +1 -0
  71. data/spec/dummy5/bin/bundle +3 -0
  72. data/spec/dummy5/bin/rails +4 -0
  73. data/spec/dummy5/bin/rake +4 -0
  74. data/spec/dummy5/bin/setup +36 -0
  75. data/spec/dummy5/bin/update +31 -0
  76. data/spec/dummy5/bin/yarn +11 -0
  77. data/spec/dummy5/config.ru +4 -0
  78. data/spec/dummy5/config/application.rb +19 -0
  79. data/spec/dummy5/config/boot.rb +4 -0
  80. data/spec/dummy5/config/cable.yml +10 -0
  81. data/spec/dummy5/config/database.yml +26 -0
  82. data/spec/dummy5/config/environment.rb +5 -0
  83. data/spec/dummy5/config/environments/development.rb +61 -0
  84. data/spec/dummy5/config/environments/production.rb +94 -0
  85. data/spec/dummy5/config/environments/test.rb +46 -0
  86. data/spec/dummy5/config/initializers/application_controller_renderer.rb +8 -0
  87. data/spec/dummy5/config/initializers/assets.rb +14 -0
  88. data/spec/dummy5/config/initializers/backtrace_silencers.rb +7 -0
  89. data/spec/dummy5/config/initializers/content_security_policy.rb +25 -0
  90. data/spec/dummy5/config/initializers/cookies_serializer.rb +5 -0
  91. data/spec/dummy5/config/initializers/filter_parameter_logging.rb +4 -0
  92. data/spec/dummy5/config/initializers/inflections.rb +16 -0
  93. data/spec/dummy5/config/initializers/mime_types.rb +4 -0
  94. data/spec/dummy5/config/initializers/new_framework_defaults_5_2.rb +38 -0
  95. data/spec/dummy5/config/initializers/secret_token.rb +12 -0
  96. data/spec/dummy5/config/initializers/session_store.rb +3 -0
  97. data/spec/dummy5/config/initializers/wrap_parameters.rb +14 -0
  98. data/spec/dummy5/config/locales/en.yml +33 -0
  99. data/spec/dummy5/config/routes.rb +4 -0
  100. data/spec/dummy5/config/secrets.yml +22 -0
  101. data/spec/dummy5/config/storage.yml +34 -0
  102. data/spec/dummy5/config/themes/test.rb +8 -0
  103. data/spec/dummy5/log/test.log +336 -0
  104. data/spec/dummy5/public/404.html +26 -0
  105. data/spec/dummy5/public/422.html +26 -0
  106. data/spec/dummy5/public/500.html +25 -0
  107. data/spec/dummy5/public/favicon.ico +0 -0
  108. data/spec/dummy5/script/rails +6 -0
  109. data/spec/dummy6/README.rdoc +261 -0
  110. data/spec/dummy6/Rakefile +7 -0
  111. data/spec/dummy6/app +1 -0
  112. data/spec/dummy6/bin/bundle +3 -0
  113. data/spec/dummy6/bin/rails +4 -0
  114. data/spec/dummy6/bin/rake +4 -0
  115. data/spec/dummy6/bin/setup +36 -0
  116. data/spec/dummy6/bin/update +31 -0
  117. data/spec/dummy6/bin/yarn +11 -0
  118. data/spec/dummy6/config.ru +4 -0
  119. data/spec/dummy6/config/application.rb +19 -0
  120. data/spec/dummy6/config/boot.rb +3 -0
  121. data/spec/dummy6/config/cable.yml +10 -0
  122. data/spec/dummy6/config/database.yml +26 -0
  123. data/spec/dummy6/config/environment.rb +5 -0
  124. data/spec/dummy6/config/environments/development.rb +62 -0
  125. data/spec/dummy6/config/environments/production.rb +112 -0
  126. data/spec/dummy6/config/environments/test.rb +48 -0
  127. data/spec/dummy6/config/initializers/application_controller_renderer.rb +8 -0
  128. data/spec/dummy6/config/initializers/assets.rb +14 -0
  129. data/spec/dummy6/config/initializers/backtrace_silencers.rb +7 -0
  130. data/spec/dummy6/config/initializers/content_security_policy.rb +30 -0
  131. data/spec/dummy6/config/initializers/cookies_serializer.rb +5 -0
  132. data/spec/dummy6/config/initializers/filter_parameter_logging.rb +4 -0
  133. data/spec/dummy6/config/initializers/inflections.rb +16 -0
  134. data/spec/dummy6/config/initializers/mime_types.rb +4 -0
  135. data/spec/dummy6/config/initializers/new_framework_defaults_5_2.rb +38 -0
  136. data/spec/dummy6/config/initializers/new_framework_defaults_6_0.rb +45 -0
  137. data/spec/dummy6/config/initializers/secret_token.rb +12 -0
  138. data/spec/dummy6/config/initializers/session_store.rb +3 -0
  139. data/spec/dummy6/config/initializers/wrap_parameters.rb +14 -0
  140. data/spec/dummy6/config/locales/en.yml +33 -0
  141. data/spec/dummy6/config/routes.rb +3 -0
  142. data/spec/dummy6/config/secrets.yml +22 -0
  143. data/spec/dummy6/config/storage.yml +34 -0
  144. data/spec/dummy6/config/themes/test.rb +8 -0
  145. data/spec/dummy6/log/development.log +0 -0
  146. data/spec/dummy6/log/test.log +630 -0
  147. data/spec/dummy6/public/404.html +26 -0
  148. data/spec/dummy6/public/422.html +26 -0
  149. data/spec/dummy6/public/500.html +25 -0
  150. data/spec/dummy6/public/favicon.ico +0 -0
  151. data/spec/dummy6/script/rails +6 -0
  152. data/spec/dummy_app_folder/assets/config/manifest.js +3 -0
  153. data/spec/{dummy/app → dummy_app_folder}/assets/javascripts/application.js +0 -0
  154. data/spec/{dummy/app → dummy_app_folder}/assets/stylesheets/application.css +0 -0
  155. data/spec/{dummy/app → dummy_app_folder}/controllers/application_controller.rb +0 -0
  156. data/spec/{dummy/app → dummy_app_folder}/controllers/posts_controller.rb +0 -0
  157. data/spec/{dummy/app → dummy_app_folder}/helpers/application_helper.rb +0 -0
  158. data/spec/{dummy/app → dummy_app_folder}/mailers/notifier.rb +0 -0
  159. data/spec/dummy_app_folder/views/layouts/application.html.erb +6 -0
  160. data/spec/{dummy/app → dummy_app_folder}/views/notifier/good_bye_message.html.erb +0 -0
  161. data/spec/{dummy/app → dummy_app_folder}/views/notifier/wellcome_message.html.erb +0 -0
  162. data/spec/{dummy/app → dummy_app_folder}/views/posts/index.html.erb +0 -0
  163. data/spec/dummy_app_folder/views/themes/test/layouts/application.html.erb +7 -0
  164. data/spec/{dummy/app → dummy_app_folder}/views/themes/test/notifier/wellcome_message.html.erb +0 -0
  165. data/spec/{dummy/app → dummy_app_folder}/views/themes/test/posts/index.html.erb +0 -0
  166. data/spec/{controllers → features}/posts_controller_spec.rb +5 -9
  167. data/spec/generators/new_theme_generator_spec.rb +4 -4
  168. data/spec/spec_helper.rb +8 -7
  169. data/spec/themes_engine_spec.rb +5 -5
  170. metadata +452 -111
  171. data/spec/dummy/app/views/layouts/application.html.erb +0 -4
  172. data/spec/dummy/app/views/themes/test/layouts/application.html.erb +0 -4
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path('..', __dir__)
3
+ Dir.chdir(APP_ROOT) do
4
+ begin
5
+ exec "yarnpkg", *ARGV
6
+ rescue Errno::ENOENT
7
+ $stderr.puts "Yarn executable was not detected in the system."
8
+ $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9
+ exit 1
10
+ end
11
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,19 @@
1
+ require_relative 'boot'
2
+
3
+ require 'rails/all'
4
+
5
+ # Require the gems listed in Gemfile, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(*Rails.groups)
8
+
9
+ module Dummy
10
+ class Application < Rails::Application
11
+ # Initialize configuration defaults for originally generated Rails version.
12
+ config.load_defaults 6.0
13
+
14
+ # Settings in config/environments/* take precedence over those specified here.
15
+ # Application configuration can go into files in config/initializers
16
+ # -- all .rb files in that directory are automatically loaded after loading
17
+ # the framework and any gems in your application.
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2
+
3
+ require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -0,0 +1,10 @@
1
+ development:
2
+ adapter: async
3
+
4
+ test:
5
+ adapter: test
6
+
7
+ production:
8
+ adapter: redis
9
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
+ channel_prefix: dummy_production
@@ -0,0 +1,26 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: ":memory:"
18
+ pool: 5
19
+ timeout: 5000
20
+ verbosity: quiet
21
+
22
+ production:
23
+ adapter: sqlite3
24
+ database: db/production.sqlite3
25
+ pool: 5
26
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require_relative 'application'
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,62 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
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
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports.
13
+ config.consider_all_requests_local = true
14
+
15
+ # Enable/disable caching. By default caching is disabled.
16
+ # Run rails dev:cache to toggle caching.
17
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
18
+ config.action_controller.perform_caching = true
19
+ config.action_controller.enable_fragment_cache_logging = true
20
+
21
+ config.cache_store = :memory_store
22
+ config.public_file_server.headers = {
23
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
24
+ }
25
+ else
26
+ config.action_controller.perform_caching = false
27
+
28
+ config.cache_store = :null_store
29
+ end
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.
35
+ config.action_mailer.raise_delivery_errors = false
36
+
37
+ config.action_mailer.perform_caching = false
38
+
39
+ # Print deprecation notices to the Rails logger.
40
+ config.active_support.deprecation = :log
41
+
42
+ # Raise an error on page load if there are pending migrations.
43
+ config.active_record.migration_error = :page_load
44
+
45
+ # Highlight code that triggered database queries in logs.
46
+ config.active_record.verbose_query_logs = true
47
+
48
+ # Debug mode disables concatenation and preprocessing of assets.
49
+ # This option may cause significant delays in view rendering with a large
50
+ # number of complex assets.
51
+ config.assets.debug = true
52
+
53
+ # Suppress logger output for asset requests.
54
+ config.assets.quiet = true
55
+
56
+ # Raises error for missing translations.
57
+ # config.action_view.raise_on_missing_translations = true
58
+
59
+ # Use an evented file watcher to asynchronously detect changes in source code,
60
+ # routes, locales, etc. This feature depends on the listen gem.
61
+ config.file_watcher = ActiveSupport::EventedFileUpdateChecker
62
+ end
@@ -0,0 +1,112 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
18
+ # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
19
+ # config.require_master_key = true
20
+
21
+ # Disable serving static files from the `/public` folder by default since
22
+ # Apache or NGINX already handles this.
23
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
24
+
25
+ # Compress CSS using a preprocessor.
26
+ # config.assets.css_compressor = :sass
27
+
28
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
29
+ config.assets.compile = false
30
+
31
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
32
+ # config.action_controller.asset_host = 'http://assets.example.com'
33
+
34
+ # Specifies the header that your server uses for sending files.
35
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
36
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
37
+
38
+ # Store uploaded files on the local file system (see config/storage.yml for options).
39
+ config.active_storage.service = :local
40
+
41
+ # Mount Action Cable outside main process or domain.
42
+ # config.action_cable.mount_path = nil
43
+ # config.action_cable.url = 'wss://example.com/cable'
44
+ # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
45
+
46
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
47
+ # config.force_ssl = true
48
+
49
+ # Use the lowest log level to ensure availability of diagnostic information
50
+ # when problems arise.
51
+ config.log_level = :debug
52
+
53
+ # Prepend all log lines with the following tags.
54
+ config.log_tags = [ :request_id ]
55
+
56
+ # Use a different cache store in production.
57
+ # config.cache_store = :mem_cache_store
58
+
59
+ # Use a real queuing backend for Active Job (and separate queues per environment).
60
+ # config.active_job.queue_adapter = :resque
61
+ # config.active_job.queue_name_prefix = "dummy_production"
62
+
63
+ config.action_mailer.perform_caching = false
64
+
65
+ # Ignore bad email addresses and do not raise email delivery errors.
66
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
67
+ # config.action_mailer.raise_delivery_errors = false
68
+
69
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
70
+ # the I18n.default_locale when a translation cannot be found).
71
+ config.i18n.fallbacks = true
72
+
73
+ # Send deprecation notices to registered listeners.
74
+ config.active_support.deprecation = :notify
75
+
76
+ # Use default logging formatter so that PID and timestamp are not suppressed.
77
+ config.log_formatter = ::Logger::Formatter.new
78
+
79
+ # Use a different logger for distributed setups.
80
+ # require 'syslog/logger'
81
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
82
+
83
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
84
+ logger = ActiveSupport::Logger.new(STDOUT)
85
+ logger.formatter = config.log_formatter
86
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
87
+ end
88
+
89
+ # Do not dump schema after migrations.
90
+ config.active_record.dump_schema_after_migration = false
91
+
92
+ # Inserts middleware to perform automatic connection switching.
93
+ # The `database_selector` hash is used to pass options to the DatabaseSelector
94
+ # middleware. The `delay` is used to determine how long to wait after a write
95
+ # to send a subsequent read to the primary.
96
+ #
97
+ # The `database_resolver` class is used by the middleware to determine which
98
+ # database is appropriate to use based on the time delay.
99
+ #
100
+ # The `database_resolver_context` class is used by the middleware to set
101
+ # timestamps for the last write to the primary. The resolver uses the context
102
+ # class timestamps to determine how long to wait before reading from the
103
+ # replica.
104
+ #
105
+ # By default Rails will store a last write timestamp in the session. The
106
+ # DatabaseSelector middleware is designed as such you can define your own
107
+ # strategy for connection switching and pass that into the middleware through
108
+ # these configuration options.
109
+ # config.active_record.database_selector = { delay: 2.seconds }
110
+ # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
111
+ # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
112
+ end
@@ -0,0 +1,48 @@
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!
5
+
6
+ Rails.application.configure do
7
+ # Settings specified here will take precedence over those in config/application.rb.
8
+
9
+ config.cache_classes = true
10
+
11
+ # Do not eager load code on boot. This avoids loading your whole application
12
+ # just for the purpose of running a single test. If you are using a tool that
13
+ # preloads Rails for running tests, you may have to set it to true.
14
+ config.eager_load = false
15
+
16
+ # Configure public file server for tests with Cache-Control for performance.
17
+ config.public_file_server.enabled = true
18
+ config.public_file_server.headers = {
19
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
20
+ }
21
+
22
+ # Show full error reports and disable caching.
23
+ config.consider_all_requests_local = true
24
+ config.action_controller.perform_caching = false
25
+ config.cache_store = :null_store
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
+ # Store uploaded files on the local file system in a temporary directory.
34
+ config.active_storage.service = :test
35
+
36
+ config.action_mailer.perform_caching = false
37
+
38
+ # Tell Action Mailer not to deliver emails to the real world.
39
+ # The :test delivery method accumulates sent emails in the
40
+ # ActionMailer::Base.deliveries array.
41
+ config.action_mailer.delivery_method = :test
42
+
43
+ # Print deprecation notices to the stderr.
44
+ config.active_support.deprecation = :stderr
45
+
46
+ # Raises error for missing translations.
47
+ # config.action_view.raise_on_missing_translations = true
48
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path.
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+ # Add Yarn node_modules folder to the asset load path.
9
+ Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
+
11
+ # Precompile additional assets.
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,30 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide content security policy
4
+ # For further information see the following documentation
5
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
6
+
7
+ # Rails.application.config.content_security_policy do |policy|
8
+ # policy.default_src :self, :https
9
+ # policy.font_src :self, :https, :data
10
+ # policy.img_src :self, :https, :data
11
+ # policy.object_src :none
12
+ # policy.script_src :self, :https
13
+ # policy.style_src :self, :https
14
+ # # If you are using webpack-dev-server then specify webpack-dev-server host
15
+ # policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
16
+
17
+ # # Specify URI for violation reports
18
+ # # policy.report_uri "/csp-violation-report-endpoint"
19
+ # end
20
+
21
+ # If you are using UJS then enable automatic nonce generation
22
+ # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
23
+
24
+ # Set the nonce only to specific directives
25
+ # Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
26
+
27
+ # Report CSP violations to a specified URI
28
+ # For further information see the following documentation:
29
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
30
+ # Rails.application.config.content_security_policy_report_only = true
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
5
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,38 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains migration options to ease your Rails 5.2 upgrade.
4
+ #
5
+ # Once upgraded flip defaults one by one to migrate to the new default.
6
+ #
7
+ # Read the Guide for Upgrading Ruby on Rails for more info on each option.
8
+
9
+ # Make Active Record use stable #cache_key alongside new #cache_version method.
10
+ # This is needed for recyclable cache keys.
11
+ # Rails.application.config.active_record.cache_versioning = true
12
+
13
+ # Use AES-256-GCM authenticated encryption for encrypted cookies.
14
+ # Also, embed cookie expiry in signed or encrypted cookies for increased security.
15
+ #
16
+ # This option is not backwards compatible with earlier Rails versions.
17
+ # It's best enabled when your entire app is migrated and stable on 5.2.
18
+ #
19
+ # Existing cookies will be converted on read then written with the new scheme.
20
+ # Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true
21
+
22
+ # Use AES-256-GCM authenticated encryption as default cipher for encrypting messages
23
+ # instead of AES-256-CBC, when use_authenticated_message_encryption is set to true.
24
+ # Rails.application.config.active_support.use_authenticated_message_encryption = true
25
+
26
+ # Add default protection from forgery to ActionController::Base instead of in
27
+ # ApplicationController.
28
+ # Rails.application.config.action_controller.default_protect_from_forgery = true
29
+
30
+ # Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and
31
+ # 'f' after migrating old data.
32
+ # Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
33
+
34
+ # Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header.
35
+ # Rails.application.config.active_support.use_sha1_digests = true
36
+
37
+ # Make `form_with` generate id attributes for any generated HTML tags.
38
+ # Rails.application.config.action_view.form_with_generates_ids = true