Upgrade to Ruby on Rails 8.1 [SCI-13433] - #9684
Conversation
| gem 'rqrcode', '~> 2.0' # QR code generator | ||
| gem 'rubyzip', '>= 2.3.0' # will load new rubyzip version | ||
| gem 'rubyzip' | ||
| gem 'ruby-vips' |
There was a problem hiding this comment.
[Correctable] Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem ruby-vips should appear before rubyzip.
|
|
||
| config.cache_store = :memory_store | ||
| config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" } | ||
| config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" } |
There was a problem hiding this comment.
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
|
||
| # Don't log any deprecations. | ||
| config.active_support.report_deprecations = false | ||
|
|
There was a problem hiding this comment.
[Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
|
|
||
| # Use a different cache store in production. | ||
| # Prevent health checks from clogging up the logs. | ||
| config.silence_healthcheck_path = "/up" |
There was a problem hiding this comment.
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
| .tap { |logger| logger.formatter = ::Logger::Formatter.new } | ||
| .then { |logger| ActiveSupport::TaggedLogging.new(logger) } | ||
| # Log to STDOUT with the current request id as a default log tag. | ||
| config.logger = ActiveSupport::TaggedLogging.logger(STDOUT) |
There was a problem hiding this comment.
[Correctable] Style/GlobalStdStream: Use $stdout instead of STDOUT.
| CI.run do | ||
| step "Setup", "bin/setup --skip-server" | ||
|
|
||
| step "Style: Ruby", "bin/rubocop" |
There was a problem hiding this comment.
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
| # Run using bin/ci | ||
|
|
||
| CI.run do | ||
| step "Setup", "bin/setup --skip-server" |
There was a problem hiding this comment.
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
| @@ -0,0 +1,19 @@ | |||
| # Run using bin/ci | |||
There was a problem hiding this comment.
[Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
| plugin :tmp_restart | ||
|
|
||
| # Run the Solid Queue supervisor inside of Puma for single-server deployments. | ||
| plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] |
There was a problem hiding this comment.
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
| min_threads_count = ENV.fetch('RAILS_MIN_THREADS', 0) | ||
| max_threads_count = ENV.fetch('RAILS_MAX_THREADS', 5) | ||
| threads min_threads_count, max_threads_count | ||
| threads_count = ENV.fetch("RAILS_MAX_THREADS", 3) |
There was a problem hiding this comment.
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Jira ticket: SCI-13433
What was done
Upgrade to Ruby on Rails 8.1