upgrade to rails 7

This commit is contained in:
2023-09-12 21:24:13 +02:00
parent 4ae9e36050
commit 5a57bd6dc1
3 changed files with 292 additions and 270 deletions

40
Gemfile
View File

@@ -3,13 +3,13 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '3.0.2'
ruby '3.2.1'
# Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity.
# It encourages beautiful code by favoring convention over configuration.
gem 'rails', '~> 6.1.4'
gem 'rails', '~> 7.0.8'
# A set of common locale data and translations to internationalize and/or localize your Rails applications
gem 'rails-i18n', '~> 6.0.0'
gem 'rails-i18n'
# Use postgresql as the database for Active Record
gem 'pg', '~> 1.1'
# Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications
@@ -19,19 +19,19 @@ gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 5.0'
# The speed of a single-page web application without having to write any JavaScript.
gem 'turbo-rails', '~> 0.6.0'
gem 'turbo-rails'
# Use Redis adapter to run Action Cable in production
gem 'redis', '~> 4.2.5'
gem 'redis'
# Autoload dotenv in Rails
gem 'dotenv-rails', '~> 2.7.6'
gem 'dotenv-rails'
# Use Active Model has_secure_password
gem 'bcrypt', '~> 3.1.16'
gem 'bcrypt'
# Flexible authentication solution for Rails with Warden
gem 'devise', '~> 4.8.0'
gem 'devise'
# Tame Rails' multi-line logging into a single line per request
gem 'lograge', '~> 0.11.2'
gem 'lograge'
# Stores and retrieves localized data through attributes on a Ruby class, with flexible support for different storage strategies
gem 'mobility', '~> 1.1.3'
gem 'mobility'
# A generalized Rack framework for multiple-provider authentication.
gem 'omniauth', '~> 2.0.4'
# Omniauth Strategy for Battle.net OAuth Login. For more info visit https://dev.battle.net
@@ -41,15 +41,15 @@ gem 'omniauth-rails_csrf_protection', '~> 1.0.0'
# A Ruby wrapper around Blizzard's Game Data and Profile APIs
gem 'rbattlenet', '~> 2.2.9', git: 'https://github.com/Dainii/rbattlenet'
# A gem that provides Rails integration for the Sentry error logger
gem 'sentry-rails', '~> 4.6.5'
gem 'sentry-ruby', '~> 4.6.5'
gem 'sentry-sidekiq', '~> 4.6.5'
gem 'sentry-rails', '~> 5.5.0'
gem 'sentry-ruby', '~> 5.5.0'
gem 'sentry-sidekiq', '~> 5.5.0'
# Simple, efficient background processing for Ruby
gem 'sidekiq', '~> 6.2.1'
gem 'sidekiq', '~> 7.1'
# Agnostic pagination in plain ruby
gem 'pagy', '~> 4.3.0'
gem 'pagy'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false
gem 'bootsnap', require: false
group :development, :test do
# Brakeman detects security vulnerabilities in Ruby on Rails applications via static analysis
@@ -71,10 +71,10 @@ end
group :development do
gem 'awesome_print'
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
gem 'web-console'
# Display performance information such as SQL time and flame graphs for each request in your browser.
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
gem 'rack-mini-profiler', '~> 2.3.2'
gem 'rack-mini-profiler'
# The Listen gem listens to file modifications and notifies you about the changes. Works everywhere
gem 'listen', '~> 3.3'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
@@ -82,14 +82,14 @@ group :development do
# IDE tools for code completion, inline documentation, and static analysis
gem 'solargraph'
# Use Pry as your rails console
gem 'pry-rails', '~> 0.3.9'
gem 'pry-rails'
# Automatically generate an entity-relationship diagram (ERD) for your Rails models.
gem 'rails-erd'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 3.26'
gem 'capybara'
# WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user
# and as such interacts with the HTML of the application
gem 'selenium-webdriver'