From a2718ab50f9e67e9298bd779433c0188c19ba6d3 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 29 Oct 2023 23:33:33 -0400 Subject: rubocop -a --- Gemfile | 8 ++++---- config/application.rb | 2 +- config/environments/development.rb | 3 +-- config/environments/production.rb | 4 ++-- config/environments/test.rb | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index 83760a0..a66c300 100644 --- a/Gemfile +++ b/Gemfile @@ -4,14 +4,14 @@ ruby "3.2.2" gem "rails", "~> 7.1.1" -gem "propshaft" +gem "bootsnap", require: false +gem "importmap-rails" gem "pg" +gem "propshaft" gem "puma" -gem "importmap-rails" -gem "turbo-rails" gem "stimulus-rails" gem "tailwindcss-rails" -gem "bootsnap", require: false +gem "turbo-rails" group :development, :test do gem "debug" end diff --git a/config/application.rb b/config/application.rb index 0a55060..f69fece 100644 --- a/config/application.rb +++ b/config/application.rb @@ -14,7 +14,7 @@ module CableClub # Please, add to the `ignore` list any other `lib` subdirectories that do # not contain `.rb` files, or that should not be reloaded or eager loaded. # Common ones are `templates`, `generators`, or `middleware`, for example. - config.autoload_lib(ignore: %w(assets tasks)) + config.autoload_lib(ignore: %w[assets tasks]) # Configuration for the application, engines, and railties goes here. # diff --git a/config/environments/development.rb b/config/environments/development.rb index 72b1036..4629e50 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -25,7 +25,7 @@ Rails.application.configure do config.cache_store = :memory_store config.public_file_server.headers = { - "Cache-Control" => "public, max-age=#{2.days.to_i}" + "Cache-Control" => "public, max-age=#{2.days.to_i}", } else config.action_controller.perform_caching = false @@ -59,7 +59,6 @@ Rails.application.configure do # Highlight code that enqueued background job in logs. config.active_job.verbose_enqueue_logs = true - # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true diff --git a/config/environments/production.rb b/config/environments/production.rb index 7a1e940..6e8ba7b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -47,11 +47,11 @@ Rails.application.configure do # Log to STDOUT by default config.logger = ActiveSupport::Logger.new(STDOUT) - .tap { |logger| logger.formatter = ::Logger::Formatter.new } + .tap { |logger| logger.formatter = Logger::Formatter.new } .then { |logger| ActiveSupport::TaggedLogging.new(logger) } # Prepend all log lines with the following tags. - config.log_tags = [ :request_id ] + config.log_tags = [:request_id] # Info include generic and useful information about system operation, but avoids logging too much # information to avoid inadvertent exposure of personally identifiable information (PII). If you diff --git a/config/environments/test.rb b/config/environments/test.rb index 0dda9f9..1b2dd24 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -20,7 +20,7 @@ Rails.application.configure do # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true config.public_file_server.headers = { - "Cache-Control" => "public, max-age=#{1.hour.to_i}" + "Cache-Control" => "public, max-age=#{1.hour.to_i}", } # Show full error reports and disable caching. -- cgit v1.2.3