From 5bf2ec92a6861ebd070130f7b97e0c29a594bfe9 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sun, 25 Feb 2024 11:33:05 +0100 Subject: [PATCH] refactor!: update minimum Ruby version to 3.0 --- .rubocop.yml | 2 +- active_storage_db.gemspec | 2 +- spec/rails_helper.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 6c9b620..598e596 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -12,7 +12,7 @@ AllCops: - gemfiles/* - spec/dummy??/**/* - vendor/**/* - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 Lint/MissingSuper: Exclude: diff --git a/active_storage_db.gemspec b/active_storage_db.gemspec index 0aa183e..8849d75 100644 --- a/active_storage_db.gemspec +++ b/active_storage_db.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |spec| spec.description = 'An ActiveStorage service plugin to store files in database.' spec.license = 'MIT' - spec.required_ruby_version = '>= 2.7.0' + spec.required_ruby_version = '>= 3.0' spec.metadata['homepage_uri'] = spec.homepage spec.metadata['source_code_uri'] = spec.homepage diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 6835142..4cf4809 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -41,7 +41,7 @@ require 'factory_bot_rails' support_files = File.expand_path('support/**/*.rb', __dir__) -Dir[support_files].sort.each { |f| require f } +Dir[support_files].each { |f| require f } # begin # ActiveRecord::Migration.maintain_test_schema!