Patch #36358

Use File.exist? instead of deprecated File.exists?

Added by Go MAEDA 12 months ago. Updated 12 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% 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?.

file-exists.diff Magnifier (9.65 KB) Go MAEDA, 2021-12-26 13:03

Associated revisions

Revision 21327
Added by Go MAEDA 12 months ago

Use File.exist? instead of deprecated File.exists? (#36358).

Revision 21333
Added by Go MAEDA 12 months ago

Use File.exist? instead of deprecated File.exists? in Gemfile (#36358).

History

#1 Updated by Go MAEDA 12 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch.

Also available in: Atom PDF