aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-30 15:32:15 +0100
committerMax Howell2009-08-30 15:32:15 +0100
commita1d31fabad086a4d8ebf07038dc7d54f2d304458 (patch)
treef55be317c3e90b5c7ae667c95aa619edc82571ba /Library
parenta9d7b9e2ac3139a16e856d591e1803939faaf61a (diff)
downloadbrew-a1d31fabad086a4d8ebf07038dc7d54f2d304458.tar.bz2
FIX GithubGistFormula (fixes Homebrew/homebrew#20)
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 2db3e0782..a898944ee 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -276,8 +276,8 @@ end
# see flac.rb for example usage
class GithubGistFormula <ScriptFileFormula
- def initialize name=nil
- @version=File.basename(File.dirname(url))[0,6]
+ def initialize name='__UNKNOWN__'
super name
+ @version=File.basename(File.dirname(url))[0,6]
end
end