Skip to content

Commit 119a40f

Browse files
Fix gemspec and readme, Devise v5 will support Rails >= 7, not 6
As per our test matrix.
1 parent 1096b60 commit 119a40f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ PATH
1414
devise (5.0.0.beta)
1515
bcrypt (~> 3.0)
1616
orm_adapter (~> 0.1)
17-
railties (>= 6.0.0)
17+
railties (>= 7.0)
1818
responders
1919
warden (~> 1.2.3)
2020

@@ -309,4 +309,4 @@ DEPENDENCIES
309309
webrat
310310

311311
BUNDLED WITH
312-
4.0.3
312+
4.0.3

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ Please note that the command output will show the variable value being used.
137137
#### BUNDLE_GEMFILE
138138
We can use this variable to tell bundler what Gemfile it should use (instead of the one in the current directory).
139139
Inside the [gemfiles](https://github.com/heartcombo/devise/tree/main/gemfiles) directory, we have one for each version of Rails we support. When you send us a pull request, it may happen that the test suite breaks using some of them. If that's the case, you can simulate the same environment using the `BUNDLE_GEMFILE` variable.
140-
For example, if the tests broke using Ruby 3.0.0 and Rails 6.0, you can do the following:
140+
For example, if the tests broke using Ruby 3.4 and Rails 8.0, you can do the following:
141141
```bash
142-
rbenv shell 3.0.0 # or rvm use 3.0.0
143-
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-6-0 bundle install
144-
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-6-0 bin/test
142+
chruby 3.4.0 # or rbenv shell 3.4.0, or rvm use 3.4.0, etc.
143+
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-8-0 bundle install
144+
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-8-0 bin/test
145145
```
146146

147147
You can also combine both of them if the tests broke for Mongoid:
148148
```bash
149-
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-6-0 bundle install
150-
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-6-0 DEVISE_ORM=mongoid bin/test
149+
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-8-0 bundle install
150+
BUNDLE_GEMFILE=gemfiles/Gemfile-rails-8-0 DEVISE_ORM=mongoid bin/test
151151
```
152152

153153
### Running tests
@@ -181,7 +181,7 @@ Once you have solidified your understanding of Rails and authentication mechanis
181181

182182
## Getting started
183183

184-
Devise 4.0 works with Rails 6.0 onwards. Run:
184+
Devise 5 works with Rails 7 onwards. Run:
185185

186186
```sh
187187
bundle add devise

devise.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ Gem::Specification.new do |s|
3030
s.add_dependency("warden", "~> 1.2.3")
3131
s.add_dependency("orm_adapter", "~> 0.1")
3232
s.add_dependency("bcrypt", "~> 3.0")
33-
s.add_dependency("railties", ">= 6.0.0")
33+
s.add_dependency("railties", ">= 7.0")
3434
s.add_dependency("responders")
3535
end

0 commit comments

Comments
 (0)