dryer-config 7.1.0 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 544f1ae9a3f4fc1ca6f8db135da6c84ef4037f51748f28320092a0f64e6d21ce
4
- data.tar.gz: 7bad8361981a43f151c5a5c9d2d1754df713a8122c981b4866d7a0a6429ae4a0
3
+ metadata.gz: 5a57a7166f57fe0471ff1a67bef363d5349e80e6fef7f09a013b7c1aa8fb957b
4
+ data.tar.gz: 489a56d888d75769ca1a47b6fb063e6a343c072dca5897d8e9df73e60a5934ef
5
5
  SHA512:
6
- metadata.gz: 70db039f17d65d4ccd0f7cfe337ab12e99361a07d129d0436712c48ebd06325d412f70a135cf0e11d11097c8739b51f61f0cd2406f4bdca15f9129c042c67f3f
7
- data.tar.gz: 9405afb279831775d4e71a8619cb7cd9934d4babdcf44961cd88ab76ff2e9eb4a054d938e77cb7e43df5337a847076c9215448eb352be206f7246baa577ff588
6
+ metadata.gz: 075f212f7fe337c4e8571041def92f57326a729eef1413dc64c7c86a8c6348d2cb2911441ddc3aea16054a8cadfcd768aee4737c177a34834edfc402d9f4b4ff
7
+ data.tar.gz: 2412955b4412abdc786a3427b986a4d12d4523e0354f2edb1b018e9aac7eeffec15b2fab31dd59a097f581e0a839ec6f1fe2535d68d9f4ba067716a2ede3ef20
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.1
1
+ rails-7.2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.2.2
1
+ ruby-3.3.4
data/MIT-LICENSE CHANGED
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
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
@@ -93,7 +93,7 @@ Create your own. It will run after the one from the gem.
93
93
 
94
94
  ## Miscellaneous
95
95
 
96
- Copyright (c) 2016-2023 Dittmar Krall (www.matiq.com),
96
+ Copyright (c) 2016-2024 Dittmar Krall (www.matiq.com),
97
97
  released under the MIT license:
98
98
 
99
99
  * https://opensource.org/licenses/MIT
data/config/cable.yml CHANGED
@@ -7,4 +7,4 @@ test:
7
7
  production:
8
8
  adapter: redis
9
9
  url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
- channel_prefix: sample_7_1_0_production
10
+ channel_prefix: sample_7_2_0_production
data/config/database.yml CHANGED
@@ -20,6 +20,13 @@ test:
20
20
  <<: *default
21
21
  database: storage/test.sqlite3
22
22
 
23
+
24
+ # SQLite3 write its data on the local filesystem, as such it requires
25
+ # persistent disks. If you are deploying to a managed service, you should
26
+ # make sure it provides disk persistence, as many don't.
27
+ #
28
+ # Similarly, if you deploy your application as a Docker container, you must
29
+ # ensure the database is located in a persisted volume.
23
30
  production:
24
31
  <<: *default
25
- database: storage/production.sqlite3
32
+ # database: path/to/persistent/storage/production.sqlite3
@@ -14,7 +14,7 @@ Rails.application.configure do
14
14
  # Show full error reports.
15
15
  config.consider_all_requests_local = true
16
16
 
17
- # Enable server timing
17
+ # Enable server timing.
18
18
  config.server_timing = true
19
19
 
20
20
  # Enable/disable caching. By default caching is disabled.
@@ -39,8 +39,12 @@ Rails.application.configure do
39
39
  # Don't care if the mailer can't send.
40
40
  config.action_mailer.raise_delivery_errors = false
41
41
 
42
+ # Disable caching for Action Mailer templates even if Action Controller
43
+ # caching is enabled.
42
44
  config.action_mailer.perform_caching = false
43
45
 
46
+ config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
47
+
44
48
  # Print deprecation notices to the Rails logger.
45
49
  config.active_support.deprecation = :log
46
50
 
@@ -66,11 +70,14 @@ Rails.application.configure do
66
70
  # config.i18n.raise_on_missing_translations = true
67
71
 
68
72
  # Annotate rendered view with file names.
69
- # config.action_view.annotate_rendered_view_with_filenames = true
73
+ config.action_view.annotate_rendered_view_with_filenames = true
70
74
 
71
75
  # Uncomment if you wish to allow Action Cable access from any origin.
72
76
  # config.action_cable.disable_request_forgery_protection = true
73
77
 
74
- # Raise error when a before_action's only/except options reference missing actions
78
+ # Raise error when a before_action's only/except options reference missing actions.
75
79
  config.action_controller.raise_on_missing_callback_actions = true
80
+
81
+ # Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
82
+ # config.generators.apply_rubocop_autocorrect_after_generate!
76
83
  end
@@ -13,20 +13,20 @@ Rails.application.configure do
13
13
  config.eager_load = true
14
14
 
15
15
  # Full error reports are disabled and caching is turned on.
16
- config.consider_all_requests_local = false
16
+ config.consider_all_requests_local = false
17
17
  config.action_controller.perform_caching = true
18
18
 
19
19
  # Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment
20
20
  # key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
21
21
  # config.require_master_key = true
22
22
 
23
- # Enable static file serving from the `/public` folder (turn off if using NGINX/Apache for it).
24
- config.public_file_server.enabled = true
23
+ # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
24
+ # config.public_file_server.enabled = false
25
25
 
26
26
  # Compress CSS using a preprocessor.
27
27
  # config.assets.css_compressor = :sass
28
28
 
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
29
+ # Do not fall back to assets pipeline if a precompiled asset is missed.
30
30
  config.assets.compile = false
31
31
 
32
32
  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
@@ -51,6 +51,9 @@ Rails.application.configure do
51
51
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
52
52
  config.force_ssl = true
53
53
 
54
+ # Skip http-to-https redirect for the default health check endpoint.
55
+ # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
56
+
54
57
  # Log to STDOUT by default
55
58
  config.logger = ActiveSupport::Logger.new(STDOUT)
56
59
  .tap { |logger| logger.formatter = ::Logger::Formatter.new }
@@ -59,7 +62,7 @@ Rails.application.configure do
59
62
  # Prepend all log lines with the following tags.
60
63
  config.log_tags = [ :request_id ]
61
64
 
62
- # Info include generic and useful information about system operation, but avoids logging too much
65
+ # "info" includes generic and useful information about system operation, but avoids logging too much
63
66
  # information to avoid inadvertent exposure of personally identifiable information (PII). If you
64
67
  # want to log everything, set the level to "debug".
65
68
  config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
@@ -68,9 +71,11 @@ Rails.application.configure do
68
71
  # config.cache_store = :mem_cache_store
69
72
 
70
73
  # Use a real queuing backend for Active Job (and separate queues per environment).
71
- # config.active_job.queue_adapter = :resque
72
- # config.active_job.queue_name_prefix = "sample_7_1_0_production"
74
+ # config.active_job.queue_adapter = :resque
75
+ # config.active_job.queue_name_prefix = "7.2.0_production"
73
76
 
77
+ # Disable caching for Action Mailer templates even if Action Controller
78
+ # caching is enabled.
74
79
  config.action_mailer.perform_caching = false
75
80
 
76
81
  # Ignore bad email addresses and do not raise email delivery errors.
@@ -18,17 +18,16 @@ Rails.application.configure do
18
18
  config.eager_load = ENV["CI"].present?
19
19
 
20
20
  # Configure public file server for tests with Cache-Control for performance.
21
- config.public_file_server.enabled = true
22
21
  config.public_file_server.headers = {
23
22
  "Cache-Control" => "public, max-age=#{1.hour.to_i}"
24
23
  }
25
24
 
26
25
  # Show full error reports and disable caching.
27
- config.consider_all_requests_local = true
26
+ config.consider_all_requests_local = true
28
27
  config.action_controller.perform_caching = false
29
28
  config.cache_store = :null_store
30
29
 
31
- # Raise exceptions instead of rendering exception templates.
30
+ # Render exception templates for rescuable exceptions and raise for other exceptions.
32
31
  config.action_dispatch.show_exceptions = :rescuable
33
32
 
34
33
  # Disable request forgery protection in test environment.
@@ -37,6 +36,8 @@ Rails.application.configure do
37
36
  # Store uploaded files on the local file system in a temporary directory.
38
37
  config.active_storage.service = :test
39
38
 
39
+ # Disable caching for Action Mailer templates even if Action Controller
40
+ # caching is enabled.
40
41
  config.action_mailer.perform_caching = false
41
42
 
42
43
  # Tell Action Mailer not to deliver emails to the real world.
@@ -44,6 +45,10 @@ Rails.application.configure do
44
45
  # ActionMailer::Base.deliveries array.
45
46
  config.action_mailer.delivery_method = :test
46
47
 
48
+ # Unlike controllers, the mailer instance doesn't have any context about the
49
+ # incoming request so you'll need to provide the :host parameter yourself.
50
+ config.action_mailer.default_url_options = { host: "www.example.com" }
51
+
47
52
  # Print deprecation notices to the stderr.
48
53
  config.active_support.deprecation = :stderr
49
54
 
@@ -59,6 +64,6 @@ Rails.application.configure do
59
64
  # Annotate rendered view with file names.
60
65
  # config.action_view.annotate_rendered_view_with_filenames = true
61
66
 
62
- # 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.
63
68
  config.action_controller.raise_on_missing_callback_actions = true
64
69
  end
data/config/importmap.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # Pin npm packages by running ./bin/importmap
2
2
 
3
- pin "application", preload: true
4
- pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
5
- pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
6
- pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
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"
@@ -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
8
8
  ]
data/config/puma.rb CHANGED
@@ -2,34 +2,32 @@
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
4
 
5
- # Puma can serve each request in a thread from an internal thread pool.
6
- # The `threads` method setting takes two numbers: a minimum and maximum.
7
- # Any libraries that use thread pools should be configured to match
8
- # the maximum value specified for Puma. Default is set to 5 threads for minimum
9
- # and maximum; this matches the default thread size of Active Record.
10
- max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
11
- min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
12
- threads min_threads_count, max_threads_count
13
-
14
- # Specifies that the worker count should equal the number of processors in production.
15
- if ENV["RAILS_ENV"] == "production"
16
- require "concurrent-ruby"
17
- worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
18
- workers worker_count if worker_count > 1
19
- end
20
-
21
- # Specifies the `worker_timeout` threshold that Puma will use to wait before
22
- # terminating a worker in development environments.
23
- worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
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
+ # The ideal number of threads per worker depends both on how much time the
9
+ # application spends waiting for IO operations and on how much you wish to
10
+ # to prioritize throughput over latency.
11
+ #
12
+ # As a rule of thumb, increasing the number of threads will increase how much
13
+ # traffic a given process can handle (throughput), but due to CRuby's
14
+ # Global VM Lock (GVL) it has diminishing returns and will degrade the
15
+ # response time (latency) of the application.
16
+ #
17
+ # The default is set to 3 threads as it's deemed a decent compromise between
18
+ # throughput and latency for the average Rails application.
19
+ #
20
+ # Any libraries that use a connection pool or another resource pool should
21
+ # be configured to provide at least as many connections as the number of
22
+ # threads. This includes Active Record's `pool` parameter in `database.yml`.
23
+ threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
24
+ threads threads_count, threads_count
24
25
 
25
26
  # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
26
- port ENV.fetch("PORT") { 3000 }
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" }
27
+ port ENV.fetch("PORT", 3000)
33
28
 
34
29
  # Allow puma to be restarted by `bin/rails restart` command.
35
30
  plugin :tmp_restart
31
+
32
+ # Only use a pidfile when requested
33
+ pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
@@ -1,9 +1,10 @@
1
1
  module DryerConfig
2
- VERSION = '7.1.0' # 2023-10-15
3
- # VERSION = '7.0.0' # 2021-12-18
4
- # VERSION = '6.1.4' # 2021-06-27
5
- # VERSION = '6.0.3' # 2020-05-08
6
- # VERSION = '6.0.2' # 2020-02-25
7
- # VERSION = '6.0.0' # 2019-10-07
8
- # VERSION = '5.2.0'
2
+ VERSION = '7.2.0' # 2024-08-23
3
+ # VERSION = '7.1.0' # 2023-10-15
4
+ # VERSION = '7.0.0' # 2021-12-18
5
+ # VERSION = '6.1.4' # 2021-06-27
6
+ # VERSION = '6.0.3' # 2020-05-08
7
+ # VERSION = '6.0.2' # 2020-02-25
8
+ # VERSION = '6.0.0' # 2019-10-07
9
+ # VERSION = '5.2.0'
9
10
  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: 7.1.0
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-15 00:00:00.000000000 Z
11
+ date: 2024-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.4.20
79
+ rubygems_version: 3.5.11
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Several pristine Rails config files.