Push expand_path call down into FromPathLoader
This commit is contained in:
parent
f43bb0c292
commit
7591b79d7d
@ -33,7 +33,7 @@ class Formula
|
||||
def initialize name='__UNKNOWN__', path=nil
|
||||
@name = name
|
||||
# If we got an explicit path, use that, else determine from the name
|
||||
@path = path.nil? ? self.class.path(name) : Pathname.new(path).expand_path
|
||||
@path = path.nil? ? self.class.path(name) : path
|
||||
@homepage = self.class.homepage
|
||||
|
||||
set_spec :stable
|
||||
|
||||
@ -105,7 +105,7 @@ class Formulary
|
||||
# in our codebase will require an exact and fullpath.
|
||||
path = "#{path}.rb" unless path =~ /\.rb$/
|
||||
|
||||
@path = Pathname.new(path)
|
||||
@path = Pathname.new(path).expand_path
|
||||
@name = @path.stem
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user