aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-12-26 01:31:56 -0500
committerJack Nagel2014-12-26 01:31:56 -0500
commitc50fdbd139439576318460d12c98ba007f28becd (patch)
treef340364e7025d1465751b5e5dfff5a05c0e2cf7b /Library
parent7afe1ed67aa2509791705cf6d54ecfe771c61862 (diff)
downloadbrew-c50fdbd139439576318460d12c98ba007f28becd.tar.bz2
Implement GithubGistFormula in a more natural way
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