dryer-config 6.0.3 → 6.1.4

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: a13388cb345cf4f4697a360c23a46a01a6fe5fcf57cab7ccd31bdb2ac93c64e7
4
- data.tar.gz: 0fdd6b2abc5f56f48a9606a166c5292d3563385e5bfdda12fe616000392df004
3
+ metadata.gz: 2181884f548ada0f37b870c42469f91bc94fb17ea3f3e04d4ac5b74926aa62e4
4
+ data.tar.gz: 35ccc535fa685cdba70ce5498231bd1c8c0c268436d54cbace0d1b77ae7ef444
5
5
  SHA512:
6
- metadata.gz: fcd9361d1f13916dd138ba5618ea7f1f1c651157efb5895fc4809c4701e7b8f7358b5964a39abd48247439760f3427942e3d62f58964b7614ea8fbddd467e023
7
- data.tar.gz: 42495ff9897bb1370e9a03057c5237c2e62b432fb488dba788567680a38dea39d057371ac8fd8d9196193035f1817ccde7a207a2755c82a5816de8c48e22e735
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
@@ -1,4 +1,4 @@
1
- Copyright 2016-2019 Dittmar Krall - http://matique.de
1
+ Copyright 2016-2021 Dittmar Krall - www.matique.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 'config/application'
4
+ require_relative "config/application"
5
5
 
6
6
  Rails.application.load_tasks
data/config.ru CHANGED
@@ -1,5 +1,6 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require_relative 'config/environment'
3
+ require_relative "config/environment"
4
4
 
5
5
  run Rails.application
6
+ Rails.application.load_server
data/config/boot.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2
2
 
3
- require 'bundler/setup' # Set up gems listed in the Gemfile.
4
- require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
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
@@ -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_6_0_0_production
10
+ channel_prefix: sample_6_1_4_production
@@ -1,5 +1,5 @@
1
1
  # Load the Rails application.
2
- require_relative 'application'
2
+ require_relative "application"
3
3
 
4
4
  # Initialize the Rails application.
5
5
  Rails.application.initialize!
@@ -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 on
5
- # every request. This slows down response time but is perfect for development
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.action_view.raise_on_missing_translations = true
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.action_controller.asset_host = 'http://assets.example.com'
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
- # Use the lowest log level to ensure availability of diagnostic information
50
- # when problems arise.
51
- config.log_level = :debug
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 = "sample_6_0_0_production"
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 'syslog/logger'
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?
@@ -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.action_view.raise_on_missing_translations = true
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| line =~ /my_noisy_library/ }
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
- # Rails.backtrace_cleaner.remove_silencers!
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 += [:password]
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 ENV.fetch("PORT") { 3000 }
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
- resolved_paths: []
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
@@ -1,5 +1,6 @@
1
1
  module DryerConfig
2
- VERSION = '6.0.3' # 2020-05-08
2
+ VERSION = '6.1.4' # 2021-06-27
3
+ # VERSION = '6.0.3' # 2020-05-08
3
4
  # VERSION = '6.0.2' # 2020-02-25
4
5
  # VERSION = '6.0.0' # 2019-10-07
5
6
  # VERSION = '5.2.0'
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.0.3
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: 2020-05-08 00:00:00.000000000 Z
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.0.8
117
+ rubygems_version: 3.2.15
101
118
  signing_key:
102
119
  specification_version: 4
103
120
  summary: Several pristine Rails config files.