Skip to content

Commit 3b04617

Browse files
authored
Upgrade Ruby and Rails versions (#1088)
* Upgrade Ruby and Rails versions * Remove Ruby 3.2.9 * Bump ruby 3.3.9 to 3.3.11 * Make ruby 3.3.11 the minimum required version * Bump ruby 3.4.5 to 3.4.9 * Add ruby 4.0.2 * Remove RoR 7.1.0 support * Add RoR 8.1.0 support * Add benchmark gem
1 parent c76ac6d commit 3b04617

10 files changed

Lines changed: 26 additions & 21 deletions

File tree

.github/workflows/standardrb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
- uses: ruby/setup-ruby@v1
1616
with:
1717
bundler-cache: true
18-
ruby-version: 3.2.9
18+
ruby-version: 3.3.11
1919
- run: bundle exec standardrb --format github --parallel

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
gemfile:
19-
- "7.1"
2019
- "7.2"
2120
- "8.0"
21+
- "8.1"
2222
ruby:
23-
- "3.2.9"
24-
- "3.3.9"
25-
- "3.4.5"
23+
- "3.3.11"
24+
- "3.4.9"
25+
- "4.0.2"
2626

2727
env:
2828
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile

Appraisals

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
appraise "rails_7.1" do
2-
gem "railties", "~> 7.1.0"
3-
end
4-
51
appraise "rails_7.2" do
62
gem "railties", "~> 7.2.0"
73
end
@@ -10,3 +6,6 @@ appraise "rails_8.0" do
106
gem "railties", "~> 8.0.0"
117
gem "sqlite3", ">= 2.1"
128
end
9+
appraise "rails_8.1" do
10+
gem "railties", "~> 8.1.0"
11+
end

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ gemspec
55
gem "addressable"
66
gem "ammeter"
77
gem "appraisal"
8+
gem "benchmark"
89
gem "capybara"
910
gem "database_cleaner"
1011
gem "erb_lint", require: false

Gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ GEM
185185
stringio
186186
public_suffix (6.0.2)
187187
racc (1.8.1)
188-
rack (3.2.3)
188+
rack (3.2.6)
189189
rack-session (2.1.1)
190190
base64 (>= 0.1.0)
191191
rack (>= 3.0.0)
@@ -294,12 +294,14 @@ GEM
294294

295295
PLATFORMS
296296
arm64-darwin-24
297+
arm64-darwin-25
297298
x86_64-linux
298299

299300
DEPENDENCIES
300301
addressable
301302
ammeter
302303
appraisal
304+
benchmark
303305
capybara
304306
clearance!
305307
database_cleaner

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ monitored by contributors.
1717

1818
## Getting Started
1919

20-
Clearance is a Rails engine tested against Rails `>= 7.1` and Ruby `>= 3.2.9`.
20+
Clearance is a Rails engine tested against Rails `>= 7.2` and Ruby `>= 3.3.11`.
2121

2222
You can add it to your Gemfile with:
2323

clearance.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Gem::Specification.new do |s|
2929
"Galen Frechette",
3030
"Josh Steiner",
3131
"Dorian Marié",
32-
"Sara Jackson"
32+
"Sara Jackson",
33+
"Fernando Perales"
3334
]
3435
s.description = <<-DESCRIPTION
3536
Clearance is built to support authentication and authorization via an
@@ -46,7 +47,7 @@ Gem::Specification.new do |s|
4647
s.name = "clearance"
4748
s.rdoc_options = ["--charset=UTF-8"]
4849
s.require_paths = ["lib"]
49-
s.required_ruby_version = Gem::Requirement.new(">= 3.1.6")
50+
s.required_ruby_version = Gem::Requirement.new(">= 3.3.11")
5051
s.summary = "Rails authentication & authorization with email & password."
5152
s.version = Clearance::VERSION
5253
end

gemfiles/rails_7.2.gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ source "https://rubygems.org"
55
gem "addressable"
66
gem "ammeter"
77
gem "appraisal"
8+
gem "benchmark"
89
gem "capybara"
910
gem "database_cleaner"
1011
gem "erb_lint", require: false
1112
gem "factory_bot_rails"
12-
gem "ffi", "< 1.17.0"
13+
gem "ffi", "< 1.18.0"
1314
gem "nokogiri"
1415
gem "pry", require: false
1516
gem "rails-controller-testing"
1617
gem "rspec-rails"
1718
gem "shoulda-matchers"
18-
gem "sqlite3", "~> 1.7"
19+
gem "sqlite3", "~> 2.8"
1920
gem "standard", ">= 1.35.1", require: false
2021
gem "timecop"
2122
gem "railties", "~> 7.2.0"

gemfiles/rails_8.0.gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ source "https://rubygems.org"
55
gem "addressable"
66
gem "ammeter"
77
gem "appraisal"
8+
gem "benchmark"
89
gem "capybara"
910
gem "database_cleaner"
1011
gem "erb_lint", require: false
1112
gem "factory_bot_rails"
12-
gem "ffi", "< 1.17.0"
13+
gem "ffi", "< 1.18.0"
1314
gem "nokogiri"
1415
gem "pry", require: false
1516
gem "rails-controller-testing"
1617
gem "rspec-rails"
1718
gem "shoulda-matchers"
18-
gem "sqlite3", "~> 2.1"
19+
gem "sqlite3", ">= 2.1"
1920
gem "standard", ">= 1.35.1", require: false
2021
gem "timecop"
2122
gem "railties", "~> 8.0.0"
22-
gem "net-smtp", require: false
2323

2424
gemspec path: "../"
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ source "https://rubygems.org"
55
gem "addressable"
66
gem "ammeter"
77
gem "appraisal"
8+
gem "benchmark"
89
gem "capybara"
910
gem "database_cleaner"
1011
gem "erb_lint", require: false
1112
gem "factory_bot_rails"
12-
gem "ffi", "< 1.17.0"
13+
gem "ffi", "< 1.18.0"
1314
gem "nokogiri"
1415
gem "pry", require: false
1516
gem "rails-controller-testing"
1617
gem "rspec-rails"
1718
gem "shoulda-matchers"
18-
gem "sqlite3", "~> 1.7"
19+
gem "sqlite3", "~> 2.8"
1920
gem "standard", ">= 1.35.1", require: false
2021
gem "timecop"
21-
gem "railties", "~> 7.1.0"
22+
gem "railties", "~> 8.1.0"
2223

2324
gemspec path: "../"

0 commit comments

Comments
 (0)