Push expand_path call down into FromPathLoader

This commit is contained in:
Jack Nagel 2014-02-19 16:53:18 -05:00
parent f43bb0c292
commit 7591b79d7d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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