From c50fdbd139439576318460d12c98ba007f28becd Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 26 Dec 2014 01:31:56 -0500 Subject: Implement GithubGistFormula in a more natural way --- Library/Homebrew/formula_specialties.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3