Skip to content

Commit 3cd77fb

Browse files
committed
Support Rails 8.0
1 parent 261891e commit 3cd77fb

12 files changed

+33
-17
lines changed

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
# `.rubocop.yml`, set `TargetRubyVersion`, to the lowest ruby version
6161
# tested here.
6262
ruby: ["2.6", "3.3"]
63-
rails: ["5.2", "6.0", "6.1", "7.0", "7.1", "7.2"]
63+
rails: ["5.2", "6.0", "6.1", "7.0", "7.1", "7.2", "8.0"]
6464
exclude:
6565
# rails 7 requires ruby >= 2.7.0
6666
- ruby: "2.6"
@@ -69,6 +69,8 @@ jobs:
6969
rails: "7.1"
7070
- ruby: "2.6"
7171
rails: "7.2"
72+
- ruby: "2.6"
73+
rails: "8.0"
7274
- ruby: "3.3"
7375
rails: "5.2"
7476
steps:

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
- Added
1313
- None
1414
- Fixed
15-
- [#770](https://github.com/binarylogic/authlogic/pull/770) - Adds support for Rails 7.2
15+
- [#770](https://github.com/binarylogic/authlogic/pull/770) - Adds support for Rails 7.2 and 8.0
1616

1717
## 6.4.3 (2023-12-17)
1818

CONTRIBUTING.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,16 @@ BUNDLE_GEMFILE=gemfiles/rails_7.1.rb bundle exec rake
5656
# Rails 7.2
5757
BUNDLE_GEMFILE=gemfiles/rails_7.2.rb bundle install
5858
BUNDLE_GEMFILE=gemfiles/rails_7.2.rb bundle exec rake
59+
60+
# Rails 8.0
61+
BUNDLE_GEMFILE=gemfiles/rails_8.0.rb bundle install
62+
BUNDLE_GEMFILE=gemfiles/rails_8.0.rb bundle exec rake
5963
```
6064

6165
To run a single test:
6266

6367
```
64-
BUNDLE_GEMFILE=gemfiles/rails_7.2.rb \
68+
BUNDLE_GEMFILE=gemfiles/rails_8.0.rb \
6569
bundle exec ruby -I test path/to/test.rb
6670
```
6771

@@ -76,14 +80,14 @@ ruby –I test path/to/test.rb
7680

7781
```
7882
mysql -e 'drop database authlogic; create database authlogic;' && \
79-
DB=mysql BUNDLE_GEMFILE=gemfiles/rails_7.2.rb bundle exec rake
83+
DB=mysql BUNDLE_GEMFILE=gemfiles/rails_8.0.rb bundle exec rake
8084
```
8185

8286
### Test PostgreSQL
8387

8488
```
8589
psql -c 'create database authlogic;' -U postgres
86-
DB=postgres BUNDLE_GEMFILE=gemfiles/rails_7.2.rb bundle exec rake
90+
DB=postgres BUNDLE_GEMFILE=gemfiles/rails_8.0.rb bundle exec rake
8791
```
8892

8993
### Linting
@@ -92,13 +96,13 @@ Running `rake` also runs a linter, rubocop. Contributions must pass both
9296
the linter and the tests. The linter can be run on its own.
9397

9498
```
95-
BUNDLE_GEMFILE=gemfiles/rails_7.2.rb bundle exec rubocop
99+
BUNDLE_GEMFILE=gemfiles/rails_8.0.rb bundle exec rubocop
96100
```
97101

98102
To run the tests without linting, use `rake test`.
99103

100104
```
101-
BUNDLE_GEMFILE=gemfiles/rails_7.2.rb bundle exec rake test
105+
BUNDLE_GEMFILE=gemfiles/rails_8.0.rb bundle exec rake test
102106
```
103107

104108
### Version Control Branches

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ in `authlogic/session/base.rb`.
490490

491491
| Version | branch | ruby | activerecord |
492492
| ------- | ---------- | -------- | ------------- |
493-
| 6.4.3 | 6-4-stable | >= 2.4.0 | >= 5.2, < 8.0 |
493+
| 6.4.3 | 6-4-stable | >= 2.4.0 | >= 5.2, < 8.1 |
494494
| 5.2 | 5-2-stable | >= 2.3.0 | >= 5.2, < 6.1 |
495495
| 4.5 | 4-5-stable | >= 2.3.0 | >= 4.2, < 5.3 |
496496
| 4.3 | 4-3-stable | >= 2.3.0 | >= 4.2, < 5.3 |

authlogic.gemspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ require "authlogic/version"
2525
s.required_ruby_version = ">= 2.6.0"
2626

2727
# See doc/rails_support_in_authlogic_5.0.md
28-
s.add_dependency "activemodel", [">= 5.2", "< 8.0"]
29-
s.add_dependency "activerecord", [">= 5.2", "< 8.0"]
30-
s.add_dependency "activesupport", [">= 5.2", "< 8.0"]
28+
s.add_dependency "activemodel", [">= 5.2", "< 8.1"]
29+
s.add_dependency "activerecord", [">= 5.2", "< 8.1"]
30+
s.add_dependency "activesupport", [">= 5.2", "< 8.1"]
3131
s.add_dependency "request_store", "~> 1.0"
3232
s.add_development_dependency "bcrypt", "~> 3.1"
3333
s.add_development_dependency "byebug", "~> 11.1.3"

gemfiles/rails_5.2.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
gem "activerecord", "~> 5.2.0"
77
gem "activesupport", "~> 5.2.0"
88
gem "mysql2", "~> 0.5.6"
9-
gem "pg", "~> 1.5.7"
9+
gem "pg", "~> 1.5.8"
1010
gem "sqlite3", "~> 1.4.0"

gemfiles/rails_6.0.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
gem "activerecord", "~> 6.0.0"
77
gem "activesupport", "~> 6.0.0"
88
gem "mysql2", "~> 0.5.6"
9-
gem "pg", "~> 1.5.7"
9+
gem "pg", "~> 1.5.8"
1010
gem "sqlite3", "~> 1.4.0"

gemfiles/rails_6.1.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
gem "activerecord", "~> 6.1.0"
77
gem "activesupport", "~> 6.1.0"
88
gem "mysql2", "~> 0.5.6"
9-
gem "pg", "~> 1.5.7"
9+
gem "pg", "~> 1.5.8"
1010
gem "sqlite3", "~> 1.4.0"

gemfiles/rails_7.0.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
gem "activerecord", "~> 7.0.0"
77
gem "activesupport", "~> 7.0.0"
88
gem "mysql2", "~> 0.5.6"
9-
gem "pg", "~> 1.5.7"
9+
gem "pg", "~> 1.5.8"
1010
gem "sqlite3", "~> 1.6.0"

gemfiles/rails_7.1.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
gem "activerecord", "~> 7.1.0"
77
gem "activesupport", "~> 7.1.0"
88
gem "mysql2", "~> 0.5.6"
9-
gem "pg", "~> 1.5.7"
9+
gem "pg", "~> 1.5.8"
1010
gem "sqlite3", "~> 1.6.0"

gemfiles/rails_7.2.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
gem "activerecord", "~> 7.2.0"
77
gem "activesupport", "~> 7.2.0"
88
gem "mysql2", "~> 0.5.6"
9-
gem "pg", "~> 1.5.7"
9+
gem "pg", "~> 1.5.8"
1010
gem "sqlite3", "~> 2.0.0"

gemfiles/rails_8.0.rb

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
gemspec path: ".."
5+
6+
gem "activerecord", "~> 8.0.0.beta"
7+
gem "activesupport", "~> 8.0.0.beta"
8+
gem "mysql2", "~> 0.5.6"
9+
gem "pg", "~> 1.5.8"
10+
gem "sqlite3", "~> 2.1.0"

0 commit comments

Comments
 (0)