Skip to content
Snippets Groups Projects
Commit c50fdbd1 authored by Jack Nagel's avatar Jack Nagel
Browse files

Implement GithubGistFormula in a more natural way

parent 7afe1ed6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment