aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_specialties.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_specialties.rb b/Library/Homebrew/formula_specialties.rb
index eab8de540..179f591e3 100644
--- a/Library/Homebrew/formula_specialties.rb
+++ b/Library/Homebrew/formula_specialties.rb
@@ -9,10 +9,9 @@ end
# See browser for an example
class GithubGistFormula < ScriptFileFormula
- def initialize(*)
- url = self.class.stable.url
- self.class.stable.version(File.basename(File.dirname(url))[0,6])
+ def self.url(val)
super
+ version File.basename(File.dirname(val))[0, 6]
end
end