Patch #36358
Use File.exist? instead of deprecated File.exists?
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Code cleanup/refactoring | |||
Target version: | 5.0.0 |
Description
you will see a lot of deprecation warnings when running tests with Ruby 3.0 or later.
/path/to/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:219: warning: File.exists? is deprecated; use File.exist? instead
The attached patch replaces all File.exists?
with File.exist?
.
Associated revisions
Use File.exist? instead of deprecated File.exists? (#36358).
Use File.exist? instead of deprecated File.exists? in Gemfile (#36358).