Yuma Takeda
dbc1bb2254
Fix minitest name ( #5821 )
...
"Mini Test" was used in heartcombo/devise#5012 but "minitest" is
the correct product name.
See also: https://github.com/minitest/minitest/blob/master/README.rdoc#description
> minitest provides a complete suite of testing facilities
> supporting TDD, BDD, and benchmarking.
In this description, "minitest" is used.
[ci skip]
Signed-off-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com >
2026-02-13 08:47:12 -03:00
Carlos Antonio da Silva
731074bf09
Stop updating copyright every year [ci skip]
2026-01-05 10:02:56 -03:00
Carlos Antonio da Silva
119a40f9d3
Fix gemspec and readme, Devise v5 will support Rails >= 7, not 6
...
As per our test matrix.
2025-12-31 15:35:31 -03:00
Taketo Takashima
8054ad55c3
Use :unprocessable_content in generated Devise config for Rack 3.1+, avoid Rack warnings ( #5797 )
...
In Rack v3.1.0, the symbol for HTTP status code 422 was changed from `:unprocessable_entity` to `:unprocessable_content`.
As a result, when using rack 3.2 with the following configuration in `config/initializers/devise.rb`, a warning is shown on login failure:
```ruby
# config/initializers/devise.rb
Devise.setup do |config|
...
config.responder.error_status = :unprocessable_entity
```
Warning message:
```sh
/path-to-app/vendor/bundle/ruby/3.4.0/gems/devise-4.9.4/lib/devise/failure_app.rb:80: warning: Status code :unprocessable_entity is deprecated and will be removed in a future version of Rack. Please use :unprocessable_content instead.
```
This warning can be resolved by updating the config as follows:
```diff
# config/initializers/devise.rb
Devise.setup do |config|
...
+ config.responder.error_status = :unprocessable_content
- config.responder.error_status = :unprocessable_entity
```
This fixes the root cause of the warning for new apps by adjusting the generated config during `$ rails generate devise:install` depending on the rack version, so new apps using newer Rack versions generate `error_status = :unprocessable_content` instead of `:unprocessable_entity`.
Existing apps are handled by [latest versions of Rails, which will now transparently convert the code under the hood to avoid the Rack warning](https://github.com/rails/rails/pull/53383 ), and Devise will use that translation layer when available in the failure app to prevent the warning there as well (since that isn't covered by Rails automatic conversion).
Signed-off-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com >
2025-12-31 10:45:09 -03:00
Fuyutsubaki
b76d18d277
Fixed inconsistency between description and example in 'Running tests' section ( #5802 )
...
Expand test run examples to show running a specific line number or a matching regex.
[ci skip]
2025-10-31 09:44:11 -03:00
Carlos Antonio da Silva
9c5e4d3c4e
Update to new email, copyright, supported Ruby/Rails versions
...
Also remove contributors section and add supported ruby/rails versions
to the readme.
[ci skip]
2025-10-17 14:22:02 -03:00
Carlos Antonio da Silva
cf93de390a
Fix links to RubyDoc
...
Closes #5778
[ci skip]
2025-05-28 08:51:42 -03:00
Kazuya INOUE
25f806e270
Remove unnecessary closing parenthesis in README
2024-10-06 23:14:48 +09:00
Carlos Antonio da Silva
21deb5c145
Bump year [ci skip]
2024-04-09 16:58:24 -03:00
Henry Stanley
c4578d3240
Fix README anchor link
...
Fixes link to Active Job Integration in README.
2023-10-13 15:54:36 +01:00
Carlos Antonio da Silva
49e4a991cf
Remove some more code added to support older versions
...
Also change back to run CI on ubuntu-latest which should work with all
Ruby versions supported now.
2023-10-13 11:02:45 -03:00
Carlos Antonio da Silva
72b421e571
Update gemfile readme references
2023-10-13 10:44:06 -03:00
Rafael Mendonça França
c8207373ea
Drop support to all EOL rails versions
2023-10-12 16:52:01 -03:00
Rafael Mendonça França
c4701866ae
Drop support to EOL Rubies
...
All Ruby 2.x are EOL now.
2023-10-12 16:49:10 -03:00
Niccolò Maggioni
4484eddc52
Fix caret placement typo
2023-10-11 16:35:35 +02:00
Rafael Mendonça França
ec0674523e
Merge pull request #5416 from DerekCrosson/main
...
Make copying and pasting terminal commands easier
2023-06-09 19:58:00 -04:00
Rafael Mendonça França
19d9dabc80
Merge pull request #5480 from glaucocustodio/patch-1
...
Use bundle add instead
2023-06-09 19:23:39 -04:00
Carlos Antonio da Silva
41e2db2120
It is not required to copy the views when customizing controllers
...
It is indeed recommended for consistency, but Rails will be able to find
the views under `devise/` due to inheritance still, so make that a bit
clearer in the readme docs about customizing controllers, explaining
that copying or moving the views is an optional step.
Closes #5526
[ci skip]
2023-02-20 10:26:59 -03:00
Carlos Antonio da Silva
44f0fd741f
Update copyright year [ci skip]
...
Closes #5556
2023-02-16 09:10:59 -03:00
Carlos Antonio da Silva
8e2e3f6fda
Merge pull request #5548 from heartcombo/ca-turbo
...
Integrate with Hotwire/Turbo by configuring error and response statuses
2023-02-09 18:14:01 -03:00
Carlos Antonio da Silva
8606e1e671
Expand changelog/readme with info about Turbo vs rails-ujs behavior
...
Explain a bit more about how `data-confirm` and `data-method` need to be
updated to the turbo versions `data-turbo-confirm` and
`data-turbo-method`, respectively. (and depending on its usage.)
[ci skip]
2023-02-07 11:05:53 -03:00
Carlos Antonio da Silva
2df5efcece
Add post install message pointing to the changelog and new upgrade guide
...
There's some additional information in the wiki upgrade guide for those
interested, but most of it is covered in the changelog and should
suffice.
The post install message should help guide people upgrading to make sure
they know what to do in this new version, since some may be using Turbo
out there with custom responders and failure apps and those would have
to be removed in order to use these new changes fully. Hopefully that's
enough of a nudge for them.
2023-02-03 15:41:30 -03:00
Carlos Antonio da Silva
0d392fa49f
Use the released version of responders v3.1.0
...
Unfortunately we can't enforce the version in the gemspec because
responders only supports Rails 5.2 now, and Devise still supports
previous versions.
We'll drop support for those in a future major release, so for now I'm
not adding any version.
This also adds a warning in case someone is using an older version of
responders and tries to set the error/redirect statuses via Devise, so
that they know what to do (upgrade responders) in that case.
2023-02-03 14:09:42 -03:00
Carlos Antonio da Silva
d0f0853c75
Remove CodeClimate badge
...
It's not working right now, and we haven't used it in like forever
to drive anything.
Closes #5549
[ci skip]
2023-02-03 11:50:42 -03:00
Carlos Antonio da Silva
f08e0ad24a
Integrate with Hotwire/Turbo by configuring error and response statuses
...
Treat `:turbo_stream` request format as a navigational format, much like
HTML, so Devise/responders can work properly.
Allow configuring the `error_status` and `redirect_status` using the
latest responders features, via a new custom Devise responder, so we can
customize the both responses to match Hotwire/Turbo behavior, for
example with `422 Unprocessable Entity` and `303 See Other`,
respectively. The defaults aren't changing in Devise itself (yet), so it
still responds on errors cases with `200 OK`, and redirects on non-GET
requests with `302 Found`, but new apps are generated with the new
statuses and existing apps can opt-in. Please note that these defaults
might change in a future release of Devise.
PRs/Issues references:
https://github.com/heartcombo/devise/pull/5545
https://github.com/heartcombo/devise/pull/5529
https://github.com/heartcombo/devise/pull/5516
https://github.com/heartcombo/devise/pull/5499
https://github.com/heartcombo/devise/pull/5487
https://github.com/heartcombo/devise/pull/5467
https://github.com/heartcombo/devise/pull/5440
https://github.com/heartcombo/devise/pull/5410
https://github.com/heartcombo/devise/pull/5340
https://github.com/heartcombo/devise/issues/5542
https://github.com/heartcombo/devise/issues/5530
https://github.com/heartcombo/devise/issues/5519
https://github.com/heartcombo/devise/issues/5513
https://github.com/heartcombo/devise/issues/5478
https://github.com/heartcombo/devise/issues/5468
https://github.com/heartcombo/devise/issues/5463
https://github.com/heartcombo/devise/issues/5458
https://github.com/heartcombo/devise/issues/5448
https://github.com/heartcombo/devise/issues/5446
https://github.com/heartcombo/devise/issues/5439
2023-01-31 11:02:01 -03:00
yysaki
1542b7da29
Update the urls which refer nonexistent master branch name in documentations
2022-04-21 23:29:30 +09:00
Glauco Custódio
a78948f53c
Use bundle add instead
...
As per https://github.com/rubygems/rubygems/pull/5337 , we can simplify the steps of adding a gem.
2022-03-21 12:10:43 +00:00
Derek Crosson
353d86e01c
chore: remove dollar symbol from some commands
...
When you copy the commands that have the terminal beginning of line symbol in front of them you now no longer need to first delete this before running the command
2021-11-01 02:44:35 +02:00
Carlos Antonio da Silva
7e6da424e2
Move from Travis to GitHub Actions
2021-01-29 16:59:14 -03:00
AsbahIshaq
81bf3ad8c1
changed support to supports ( #5334 )
...
Co-authored-by: Asbah Ishaq <asbahishaq>
2021-01-24 08:51:09 -03:00
Alex Ghiculescu
f4462cd85e
Fix Rails default log level
...
This changed in 229fd2a02f - the advice about changing your log level still stands though.
2021-01-18 16:51:23 -06:00
Pavel Timofeev
b25492ea01
Remove Heroku anchor link and fix some typos
2020-06-15 23:19:31 -04:00
Руслан Корнев
0e33f55b7d
Fixes broken image ( #5253 ) [ci skip]
2020-06-12 21:37:02 -03:00
Carlos Antonio da Silva
a3c0c65269
Devise no longer supports Rails 3.2 since version 4 [ci skip]
...
And this `initialize_on_precompile` option is obsolete.
2020-06-08 18:44:21 -03:00
Carlos Antonio da Silva
a451b98cf2
Revert "Updated README with additional video resources for learning Devise ( #5232 )"
...
This reverts commit d85d45bcef .
My mistake: this section is about *not* using Devise when starting with
Rails and building authentication for the first time, therefore we
should not be linking to Devise specific resources here.
[ci skip]
2020-06-05 17:49:32 -03:00
Carlos Antonio da Silva
c3759be33e
Link to both Ryan Bates Railscasts [ci skip]
2020-06-05 17:47:05 -03:00
David Kimura
d85d45bcef
Updated README with additional video resources for learning Devise ( #5232 )
...
[ci skip]
2020-06-05 17:44:37 -03:00
David Auza
cb8c72171f
Update README.md with current link to Railscast ( #5221 )
...
Updated README.md with the latest link to Ryan Bates' Railscast
2020-06-05 17:43:56 -03:00
OKURA Masafumi
64ea43f6ab
Correct warden URL in README [ci skip]
...
Warden moved to its own organization so we should follow it.
2020-05-01 16:48:17 +09:00
Felix Wolfsteller
249064d8f6
update README to reflect current Rails version
...
Paragraph defaults to description of how to test in Rails 5/6 now.
2020-02-06 18:13:30 +01:00
Rafael Mendonça França
f8daa52b9b
Change license of the logo
2020-02-03 12:01:11 -05:00
Rafael Mendonça França
a17abad57a
Remove all references to Plataformatec
2020-02-03 11:33:17 -05:00
Colin Ross
14863ba4c9
Documentation: Details/Notes regarding Rails API-only applications ( #5152 )
...
* doc: Add some additional details concerning using devise in an API-only Rails application
* Apply wording suggestions from code review
Co-Authored-By: Marcos Ferreira <mracos@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: Marcos Ferreira <mracos@users.noreply.github.com >
2019-10-29 15:06:37 -03:00
Steven Torrence
0a6cd99d03
Update README.md
...
Change before filter to before action to match the code example given below.
2019-10-11 09:27:46 -05:00
Marcos Ferreira
b52e642c01
Merge pull request #5074 from sergey-alekseev/increase-default-stretches-to-12
...
Increase default stretches to 12
2019-09-17 13:30:55 -03:00
Ewerton
12fc5b76d8
Update README.md ( #5115 )
2019-08-15 09:28:15 -03:00
Abhijeet Singh
f618b88f91
Updated Codeacademy's Rails Auth link
2019-06-26 15:22:40 +05:30
Sergey Alekseev
63ea6533de
increase default stretches to 12
...
Test script
---
```ruby
require 'bcrypt'
require 'benchmark'
Benchmark.measure { BCrypt::Password.create('password', cost: 12) }
```
Test results
---
- [Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz](https://ark.intel.com/content/www/us/en/ark/products/97535/intel-core-i5-7360u-processor-4m-cache-up-to-3-60-ghz.html ): `#<Benchmark::Tms:0x00007fdd00a4eb30 @label="", @real=0.21730700000080105, @cstime=0.0, @cutime=0.0, @stime=0.00020399999999999585, @utime=0.21685199999999996, @total=0.21705599999999997>`
- [Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz](https://ark.intel.com/content/www/us/en/ark/products/137979/intel-core-i7-8559u-processor-8m-cache-up-to-4-50-ghz.html ): `#<Benchmark::Tms:0x00007fe91094fd30 @label="", @real=0.17964200000278652, @cstime=0.0, @cutime=0.0, @stime=7.399999999996298e-05, @utime=0.17950799999999845, @total=0.1795819999999984>`
Other gems
---
- bcrypt-ruby which is used by devise [updated](https://github.com/codahale/bcrypt-ruby/pull/181 ) their default cost to 12 (not released a gem version yet).
- rails has [a PR](https://github.com/rails/rails/pull/35321 ) from the Rails core team member to update their `ActiveModel::SecurePassword` which powers `has_secure_password` default cost to 13 (not merged yet).
Previous changes
---
[Previous PR](https://github.com/plataformatec/devise/pull/3549 ) to increase the default stretches to 12 was created more than 4 years ago. That time the default stretches value [was increased](9efc601c73 ) from 10 to 11.
2019-05-11 19:35:13 +03:00
John Hinnegan
b2dc388556
Fix dead link
...
The link that's in there goes to a non-existent page. I'm guessing it was moved. I put the link in that I think it was moved to.
2019-03-24 11:07:29 -04:00
emersonthis
2f3a59640b
Added mention of API mode complications to README ( #5041 ) [ci skip]
2019-03-14 18:19:45 -03:00