dryer-config 6.0.0 → 7.0.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: 3c6daaf543a97f151f02170a257e6b3572efb0d040d6b5c3d0aafb5458e8f482
4
- data.tar.gz: 27045bed45ea0dc4e6872e2811b24faa28a8332202a9a834123907053c299fc0
3
+ metadata.gz: d6241824369d1b20f34bd0cbf0cd0365d97b2b4ed47f0adb3c676ff3088a3104
4
+ data.tar.gz: ca1fc2e75eb0b4e3585ea6ef4d0f440031acf339480db0485a39291c38e81ca5
5
5
  SHA512:
6
- metadata.gz: 40e5da69197d0fe17a0684942ce0e4e07098b2831afa5904661f6cf9a0c084822780f5d1f030284a449136f4356c4d4544122f2b1ba5e519fd724a9d439c3acb
7
- data.tar.gz: 888a7ce879c01408e50d988ef1de59f1f81dbb9a0621481cf5ca7d7627094bfdffd612a8d711d9c3a608cd40e7ea9e4de5d893de857905d2c833b3c7d0d8574b
6
+ metadata.gz: 3201ef8a3bfae096a77879ec94553430a8161373565504c4345fdc4c58a59909464084bb417278389db8ebf94901756516c7bce17bda119dc3ea4b224a4d1732
7
+ data.tar.gz: 3382c24d8adb719f935d9f3a182eb53bc083f50b10bf66e6b8bb94dfef3b41701217dbb41453930c2ef1684b60bd40363c0675fa256cc43ac6a739ef5ab7f337
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ rails-7.0
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-3.0.3
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/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  DryerConfig
2
2
  ===========
3
+ [![Gem Version](https://badge.fury.io/rb/dryer-config.png)](http://badge.fury.io/rb/dryer-config)
3
4
 
4
5
  Contains most of the files of a pristine "rails new" "config" directories.
5
6
  They will be available to your application by
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/boot.rb CHANGED
@@ -1,4 +1,4 @@
1
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
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_7_0_0_production
data/config/database.yml CHANGED
@@ -2,7 +2,7 @@
2
2
  # gem install sqlite3
3
3
  #
4
4
  # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
5
+ # gem "sqlite3"
6
6
  #
7
7
  default: &default
8
8
  adapter: sqlite3
@@ -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
 
@@ -12,15 +14,18 @@ Rails.application.configure do
12
14
  # Show full error reports.
13
15
  config.consider_all_requests_local = true
14
16
 
17
+ # Enable server timing
18
+ config.server_timing = true
19
+
15
20
  # Enable/disable caching. By default caching is disabled.
16
21
  # Run rails dev:cache to toggle caching.
17
- if Rails.root.join('tmp', 'caching-dev.txt').exist?
22
+ if Rails.root.join("tmp/caching-dev.txt").exist?
18
23
  config.action_controller.perform_caching = true
19
24
  config.action_controller.enable_fragment_cache_logging = true
20
25
 
21
26
  config.cache_store = :memory_store
22
27
  config.public_file_server.headers = {
23
- 'Cache-Control' => "public, max-age=#{2.days.to_i}"
28
+ "Cache-Control" => "public, max-age=#{2.days.to_i}"
24
29
  }
25
30
  else
26
31
  config.action_controller.perform_caching = false
@@ -39,24 +44,27 @@ Rails.application.configure do
39
44
  # Print deprecation notices to the Rails logger.
40
45
  config.active_support.deprecation = :log
41
46
 
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
+
42
53
  # Raise an error on page load if there are pending migrations.
43
54
  config.active_record.migration_error = :page_load
44
55
 
45
56
  # Highlight code that triggered database queries in logs.
46
57
  config.active_record.verbose_query_logs = true
47
58
 
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
59
  # Suppress logger output for asset requests.
54
60
  config.assets.quiet = true
55
61
 
56
62
  # Raises error for missing translations.
57
- # config.action_view.raise_on_missing_translations = true
63
+ # config.i18n.raise_on_missing_translations = true
64
+
65
+ # Annotate rendered view with file names.
66
+ # config.action_view.annotate_rendered_view_with_filenames = true
58
67
 
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
68
+ # Uncomment if you wish to allow Action Cable access from any origin.
69
+ # config.action_cable.disable_request_forgery_protection = true
62
70
  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
 
@@ -20,7 +22,7 @@ Rails.application.configure do
20
22
 
21
23
  # Disable serving static files from the `/public` folder by default since
22
24
  # Apache or NGINX already handles this.
23
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
25
+ config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
24
26
 
25
27
  # Compress CSS using a preprocessor.
26
28
  # config.assets.css_compressor = :sass
@@ -29,26 +31,26 @@ 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
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
36
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
37
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
38
+ # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
37
39
 
38
40
  # Store uploaded files on the local file system (see config/storage.yml for options).
39
41
  config.active_storage.service = :local
40
42
 
41
43
  # Mount Action Cable outside main process or domain.
42
44
  # 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
+ # config.action_cable.url = "wss://example.com/cable"
46
+ # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
45
47
 
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_7_0_0_production"
62
64
 
63
65
  config.action_mailer.perform_caching = false
64
66
 
@@ -70,15 +72,15 @@ Rails.application.configure do
70
72
  # the I18n.default_locale when a translation cannot be found).
71
73
  config.i18n.fallbacks = true
72
74
 
73
- # Send deprecation notices to registered listeners.
74
- config.active_support.deprecation = :notify
75
+ # Don't log any deprecations.
76
+ config.active_support.report_deprecations = false
75
77
 
76
78
  # Use default logging formatter so that PID and timestamp are not suppressed.
77
79
  config.log_formatter = ::Logger::Formatter.new
78
80
 
79
81
  # Use a different logger for distributed setups.
80
- # require 'syslog/logger'
81
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
82
+ # require "syslog/logger"
83
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
82
84
 
83
85
  if ENV["RAILS_LOG_TO_STDOUT"].present?
84
86
  logger = ActiveSupport::Logger.new(STDOUT)
@@ -88,25 +90,4 @@ Rails.application.configure do
88
90
 
89
91
  # Do not dump schema after migrations.
90
92
  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
93
  end
@@ -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
@@ -5,18 +7,19 @@
5
7
 
6
8
  Rails.application.configure do
7
9
  # Settings specified here will take precedence over those in config/application.rb.
8
-
9
- config.cache_classes = false
10
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
11
+ # Turn false under Spring and add config.action_view.cache_template_loading = true
12
+ config.cache_classes = true
13
+
14
+ # Eager loading loads your whole application. When running a single test locally,
15
+ # this probably isn't necessary. It's a good idea to do in a continuous integration
16
+ # system, or in some way before deploying your code.
17
+ config.eager_load = ENV["CI"].present?
15
18
 
16
19
  # Configure public file server for tests with Cache-Control for performance.
17
20
  config.public_file_server.enabled = true
18
21
  config.public_file_server.headers = {
19
- 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
22
+ "Cache-Control" => "public, max-age=#{1.hour.to_i}"
20
23
  }
21
24
 
22
25
  # Show full error reports and disable caching.
@@ -43,6 +46,15 @@ Rails.application.configure do
43
46
  # Print deprecation notices to the stderr.
44
47
  config.active_support.deprecation = :stderr
45
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
+
46
55
  # Raises error for missing translations.
47
- # 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
48
60
  end
@@ -0,0 +1,7 @@
1
+ # Pin npm packages by running ./bin/importmap
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
7
+ pin_all_from "app/javascript/controllers", under: "controllers"
@@ -1,12 +1,10 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
3
  # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
4
+ 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
- # Add Yarn node_modules folder to the asset load path.
9
- Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
8
 
11
9
  # Precompile additional assets.
12
10
  # application.js, application.css, and all non-JS/CSS in the app/assets
@@ -4,27 +4,23 @@
4
4
  # For further information see the following documentation
5
5
  # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
6
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"
7
+ # Rails.application.configure do
8
+ # config.content_security_policy do |policy|
9
+ # policy.default_src :self, :https
10
+ # policy.font_src :self, :https, :data
11
+ # policy.img_src :self, :https, :data
12
+ # policy.object_src :none
13
+ # policy.script_src :self, :https
14
+ # policy.style_src :self, :https
15
+ # # Specify URI for violation reports
16
+ # # policy.report_uri "/csp-violation-report-endpoint"
17
+ # end
18
+ #
19
+ # # Generate session nonces for permitted importmap and inline scripts
20
+ # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
21
+ # config.content_security_policy_nonce_directives = %w(script-src)
22
+ #
23
+ # # Report CSP violations to a specified URI. See:
24
+ # # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
25
+ # # config.content_security_policy_report_only = true
19
26
  # 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
@@ -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
+ ]
@@ -4,13 +4,13 @@
4
4
  # are locale specific, and you may define rules for as many different
5
5
  # locales as you wish. All of these examples are active by default:
6
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'
7
+ # inflect.plural /^(ox)$/i, "\\1en"
8
+ # inflect.singular /^(ox)en/i, "\\1"
9
+ # inflect.irregular "person", "people"
10
10
  # inflect.uncountable %w( fish sheep )
11
11
  # end
12
12
 
13
13
  # These inflection rules are supported but not enabled by default:
14
14
  # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
15
+ # inflect.acronym "RESTful"
16
16
  # end
@@ -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
  #
@@ -34,5 +39,5 @@ pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
34
39
  #
35
40
  # preload_app!
36
41
 
37
- # Allow puma to be restarted by `rails restart` command.
42
+ # Allow puma to be restarted by `bin/rails restart` command.
38
43
  plugin :tmp_restart
data/config/storage.yml CHANGED
@@ -6,27 +6,27 @@ local:
6
6
  service: Disk
7
7
  root: <%= Rails.root.join("storage") %>
8
8
 
9
- # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
9
+ # Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
10
  # amazon:
11
11
  # service: S3
12
12
  # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
13
  # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
14
  # region: us-east-1
15
- # bucket: your_own_bucket
15
+ # bucket: your_own_bucket-<%= Rails.env %>
16
16
 
17
17
  # Remember not to checkin your GCS keyfile to a repository
18
18
  # google:
19
19
  # service: GCS
20
20
  # project: your_project
21
21
  # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
- # bucket: your_own_bucket
22
+ # bucket: your_own_bucket-<%= Rails.env %>
23
23
 
24
- # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
24
+ # Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
25
  # microsoft:
26
26
  # service: AzureStorage
27
27
  # storage_account_name: your_account_name
28
28
  # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
- # container: your_container_name
29
+ # container: your_container_name-<%= Rails.env %>
30
30
 
31
31
  # mirror:
32
32
  # service: Mirror
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/dryer-config.gemspec CHANGED
@@ -12,12 +12,17 @@ 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")
18
21
  # s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
22
  s.require_paths = ["lib"]
20
23
 
21
- s.add_development_dependency 'bundler', '~> 0'
22
- s.add_development_dependency 'rake', '~> 0'
24
+ s.add_development_dependency 'bundler'
25
+ s.add_development_dependency 'rake'
26
+
27
+ s.add_development_dependency 'minitest'
23
28
  end
@@ -1,4 +1,8 @@
1
1
  module DryerConfig
2
- VERSION = '6.0.0' # 2019-10-07
3
- # VERSION = '5.2.0'
2
+ VERSION = '7.0.0' # 2021-12-18
3
+ # VERSION = '6.1.4' # 2021-06-27
4
+ # VERSION = '6.0.3' # 2020-05-08
5
+ # VERSION = '6.0.2' # 2020-02-25
6
+ # VERSION = '6.0.0' # 2019-10-07
7
+ # VERSION = '5.2.0'
4
8
  end
metadata CHANGED
@@ -1,41 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryer-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 7.0.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: 2019-10-07 00:00:00.000000000 Z
11
+ date: 2021-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
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
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  description: Outsource several config files to a gem.
@@ -46,6 +60,8 @@ extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
48
62
  - ".gitignore"
63
+ - ".ruby-gemset"
64
+ - ".ruby-version"
49
65
  - MIT-LICENSE
50
66
  - README.md
51
67
  - Rakefile
@@ -57,23 +73,14 @@ files:
57
73
  - config/environments/development.rb
58
74
  - config/environments/production.rb
59
75
  - config/environments/test.rb
60
- - config/initializers/application_controller_renderer.rb
76
+ - config/importmap.rb
61
77
  - config/initializers/assets.rb
62
- - config/initializers/backtrace_silencers.rb
63
78
  - config/initializers/content_security_policy.rb
64
- - config/initializers/cookies_serializer.rb
65
79
  - config/initializers/filter_parameter_logging.rb
66
80
  - config/initializers/inflections.rb
67
- - config/initializers/mime_types.rb
68
- - config/initializers/wrap_parameters.rb
81
+ - config/initializers/permissions_policy.rb
69
82
  - config/puma.rb
70
- - config/spring.rb
71
83
  - config/storage.yml
72
- - config/webpack/development.js
73
- - config/webpack/environment.js
74
- - config/webpack/production.js
75
- - config/webpack/test.js
76
- - config/webpacker.yml
77
84
  - dryer-config.gemspec
78
85
  - lib/dryer-config.rb
79
86
  - lib/dryer-config/engine.rb
@@ -81,7 +88,8 @@ files:
81
88
  homepage: http://matique.de
82
89
  licenses:
83
90
  - MIT
84
- metadata: {}
91
+ metadata:
92
+ source_code_uri: https://github.com/matique/dryer-config
85
93
  post_install_message:
86
94
  rdoc_options: []
87
95
  require_paths:
@@ -97,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
105
  - !ruby/object:Gem::Version
98
106
  version: '0'
99
107
  requirements: []
100
- rubygems_version: 3.0.6
108
+ rubygems_version: 3.2.32
101
109
  signing_key:
102
110
  specification_version: 4
103
111
  summary: Several pristine Rails config files.
@@ -1,8 +0,0 @@
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
@@ -1,7 +0,0 @@
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!
@@ -1,5 +0,0 @@
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
@@ -1,4 +0,0 @@
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
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
data/config/spring.rb DELETED
@@ -1,6 +0,0 @@
1
- Spring.watch(
2
- ".ruby-version",
3
- ".rbenv-vars",
4
- "tmp/restart.txt",
5
- "tmp/caching-dev.txt"
6
- )
@@ -1,5 +0,0 @@
1
- process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
-
3
- const environment = require('./environment')
4
-
5
- module.exports = environment.toWebpackConfig()
@@ -1,3 +0,0 @@
1
- const { environment } = require('@rails/webpacker')
2
-
3
- module.exports = environment
@@ -1,5 +0,0 @@
1
- process.env.NODE_ENV = process.env.NODE_ENV || 'production'
2
-
3
- const environment = require('./environment')
4
-
5
- module.exports = environment.toWebpackConfig()
@@ -1,5 +0,0 @@
1
- process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
-
3
- const environment = require('./environment')
4
-
5
- module.exports = environment.toWebpackConfig()
data/config/webpacker.yml DELETED
@@ -1,95 +0,0 @@
1
- # Note: You must restart bin/webpack-dev-server for changes to take effect
2
-
3
- default: &default
4
- source_path: app/javascript
5
- source_entry_path: packs
6
- public_root_path: public
7
- public_output_path: packs
8
- cache_path: tmp/cache/webpacker
9
- check_yarn_integrity: false
10
- webpack_compile_output: false
11
-
12
- # Additional paths webpack should lookup modules
13
- # ['app/assets', 'engine/foo/app/assets']
14
- resolved_paths: []
15
-
16
- # Reload manifest.json on all requests so we reload latest compiled packs
17
- cache_manifest: false
18
-
19
- # Extract and emit a css file
20
- extract_css: false
21
-
22
- static_assets_extensions:
23
- - .jpg
24
- - .jpeg
25
- - .png
26
- - .gif
27
- - .tiff
28
- - .ico
29
- - .svg
30
- - .eot
31
- - .otf
32
- - .ttf
33
- - .woff
34
- - .woff2
35
-
36
- extensions:
37
- - .mjs
38
- - .js
39
- - .sass
40
- - .scss
41
- - .css
42
- - .module.sass
43
- - .module.scss
44
- - .module.css
45
- - .png
46
- - .svg
47
- - .gif
48
- - .jpeg
49
- - .jpg
50
-
51
- development:
52
- <<: *default
53
- compile: true
54
-
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
- # Reference: https://webpack.js.org/configuration/dev-server/
59
- dev_server:
60
- https: false
61
- host: localhost
62
- port: 3035
63
- public: localhost:3035
64
- hmr: false
65
- # Inline should be set to true if using HMR
66
- inline: true
67
- overlay: true
68
- compress: true
69
- disable_host_check: true
70
- use_local_ip: false
71
- quiet: false
72
- headers:
73
- 'Access-Control-Allow-Origin': '*'
74
- watch_options:
75
- ignored: '**/node_modules/**'
76
-
77
-
78
- test:
79
- <<: *default
80
- compile: true
81
-
82
- # Compile test packs to a separate directory
83
- public_output_path: packs-test
84
-
85
- production:
86
- <<: *default
87
-
88
- # Production depends on precompilation of packs prior to booting for performance.
89
- compile: false
90
-
91
- # Extract and emit a css file
92
- extract_css: true
93
-
94
- # Cache manifest.json for performance
95
- cache_manifest: true