mirror of
https://github.com/gosticks/brew.git
synced 2026-09-25 18:20:21 +00:00
Pathname#version: only parse version from file basename
i.e. Ignoring the file's directory for version parsing. Closes Homebrew/homebrew#50568. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
@@ -239,7 +239,7 @@ class Pathname
|
||||
# @private
|
||||
def version
|
||||
require "version"
|
||||
Version.parse(self)
|
||||
Version.parse(basename)
|
||||
end
|
||||
|
||||
# @private
|
||||
|
||||
Reference in New Issue
Block a user