dryer-config 7.1.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/MIT-LICENSE +1 -3
- data/README.md +23 -10
- data/config/cable.yml +10 -3
- data/config/database.yml +18 -2
- data/config/environments/development.rb +20 -24
- data/config/environments/production.rb +40 -46
- data/config/environments/test.rb +9 -20
- data/config/importmap.rb +4 -4
- data/config/initializers/assets.rb +0 -5
- data/config/initializers/filter_parameter_logging.rb +3 -3
- data/config/puma.rb +33 -27
- data/lib/dryer-config/version.rb +9 -7
- metadata +6 -7
- data/config/initializers/permissions_policy.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3089a32c00a953af578d467ebb8f8eb1fa721ca7515decbd6bb9c7c37395f3d2
|
4
|
+
data.tar.gz: d5e5ce985a8e98bf59979cf30ba6dde8ef790f0019946ca224e0761169418b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84ea5dab3735213b563e8113c9a930aad85e4eec20803bb6859d6566a987108c05805d082300205689c280f155762243951fa50527f11d18c9c91e0012ca593f
|
7
|
+
data.tar.gz: 87b9d38910b12dc0a4dab30c40140f307abed688e0e213f220796b28596cbaf9be1da719bcea4ff9d42ee5fa884aaa59c6cc7086e1db4bb02fe96b29a99cc893
|
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-
|
1
|
+
rails-8.0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.6
|
data/MIT-LICENSE
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Copyright (c) 2016-2023 Dittmar Krall (www.matiq.com)
|
1
|
+
Copyright (c) 2016-2024 Dittmar Krall (www.matiq.com)
|
4
2
|
|
5
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# DryerConfig
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/dryer-config.png)](http://badge.fury.io/rb/dryer-config)
|
4
|
+
[![GEM Downloads](https://img.shields.io/gem/dt/dryer-config?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/dryer-config)
|
5
|
+
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
|
4
6
|
|
5
7
|
Contains most of the files of a pristine `rails new` `config` directories.
|
6
8
|
They will be available to your application by
|
@@ -12,16 +14,16 @@ will contain just your particular requirements/options
|
|
12
14
|
|
13
15
|
Version numbering is according to the Rails versions, e.g. use
|
14
16
|
|
15
|
-
gem 'dryer-config', '=
|
17
|
+
gem 'dryer-config', '= 8.0.0' # for a Rails 8.0.0 applications
|
16
18
|
|
17
19
|
or
|
18
20
|
|
19
|
-
gem 'dryer-config', '~>
|
21
|
+
gem 'dryer-config', '~> 8.0' # expected to serve Rails 8.0.*
|
20
22
|
|
21
23
|
in your `Gemfile`.
|
22
24
|
|
23
|
-
It is expected that the version
|
24
|
-
complete Rails
|
25
|
+
It is expected that the version 8.0.0 is fine for the
|
26
|
+
complete Rails 8 serie.
|
25
27
|
If not, a new version of this gem will be released (hopefully).
|
26
28
|
|
27
29
|
## Why
|
@@ -43,10 +45,24 @@ less attention/work.
|
|
43
45
|
As usual:
|
44
46
|
```ruby
|
45
47
|
# Gemfile
|
46
|
-
gem "dryer-config", "~>
|
48
|
+
gem "dryer-config", "~> 8.0"
|
47
49
|
```
|
48
50
|
and run `bundle install`.
|
49
51
|
|
52
|
+
## Rails 8.0.0
|
53
|
+
|
54
|
+
See also "Configuration" below.
|
55
|
+
|
56
|
+
The following config file is obsolete:
|
57
|
+
./config/initializers/permissions_policy.rb
|
58
|
+
|
59
|
+
## Rails 7.2.1, 7.2.0
|
60
|
+
|
61
|
+
See also "Configuration" below.
|
62
|
+
|
63
|
+
The following config file is obsolete:
|
64
|
+
./config/spring.rb
|
65
|
+
|
50
66
|
## Rails 7.1.0, 7.0.0, 6.0.0, 5.2.0
|
51
67
|
|
52
68
|
See also "Configuration" below.
|
@@ -76,7 +92,6 @@ The following files may require your attention:
|
|
76
92
|
./config/cable.yml
|
77
93
|
./config/database.yml
|
78
94
|
./config/puma.rb
|
79
|
-
./config/spring.rb
|
80
95
|
./config/storage.yml
|
81
96
|
|
82
97
|
Create/copy your owns. They are still there for inspection.
|
@@ -93,7 +108,5 @@ Create your own. It will run after the one from the gem.
|
|
93
108
|
|
94
109
|
## Miscellaneous
|
95
110
|
|
96
|
-
Copyright (c) 2016-
|
97
|
-
released under the MIT license
|
98
|
-
|
99
|
-
* https://opensource.org/licenses/MIT
|
111
|
+
Copyright (c) 2016-2024 Dittmar Krall (www.matiq.com),
|
112
|
+
released under the [MIT license](https://opensource.org/licenses/MIT).
|
data/config/cable.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# Async adapter only works within the same process, so for manually triggering cable updates from a console,
|
2
|
+
# and seeing results in the browser, you must do so from the web console (running inside the dev process),
|
3
|
+
# not a terminal started via bin/rails console! Add "console" to any action or any ERB template view
|
4
|
+
# to make the web console appear.
|
1
5
|
development:
|
2
6
|
adapter: async
|
3
7
|
|
@@ -5,6 +9,9 @@ test:
|
|
5
9
|
adapter: test
|
6
10
|
|
7
11
|
production:
|
8
|
-
adapter:
|
9
|
-
|
10
|
-
|
12
|
+
adapter: solid_cable
|
13
|
+
connects_to:
|
14
|
+
database:
|
15
|
+
writing: cable
|
16
|
+
polling_interval: 0.1.seconds
|
17
|
+
message_retention: 1.day
|
data/config/database.yml
CHANGED
@@ -20,6 +20,22 @@ test:
|
|
20
20
|
<<: *default
|
21
21
|
database: storage/test.sqlite3
|
22
22
|
|
23
|
+
|
24
|
+
# Store production database in the storage/ directory, which by default
|
25
|
+
# is mounted as a persistent Docker volume in config/deploy.yml.
|
23
26
|
production:
|
24
|
-
|
25
|
-
|
27
|
+
primary:
|
28
|
+
<<: *default
|
29
|
+
database: storage/production.sqlite3
|
30
|
+
cache:
|
31
|
+
<<: *default
|
32
|
+
database: storage/production_cache.sqlite3
|
33
|
+
migrations_paths: db/cache_migrate
|
34
|
+
queue:
|
35
|
+
<<: *default
|
36
|
+
database: storage/production_queue.sqlite3
|
37
|
+
migrations_paths: db/queue_migrate
|
38
|
+
cable:
|
39
|
+
<<: *default
|
40
|
+
database: storage/production_cable.sqlite3
|
41
|
+
migrations_paths: db/cable_migrate
|
@@ -3,9 +3,7 @@ require "active_support/core_ext/integer/time"
|
|
3
3
|
Rails.application.configure do
|
4
4
|
# Settings specified here will take precedence over those in config/application.rb.
|
5
5
|
|
6
|
-
#
|
7
|
-
# it changes. 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.
|
6
|
+
# Make code changes take effect immediately without server restart.
|
9
7
|
config.enable_reloading = true
|
10
8
|
|
11
9
|
# Do not eager load code on boot.
|
@@ -14,63 +12,61 @@ Rails.application.configure do
|
|
14
12
|
# Show full error reports.
|
15
13
|
config.consider_all_requests_local = true
|
16
14
|
|
17
|
-
# Enable server timing
|
15
|
+
# Enable server timing.
|
18
16
|
config.server_timing = true
|
19
17
|
|
20
|
-
# Enable/disable caching. By default caching is disabled.
|
21
|
-
# Run rails dev:cache to toggle caching.
|
18
|
+
# Enable/disable Action Controller caching. By default Action Controller caching is disabled.
|
19
|
+
# Run rails dev:cache to toggle Action Controller caching.
|
22
20
|
if Rails.root.join("tmp/caching-dev.txt").exist?
|
23
21
|
config.action_controller.perform_caching = true
|
24
22
|
config.action_controller.enable_fragment_cache_logging = true
|
25
|
-
|
26
|
-
config.cache_store = :memory_store
|
27
|
-
config.public_file_server.headers = {
|
28
|
-
"Cache-Control" => "public, max-age=#{2.days.to_i}"
|
29
|
-
}
|
23
|
+
config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
|
30
24
|
else
|
31
25
|
config.action_controller.perform_caching = false
|
32
|
-
|
33
|
-
config.cache_store = :null_store
|
34
26
|
end
|
35
27
|
|
28
|
+
# Change to :null_store to avoid any caching.
|
29
|
+
config.cache_store = :memory_store
|
30
|
+
|
36
31
|
# Store uploaded files on the local file system (see config/storage.yml for options).
|
37
32
|
config.active_storage.service = :local
|
38
33
|
|
39
34
|
# Don't care if the mailer can't send.
|
40
35
|
config.action_mailer.raise_delivery_errors = false
|
41
36
|
|
37
|
+
# Make template changes take effect immediately.
|
42
38
|
config.action_mailer.perform_caching = false
|
43
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
|
+
|
44
43
|
# Print deprecation notices to the Rails logger.
|
45
44
|
config.active_support.deprecation = :log
|
46
45
|
|
47
|
-
# Raise exceptions for disallowed deprecations.
|
48
|
-
config.active_support.disallowed_deprecation = :raise
|
49
|
-
|
50
|
-
# Tell Active Support which deprecation messages to disallow.
|
51
|
-
config.active_support.disallowed_deprecation_warnings = []
|
52
|
-
|
53
46
|
# Raise an error on page load if there are pending migrations.
|
54
47
|
config.active_record.migration_error = :page_load
|
55
48
|
|
56
49
|
# Highlight code that triggered database queries in logs.
|
57
50
|
config.active_record.verbose_query_logs = true
|
58
51
|
|
52
|
+
# Append comments with runtime information tags to SQL queries in logs.
|
53
|
+
config.active_record.query_log_tags_enabled = true
|
54
|
+
|
59
55
|
# Highlight code that enqueued background job in logs.
|
60
56
|
config.active_job.verbose_enqueue_logs = true
|
61
57
|
|
62
|
-
# Suppress logger output for asset requests.
|
63
|
-
config.assets.quiet = true
|
64
|
-
|
65
58
|
# Raises error for missing translations.
|
66
59
|
# config.i18n.raise_on_missing_translations = true
|
67
60
|
|
68
61
|
# Annotate rendered view with file names.
|
69
|
-
|
62
|
+
config.action_view.annotate_rendered_view_with_filenames = true
|
70
63
|
|
71
64
|
# Uncomment if you wish to allow Action Cable access from any origin.
|
72
65
|
# config.action_cable.disable_request_forgery_protection = true
|
73
66
|
|
74
|
-
# Raise error when a before_action's only/except options reference missing actions
|
67
|
+
# Raise error when a before_action's only/except options reference missing actions.
|
75
68
|
config.action_controller.raise_on_missing_callback_actions = true
|
69
|
+
|
70
|
+
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
|
71
|
+
# config.generators.apply_rubocop_autocorrect_after_generate!
|
76
72
|
end
|
@@ -6,92 +6,86 @@ Rails.application.configure do
|
|
6
6
|
# Code is not reloaded between requests.
|
7
7
|
config.enable_reloading = false
|
8
8
|
|
9
|
-
# Eager load code on boot
|
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.
|
9
|
+
# Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
|
13
10
|
config.eager_load = true
|
14
11
|
|
15
|
-
# Full error reports are disabled
|
16
|
-
config.consider_all_requests_local
|
17
|
-
config.action_controller.perform_caching = true
|
18
|
-
|
19
|
-
# Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment
|
20
|
-
# key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
|
21
|
-
# config.require_master_key = true
|
12
|
+
# Full error reports are disabled.
|
13
|
+
config.consider_all_requests_local = false
|
22
14
|
|
23
|
-
#
|
24
|
-
config.
|
25
|
-
|
26
|
-
# Compress CSS using a preprocessor.
|
27
|
-
# config.assets.css_compressor = :sass
|
15
|
+
# Turn on fragment caching in view templates.
|
16
|
+
config.action_controller.perform_caching = true
|
28
17
|
|
29
|
-
#
|
30
|
-
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}" }
|
31
20
|
|
32
21
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
33
22
|
# config.asset_host = "http://assets.example.com"
|
34
23
|
|
35
|
-
# Specifies the header that your server uses for sending files.
|
36
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
|
37
|
-
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
|
38
|
-
|
39
24
|
# Store uploaded files on the local file system (see config/storage.yml for options).
|
40
25
|
config.active_storage.service = :local
|
41
26
|
|
42
|
-
# Mount Action Cable outside main process or domain.
|
43
|
-
# config.action_cable.mount_path = nil
|
44
|
-
# config.action_cable.url = "wss://example.com/cable"
|
45
|
-
# config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
|
46
|
-
|
47
27
|
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
|
48
|
-
|
49
|
-
# config.assume_ssl = true
|
28
|
+
config.assume_ssl = true
|
50
29
|
|
51
30
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
52
31
|
config.force_ssl = true
|
53
32
|
|
54
|
-
#
|
55
|
-
config.
|
56
|
-
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
|
57
|
-
.then { |logger| ActiveSupport::TaggedLogging.new(logger) }
|
33
|
+
# Skip http-to-https redirect for the default health check endpoint.
|
34
|
+
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
|
58
35
|
|
59
|
-
#
|
36
|
+
# Log to STDOUT with the current request id as a default log tag.
|
60
37
|
config.log_tags = [ :request_id ]
|
38
|
+
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
|
61
39
|
|
62
|
-
#
|
63
|
-
# information to avoid inadvertent exposure of personally identifiable information (PII). If you
|
64
|
-
# want to log everything, set the level to "debug".
|
40
|
+
# Change to "debug" to log everything (including potentially personally-identifiable information!)
|
65
41
|
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
|
66
42
|
|
67
|
-
#
|
68
|
-
|
43
|
+
# Prevent health checks from clogging up the logs.
|
44
|
+
config.silence_healthcheck_path = "/up"
|
45
|
+
|
46
|
+
# Don't log any deprecations.
|
47
|
+
config.active_support.report_deprecations = false
|
48
|
+
|
49
|
+
# Replace the default in-process memory cache store with a durable alternative.
|
50
|
+
config.cache_store = :solid_cache_store
|
69
51
|
|
70
|
-
#
|
71
|
-
|
72
|
-
|
52
|
+
# Replace the default in-process and non-durable queuing backend for Active Job.
|
53
|
+
config.active_job.queue_adapter = :solid_queue
|
54
|
+
config.solid_queue.connects_to = { database: { writing: :queue } }
|
73
55
|
|
74
|
-
config.action_mailer.perform_caching = false
|
75
56
|
|
76
57
|
# Ignore bad email addresses and do not raise email delivery errors.
|
77
58
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
78
59
|
# config.action_mailer.raise_delivery_errors = false
|
79
60
|
|
61
|
+
# Set host to be used by links generated in mailer templates.
|
62
|
+
config.action_mailer.default_url_options = { host: "example.com" }
|
63
|
+
|
64
|
+
# Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
|
65
|
+
# config.action_mailer.smtp_settings = {
|
66
|
+
# user_name: Rails.application.credentials.dig(:smtp, :user_name),
|
67
|
+
# password: Rails.application.credentials.dig(:smtp, :password),
|
68
|
+
# address: "smtp.example.com",
|
69
|
+
# port: 587,
|
70
|
+
# authentication: :plain
|
71
|
+
# }
|
72
|
+
|
80
73
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
81
74
|
# the I18n.default_locale when a translation cannot be found).
|
82
75
|
config.i18n.fallbacks = true
|
83
76
|
|
84
|
-
# Don't log any deprecations.
|
85
|
-
config.active_support.report_deprecations = false
|
86
|
-
|
87
77
|
# Do not dump schema after migrations.
|
88
78
|
config.active_record.dump_schema_after_migration = false
|
89
79
|
|
80
|
+
# Only use :id for inspections in production.
|
81
|
+
config.active_record.attributes_for_inspect = [ :id ]
|
82
|
+
|
90
83
|
# Enable DNS rebinding protection and other `Host` header attacks.
|
91
84
|
# config.hosts = [
|
92
85
|
# "example.com", # Allow requests from example.com
|
93
86
|
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
|
94
87
|
# ]
|
88
|
+
#
|
95
89
|
# Skip DNS rebinding protection for the default health check endpoint.
|
96
90
|
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
97
91
|
end
|
data/config/environments/test.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require "active_support/core_ext/integer/time"
|
2
|
-
|
3
1
|
# The test environment is used exclusively to run your application's
|
4
2
|
# test suite. You never need to work with it otherwise. Remember that
|
5
3
|
# your test database is "scratch space" for the test suite and is wiped
|
@@ -17,18 +15,14 @@ Rails.application.configure do
|
|
17
15
|
# loading is working properly before deploying your code.
|
18
16
|
config.eager_load = ENV["CI"].present?
|
19
17
|
|
20
|
-
# Configure public file server for tests with
|
21
|
-
config.public_file_server.
|
22
|
-
config.public_file_server.headers = {
|
23
|
-
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
|
24
|
-
}
|
18
|
+
# Configure public file server for tests with cache-control for performance.
|
19
|
+
config.public_file_server.headers = { "cache-control" => "public, max-age=3600" }
|
25
20
|
|
26
|
-
# Show full error reports
|
27
|
-
config.consider_all_requests_local
|
28
|
-
config.action_controller.perform_caching = false
|
21
|
+
# Show full error reports.
|
22
|
+
config.consider_all_requests_local = true
|
29
23
|
config.cache_store = :null_store
|
30
24
|
|
31
|
-
#
|
25
|
+
# Render exception templates for rescuable exceptions and raise for other exceptions.
|
32
26
|
config.action_dispatch.show_exceptions = :rescuable
|
33
27
|
|
34
28
|
# Disable request forgery protection in test environment.
|
@@ -37,28 +31,23 @@ Rails.application.configure do
|
|
37
31
|
# Store uploaded files on the local file system in a temporary directory.
|
38
32
|
config.active_storage.service = :test
|
39
33
|
|
40
|
-
config.action_mailer.perform_caching = false
|
41
|
-
|
42
34
|
# Tell Action Mailer not to deliver emails to the real world.
|
43
35
|
# The :test delivery method accumulates sent emails in the
|
44
36
|
# ActionMailer::Base.deliveries array.
|
45
37
|
config.action_mailer.delivery_method = :test
|
46
38
|
|
39
|
+
# Set host to be used by links generated in mailer templates.
|
40
|
+
config.action_mailer.default_url_options = { host: "example.com" }
|
41
|
+
|
47
42
|
# Print deprecation notices to the stderr.
|
48
43
|
config.active_support.deprecation = :stderr
|
49
44
|
|
50
|
-
# Raise exceptions for disallowed deprecations.
|
51
|
-
config.active_support.disallowed_deprecation = :raise
|
52
|
-
|
53
|
-
# Tell Active Support which deprecation messages to disallow.
|
54
|
-
config.active_support.disallowed_deprecation_warnings = []
|
55
|
-
|
56
45
|
# Raises error for missing translations.
|
57
46
|
# config.i18n.raise_on_missing_translations = true
|
58
47
|
|
59
48
|
# Annotate rendered view with file names.
|
60
49
|
# config.action_view.annotate_rendered_view_with_filenames = true
|
61
50
|
|
62
|
-
# Raise error when a before_action's only/except options reference missing actions
|
51
|
+
# Raise error when a before_action's only/except options reference missing actions.
|
63
52
|
config.action_controller.raise_on_missing_callback_actions = true
|
64
53
|
end
|
data/config/importmap.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Pin npm packages by running ./bin/importmap
|
2
2
|
|
3
|
-
pin "application"
|
4
|
-
pin "@hotwired/turbo-rails", to: "turbo.min.js"
|
5
|
-
pin "@hotwired/stimulus", to: "stimulus.min.js"
|
6
|
-
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
3
|
+
pin "application"
|
4
|
+
pin "@hotwired/turbo-rails", to: "turbo.min.js"
|
5
|
+
pin "@hotwired/stimulus", to: "stimulus.min.js"
|
6
|
+
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
7
7
|
pin_all_from "app/javascript/controllers", under: "controllers"
|
@@ -5,8 +5,3 @@ Rails.application.config.assets.version = "1.0"
|
|
5
5
|
|
6
6
|
# Add additional assets to the asset load path.
|
7
7
|
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
-
|
9
|
-
# Precompile additional assets.
|
10
|
-
# application.js, application.css, and all non-JS/CSS in the app/assets
|
11
|
-
# folder are already added.
|
12
|
-
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
4
|
-
# Use this to limit dissemination of sensitive information.
|
3
|
+
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
4
|
+
# Use this to limit dissemination of sensitive information.
|
5
5
|
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
|
6
6
|
Rails.application.config.filter_parameters += [
|
7
|
-
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
|
7
|
+
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
|
8
8
|
]
|
data/config/puma.rb
CHANGED
@@ -1,35 +1,41 @@
|
|
1
1
|
# This configuration file will be evaluated by Puma. The top-level methods that
|
2
2
|
# are invoked here are part of Puma's configuration DSL. For more information
|
3
3
|
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
|
4
|
-
|
5
|
-
# Puma
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
threads
|
13
|
-
|
14
|
-
#
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
#
|
22
|
-
#
|
23
|
-
|
4
|
+
#
|
5
|
+
# Puma starts a configurable number of processes (workers) and each process
|
6
|
+
# serves each request in a thread from an internal thread pool.
|
7
|
+
#
|
8
|
+
# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
|
9
|
+
# should only set this value when you want to run 2 or more workers. The
|
10
|
+
# default is already 1.
|
11
|
+
#
|
12
|
+
# The ideal number of threads per worker depends both on how much time the
|
13
|
+
# application spends waiting for IO operations and on how much you wish to
|
14
|
+
# prioritize throughput over latency.
|
15
|
+
#
|
16
|
+
# As a rule of thumb, increasing the number of threads will increase how much
|
17
|
+
# traffic a given process can handle (throughput), but due to CRuby's
|
18
|
+
# Global VM Lock (GVL) it has diminishing returns and will degrade the
|
19
|
+
# response time (latency) of the application.
|
20
|
+
#
|
21
|
+
# The default is set to 3 threads as it's deemed a decent compromise between
|
22
|
+
# throughput and latency for the average Rails application.
|
23
|
+
#
|
24
|
+
# Any libraries that use a connection pool or another resource pool should
|
25
|
+
# be configured to provide at least as many connections as the number of
|
26
|
+
# threads. This includes Active Record's `pool` parameter in `database.yml`.
|
27
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
|
28
|
+
threads threads_count, threads_count
|
24
29
|
|
25
30
|
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
26
|
-
port ENV.fetch("PORT"
|
27
|
-
|
28
|
-
# Specifies the `environment` that Puma will run in.
|
29
|
-
environment ENV.fetch("RAILS_ENV") { "development" }
|
30
|
-
|
31
|
-
# Specifies the `pidfile` that Puma will use.
|
32
|
-
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
31
|
+
port ENV.fetch("PORT", 3000)
|
33
32
|
|
34
33
|
# Allow puma to be restarted by `bin/rails restart` command.
|
35
34
|
plugin :tmp_restart
|
35
|
+
|
36
|
+
# Run the Solid Queue supervisor inside of Puma for single-server deployments
|
37
|
+
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]
|
38
|
+
|
39
|
+
# Specify the PID file. Defaults to tmp/pids/server.pid in development.
|
40
|
+
# In other environments, only set the PID file if requested.
|
41
|
+
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
|
data/lib/dryer-config/version.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
module DryerConfig
|
2
|
-
VERSION = '
|
3
|
-
# VERSION = '7.
|
4
|
-
# VERSION = '
|
5
|
-
# VERSION = '
|
6
|
-
# VERSION = '6.
|
7
|
-
# VERSION = '6.0.
|
8
|
-
# VERSION = '
|
2
|
+
VERSION = '8.0.0' # 2024-11-08
|
3
|
+
# VERSION = '7.2.0' # 2024-08-23
|
4
|
+
# VERSION = '7.1.0' # 2023-10-15
|
5
|
+
# VERSION = '7.0.0' # 2021-12-18
|
6
|
+
# VERSION = '6.1.4' # 2021-06-27
|
7
|
+
# VERSION = '6.0.3' # 2020-05-08
|
8
|
+
# VERSION = '6.0.2' # 2020-02-25
|
9
|
+
# VERSION = '6.0.0' # 2019-10-07
|
10
|
+
# VERSION = '5.2.0'
|
9
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dryer-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -50,7 +50,6 @@ files:
|
|
50
50
|
- config/initializers/content_security_policy.rb
|
51
51
|
- config/initializers/filter_parameter_logging.rb
|
52
52
|
- config/initializers/inflections.rb
|
53
|
-
- config/initializers/permissions_policy.rb
|
54
53
|
- config/puma.rb
|
55
54
|
- config/storage.yml
|
56
55
|
- dryer-config.gemspec
|
@@ -61,7 +60,7 @@ homepage: https://github.com/matique/dryer-config
|
|
61
60
|
licenses:
|
62
61
|
- MIT
|
63
62
|
metadata: {}
|
64
|
-
post_install_message:
|
63
|
+
post_install_message:
|
65
64
|
rdoc_options: []
|
66
65
|
require_paths:
|
67
66
|
- lib
|
@@ -76,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
75
|
- !ruby/object:Gem::Version
|
77
76
|
version: '0'
|
78
77
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
80
|
-
signing_key:
|
78
|
+
rubygems_version: 3.5.22
|
79
|
+
signing_key:
|
81
80
|
specification_version: 4
|
82
81
|
summary: Several pristine Rails config files.
|
83
82
|
test_files: []
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Define an application-wide HTTP permissions policy. For further
|
4
|
-
# information see: https://developers.google.com/web/updates/2018/06/feature-policy
|
5
|
-
|
6
|
-
# Rails.application.config.permissions_policy do |policy|
|
7
|
-
# policy.camera :none
|
8
|
-
# policy.gyroscope :none
|
9
|
-
# policy.microphone :none
|
10
|
-
# policy.usb :none
|
11
|
-
# policy.fullscreen :self
|
12
|
-
# policy.payment :self, "https://secure.example.com"
|
13
|
-
# end
|