Skip to content

Commit

Permalink
refactor!: update minimum Ruby version to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blocknotes committed Apr 18, 2024
1 parent a84873a commit 169515b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AllCops:
- gemfiles/*
- spec/dummy??/**/*
- vendor/**/*
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0

Lint/MissingSuper:
Exclude:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Useful also with platforms like Heroku (due to their ephemeral file system).

## Installation

_NOTE_: Ruby 2.7 is supported until version 1.3.0

- Setup Active Storage in your Rails application
- Add to your Gemfile `gem 'active_storage_db'` (and execute: `bundle`)
- Install the gem migrations: `bin/rails active_storage_db:install:migrations` (and execute: `bin/rails db:migrate`)
Expand Down
2 changes: 1 addition & 1 deletion active_storage_db.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 169515b

Please sign in to comment.