dryer-config 5.1.0 → 5.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
- SHA1:
3
- metadata.gz: d411f4f48db9bcff3ecc6e260e50a9d4a953fc68
4
- data.tar.gz: d910fd224bcddd3c1d8ad8a8dfc7f9623aa1b53a
2
+ SHA256:
3
+ metadata.gz: bfd1d1461dadfac13d2f6152faad12e768cd7fe2ecea138fcd799d1ef74321f7
4
+ data.tar.gz: c392c981605679af061b7ba03357631c39ed79df924e228d94e18c09d4990371
5
5
  SHA512:
6
- metadata.gz: 2364f7de403068e9f6847dce796caa5c6808ae373ffac6c653854b17aafc931d663b423516aebe2a151878df83b6da5ebb889796a7ce81f5db192bc02ef49bb4
7
- data.tar.gz: 1e06141fb6a15bc8be40cf50ba08fd21768701099b18cc640ffd6e04a08bb7b5e552fb4989efe640f6c94eab34434cc9b08ebc31227564ed0e2f6613f893f84c
6
+ metadata.gz: 1735abfdf696d847990d633e351b49d904a21f360a646ea6cdfd05444837b366164dfdf0561b68c17481c2a4a22f0dcc3781b9a57557ebdda5636494a6ef7896
7
+ data.tar.gz: d8a00181dd7caf8b09f3c3eef737f5a8525fc24d52f037a308dd7306f8b02efb5f4ef8169a5b5e6baf1046526e0f5ac11cc49cb34beb22a9506cf03c9e56faa1
@@ -1,4 +1,4 @@
1
- Copyright 2016-2017 Dittmar Krall - http://matique.de
1
+ Copyright 2016-2018 Dittmar Krall - http://matique.de
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
@@ -11,7 +11,11 @@ will contain just your particular requirements/options
11
11
 
12
12
  Version numbering is according to the Rails versions, e.g. use
13
13
 
14
- gem 'dryer-config', '= 5.0.0' # for a Rails 5.0.0 applications
14
+ gem 'dryer-config', '= 5.2.0' # for a Rails 5.2.0 applications
15
+
16
+ or
17
+
18
+ gem 'dryer-config', '~> 5.2' # expected to serve Rails 5.2.*
15
19
 
16
20
  in your Gemfile.
17
21
 
@@ -38,7 +42,7 @@ Installation
38
42
  ------------
39
43
  To install add the following to your Gemfile (e.g.):
40
44
 
41
- gem 'dryer-config', '~> 5.0'
45
+ gem 'dryer-config', '~> 5.2'
42
46
 
43
47
  and run bundle.
44
48
 
@@ -48,25 +52,25 @@ Configuration
48
52
  The following original config files have been dropped:
49
53
 
50
54
  ./config/application.rb
51
- ./config/initializers/session_store.rb
55
+ ./config/credentials.yml.enc
52
56
  ./config/locales/*
57
+ ./config/master.key
53
58
  ./config/routes.rb
54
- ./config/secrets.yml
55
59
 
56
60
  Create your owns.
57
61
 
58
- The following original config files are unused:
62
+ The following file may require your attention:
59
63
 
60
64
  ./config/boot.rb
61
65
  ./config/cable.yml
62
66
  ./config/database.yml
63
- ./config/environment.rb
64
67
  ./config/puma.rb
65
68
  ./config/spring.rb
69
+ ./config/storage.yml
66
70
 
67
71
  Create/copy your owns. They are still there for inspection.
68
72
 
69
- The following file may require your attention:
73
+ The following file requires your attention:
70
74
 
71
75
  ./config/initializers/assets.rb
72
76
 
data/Rakefile CHANGED
@@ -1,13 +1,6 @@
1
- begin
2
- require 'bundler'
3
- require 'bundler/setup'
4
- rescue LoadError
5
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
- end
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
7
3
 
8
- Bundler::GemHelper.install_tasks
4
+ require_relative 'config/application'
9
5
 
10
- desc "Clean automatically generated files"
11
- task :clean do
12
- FileUtils.rm_rf "pkg"
13
- end
6
+ Rails.application.load_tasks
@@ -1,3 +1,4 @@
1
1
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2
2
 
3
3
  require 'bundler/setup' # Set up gems listed in the Gemfile.
4
+ require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
@@ -6,5 +6,5 @@ test:
6
6
 
7
7
  production:
8
8
  adapter: redis
9
- url: redis://localhost:6379/1
10
- channel_prefix: sample-5_1_0_production
9
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
+ channel_prefix: sample-5_2_0_production
@@ -13,12 +13,13 @@ Rails.application.configure do
13
13
  config.consider_all_requests_local = true
14
14
 
15
15
  # Enable/disable caching. By default caching is disabled.
16
- if Rails.root.join('tmp/caching-dev.txt').exist?
16
+ # Run rails dev:cache to toggle caching.
17
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
17
18
  config.action_controller.perform_caching = true
18
19
 
19
20
  config.cache_store = :memory_store
20
21
  config.public_file_server.headers = {
21
- 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
22
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
22
23
  }
23
24
  else
24
25
  config.action_controller.perform_caching = false
@@ -26,6 +27,9 @@ Rails.application.configure do
26
27
  config.cache_store = :null_store
27
28
  end
28
29
 
30
+ # Store uploaded files on the local file system (see config/storage.yml for options)
31
+ config.active_storage.service = :local
32
+
29
33
  # Don't care if the mailer can't send.
30
34
  config.action_mailer.raise_delivery_errors = false
31
35
 
@@ -37,6 +41,9 @@ Rails.application.configure do
37
41
  # Raise an error on page load if there are pending migrations.
38
42
  config.active_record.migration_error = :page_load
39
43
 
44
+ # Highlight code that triggered database queries in logs.
45
+ config.active_record.verbose_query_logs = true
46
+
40
47
  # Debug mode disables concatenation and preprocessing of assets.
41
48
  # This option may cause significant delays in view rendering with a large
42
49
  # number of complex assets.
@@ -14,10 +14,9 @@ Rails.application.configure do
14
14
  config.consider_all_requests_local = false
15
15
  config.action_controller.perform_caching = true
16
16
 
17
- # Attempt to read encrypted secrets from `config/secrets.yml.enc`.
18
- # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
19
- # `config/secrets.yml.key`.
20
- config.read_encrypted_secrets = true
17
+ # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
18
+ # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
19
+ # config.require_master_key = true
21
20
 
22
21
  # Disable serving static files from the `/public` folder by default since
23
22
  # Apache or NGINX already handles this.
@@ -39,6 +38,9 @@ Rails.application.configure do
39
38
  # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
40
39
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
41
40
 
41
+ # Store uploaded files on the local file system (see config/storage.yml for options)
42
+ config.active_storage.service = :local
43
+
42
44
  # Mount Action Cable outside main process or domain
43
45
  # config.action_cable.mount_path = nil
44
46
  # config.action_cable.url = 'wss://example.com/cable'
@@ -59,7 +61,8 @@ Rails.application.configure do
59
61
 
60
62
  # Use a real queuing backend for Active Job (and separate queues per environment)
61
63
  # config.active_job.queue_adapter = :resque
62
- # config.active_job.queue_name_prefix = "sample-5_1_0_#{Rails.env}"
64
+ # config.active_job.queue_name_prefix = "sample-5_2_0_#{Rails.env}"
65
+
63
66
  config.action_mailer.perform_caching = false
64
67
 
65
68
  # Ignore bad email addresses and do not raise email delivery errors.
@@ -15,7 +15,7 @@ Rails.application.configure do
15
15
  # Configure public file server for tests with Cache-Control for performance.
16
16
  config.public_file_server.enabled = true
17
17
  config.public_file_server.headers = {
18
- 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
18
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
19
19
  }
20
20
 
21
21
  # Show full error reports and disable caching.
@@ -27,6 +27,10 @@ Rails.application.configure do
27
27
 
28
28
  # Disable request forgery protection in test environment.
29
29
  config.action_controller.allow_forgery_protection = false
30
+
31
+ # Store uploaded files on the local file system in a temporary directory
32
+ config.active_storage.service = :test
33
+
30
34
  config.action_mailer.perform_caching = false
31
35
 
32
36
  # Tell Action Mailer not to deliver emails to the real world.
@@ -1,6 +1,8 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # ApplicationController.renderer.defaults.merge!(
4
- # http_host: 'example.org',
5
- # https: false
6
- # )
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -0,0 +1,25 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide content security policy
4
+ # For further information see the following documentation
5
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
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
+
15
+ # # Specify URI for violation reports
16
+ # # policy.report_uri "/csp-violation-report-endpoint"
17
+ # end
18
+
19
+ # If you are using UJS then enable automatic nonce generation
20
+ # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
21
+
22
+ # Report CSP violations to a specified URI
23
+ # For further information see the following documentation:
24
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
25
+ # Rails.application.config.content_security_policy_report_only = true
@@ -26,31 +26,9 @@ environment ENV.fetch("RAILS_ENV") { "development" }
26
26
  # Use the `preload_app!` method when specifying a `workers` number.
27
27
  # This directive tells Puma to first boot the application and load code
28
28
  # before forking the application. This takes advantage of Copy On Write
29
- # process behavior so workers use less memory. If you use this option
30
- # you need to make sure to reconnect any threads in the `on_worker_boot`
31
- # block.
29
+ # process behavior so workers use less memory.
32
30
  #
33
31
  # preload_app!
34
32
 
35
- # If you are preloading your application and using Active Record, it's
36
- # recommended that you close any connections to the database before workers
37
- # are forked to prevent connection leakage.
38
- #
39
- # before_fork do
40
- # ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
41
- # end
42
-
43
- # The code in the `on_worker_boot` will be called if you are using
44
- # clustered mode by specifying a number of `workers`. After each worker
45
- # process is booted, this block will be run. If you are using the `preload_app!`
46
- # option, you will want to use this block to reconnect to any threads
47
- # or connections that may have been created at application boot, as Ruby
48
- # cannot share connections between processes.
49
- #
50
- # on_worker_boot do
51
- # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
52
- # end
53
- #
54
-
55
33
  # Allow puma to be restarted by `rails restart` command.
56
34
  plugin :tmp_restart
@@ -1,6 +1,6 @@
1
- %w(
1
+ %w[
2
2
  .ruby-version
3
3
  .rbenv-vars
4
4
  tmp/restart.txt
5
5
  tmp/caching-dev.txt
6
- ).each { |path| Spring.watch(path) }
6
+ ].each { |path| Spring.watch(path) }
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket
23
+
24
+ # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -1,3 +1,3 @@
1
1
  module DryerConfig
2
- VERSION = '5.1.0'
2
+ VERSION = '5.2.0'
3
3
  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: 5.1.0
4
+ version: 5.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: 2017-05-08 00:00:00.000000000 Z
11
+ date: 2018-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,6 +60,7 @@ files:
60
60
  - config/initializers/application_controller_renderer.rb
61
61
  - config/initializers/assets.rb
62
62
  - config/initializers/backtrace_silencers.rb
63
+ - config/initializers/content_security_policy.rb
63
64
  - config/initializers/cookies_serializer.rb
64
65
  - config/initializers/filter_parameter_logging.rb
65
66
  - config/initializers/inflections.rb
@@ -67,6 +68,7 @@ files:
67
68
  - config/initializers/wrap_parameters.rb
68
69
  - config/puma.rb
69
70
  - config/spring.rb
71
+ - config/storage.yml
70
72
  - dryer-config.gemspec
71
73
  - lib/dryer-config.rb
72
74
  - lib/dryer-config/engine.rb
@@ -91,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
93
  version: '0'
92
94
  requirements: []
93
95
  rubyforge_project:
94
- rubygems_version: 2.5.1
96
+ rubygems_version: 2.7.3
95
97
  signing_key:
96
98
  specification_version: 4
97
99
  summary: Several pristine Rails config files.