aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2011-05-07 19:29:54 -0500
committerAdam Vandenberg2011-05-07 21:50:37 -0700
commit4e651755647ff5801425c6bc7754965d101408c2 (patch)
tree6be3bc1367fbdc5b717ab06721ac12b851ce58d7 /Library/Homebrew/cmd
parent98f51446cb6824ab6e7cf0abac49318f7481b327 (diff)
downloadbrew-4e651755647ff5801425c6bc7754965d101408c2.tar.bz2
Fix misspelled method name: Formula.canonical_name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/create.rb2
-rw-r--r--Library/Homebrew/cmd/edit.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index d92dc0b00..dc39fc381 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -33,7 +33,7 @@ module Homebrew extend self
end
if Formula.aliases.include? fc.name
- realname = Formula.caniconical_name fc.name
+ realname = Formula.canonical_name fc.name
raise <<-EOS.undent
The formula #{realname} is already aliased to #{fc.name}
Please check that you are not creating a duplicate.
diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb
index 079f561a0..5436dc975 100644
--- a/Library/Homebrew/cmd/edit.rb
+++ b/Library/Homebrew/cmd/edit.rb
@@ -13,7 +13,7 @@ module Homebrew extend self
else
# Don't use ARGV.formulae as that will throw if the file doesn't parse
paths = ARGV.named.map do |name|
- HOMEBREW_REPOSITORY+"Library/Formula/#{Formula.caniconical_name name}.rb"
+ HOMEBREW_REPOSITORY+"Library/Formula/#{Formula.canonical_name name}.rb"
end
unless ARGV.force?
paths.each do |path|