dryer-config 6.0.3 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/MIT-LICENSE +1 -1
- data/Rakefile +1 -1
- data/config.ru +2 -1
- data/config/boot.rb +2 -2
- data/config/cable.yml +1 -1
- data/config/environment.rb +1 -1
- data/config/environments/development.rb +17 -3
- data/config/environments/production.rb +14 -6
- data/config/environments/test.rb +12 -1
- data/config/initializers/backtrace_silencers.rb +4 -3
- data/config/initializers/filter_parameter_logging.rb +3 -1
- data/config/initializers/permissions_policy.rb +11 -0
- data/config/puma.rb +6 -1
- data/config/webpacker.yml +1 -5
- data/dryer-config.gemspec +5 -0
- data/lib/dryer-config/version.rb +2 -1
- metadata +21 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2181884f548ada0f37b870c42469f91bc94fb17ea3f3e04d4ac5b74926aa62e4
|
4
|
+
data.tar.gz: 35ccc535fa685cdba70ce5498231bd1c8c0c268436d54cbace0d1b77ae7ef444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adf1dd3349be507816fb0d6bb513555a96565268f2d129f125b77791dc4d8af1dbe4c00162800280aeaa805336060be3262edeb7ecaab3e9c945ae7dc84cd9ff
|
7
|
+
data.tar.gz: 57aa04b15d9cc7a5006e933365ebb02f8237e84bf2d672658f01349d3fe74e53ee5f290238dd98f89adb0359b7fd998802b82f9351a36dd2b9afcd4cc0430add
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-3.0.1
|
data/MIT-LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
2
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
3
|
|
4
|
-
require_relative
|
4
|
+
require_relative "config/application"
|
5
5
|
|
6
6
|
Rails.application.load_tasks
|
data/config.ru
CHANGED
data/config/boot.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "bundler/setup" # Set up gems listed in the Gemfile.
|
4
|
+
require "bootsnap/setup" # Speed up boot time by caching expensive operations.
|
data/config/cable.yml
CHANGED
data/config/environment.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
2
|
+
|
1
3
|
Rails.application.configure do
|
2
4
|
# Settings specified here will take precedence over those in config/application.rb.
|
3
5
|
|
4
|
-
# In the development environment your application's code is reloaded
|
5
|
-
#
|
6
|
+
# In the development environment your application's code is reloaded any time
|
7
|
+
# it changes. This slows down response time but is perfect for development
|
6
8
|
# since you don't have to restart the web server when you make code changes.
|
7
9
|
config.cache_classes = false
|
8
10
|
|
@@ -39,6 +41,12 @@ Rails.application.configure do
|
|
39
41
|
# Print deprecation notices to the Rails logger.
|
40
42
|
config.active_support.deprecation = :log
|
41
43
|
|
44
|
+
# Raise exceptions for disallowed deprecations.
|
45
|
+
config.active_support.disallowed_deprecation = :raise
|
46
|
+
|
47
|
+
# Tell Active Support which deprecation messages to disallow.
|
48
|
+
config.active_support.disallowed_deprecation_warnings = []
|
49
|
+
|
42
50
|
# Raise an error on page load if there are pending migrations.
|
43
51
|
config.active_record.migration_error = :page_load
|
44
52
|
|
@@ -54,9 +62,15 @@ Rails.application.configure do
|
|
54
62
|
config.assets.quiet = true
|
55
63
|
|
56
64
|
# Raises error for missing translations.
|
57
|
-
# config.
|
65
|
+
# config.i18n.raise_on_missing_translations = true
|
66
|
+
|
67
|
+
# Annotate rendered view with file names.
|
68
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
58
69
|
|
59
70
|
# Use an evented file watcher to asynchronously detect changes in source code,
|
60
71
|
# routes, locales, etc. This feature depends on the listen gem.
|
61
72
|
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
73
|
+
|
74
|
+
# Uncomment if you wish to allow Action Cable access from any origin.
|
75
|
+
# config.action_cable.disable_request_forgery_protection = true
|
62
76
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
2
|
+
|
1
3
|
Rails.application.configure do
|
2
4
|
# Settings specified here will take precedence over those in config/application.rb.
|
3
5
|
|
@@ -29,7 +31,7 @@ Rails.application.configure do
|
|
29
31
|
config.assets.compile = false
|
30
32
|
|
31
33
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
32
|
-
# config.
|
34
|
+
# config.asset_host = 'http://assets.example.com'
|
33
35
|
|
34
36
|
# Specifies the header that your server uses for sending files.
|
35
37
|
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
@@ -46,9 +48,9 @@ Rails.application.configure do
|
|
46
48
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
47
49
|
# config.force_ssl = true
|
48
50
|
|
49
|
-
#
|
50
|
-
#
|
51
|
-
config.log_level = :
|
51
|
+
# Include generic and useful information about system operation, but avoid logging too much
|
52
|
+
# information to avoid inadvertent exposure of personally identifiable information (PII).
|
53
|
+
config.log_level = :info
|
52
54
|
|
53
55
|
# Prepend all log lines with the following tags.
|
54
56
|
config.log_tags = [ :request_id ]
|
@@ -58,7 +60,7 @@ Rails.application.configure do
|
|
58
60
|
|
59
61
|
# Use a real queuing backend for Active Job (and separate queues per environment).
|
60
62
|
# config.active_job.queue_adapter = :resque
|
61
|
-
# config.active_job.queue_name_prefix = "
|
63
|
+
# config.active_job.queue_name_prefix = "sample_6_1_4_production"
|
62
64
|
|
63
65
|
config.action_mailer.perform_caching = false
|
64
66
|
|
@@ -73,11 +75,17 @@ Rails.application.configure do
|
|
73
75
|
# Send deprecation notices to registered listeners.
|
74
76
|
config.active_support.deprecation = :notify
|
75
77
|
|
78
|
+
# Log disallowed deprecations.
|
79
|
+
config.active_support.disallowed_deprecation = :log
|
80
|
+
|
81
|
+
# Tell Active Support which deprecation messages to disallow.
|
82
|
+
config.active_support.disallowed_deprecation_warnings = []
|
83
|
+
|
76
84
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
77
85
|
config.log_formatter = ::Logger::Formatter.new
|
78
86
|
|
79
87
|
# Use a different logger for distributed setups.
|
80
|
-
# require
|
88
|
+
# require "syslog/logger"
|
81
89
|
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
82
90
|
|
83
91
|
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
data/config/environments/test.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
2
|
+
|
1
3
|
# The test environment is used exclusively to run your application's
|
2
4
|
# test suite. You never need to work with it otherwise. Remember that
|
3
5
|
# your test database is "scratch space" for the test suite and is wiped
|
@@ -44,6 +46,15 @@ Rails.application.configure do
|
|
44
46
|
# Print deprecation notices to the stderr.
|
45
47
|
config.active_support.deprecation = :stderr
|
46
48
|
|
49
|
+
# Raise exceptions for disallowed deprecations.
|
50
|
+
config.active_support.disallowed_deprecation = :raise
|
51
|
+
|
52
|
+
# Tell Active Support which deprecation messages to disallow.
|
53
|
+
config.active_support.disallowed_deprecation_warnings = []
|
54
|
+
|
47
55
|
# Raises error for missing translations.
|
48
|
-
# config.
|
56
|
+
# config.i18n.raise_on_missing_translations = true
|
57
|
+
|
58
|
+
# Annotate rendered view with file names.
|
59
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
49
60
|
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
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|
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
|
5
5
|
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
7
|
-
#
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
7
|
+
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
|
8
|
+
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
|
@@ -1,4 +1,6 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
3
|
# Configure sensitive parameters which will be filtered from the log file.
|
4
|
-
Rails.application.config.filter_parameters += [
|
4
|
+
Rails.application.config.filter_parameters += [
|
5
|
+
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
|
6
|
+
]
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Define an application-wide HTTP permissions policy. For further
|
2
|
+
# information see https://developers.google.com/web/updates/2018/06/feature-policy
|
3
|
+
#
|
4
|
+
# Rails.application.config.permissions_policy do |f|
|
5
|
+
# f.camera :none
|
6
|
+
# f.gyroscope :none
|
7
|
+
# f.microphone :none
|
8
|
+
# f.usb :none
|
9
|
+
# f.fullscreen :self
|
10
|
+
# f.payment :self, "https://secure.example.com"
|
11
|
+
# end
|
data/config/puma.rb
CHANGED
@@ -8,9 +8,14 @@ max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
|
8
8
|
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
9
|
threads min_threads_count, max_threads_count
|
10
10
|
|
11
|
+
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
12
|
+
# terminating a worker in development environments.
|
13
|
+
#
|
14
|
+
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
15
|
+
|
11
16
|
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
12
17
|
#
|
13
|
-
port
|
18
|
+
port ENV.fetch("PORT") { 3000 }
|
14
19
|
|
15
20
|
# Specifies the `environment` that Puma will run in.
|
16
21
|
#
|
data/config/webpacker.yml
CHANGED
@@ -6,12 +6,11 @@ default: &default
|
|
6
6
|
public_root_path: public
|
7
7
|
public_output_path: packs
|
8
8
|
cache_path: tmp/cache/webpacker
|
9
|
-
check_yarn_integrity: false
|
10
9
|
webpack_compile_output: true
|
11
10
|
|
12
11
|
# Additional paths webpack should lookup modules
|
13
12
|
# ['app/assets', 'engine/foo/app/assets']
|
14
|
-
|
13
|
+
additional_paths: []
|
15
14
|
|
16
15
|
# Reload manifest.json on all requests so we reload latest compiled packs
|
17
16
|
cache_manifest: false
|
@@ -52,9 +51,6 @@ development:
|
|
52
51
|
<<: *default
|
53
52
|
compile: true
|
54
53
|
|
55
|
-
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
|
56
|
-
check_yarn_integrity: true
|
57
|
-
|
58
54
|
# Reference: https://webpack.js.org/configuration/dev-server/
|
59
55
|
dev_server:
|
60
56
|
https: false
|
data/dryer-config.gemspec
CHANGED
@@ -12,6 +12,9 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.email = ['dittmar.krall@matique.de']
|
13
13
|
s.homepage = 'http://matique.de'
|
14
14
|
s.license = 'MIT'
|
15
|
+
s.platform = Gem::Platform::RUBY
|
16
|
+
|
17
|
+
s.metadata['source_code_uri'] = 'https://github.com/matique/dryer-config'
|
15
18
|
|
16
19
|
s.files = `git ls-files`.split("\n")
|
17
20
|
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -20,4 +23,6 @@ Gem::Specification.new do |s|
|
|
20
23
|
|
21
24
|
s.add_development_dependency 'bundler'
|
22
25
|
s.add_development_dependency 'rake'
|
26
|
+
|
27
|
+
s.add_development_dependency 'minitest'
|
23
28
|
end
|
data/lib/dryer-config/version.rb
CHANGED
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: 6.
|
4
|
+
version: 6.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Outsource several config files to a gem.
|
42
56
|
email:
|
43
57
|
- dittmar.krall@matique.de
|
@@ -46,6 +60,7 @@ extensions: []
|
|
46
60
|
extra_rdoc_files: []
|
47
61
|
files:
|
48
62
|
- ".gitignore"
|
63
|
+
- ".ruby-version"
|
49
64
|
- MIT-LICENSE
|
50
65
|
- README.md
|
51
66
|
- Rakefile
|
@@ -65,6 +80,7 @@ files:
|
|
65
80
|
- config/initializers/filter_parameter_logging.rb
|
66
81
|
- config/initializers/inflections.rb
|
67
82
|
- config/initializers/mime_types.rb
|
83
|
+
- config/initializers/permissions_policy.rb
|
68
84
|
- config/initializers/wrap_parameters.rb
|
69
85
|
- config/puma.rb
|
70
86
|
- config/spring.rb
|
@@ -81,7 +97,8 @@ files:
|
|
81
97
|
homepage: http://matique.de
|
82
98
|
licenses:
|
83
99
|
- MIT
|
84
|
-
metadata:
|
100
|
+
metadata:
|
101
|
+
source_code_uri: https://github.com/matique/dryer-config
|
85
102
|
post_install_message:
|
86
103
|
rdoc_options: []
|
87
104
|
require_paths:
|
@@ -97,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
114
|
- !ruby/object:Gem::Version
|
98
115
|
version: '0'
|
99
116
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
117
|
+
rubygems_version: 3.2.15
|
101
118
|
signing_key:
|
102
119
|
specification_version: 4
|
103
120
|
summary: Several pristine Rails config files.
|