Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#21971) Fixes PathPattern's usage of Dir.glob for Windows
Dir.glob seems to perform an impilicit to_s on what is passed. Except on Windows. This change explicitly converts Pathname to a String, so we don't have any surprises.
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ def prefix_with(prefix) | |
end | ||
|
||
def glob | ||
Dir.glob(pathname) | ||
Dir.glob(pathname.to_s) | ||
end | ||
|
||
def to_s | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters