From 5d1d844ab7544bc9beb6dd2270cef538825eb877 Mon Sep 17 00:00:00 2001 From: Eric Greer Date: Thu, 13 Feb 2025 16:01:42 -0500 Subject: [PATCH] remove rails 6 support --- Appraisals | 9 +-------- README.md | 1 - gemfiles/rails_6.1.gemfile | 10 ---------- gemfiles/rails_7.0.gemfile | 2 +- phi_attrs.gemspec | 2 +- spec/dummy/application.rb | 2 -- 6 files changed, 3 insertions(+), 23 deletions(-) delete mode 100755 gemfiles/rails_6.1.gemfile diff --git a/Appraisals b/Appraisals index aa48f4e..000b6b7 100644 --- a/Appraisals +++ b/Appraisals @@ -1,15 +1,8 @@ # frozen_string_literal: true -appraise 'rails_6.1' do - gem 'rails', '~> 6.1' - gem 'rspec', '~> 3.10' - gem 'rspec-rails', '~> 5.1' - gem 'sqlite3', '~> 1.5' -end - appraise 'rails_7.0' do gem 'rails', '~> 7.0' gem 'rspec', '~> 3.12' - gem 'rspec-rails', '~> 6.0' + gem 'rspec-rails', '~> 7.0' gem 'sqlite3', '~> 1.5' end diff --git a/README.md b/README.md index 3c661f5..b0d7b60 100644 --- a/README.md +++ b/README.md @@ -438,7 +438,6 @@ Tests are written using [RSpec](https://rspec.info/) and are setup to use [Appra $ bundle exec appraisal rspec spec/path/to/spec.rb To run just a particular rails version: - $ bundle exec appraisal rails_6.1 rspec $ bundle exec appraisal rails_7.0 rspec ### Console diff --git a/gemfiles/rails_6.1.gemfile b/gemfiles/rails_6.1.gemfile deleted file mode 100755 index f8c74e0..0000000 --- a/gemfiles/rails_6.1.gemfile +++ /dev/null @@ -1,10 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "rails", "~> 6.1" -gem "rspec", "~> 3.10" -gem "rspec-rails", "~> 5.1" -gem "sqlite3", "~> 1.5" - -gemspec path: "../" diff --git a/gemfiles/rails_7.0.gemfile b/gemfiles/rails_7.0.gemfile index 4197c17..b139dcb 100755 --- a/gemfiles/rails_7.0.gemfile +++ b/gemfiles/rails_7.0.gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" gem "rails", "~> 7.0" gem "rspec", "~> 3.12" -gem "rspec-rails", "~> 6.0" +gem "rspec-rails", "~> 7.0" gem "sqlite3", "~> 1.5" gemspec path: "../" diff --git a/phi_attrs.gemspec b/phi_attrs.gemspec index 12d4cd2..226e03c 100644 --- a/phi_attrs.gemspec +++ b/phi_attrs.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_dependency 'rails', '>= 6.0.0' + spec.add_dependency 'rails', '>= 7.0.0' spec.add_dependency 'request_store', '~> 1.4' spec.add_development_dependency 'appraisal' diff --git a/spec/dummy/application.rb b/spec/dummy/application.rb index 3673445..92ae09e 100644 --- a/spec/dummy/application.rb +++ b/spec/dummy/application.rb @@ -23,8 +23,6 @@ class Application < Rails::Application config.paths['log'] = 'tmp/log/development.log' config.paths.add 'config/routes.rb', with: "#{APP_ROOT}/config/routes.rb" - config.active_record.sqlite3.represent_boolean_as_integer = true if Rails.version.match?(/^6.0/) - def require_environment! initialize! end