Skip to content

Commit

Permalink
Drop Ruby 3.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSouthan committed Aug 21, 2024
1 parent 5e50084 commit 6edf722
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 68 deletions.
55 changes: 0 additions & 55 deletions .circleci/config.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ["2.7", "3.0", "3.1", "3.3"]
ruby-version: ["3.1", "3.2", "3.3"]
activerecord-version:
- "6.1.5"
- "7.0.8"
- "7.1.3.4"
- "7.2.0"
Expand All @@ -36,8 +35,8 @@ jobs:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_DB: statesman_test
POSTGRES_PASSWORD: statesman
POSTGRES_DB: safer_migrations_test
POSTGRES_PASSWORD: safer_migrations
ports:
- 5432:5432
options: >-
Expand All @@ -46,7 +45,7 @@ jobs:
--health-timeout 5s
--health-retries 10
env:
DATABASE_URL: postgres://postgres:statesman@localhost/statesman_test
DATABASE_URL: postgres://postgres:safer_migrations@localhost/safer_migrations_test
DATABASE_DEPENDENCY_PORT: "5432"
ACTIVERECORD_VERSION: "${{ matrix.activerecord-version }}"
steps:
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ inherit_gem:

AllCops:
TargetRubyVersion: 3.2
NewCops: enable

Gemspec/RequiredRubyVersion:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.4
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 4.0.0 / 2023-09-19
# 4.0.0 / 2024-08-21

- Remove support for Ruby =< 2.7
- Remove support for Ruby =< 3.0 and Rails =< 6.0

# 3.0.0 / 2020-09-28

Expand Down
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ gemspec
gem "activerecord", "~> #{ENV['ACTIVERECORD_VERSION']}" if ENV["ACTIVERECORD_VERSION"]

group :test, :development do
gem "gc_ruboconfig", "~> 4.3"
gem "gc_ruboconfig", "~> 5.0"
gem "pg", "~> 1.4"
gem "rspec", "~> 3.9.0"
gem "rubocop", "~> 1.56.3"
end
4 changes: 2 additions & 2 deletions activerecord-safer_migrations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
gem.homepage = "https://github.com/gocardless/activerecord-safer_migrations"
gem.license = "MIT"

gem.required_ruby_version = ">= 2.7"
gem.required_ruby_version = ">= 3.1"

gem.add_runtime_dependency "activerecord", ">= 6.0"
gem.add_dependency "activerecord", ">= 7.0"
gem.metadata["rubygems_mfa_required"] = "true"
end
2 changes: 1 addition & 1 deletion lib/activerecord-safer_migrations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ def self.load
end
end

require "active_record/safer_migrations/railtie" if defined?(::Rails)
require "active_record/safer_migrations/railtie" if defined?(Rails)

0 comments on commit 6edf722

Please sign in to comment.