brew edit adamv/alt/ruby works

The reason it didn't work is it doesn't use ARGV.formulae because it needs to be able to edit stuff that doesn't parse. Most other stuff already works because we are awesome.
This commit is contained in:
Max Howell 2012-03-05 16:02:46 +00:00
parent 3f25dd60fa
commit a9587ff7d7

View File

@ -17,7 +17,12 @@ module Homebrew extend self
else else
# Don't use ARGV.formulae as that will throw if the file doesn't parse # Don't use ARGV.formulae as that will throw if the file doesn't parse
paths = ARGV.named.map do |name| paths = ARGV.named.map do |name|
HOMEBREW_REPOSITORY+"Library/Formula/#{Formula.canonical_name name}.rb" name = Formula.canonical_name name
if name.include? '/'
Pathname.new(name)
else
HOMEBREW_REPOSITORY+"Library/Formula/#{name}.rb"
end
end end
unless ARGV.force? unless ARGV.force?
paths.each do |path| paths.each do |path|