dryer-config 7.2.0 → 8.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: 5a57a7166f57fe0471ff1a67bef363d5349e80e6fef7f09a013b7c1aa8fb957b
4
- data.tar.gz: 489a56d888d75769ca1a47b6fb063e6a343c072dca5897d8e9df73e60a5934ef
3
+ metadata.gz: 3089a32c00a953af578d467ebb8f8eb1fa721ca7515decbd6bb9c7c37395f3d2
4
+ data.tar.gz: d5e5ce985a8e98bf59979cf30ba6dde8ef790f0019946ca224e0761169418b15
5
5
  SHA512:
6
- metadata.gz: 075f212f7fe337c4e8571041def92f57326a729eef1413dc64c7c86a8c6348d2cb2911441ddc3aea16054a8cadfcd768aee4737c177a34834edfc402d9f4b4ff
7
- data.tar.gz: 2412955b4412abdc786a3427b986a4d12d4523e0354f2edb1b018e9aac7eeffec15b2fab31dd59a097f581e0a839ec6f1fe2535d68d9f4ba067716a2ede3ef20
6
+ metadata.gz: 84ea5dab3735213b563e8113c9a930aad85e4eec20803bb6859d6566a987108c05805d082300205689c280f155762243951fa50527f11d18c9c91e0012ca593f
7
+ data.tar.gz: 87b9d38910b12dc0a4dab30c40140f307abed688e0e213f220796b28596cbaf9be1da719bcea4ff9d42ee5fa884aaa59c6cc7086e1db4bb02fe96b29a99cc893
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.2
1
+ rails-8.0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.3.4
1
+ ruby-3.3.6
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # DryerConfig
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/dryer-config.png)](http://badge.fury.io/rb/dryer-config)
4
+ [![GEM Downloads](https://img.shields.io/gem/dt/dryer-config?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/dryer-config)
5
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
4
6
 
5
7
  Contains most of the files of a pristine `rails new` `config` directories.
6
8
  They will be available to your application by
@@ -12,16 +14,16 @@ will contain just your particular requirements/options
12
14
 
13
15
  Version numbering is according to the Rails versions, e.g. use
14
16
 
15
- gem 'dryer-config', '= 6.0.0' # for a Rails 6.0.0 applications
17
+ gem 'dryer-config', '= 8.0.0' # for a Rails 8.0.0 applications
16
18
 
17
19
  or
18
20
 
19
- gem 'dryer-config', '~> 5.2' # expected to serve Rails 5.2.*
21
+ gem 'dryer-config', '~> 8.0' # expected to serve Rails 8.0.*
20
22
 
21
23
  in your `Gemfile`.
22
24
 
23
- It is expected that the version 7.0.0 is fine for the
24
- complete Rails 7 serie.
25
+ It is expected that the version 8.0.0 is fine for the
26
+ complete Rails 8 serie.
25
27
  If not, a new version of this gem will be released (hopefully).
26
28
 
27
29
  ## Why
@@ -43,10 +45,24 @@ less attention/work.
43
45
  As usual:
44
46
  ```ruby
45
47
  # Gemfile
46
- gem "dryer-config", "~> 7.1"
48
+ gem "dryer-config", "~> 8.0"
47
49
  ```
48
50
  and run `bundle install`.
49
51
 
52
+ ## Rails 8.0.0
53
+
54
+ See also "Configuration" below.
55
+
56
+ The following config file is obsolete:
57
+ ./config/initializers/permissions_policy.rb
58
+
59
+ ## Rails 7.2.1, 7.2.0
60
+
61
+ See also "Configuration" below.
62
+
63
+ The following config file is obsolete:
64
+ ./config/spring.rb
65
+
50
66
  ## Rails 7.1.0, 7.0.0, 6.0.0, 5.2.0
51
67
 
52
68
  See also "Configuration" below.
@@ -76,7 +92,6 @@ The following files may require your attention:
76
92
  ./config/cable.yml
77
93
  ./config/database.yml
78
94
  ./config/puma.rb
79
- ./config/spring.rb
80
95
  ./config/storage.yml
81
96
 
82
97
  Create/copy your owns. They are still there for inspection.
@@ -94,6 +109,4 @@ Create your own. It will run after the one from the gem.
94
109
  ## Miscellaneous
95
110
 
96
111
  Copyright (c) 2016-2024 Dittmar Krall (www.matiq.com),
97
- released under the MIT license:
98
-
99
- * https://opensource.org/licenses/MIT
112
+ released under the [MIT license](https://opensource.org/licenses/MIT).
data/config/cable.yml CHANGED
@@ -1,3 +1,7 @@
1
+ # Async adapter only works within the same process, so for manually triggering cable updates from a console,
2
+ # and seeing results in the browser, you must do so from the web console (running inside the dev process),
3
+ # not a terminal started via bin/rails console! Add "console" to any action or any ERB template view
4
+ # to make the web console appear.
1
5
  development:
2
6
  adapter: async
3
7
 
@@ -5,6 +9,9 @@ test:
5
9
  adapter: test
6
10
 
7
11
  production:
8
- adapter: redis
9
- url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
- channel_prefix: sample_7_2_0_production
12
+ adapter: solid_cable
13
+ connects_to:
14
+ database:
15
+ writing: cable
16
+ polling_interval: 0.1.seconds
17
+ message_retention: 1.day
data/config/database.yml CHANGED
@@ -21,12 +21,21 @@ test:
21
21
  database: storage/test.sqlite3
22
22
 
23
23
 
24
- # SQLite3 write its data on the local filesystem, as such it requires
25
- # persistent disks. If you are deploying to a managed service, you should
26
- # make sure it provides disk persistence, as many don't.
27
- #
28
- # Similarly, if you deploy your application as a Docker container, you must
29
- # ensure the database is located in a persisted volume.
24
+ # Store production database in the storage/ directory, which by default
25
+ # is mounted as a persistent Docker volume in config/deploy.yml.
30
26
  production:
31
- <<: *default
32
- # database: path/to/persistent/storage/production.sqlite3
27
+ primary:
28
+ <<: *default
29
+ database: storage/production.sqlite3
30
+ cache:
31
+ <<: *default
32
+ database: storage/production_cache.sqlite3
33
+ migrations_paths: db/cache_migrate
34
+ queue:
35
+ <<: *default
36
+ database: storage/production_queue.sqlite3
37
+ migrations_paths: db/queue_migrate
38
+ cable:
39
+ <<: *default
40
+ database: storage/production_cable.sqlite3
41
+ migrations_paths: db/cable_migrate
@@ -3,9 +3,7 @@ require "active_support/core_ext/integer/time"
3
3
  Rails.application.configure do
4
4
  # Settings specified here will take precedence over those in config/application.rb.
5
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
8
- # since you don't have to restart the web server when you make code changes.
6
+ # Make code changes take effect immediately without server restart.
9
7
  config.enable_reloading = true
10
8
 
11
9
  # Do not eager load code on boot.
@@ -17,55 +15,46 @@ Rails.application.configure do
17
15
  # Enable server timing.
18
16
  config.server_timing = true
19
17
 
20
- # Enable/disable caching. By default caching is disabled.
21
- # Run rails dev:cache to toggle caching.
18
+ # Enable/disable Action Controller caching. By default Action Controller caching is disabled.
19
+ # Run rails dev:cache to toggle Action Controller caching.
22
20
  if Rails.root.join("tmp/caching-dev.txt").exist?
23
21
  config.action_controller.perform_caching = true
24
22
  config.action_controller.enable_fragment_cache_logging = true
25
-
26
- config.cache_store = :memory_store
27
- config.public_file_server.headers = {
28
- "Cache-Control" => "public, max-age=#{2.days.to_i}"
29
- }
23
+ config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
30
24
  else
31
25
  config.action_controller.perform_caching = false
32
-
33
- config.cache_store = :null_store
34
26
  end
35
27
 
28
+ # Change to :null_store to avoid any caching.
29
+ config.cache_store = :memory_store
30
+
36
31
  # Store uploaded files on the local file system (see config/storage.yml for options).
37
32
  config.active_storage.service = :local
38
33
 
39
34
  # Don't care if the mailer can't send.
40
35
  config.action_mailer.raise_delivery_errors = false
41
36
 
42
- # Disable caching for Action Mailer templates even if Action Controller
43
- # caching is enabled.
37
+ # Make template changes take effect immediately.
44
38
  config.action_mailer.perform_caching = false
45
39
 
40
+ # Set localhost to be used by links generated in mailer templates.
46
41
  config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
47
42
 
48
43
  # Print deprecation notices to the Rails logger.
49
44
  config.active_support.deprecation = :log
50
45
 
51
- # Raise exceptions for disallowed deprecations.
52
- config.active_support.disallowed_deprecation = :raise
53
-
54
- # Tell Active Support which deprecation messages to disallow.
55
- config.active_support.disallowed_deprecation_warnings = []
56
-
57
46
  # Raise an error on page load if there are pending migrations.
58
47
  config.active_record.migration_error = :page_load
59
48
 
60
49
  # Highlight code that triggered database queries in logs.
61
50
  config.active_record.verbose_query_logs = true
62
51
 
52
+ # Append comments with runtime information tags to SQL queries in logs.
53
+ config.active_record.query_log_tags_enabled = true
54
+
63
55
  # Highlight code that enqueued background job in logs.
64
56
  config.active_job.verbose_enqueue_logs = true
65
57
 
66
- # Suppress logger output for asset requests.
67
- config.assets.quiet = true
68
-
69
58
  # Raises error for missing translations.
70
59
  # config.i18n.raise_on_missing_translations = true
71
60
 
@@ -6,47 +6,26 @@ Rails.application.configure do
6
6
  # Code is not reloaded between requests.
7
7
  config.enable_reloading = false
8
8
 
9
- # Eager load code on boot. This eager loads most of Rails and
10
- # your application in memory, allowing both threaded web servers
11
- # and those relying on copy on write to perform better.
12
- # Rake tasks automatically ignore this option for performance.
9
+ # Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
13
10
  config.eager_load = true
14
11
 
15
- # Full error reports are disabled and caching is turned on.
12
+ # Full error reports are disabled.
16
13
  config.consider_all_requests_local = false
17
- config.action_controller.perform_caching = true
18
-
19
- # Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment
20
- # key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
21
- # config.require_master_key = true
22
-
23
- # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
24
- # config.public_file_server.enabled = false
25
14
 
26
- # Compress CSS using a preprocessor.
27
- # config.assets.css_compressor = :sass
15
+ # Turn on fragment caching in view templates.
16
+ config.action_controller.perform_caching = true
28
17
 
29
- # Do not fall back to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
18
+ # Cache assets for far-future expiry since they are all digest stamped.
19
+ config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
31
20
 
32
21
  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
33
22
  # config.asset_host = "http://assets.example.com"
34
23
 
35
- # Specifies the header that your server uses for sending files.
36
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
37
- # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
38
-
39
24
  # Store uploaded files on the local file system (see config/storage.yml for options).
40
25
  config.active_storage.service = :local
41
26
 
42
- # Mount Action Cable outside main process or domain.
43
- # config.action_cable.mount_path = nil
44
- # config.action_cable.url = "wss://example.com/cable"
45
- # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
46
-
47
27
  # Assume all access to the app is happening through a SSL-terminating reverse proxy.
48
- # Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
49
- # config.assume_ssl = true
28
+ config.assume_ssl = true
50
29
 
51
30
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
52
31
  config.force_ssl = true
@@ -54,49 +33,59 @@ Rails.application.configure do
54
33
  # Skip http-to-https redirect for the default health check endpoint.
55
34
  # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
56
35
 
57
- # Log to STDOUT by default
58
- config.logger = ActiveSupport::Logger.new(STDOUT)
59
- .tap { |logger| logger.formatter = ::Logger::Formatter.new }
60
- .then { |logger| ActiveSupport::TaggedLogging.new(logger) }
61
-
62
- # Prepend all log lines with the following tags.
36
+ # Log to STDOUT with the current request id as a default log tag.
63
37
  config.log_tags = [ :request_id ]
38
+ config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
64
39
 
65
- # "info" includes generic and useful information about system operation, but avoids logging too much
66
- # information to avoid inadvertent exposure of personally identifiable information (PII). If you
67
- # want to log everything, set the level to "debug".
40
+ # Change to "debug" to log everything (including potentially personally-identifiable information!)
68
41
  config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
69
42
 
70
- # Use a different cache store in production.
71
- # config.cache_store = :mem_cache_store
43
+ # Prevent health checks from clogging up the logs.
44
+ config.silence_healthcheck_path = "/up"
72
45
 
73
- # Use a real queuing backend for Active Job (and separate queues per environment).
74
- # config.active_job.queue_adapter = :resque
75
- # config.active_job.queue_name_prefix = "7.2.0_production"
46
+ # Don't log any deprecations.
47
+ config.active_support.report_deprecations = false
48
+
49
+ # Replace the default in-process memory cache store with a durable alternative.
50
+ config.cache_store = :solid_cache_store
51
+
52
+ # Replace the default in-process and non-durable queuing backend for Active Job.
53
+ config.active_job.queue_adapter = :solid_queue
54
+ config.solid_queue.connects_to = { database: { writing: :queue } }
76
55
 
77
- # Disable caching for Action Mailer templates even if Action Controller
78
- # caching is enabled.
79
- config.action_mailer.perform_caching = false
80
56
 
81
57
  # Ignore bad email addresses and do not raise email delivery errors.
82
58
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
83
59
  # config.action_mailer.raise_delivery_errors = false
84
60
 
61
+ # Set host to be used by links generated in mailer templates.
62
+ config.action_mailer.default_url_options = { host: "example.com" }
63
+
64
+ # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
65
+ # config.action_mailer.smtp_settings = {
66
+ # user_name: Rails.application.credentials.dig(:smtp, :user_name),
67
+ # password: Rails.application.credentials.dig(:smtp, :password),
68
+ # address: "smtp.example.com",
69
+ # port: 587,
70
+ # authentication: :plain
71
+ # }
72
+
85
73
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
86
74
  # the I18n.default_locale when a translation cannot be found).
87
75
  config.i18n.fallbacks = true
88
76
 
89
- # Don't log any deprecations.
90
- config.active_support.report_deprecations = false
91
-
92
77
  # Do not dump schema after migrations.
93
78
  config.active_record.dump_schema_after_migration = false
94
79
 
80
+ # Only use :id for inspections in production.
81
+ config.active_record.attributes_for_inspect = [ :id ]
82
+
95
83
  # Enable DNS rebinding protection and other `Host` header attacks.
96
84
  # config.hosts = [
97
85
  # "example.com", # Allow requests from example.com
98
86
  # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
99
87
  # ]
88
+ #
100
89
  # Skip DNS rebinding protection for the default health check endpoint.
101
90
  # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
102
91
  end
@@ -1,5 +1,3 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
1
  # The test environment is used exclusively to run your application's
4
2
  # test suite. You never need to work with it otherwise. Remember that
5
3
  # your test database is "scratch space" for the test suite and is wiped
@@ -17,14 +15,11 @@ Rails.application.configure do
17
15
  # loading is working properly before deploying your code.
18
16
  config.eager_load = ENV["CI"].present?
19
17
 
20
- # Configure public file server for tests with Cache-Control for performance.
21
- config.public_file_server.headers = {
22
- "Cache-Control" => "public, max-age=#{1.hour.to_i}"
23
- }
18
+ # Configure public file server for tests with cache-control for performance.
19
+ config.public_file_server.headers = { "cache-control" => "public, max-age=3600" }
24
20
 
25
- # Show full error reports and disable caching.
21
+ # Show full error reports.
26
22
  config.consider_all_requests_local = true
27
- config.action_controller.perform_caching = false
28
23
  config.cache_store = :null_store
29
24
 
30
25
  # Render exception templates for rescuable exceptions and raise for other exceptions.
@@ -36,28 +31,17 @@ Rails.application.configure do
36
31
  # Store uploaded files on the local file system in a temporary directory.
37
32
  config.active_storage.service = :test
38
33
 
39
- # Disable caching for Action Mailer templates even if Action Controller
40
- # caching is enabled.
41
- config.action_mailer.perform_caching = false
42
-
43
34
  # Tell Action Mailer not to deliver emails to the real world.
44
35
  # The :test delivery method accumulates sent emails in the
45
36
  # ActionMailer::Base.deliveries array.
46
37
  config.action_mailer.delivery_method = :test
47
38
 
48
- # Unlike controllers, the mailer instance doesn't have any context about the
49
- # incoming request so you'll need to provide the :host parameter yourself.
50
- config.action_mailer.default_url_options = { host: "www.example.com" }
39
+ # Set host to be used by links generated in mailer templates.
40
+ config.action_mailer.default_url_options = { host: "example.com" }
51
41
 
52
42
  # Print deprecation notices to the stderr.
53
43
  config.active_support.deprecation = :stderr
54
44
 
55
- # Raise exceptions for disallowed deprecations.
56
- config.active_support.disallowed_deprecation = :raise
57
-
58
- # Tell Active Support which deprecation messages to disallow.
59
- config.active_support.disallowed_deprecation_warnings = []
60
-
61
45
  # Raises error for missing translations.
62
46
  # config.i18n.raise_on_missing_translations = true
63
47
 
@@ -5,8 +5,3 @@ 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
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in the app/assets
11
- # folder are already added.
12
- # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -4,5 +4,5 @@
4
4
  # Use this to limit dissemination of sensitive information.
5
5
  # See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
6
6
  Rails.application.config.filter_parameters += [
7
- :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
7
+ :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
8
8
  ]
data/config/puma.rb CHANGED
@@ -1,13 +1,17 @@
1
1
  # This configuration file will be evaluated by Puma. The top-level methods that
2
2
  # are invoked here are part of Puma's configuration DSL. For more information
3
3
  # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
4
-
4
+ #
5
5
  # Puma starts a configurable number of processes (workers) and each process
6
6
  # serves each request in a thread from an internal thread pool.
7
7
  #
8
+ # You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
9
+ # should only set this value when you want to run 2 or more workers. The
10
+ # default is already 1.
11
+ #
8
12
  # The ideal number of threads per worker depends both on how much time the
9
13
  # application spends waiting for IO operations and on how much you wish to
10
- # to prioritize throughput over latency.
14
+ # prioritize throughput over latency.
11
15
  #
12
16
  # As a rule of thumb, increasing the number of threads will increase how much
13
17
  # traffic a given process can handle (throughput), but due to CRuby's
@@ -29,5 +33,9 @@ port ENV.fetch("PORT", 3000)
29
33
  # Allow puma to be restarted by `bin/rails restart` command.
30
34
  plugin :tmp_restart
31
35
 
32
- # Only use a pidfile when requested
36
+ # Run the Solid Queue supervisor inside of Puma for single-server deployments
37
+ plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]
38
+
39
+ # Specify the PID file. Defaults to tmp/pids/server.pid in development.
40
+ # In other environments, only set the PID file if requested.
33
41
  pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
@@ -1,5 +1,6 @@
1
1
  module DryerConfig
2
- VERSION = '7.2.0' # 2024-08-23
2
+ VERSION = '8.0.0' # 2024-11-08
3
+ # VERSION = '7.2.0' # 2024-08-23
3
4
  # VERSION = '7.1.0' # 2023-10-15
4
5
  # VERSION = '7.0.0' # 2021-12-18
5
6
  # VERSION = '6.1.4' # 2021-06-27
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: 7.2.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-23 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -50,7 +50,6 @@ files:
50
50
  - config/initializers/content_security_policy.rb
51
51
  - config/initializers/filter_parameter_logging.rb
52
52
  - config/initializers/inflections.rb
53
- - config/initializers/permissions_policy.rb
54
53
  - config/puma.rb
55
54
  - config/storage.yml
56
55
  - dryer-config.gemspec
@@ -61,7 +60,7 @@ homepage: https://github.com/matique/dryer-config
61
60
  licenses:
62
61
  - MIT
63
62
  metadata: {}
64
- post_install_message:
63
+ post_install_message:
65
64
  rdoc_options: []
66
65
  require_paths:
67
66
  - lib
@@ -76,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
75
  - !ruby/object:Gem::Version
77
76
  version: '0'
78
77
  requirements: []
79
- rubygems_version: 3.5.11
80
- signing_key:
78
+ rubygems_version: 3.5.22
79
+ signing_key:
81
80
  specification_version: 4
82
81
  summary: Several pristine Rails config files.
83
82
  test_files: []
@@ -1,13 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Define an application-wide HTTP permissions policy. For further
4
- # information see: https://developers.google.com/web/updates/2018/06/feature-policy
5
-
6
- # Rails.application.config.permissions_policy do |policy|
7
- # policy.camera :none
8
- # policy.gyroscope :none
9
- # policy.microphone :none
10
- # policy.usb :none
11
- # policy.fullscreen :self
12
- # policy.payment :self, "https://secure.example.com"
13
- # end