Project

General

Profile

Actions

Patch #36358

closed

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

Added by Go MAEDA about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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?.


Files

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

Updated by Go MAEDA about 2 years ago

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

Committed the patch.

Actions

Also available in: Atom PDF