From f68a534da3cecc89c554aee5ec3593b0b8e066c8 Mon Sep 17 00:00:00 2001 From: Greg Merritt Date: Fri, 5 Jan 2024 09:38:25 -0500 Subject: [PATCH] Add Ruby 3.3.0 and Drop Rails 6.0 and Ruby 2.7 (#57) --- .circleci/config.yml | 30 +++--- .rubocop.yml | 2 +- Appraisals | 10 +- CHANGELOG.md | 5 + gemfiles/6.0.gemfile | 7 -- gemfiles/6.1.gemfile | 2 +- gemfiles/7.0.gemfile | 2 +- gemfiles/7.1.gemfile | 2 +- lib/safer_rails_console/version.rb | 2 +- safer_rails_console.gemspec | 4 +- spec/internal/rails_6_0/.gitignore | 22 ----- spec/internal/rails_6_0/Gemfile | 8 -- spec/internal/rails_6_0/README.md | 24 ----- spec/internal/rails_6_0/Rakefile | 8 -- .../rails_6_0/app/assets/config/manifest.js | 2 - .../app/assets/stylesheets/application.css | 15 --- .../app/controllers/application_controller.rb | 4 - .../app/helpers/application_helper.rb | 4 - .../rails_6_0/app/jobs/application_job.rb | 4 - .../app/models/application_record.rb | 5 - spec/internal/rails_6_0/app/models/model.rb | 4 - .../app/views/layouts/application.html.erb | 14 --- spec/internal/rails_6_0/bin/bundle | 5 - spec/internal/rails_6_0/bin/rails | 6 -- spec/internal/rails_6_0/bin/rake | 6 -- spec/internal/rails_6_0/bin/setup | 35 ------- spec/internal/rails_6_0/bin/update | 30 ------ spec/internal/rails_6_0/config.ru | 7 -- spec/internal/rails_6_0/config/application.rb | 34 ------- spec/internal/rails_6_0/config/boot.rb | 7 -- .../rails_6_0/config/credentials.yml.enc | 1 - spec/internal/rails_6_0/config/database.yml | 20 ---- spec/internal/rails_6_0/config/environment.rb | 7 -- .../config/environments/development.rb | 49 ---------- .../config/environments/production.rb | 94 ------------------- .../rails_6_0/config/environments/test.rb | 40 -------- .../application_controller_renderer.rb | 9 -- .../initializers/backtrace_silencers.rb | 8 -- .../initializers/content_security_policy.rb | 29 ------ .../config/initializers/cookies_serializer.rb | 7 -- .../initializers/filter_parameter_logging.rb | 6 -- .../config/initializers/inflections.rb | 17 ---- .../config/initializers/mime_types.rb | 5 - .../new_framework_defaults_6_0.rb | 46 --------- .../config/initializers/wrap_parameters.rb | 16 ---- spec/internal/rails_6_0/config/locales/en.yml | 33 ------- spec/internal/rails_6_0/config/routes.rb | 5 - spec/internal/rails_6_0/db/schema.rb | 5 - spec/internal/rails_6_0/db/seeds.rb | 8 -- spec/internal/rails_6_0/public/404.html | 67 ------------- spec/internal/rails_6_0/public/422.html | 67 ------------- spec/internal/rails_6_0/public/500.html | 66 ------------- .../public/apple-touch-icon-precomposed.png | 0 .../rails_6_0/public/apple-touch-icon.png | 0 spec/internal/rails_6_0/public/favicon.ico | 0 spec/internal/rails_6_0/public/robots.txt | 1 - spec/internal/rails_6_1/Gemfile | 2 +- spec/internal/rails_7_0/Gemfile | 2 +- spec/internal/rails_7_1/Gemfile | 2 +- 59 files changed, 30 insertions(+), 892 deletions(-) delete mode 100644 gemfiles/6.0.gemfile delete mode 100644 spec/internal/rails_6_0/.gitignore delete mode 100644 spec/internal/rails_6_0/Gemfile delete mode 100644 spec/internal/rails_6_0/README.md delete mode 100644 spec/internal/rails_6_0/Rakefile delete mode 100644 spec/internal/rails_6_0/app/assets/config/manifest.js delete mode 100644 spec/internal/rails_6_0/app/assets/stylesheets/application.css delete mode 100644 spec/internal/rails_6_0/app/controllers/application_controller.rb delete mode 100644 spec/internal/rails_6_0/app/helpers/application_helper.rb delete mode 100644 spec/internal/rails_6_0/app/jobs/application_job.rb delete mode 100644 spec/internal/rails_6_0/app/models/application_record.rb delete mode 100644 spec/internal/rails_6_0/app/models/model.rb delete mode 100644 spec/internal/rails_6_0/app/views/layouts/application.html.erb delete mode 100755 spec/internal/rails_6_0/bin/bundle delete mode 100755 spec/internal/rails_6_0/bin/rails delete mode 100755 spec/internal/rails_6_0/bin/rake delete mode 100755 spec/internal/rails_6_0/bin/setup delete mode 100755 spec/internal/rails_6_0/bin/update delete mode 100644 spec/internal/rails_6_0/config.ru delete mode 100644 spec/internal/rails_6_0/config/application.rb delete mode 100644 spec/internal/rails_6_0/config/boot.rb delete mode 100644 spec/internal/rails_6_0/config/credentials.yml.enc delete mode 100644 spec/internal/rails_6_0/config/database.yml delete mode 100644 spec/internal/rails_6_0/config/environment.rb delete mode 100644 spec/internal/rails_6_0/config/environments/development.rb delete mode 100644 spec/internal/rails_6_0/config/environments/production.rb delete mode 100644 spec/internal/rails_6_0/config/environments/test.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/application_controller_renderer.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/backtrace_silencers.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/content_security_policy.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/cookies_serializer.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/filter_parameter_logging.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/inflections.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/mime_types.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/new_framework_defaults_6_0.rb delete mode 100644 spec/internal/rails_6_0/config/initializers/wrap_parameters.rb delete mode 100644 spec/internal/rails_6_0/config/locales/en.yml delete mode 100644 spec/internal/rails_6_0/config/routes.rb delete mode 100644 spec/internal/rails_6_0/db/schema.rb delete mode 100644 spec/internal/rails_6_0/db/seeds.rb delete mode 100644 spec/internal/rails_6_0/public/404.html delete mode 100644 spec/internal/rails_6_0/public/422.html delete mode 100644 spec/internal/rails_6_0/public/500.html delete mode 100644 spec/internal/rails_6_0/public/apple-touch-icon-precomposed.png delete mode 100644 spec/internal/rails_6_0/public/apple-touch-icon.png delete mode 100644 spec/internal/rails_6_0/public/favicon.ico delete mode 100644 spec/internal/rails_6_0/public/robots.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index 119a41e..e377232 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,14 +2,14 @@ version: 2.1 jobs: lint: docker: - - image: cimg/ruby:2.7.8 + - image: cimg/ruby:3.0.6 working_directory: ~/safer_rails_console steps: - checkout - restore_cache: keys: - - v2-gems-ruby-2.7.8-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }} - - v2-gems-ruby-2.7.8- + - v2-gems-ruby-3.0.6-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }} + - v2-gems-ruby-3.0.6- - run: name: Install Gems command: | @@ -18,7 +18,7 @@ jobs: bundle clean fi - save_cache: - key: v2-gems-ruby-2.7.8-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }} + key: v2-gems-ruby-3.0.6-{{ checksum "safer_rails_console.gemspec" }}-{{ checksum "Gemfile" }} paths: - "vendor/bundle" - "gemfiles/vendor/bundle" @@ -36,7 +36,7 @@ jobs: environment: CIRCLE_TEST_REPORTS: "test-results" BUNDLE_GEMFILE: "/home/circleci/safer_rails_console/<< parameters.gemfile >>" - - image: cimg/postgres:12.9 + - image: cimg/postgres:14.7 environment: POSTGRES_USER: "circleci" POSTGRES_DB: "safer_rails_console_test" @@ -74,17 +74,11 @@ workflows: matrix: parameters: ruby_version: - - "2.7.8" - - "3.0.6" - - "3.1.4" - - "3.2.2" + - 3.0.6 + - 3.1.4 + - 3.2.2 + - 3.3.0 gemfile: - - "gemfiles/6.0.gemfile" - - "gemfiles/6.1.gemfile" - - "gemfiles/7.0.gemfile" - - "gemfiles/7.1.gemfile" - exclude: - - ruby_version: "3.1.4" - gemfile: "gemfiles/6.0.gemfile" - - ruby_version: "3.2.2" - gemfile: "gemfiles/6.0.gemfile" + - gemfiles/6.1.gemfile + - gemfiles/7.0.gemfile + - gemfiles/7.1.gemfile diff --git a/.rubocop.yml b/.rubocop.yml index 2875d28..47a79c3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,7 @@ inherit_gem: salsify_rubocop: conf/rubocop_rails.yml AllCops: - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 Exclude: - 'vendor/**/*' - 'gemfiles/**/*' diff --git a/Appraisals b/Appraisals index 905a66d..94c6127 100644 --- a/Appraisals +++ b/Appraisals @@ -1,17 +1,13 @@ # frozen_string_literal: true -appraise '6.0' do - gem 'rails', '~> 6.0.0' -end - appraise '6.1' do - gem 'rails', '~> 6.1.0' + gem 'rails', '~> 6.1.7.6' end appraise '7.0' do - gem 'rails', '~> 7.0.0' + gem 'rails', '~> 7.0.8' end appraise '7.1' do - gem 'rails', '~> 7.1.0' + gem 'rails', '~> 7.1.2' end diff --git a/CHANGELOG.md b/CHANGELOG.md index 71ba17b..76335b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v0.8.0 +- Drop support for Ruby 2.7. +- Drop support for Rails 6.0. +- Add support for Ruby 3.3. + ## v0.7.0 - Add support for Rails 7.1. diff --git a/gemfiles/6.0.gemfile b/gemfiles/6.0.gemfile deleted file mode 100644 index 15b9b27..0000000 --- a/gemfiles/6.0.gemfile +++ /dev/null @@ -1,7 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "rails", "~> 6.0.0" - -gemspec path: "../" diff --git a/gemfiles/6.1.gemfile b/gemfiles/6.1.gemfile index dd95a47..64a5e3d 100644 --- a/gemfiles/6.1.gemfile +++ b/gemfiles/6.1.gemfile @@ -2,6 +2,6 @@ source "https://rubygems.org" -gem "rails", "~> 6.1.0" +gem "rails", "~> 6.1.7.6" gemspec path: "../" diff --git a/gemfiles/7.0.gemfile b/gemfiles/7.0.gemfile index 9af0ae3..648686d 100644 --- a/gemfiles/7.0.gemfile +++ b/gemfiles/7.0.gemfile @@ -2,6 +2,6 @@ source "https://rubygems.org" -gem "rails", "~> 7.0.0" +gem "rails", "~> 7.0.8" gemspec path: "../" diff --git a/gemfiles/7.1.gemfile b/gemfiles/7.1.gemfile index 35a0ba3..361e065 100644 --- a/gemfiles/7.1.gemfile +++ b/gemfiles/7.1.gemfile @@ -2,6 +2,6 @@ source "https://rubygems.org" -gem "rails", "~> 7.1.0" +gem "rails", "~> 7.1.2" gemspec path: "../" diff --git a/lib/safer_rails_console/version.rb b/lib/safer_rails_console/version.rb index 9dc4915..9158721 100644 --- a/lib/safer_rails_console/version.rb +++ b/lib/safer_rails_console/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module SaferRailsConsole - VERSION = '0.7.0' + VERSION = '0.8.0' end diff --git a/safer_rails_console.gemspec b/safer_rails_console.gemspec index b0ffeaa..7140809 100644 --- a/safer_rails_console.gemspec +++ b/safer_rails_console.gemspec @@ -33,7 +33,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.7' + spec.required_ruby_version = '>= 3.0' spec.add_development_dependency 'appraisal', '~> 2.2' spec.add_development_dependency 'bundler', '~> 2.0' @@ -46,5 +46,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec_junit_formatter' spec.add_development_dependency 'salsify_rubocop', '~> 1.27.0' - spec.add_runtime_dependency 'rails', '>= 6.0', '< 7.2' + spec.add_runtime_dependency 'rails', '>= 6.1', '< 7.2' end diff --git a/spec/internal/rails_6_0/.gitignore b/spec/internal/rails_6_0/.gitignore deleted file mode 100644 index c56873d..0000000 --- a/spec/internal/rails_6_0/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -/tmp/* - -/public/assets -.byebug_history - -# Ignore master key for decrypting credentials and more. -/config/master.key diff --git a/spec/internal/rails_6_0/Gemfile b/spec/internal/rails_6_0/Gemfile deleted file mode 100644 index 87e967a..0000000 --- a/spec/internal/rails_6_0/Gemfile +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -source 'https://rubygems.org' - -gem 'pg' -gem 'rails', '~> 6.0.0' - -gem 'safer_rails_console', path: '../../../' diff --git a/spec/internal/rails_6_0/README.md b/spec/internal/rails_6_0/README.md deleted file mode 100644 index 7db80e4..0000000 --- a/spec/internal/rails_6_0/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... diff --git a/spec/internal/rails_6_0/Rakefile b/spec/internal/rails_6_0/Rakefile deleted file mode 100644 index 488c551..0000000 --- a/spec/internal/rails_6_0/Rakefile +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require_relative 'config/application' - -Rails.application.load_tasks diff --git a/spec/internal/rails_6_0/app/assets/config/manifest.js b/spec/internal/rails_6_0/app/assets/config/manifest.js deleted file mode 100644 index 5918193..0000000 --- a/spec/internal/rails_6_0/app/assets/config/manifest.js +++ /dev/null @@ -1,2 +0,0 @@ -//= link_tree ../images -//= link_directory ../stylesheets .css diff --git a/spec/internal/rails_6_0/app/assets/stylesheets/application.css b/spec/internal/rails_6_0/app/assets/stylesheets/application.css deleted file mode 100644 index d05ea0f..0000000 --- a/spec/internal/rails_6_0/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's - * vendor/assets/stylesheets directory can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the bottom of the - * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS - * files in this directory. Styles in this file should be added after the last require_* statement. - * It is generally better to create a new file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/spec/internal/rails_6_0/app/controllers/application_controller.rb b/spec/internal/rails_6_0/app/controllers/application_controller.rb deleted file mode 100644 index 7944f9f..0000000 --- a/spec/internal/rails_6_0/app/controllers/application_controller.rb +++ /dev/null @@ -1,4 +0,0 @@ -# frozen_string_literal: true - -class ApplicationController < ActionController::Base -end diff --git a/spec/internal/rails_6_0/app/helpers/application_helper.rb b/spec/internal/rails_6_0/app/helpers/application_helper.rb deleted file mode 100644 index 15b06f0..0000000 --- a/spec/internal/rails_6_0/app/helpers/application_helper.rb +++ /dev/null @@ -1,4 +0,0 @@ -# frozen_string_literal: true - -module ApplicationHelper -end diff --git a/spec/internal/rails_6_0/app/jobs/application_job.rb b/spec/internal/rails_6_0/app/jobs/application_job.rb deleted file mode 100644 index d92ffdd..0000000 --- a/spec/internal/rails_6_0/app/jobs/application_job.rb +++ /dev/null @@ -1,4 +0,0 @@ -# frozen_string_literal: true - -class ApplicationJob < ActiveJob::Base -end diff --git a/spec/internal/rails_6_0/app/models/application_record.rb b/spec/internal/rails_6_0/app/models/application_record.rb deleted file mode 100644 index 71fbba5..0000000 --- a/spec/internal/rails_6_0/app/models/application_record.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -class ApplicationRecord < ActiveRecord::Base - self.abstract_class = true -end diff --git a/spec/internal/rails_6_0/app/models/model.rb b/spec/internal/rails_6_0/app/models/model.rb deleted file mode 100644 index 45a1b4c..0000000 --- a/spec/internal/rails_6_0/app/models/model.rb +++ /dev/null @@ -1,4 +0,0 @@ -# frozen_string_literal: true - -class Model < ApplicationRecord -end diff --git a/spec/internal/rails_6_0/app/views/layouts/application.html.erb b/spec/internal/rails_6_0/app/views/layouts/application.html.erb deleted file mode 100644 index 455eb79..0000000 --- a/spec/internal/rails_6_0/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Rails60 - <%= csrf_meta_tags %> - <%= csp_meta_tag %> - - <%= stylesheet_link_tag 'application', media: 'all' %> - - - - <%= yield %> - - diff --git a/spec/internal/rails_6_0/bin/bundle b/spec/internal/rails_6_0/bin/bundle deleted file mode 100755 index 2dbb717..0000000 --- a/spec/internal/rails_6_0/bin/bundle +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) -load Gem.bin_path('bundler', 'bundle') diff --git a/spec/internal/rails_6_0/bin/rails b/spec/internal/rails_6_0/bin/rails deleted file mode 100755 index a31728a..0000000 --- a/spec/internal/rails_6_0/bin/rails +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -APP_PATH = File.expand_path('../config/application', __dir__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/spec/internal/rails_6_0/bin/rake b/spec/internal/rails_6_0/bin/rake deleted file mode 100755 index c199955..0000000 --- a/spec/internal/rails_6_0/bin/rake +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/spec/internal/rails_6_0/bin/setup b/spec/internal/rails_6_0/bin/setup deleted file mode 100755 index 65a6ca7..0000000 --- a/spec/internal/rails_6_0/bin/setup +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require 'fileutils' - -# path to your application root. -APP_ROOT = File.expand_path('..', __dir__) - -def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") -end - -FileUtils.chdir APP_ROOT do - # This script is a way to setup or update your development environment automatically. - # This script is idempotent, so that you can run it at anytime and get an expectable outcome. - # Add necessary setup steps to this file. - - puts '== Installing dependencies ==' - system! 'gem install bundler --conservative' - system('bundle check') || system!('bundle install') - - # puts "\n== Copying sample files ==" - # unless File.exist?('config/database.yml') - # FileUtils.cp 'config/database.yml.sample', 'config/database.yml' - # end - - puts "\n== Preparing database ==" - system! 'bin/rails db:prepare' - - puts "\n== Removing old logs and tempfiles ==" - system! 'bin/rails log:clear tmp:clear' - - puts "\n== Restarting application server ==" - system! 'bin/rails restart' -end diff --git a/spec/internal/rails_6_0/bin/update b/spec/internal/rails_6_0/bin/update deleted file mode 100755 index 0b5306f..0000000 --- a/spec/internal/rails_6_0/bin/update +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require 'fileutils' -include FileUtils - -# path to your application root. -APP_ROOT = File.expand_path('..', __dir__) - -def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") -end - -chdir APP_ROOT do - # This script is a way to update your development environment automatically. - # Add necessary update steps to this file. - - puts '== Installing dependencies ==' - system! 'gem install bundler --conservative' - system('bundle check') || system!('bundle install') - - puts "\n== Updating database ==" - system! 'bin/rails db:migrate' - - puts "\n== Removing old logs and tempfiles ==" - system! 'bin/rails log:clear tmp:clear' - - puts "\n== Restarting application server ==" - system! 'bin/rails restart' -end diff --git a/spec/internal/rails_6_0/config.ru b/spec/internal/rails_6_0/config.ru deleted file mode 100644 index 842bccc..0000000 --- a/spec/internal/rails_6_0/config.ru +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -# This file is used by Rack-based servers to start the application. - -require_relative 'config/environment' - -run Rails.application diff --git a/spec/internal/rails_6_0/config/application.rb b/spec/internal/rails_6_0/config/application.rb deleted file mode 100644 index d20deb0..0000000 --- a/spec/internal/rails_6_0/config/application.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -require_relative 'boot' - -require 'rails' -# Pick the frameworks you want: -require 'active_model/railtie' -require 'active_job/railtie' -require 'active_record/railtie' -# require "active_storage/engine" -require 'action_controller/railtie' -# require "action_mailer/railtie" -# require "action_mailbox/engine" -# require "action_text/engine" -require 'action_view/railtie' -# require "action_cable/engine" -# require "sprockets/railtie" -require 'rails/test_unit/railtie' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Rails60 - class Application < Rails::Application - # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 5.2 - - # Settings in config/environments/* take precedence over those specified here. - # Application configuration can go into files in config/initializers - # -- all .rb files in that directory are automatically loaded after loading - # the framework and any gems in your application. - end -end diff --git a/spec/internal/rails_6_0/config/boot.rb b/spec/internal/rails_6_0/config/boot.rb deleted file mode 100644 index 462e627..0000000 --- a/spec/internal/rails_6_0/config/boot.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. - -require 'safer_rails_console/patches/boot' diff --git a/spec/internal/rails_6_0/config/credentials.yml.enc b/spec/internal/rails_6_0/config/credentials.yml.enc deleted file mode 100644 index b6c3b06..0000000 --- a/spec/internal/rails_6_0/config/credentials.yml.enc +++ /dev/null @@ -1 +0,0 @@ -xS8mZqMCjTE5KkfqSHchHFhJTIhBx+OunqZboINf2BUvxFzfx5GY8XinsUyXSrhIkwIGjE5ve1+K0yH7+GpZsy8nOaf4IiRmVR3Gqpin+Og/G9VtuWhhT97vKbFMgicPnWCz1xv69X26K/GkYnp2kMWa9DZ1IUkduojKdGnRQQ77UeBeYyabljjKGDHDiqPW0J3l5tUKZWVY6AzX6rN8iejcjhwHo6xnnEomlnyd/KHO3Kcctz77nIsxy/FxylWngERb78YAFtlnV0yoqo+D3kwMpiNzuAE2/S8qSuo5svKD8pzsPFN0CXFBrj3AhWcyZ3coShkSjo+xVzEIIbiaFTGHBird57szXXol1+d7rTT+Kp9M3pDaQkRbMlBqGtrcyh7XaJY8UZL9ZOWtHKG+62cqtvZl66tEWJq+--iVGZFObLr5mGVCIk--g1QXlOyA9rFBMljXpbrPhQ== \ No newline at end of file diff --git a/spec/internal/rails_6_0/config/database.yml b/spec/internal/rails_6_0/config/database.yml deleted file mode 100644 index a51500f..0000000 --- a/spec/internal/rails_6_0/config/database.yml +++ /dev/null @@ -1,20 +0,0 @@ -default: &default - adapter: postgresql - pool: 5 - timeout: 5000 - port: <%= ENV['DB_PORT'] || 5432 %> - host: <%= ENV['DB_HOST'] || 'localhost' %> - username: <%= ENV['DB_USER'] %> - password: <%= ENV['DB_PASSWORD'] %> - -development: - <<: *default - database: safer_rails_console_development - -test: - <<: *default - database: safer_rails_console_test - -production: - <<: *default - database: safer_rails_console_production diff --git a/spec/internal/rails_6_0/config/environment.rb b/spec/internal/rails_6_0/config/environment.rb deleted file mode 100644 index d5abe55..0000000 --- a/spec/internal/rails_6_0/config/environment.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -# Load the Rails application. -require_relative 'application' - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/spec/internal/rails_6_0/config/environments/development.rb b/spec/internal/rails_6_0/config/environments/development.rb deleted file mode 100644 index 12f40dc..0000000 --- a/spec/internal/rails_6_0/config/environments/development.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # In the development environment your application's code is reloaded on - # every request. This slows down response time but is perfect for development - # since you don't have to restart the web server when you make code changes. - config.cache_classes = false - - # Do not eager load code on boot. - config.eager_load = false - - # Show full error reports. - config.consider_all_requests_local = true - - # Enable/disable caching. By default caching is disabled. - # Run rails dev:cache to toggle caching. - if Rails.root.join('tmp', 'caching-dev.txt').exist? - config.action_controller.perform_caching = true - config.action_controller.enable_fragment_cache_logging = true - - config.cache_store = :memory_store - config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{2.days.to_i}" - } - else - config.action_controller.perform_caching = false - - config.cache_store = :null_store - end - - # Print deprecation notices to the Rails logger. - config.active_support.deprecation = :log - - # Raise an error on page load if there are pending migrations. - config.active_record.migration_error = :page_load - - # Highlight code that triggered database queries in logs. - config.active_record.verbose_query_logs = true - - - # Raises error for missing translations. - # config.action_view.raise_on_missing_translations = true - - # Use an evented file watcher to asynchronously detect changes in source code, - # routes, locales, etc. This feature depends on the listen gem. - # config.file_watcher = ActiveSupport::EventedFileUpdateChecker -end diff --git a/spec/internal/rails_6_0/config/environments/production.rb b/spec/internal/rails_6_0/config/environments/production.rb deleted file mode 100644 index 52514e8..0000000 --- a/spec/internal/rails_6_0/config/environments/production.rb +++ /dev/null @@ -1,94 +0,0 @@ -# frozen_string_literal: true - -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.cache_classes = true - - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true - - # Full error reports are disabled and caching is turned on. - config.consider_all_requests_local = false - config.action_controller.perform_caching = true - - # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] - # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). - # config.require_master_key = true - - # Disable serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = 'http://assets.example.com' - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # Prepend all log lines with the following tags. - config.log_tags = [:request_id] - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Use a real queuing backend for Active Job (and separate queues per environment). - # config.active_job.queue_adapter = :resque - # config.active_job.queue_name_prefix = "rails60_production" - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Send deprecation notices to registered listeners. - config.active_support.deprecation = :notify - - # Use default logging formatter so that PID and timestamp are not suppressed. - config.log_formatter = ::Logger::Formatter.new - - # Use a different logger for distributed setups. - # require 'syslog/logger' - # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') - - if ENV['RAILS_LOG_TO_STDOUT'].present? - logger = ActiveSupport::Logger.new($stdout) - logger.formatter = config.log_formatter - config.logger = ActiveSupport::TaggedLogging.new(logger) - end - - # Do not dump schema after migrations. - config.active_record.dump_schema_after_migration = false - - # Inserts middleware to perform automatic connection switching. - # The `database_selector` hash is used to pass options to the DatabaseSelector - # middleware. The `delay` is used to determine how long to wait after a write - # to send a subsequent read to the primary. - # - # The `database_resolver` class is used by the middleware to determine which - # database is appropriate to use based on the time delay. - # - # The `database_resolver_context` class is used by the middleware to set - # timestamps for the last write to the primary. The resolver uses the context - # class timestamps to determine how long to wait before reading from the - # replica. - # - # By default Rails will store a last write timestamp in the session. The - # DatabaseSelector middleware is designed as such you can define your own - # strategy for connection switching and pass that into the middleware through - # these configuration options. - # config.active_record.database_selector = { delay: 2.seconds } - # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver - # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session -end diff --git a/spec/internal/rails_6_0/config/environments/test.rb b/spec/internal/rails_6_0/config/environments/test.rb deleted file mode 100644 index 8148f2a..0000000 --- a/spec/internal/rails_6_0/config/environments/test.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -# The test environment is used exclusively to run your application's -# test suite. You never need to work with it otherwise. Remember that -# your test database is "scratch space" for the test suite and is wiped -# and recreated between test runs. Don't rely on the data there! - -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - config.cache_classes = true - - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. - config.eager_load = false - - # 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}" - } - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - config.cache_store = :null_store - - # Raise exceptions instead of rendering exception templates. - config.action_dispatch.show_exceptions = false - - # Disable request forgery protection in test environment. - config.action_controller.allow_forgery_protection = false - - # Print deprecation notices to the stderr. - config.active_support.deprecation = :stderr - - # Raises error for missing translations. - # config.action_view.raise_on_missing_translations = true -end diff --git a/spec/internal/rails_6_0/config/initializers/application_controller_renderer.rb b/spec/internal/rails_6_0/config/initializers/application_controller_renderer.rb deleted file mode 100644 index f4556db..0000000 --- a/spec/internal/rails_6_0/config/initializers/application_controller_renderer.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true -# Be sure to restart your server when you modify this file. - -# ActiveSupport::Reloader.to_prepare do -# ApplicationController.renderer.defaults.merge!( -# http_host: 'example.org', -# https: false -# ) -# end diff --git a/spec/internal/rails_6_0/config/initializers/backtrace_silencers.rb b/spec/internal/rails_6_0/config/initializers/backtrace_silencers.rb deleted file mode 100644 index d0f0d3b..0000000 --- a/spec/internal/rails_6_0/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/spec/internal/rails_6_0/config/initializers/content_security_policy.rb b/spec/internal/rails_6_0/config/initializers/content_security_policy.rb deleted file mode 100644 index 98230c9..0000000 --- a/spec/internal/rails_6_0/config/initializers/content_security_policy.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true -# Be sure to restart your server when you modify this file. - -# Define an application-wide content security policy -# For further information see the following documentation -# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy - -# Rails.application.config.content_security_policy do |policy| -# policy.default_src :self, :https -# policy.font_src :self, :https, :data -# policy.img_src :self, :https, :data -# policy.object_src :none -# policy.script_src :self, :https -# policy.style_src :self, :https - -# # Specify URI for violation reports -# # policy.report_uri "/csp-violation-report-endpoint" -# end - -# If you are using UJS then enable automatic nonce generation -# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } - -# Set the nonce only to specific directives -# Rails.application.config.content_security_policy_nonce_directives = %w(script-src) - -# Report CSP violations to a specified URI -# For further information see the following documentation: -# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only -# Rails.application.config.content_security_policy_report_only = true diff --git a/spec/internal/rails_6_0/config/initializers/cookies_serializer.rb b/spec/internal/rails_6_0/config/initializers/cookies_serializer.rb deleted file mode 100644 index ee8dff9..0000000 --- a/spec/internal/rails_6_0/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -# Be sure to restart your server when you modify this file. - -# Specify a serializer for the signed and encrypted cookie jars. -# Valid options are :json, :marshal, and :hybrid. -Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/spec/internal/rails_6_0/config/initializers/filter_parameter_logging.rb b/spec/internal/rails_6_0/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 7a4f47b..0000000 --- a/spec/internal/rails_6_0/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,6 +0,0 @@ -# frozen_string_literal: true - -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/spec/internal/rails_6_0/config/initializers/inflections.rb b/spec/internal/rails_6_0/config/initializers/inflections.rb deleted file mode 100644 index aa7435f..0000000 --- a/spec/internal/rails_6_0/config/initializers/inflections.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end diff --git a/spec/internal/rails_6_0/config/initializers/mime_types.rb b/spec/internal/rails_6_0/config/initializers/mime_types.rb deleted file mode 100644 index 6e1d16f..0000000 --- a/spec/internal/rails_6_0/config/initializers/mime_types.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf diff --git a/spec/internal/rails_6_0/config/initializers/new_framework_defaults_6_0.rb b/spec/internal/rails_6_0/config/initializers/new_framework_defaults_6_0.rb deleted file mode 100644 index a48d4eb..0000000 --- a/spec/internal/rails_6_0/config/initializers/new_framework_defaults_6_0.rb +++ /dev/null @@ -1,46 +0,0 @@ -# frozen_string_literal: true -# Be sure to restart your server when you modify this file. -# -# This file contains migration options to ease your Rails 6.0 upgrade. -# -# Once upgraded flip defaults one by one to migrate to the new default. -# -# Read the Guide for Upgrading Ruby on Rails for more info on each option. - -# Don't force requests from old versions of IE to be UTF-8 encoded. -# Rails.application.config.action_view.default_enforce_utf8 = false - -# Embed purpose and expiry metadata inside signed and encrypted -# cookies for increased security. -# -# This option is not backwards compatible with earlier Rails versions. -# It's best enabled when your entire app is migrated and stable on 6.0. -# Rails.application.config.action_dispatch.use_cookies_with_metadata = true - -# Change the return value of `ActionDispatch::Response#content_type` to Content-Type header without modification. -# Rails.application.config.action_dispatch.return_only_media_type_on_content_type = false - -# Return false instead of self when enqueuing is aborted from a callback. -# Rails.application.config.active_job.return_false_on_aborted_enqueue = true - -# Send Active Storage analysis and purge jobs to dedicated queues. -# Rails.application.config.active_storage.queues.analysis = :active_storage_analysis -# Rails.application.config.active_storage.queues.purge = :active_storage_purge - -# When assigning to a collection of attachments declared via `has_many_attached`, replace existing -# attachments instead of appending. Use #attach to add new attachments without replacing existing ones. -# Rails.application.config.active_storage.replace_on_assign_to_many = true - -# Use ActionMailer::MailDeliveryJob for sending parameterized and normal mail. -# -# The default delivery jobs (ActionMailer::Parameterized::DeliveryJob, ActionMailer::DeliveryJob), -# will be removed in Rails 6.1. This setting is not backwards compatible with earlier Rails versions. -# If you send mail in the background, job workers need to have a copy of -# MailDeliveryJob to ensure all delivery jobs are processed properly. -# Make sure your entire app is migrated and stable on 6.0 before using this setting. -# Rails.application.config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob" - -# Enable the same cache key to be reused when the object being cached of type -# `ActiveRecord::Relation` changes by moving the volatile information (max updated at and count) -# of the relation's cache key into the cache version to support recycling cache key. -# Rails.application.config.active_record.collection_cache_versioning = true diff --git a/spec/internal/rails_6_0/config/initializers/wrap_parameters.rb b/spec/internal/rails_6_0/config/initializers/wrap_parameters.rb deleted file mode 100644 index 2f3c0db..0000000 --- a/spec/internal/rails_6_0/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end diff --git a/spec/internal/rails_6_0/config/locales/en.yml b/spec/internal/rails_6_0/config/locales/en.yml deleted file mode 100644 index cf9b342..0000000 --- a/spec/internal/rails_6_0/config/locales/en.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# The following keys must be escaped otherwise they will not be retrieved by -# the default I18n backend: -# -# true, false, on, off, yes, no -# -# Instead, surround them with single quotes. -# -# en: -# 'true': 'foo' -# -# To learn more, please read the Rails Internationalization guide -# available at https://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/spec/internal/rails_6_0/config/routes.rb b/spec/internal/rails_6_0/config/routes.rb deleted file mode 100644 index cefb14f..0000000 --- a/spec/internal/rails_6_0/config/routes.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -Rails.application.routes.draw do - # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html -end diff --git a/spec/internal/rails_6_0/db/schema.rb b/spec/internal/rails_6_0/db/schema.rb deleted file mode 100644 index 79d14d6..0000000 --- a/spec/internal/rails_6_0/db/schema.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -ActiveRecord::Schema.define do - create_table :models -end diff --git a/spec/internal/rails_6_0/db/seeds.rb b/spec/internal/rails_6_0/db/seeds.rb deleted file mode 100644 index 8744e3c..0000000 --- a/spec/internal/rails_6_0/db/seeds.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). -# -# Examples: -# -# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) -# Character.create(name: 'Luke', movie: movies.first) diff --git a/spec/internal/rails_6_0/public/404.html b/spec/internal/rails_6_0/public/404.html deleted file mode 100644 index 2be3af2..0000000 --- a/spec/internal/rails_6_0/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The page you were looking for doesn't exist (404) - - - - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/internal/rails_6_0/public/422.html b/spec/internal/rails_6_0/public/422.html deleted file mode 100644 index c08eac0..0000000 --- a/spec/internal/rails_6_0/public/422.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The change you wanted was rejected (422) - - - - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/internal/rails_6_0/public/500.html b/spec/internal/rails_6_0/public/500.html deleted file mode 100644 index 78a030a..0000000 --- a/spec/internal/rails_6_0/public/500.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - We're sorry, but something went wrong (500) - - - - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/internal/rails_6_0/public/apple-touch-icon-precomposed.png b/spec/internal/rails_6_0/public/apple-touch-icon-precomposed.png deleted file mode 100644 index e69de29..0000000 diff --git a/spec/internal/rails_6_0/public/apple-touch-icon.png b/spec/internal/rails_6_0/public/apple-touch-icon.png deleted file mode 100644 index e69de29..0000000 diff --git a/spec/internal/rails_6_0/public/favicon.ico b/spec/internal/rails_6_0/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/spec/internal/rails_6_0/public/robots.txt b/spec/internal/rails_6_0/public/robots.txt deleted file mode 100644 index 37b576a..0000000 --- a/spec/internal/rails_6_0/public/robots.txt +++ /dev/null @@ -1 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/spec/internal/rails_6_1/Gemfile b/spec/internal/rails_6_1/Gemfile index 1474a50..548533e 100644 --- a/spec/internal/rails_6_1/Gemfile +++ b/spec/internal/rails_6_1/Gemfile @@ -3,6 +3,6 @@ source 'https://rubygems.org' gem 'pg' -gem 'rails', '~> 6.1.0' +gem 'rails', '~> 6.1.7' gem 'safer_rails_console', path: '../../../' diff --git a/spec/internal/rails_7_0/Gemfile b/spec/internal/rails_7_0/Gemfile index f9ffce2..00c6faa 100644 --- a/spec/internal/rails_7_0/Gemfile +++ b/spec/internal/rails_7_0/Gemfile @@ -7,6 +7,6 @@ source 'https://rubygems.org' gem 'pg' -gem 'rails', '~> 7.0.0' +gem 'rails', '~> 7.0.8' gem 'safer_rails_console', path: '../../../' diff --git a/spec/internal/rails_7_1/Gemfile b/spec/internal/rails_7_1/Gemfile index 6dc1641..88a58db 100644 --- a/spec/internal/rails_7_1/Gemfile +++ b/spec/internal/rails_7_1/Gemfile @@ -7,6 +7,6 @@ source 'https://rubygems.org' gem 'pg' -gem 'rails', '~> 7.1.0' +gem 'rails', '~> 7.1.2' gem 'safer_rails_console', path: '../../../'