dryer-config 5.0.1 → 5.1.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
  SHA1:
3
- metadata.gz: d0336d26e0bdaae7fcaa7323f05176623388c0c2
4
- data.tar.gz: 5b27ca798cf3e95b4274a6453bbd078a5033a9f6
3
+ metadata.gz: d411f4f48db9bcff3ecc6e260e50a9d4a953fc68
4
+ data.tar.gz: d910fd224bcddd3c1d8ad8a8dfc7f9623aa1b53a
5
5
  SHA512:
6
- metadata.gz: 2dc66ef284588c5114b7fe448345baa31b64cc22b4d965d27c5431ef2b4c468deb30d831a0967cfcda4ca14e5d1623704df668f37bc1c5859cffff95e83ab250
7
- data.tar.gz: 2d376ff537bde9b3d62bb58f4f7cd300b594daa3eaf3c2e8832298d9e52f2f5a929ebb6c1a10b62333af5a6518a02d6a25741c55bb04d4dca9cd65499322bb65
6
+ metadata.gz: 2364f7de403068e9f6847dce796caa5c6808ae373ffac6c653854b17aafc931d663b423516aebe2a151878df83b6da5ebb889796a7ce81f5db192bc02ef49bb4
7
+ data.tar.gz: 1e06141fb6a15bc8be40cf50ba08fd21768701099b18cc640ffd6e04a08bb7b5e552fb4989efe640f6c94eab34434cc9b08ebc31227564ed0e2f6613f893f84c
@@ -7,3 +7,4 @@ test:
7
7
  production:
8
8
  adapter: redis
9
9
  url: redis://localhost:6379/1
10
+ channel_prefix: sample-5_1_0_production
@@ -6,7 +6,7 @@
6
6
  #
7
7
  default: &default
8
8
  adapter: sqlite3
9
- pool: 5
9
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
10
  timeout: 5000
11
11
 
12
12
  development:
@@ -18,7 +18,7 @@ Rails.application.configure do
18
18
 
19
19
  config.cache_store = :memory_store
20
20
  config.public_file_server.headers = {
21
- 'Cache-Control' => 'public, max-age=172800'
21
+ 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
22
22
  }
23
23
  else
24
24
  config.action_controller.perform_caching = false
@@ -14,6 +14,11 @@ 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
21
+
17
22
  # Disable serving static files from the `/public` folder by default since
18
23
  # Apache or NGINX already handles this.
19
24
  config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
@@ -54,7 +59,7 @@ Rails.application.configure do
54
59
 
55
60
  # Use a real queuing backend for Active Job (and separate queues per environment)
56
61
  # config.active_job.queue_adapter = :resque
57
- # config.active_job.queue_name_prefix = "sample-5_0_1_#{Rails.env}"
62
+ # config.active_job.queue_name_prefix = "sample-5_1_0_#{Rails.env}"
58
63
  config.action_mailer.perform_caching = false
59
64
 
60
65
  # Ignore bad email addresses and do not raise email delivery errors.
@@ -78,7 +83,7 @@ Rails.application.configure do
78
83
  if ENV["RAILS_LOG_TO_STDOUT"].present?
79
84
  logger = ActiveSupport::Logger.new(STDOUT)
80
85
  logger.formatter = config.log_formatter
81
- config.logger = ActiveSupport::TaggedLogging.new(logger)
86
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
82
87
  end
83
88
 
84
89
  # Do not dump schema after migrations.
@@ -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=3600'
18
+ 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
19
19
  }
20
20
 
21
21
  # Show full error reports and disable caching.
@@ -3,9 +3,12 @@
3
3
  # Version of your assets, change this if you want to expire all your assets.
4
4
  Rails.application.config.assets.version = '1.0'
5
5
 
6
- # Add additional assets to the asset load path
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')
8
10
 
9
11
  # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -1,13 +1,13 @@
1
1
  # Puma can serve each request in a thread from an internal thread pool.
2
- # The `threads` method setting takes two numbers a minimum and maximum.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
3
  # Any libraries that use thread pools should be configured to match
4
4
  # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
- # and maximum, this matches the default thread size of Active Record.
5
+ # and maximum; this matches the default thread size of Active Record.
6
6
  #
7
- threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
8
  threads threads_count, threads_count
9
9
 
10
- # Specifies the `port` that Puma will listen on to receive requests, default is 3000.
10
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
11
  #
12
12
  port ENV.fetch("PORT") { 3000 }
13
13
 
@@ -32,16 +32,25 @@ environment ENV.fetch("RAILS_ENV") { "development" }
32
32
  #
33
33
  # preload_app!
34
34
 
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
+
35
43
  # The code in the `on_worker_boot` will be called if you are using
36
44
  # clustered mode by specifying a number of `workers`. After each worker
37
- # process is booted this block will be run, if you are using `preload_app!`
38
- # option you will want to use this block to reconnect to any threads
39
- # or connections that may have been created at application boot, Ruby
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
40
48
  # cannot share connections between processes.
41
49
  #
42
50
  # on_worker_boot do
43
51
  # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
44
52
  # end
53
+ #
45
54
 
46
55
  # Allow puma to be restarted by `rails restart` command.
47
56
  plugin :tmp_restart
@@ -1,3 +1,3 @@
1
1
  module DryerConfig
2
- VERSION = '5.0.1'
2
+ VERSION = '5.1.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.0.1
4
+ version: 5.1.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-01-18 00:00:00.000000000 Z
11
+ date: 2017-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,7 +64,6 @@ files:
64
64
  - config/initializers/filter_parameter_logging.rb
65
65
  - config/initializers/inflections.rb
66
66
  - config/initializers/mime_types.rb
67
- - config/initializers/new_framework_defaults.rb
68
67
  - config/initializers/wrap_parameters.rb
69
68
  - config/puma.rb
70
69
  - config/spring.rb
@@ -1,24 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains migration options to ease your Rails 5.0 upgrade.
4
- #
5
- # Read the Guide for Upgrading Ruby on Rails for more info on each option.
6
-
7
- # Enable per-form CSRF tokens. Previous versions had false.
8
- Rails.application.config.action_controller.per_form_csrf_tokens = true
9
-
10
- # Enable origin-checking CSRF mitigation. Previous versions had false.
11
- Rails.application.config.action_controller.forgery_protection_origin_check = true
12
-
13
- # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
14
- # Previous versions had false.
15
- ActiveSupport.to_time_preserves_timezone = true
16
-
17
- # Require `belongs_to` associations by default. Previous versions had false.
18
- Rails.application.config.active_record.belongs_to_required_by_default = true
19
-
20
- # Do not halt callback chains when a callback returns false. Previous versions had true.
21
- ActiveSupport.halt_callback_chains_on_return_false = false
22
-
23
- # Configure SSL options to enable HSTS with subdomains. Previous versions had false.
24
- Rails.application.config.ssl_options = { hsts: { subdomains: true } }