Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Patch misapplied, fix it

  • Loading branch information...
commit 9caed83a8860e7ea01a06a8292f1262a54f778d0 1 parent ecfecbc
@drbrain drbrain authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 lib/meme.rb
View
22 lib/meme.rb
@@ -24,17 +24,6 @@ class Error < RuntimeError; end
USER_AGENT = "meme/#{VERSION} Ruby/#{RUBY_VERSION}"
##
- # Looks up generator name
-
- def GENERATORS.match(name)
- # TODO meme Y U NO DEMETAPHONE?
- return self[name] if has_key? name
- matcher = Regexp.new(name, Regexp::IGNORECASE)
- _, generator = find { |k,v| matcher =~ k || v.grep(matcher).any? }
- generator || self[name] # raises the error if generator is nil
- end
-
- ##
# We have some generators up-in-here
GENERATORS = Hash.new do |_, k|
@@ -59,6 +48,17 @@ def GENERATORS.match(name)
GENERATORS['TOWNCRIER'] = [434537, 'Towncrier']
##
+ # Looks up generator name
+
+ def GENERATORS.match(name)
+ # TODO meme Y U NO DEMETAPHONE?
+ return self[name] if has_key? name
+ matcher = Regexp.new(name, Regexp::IGNORECASE)
+ _, generator = find { |k,v| matcher =~ k || v.grep(matcher).any? }
+ generator || self[name] # raises the error if generator is nil
+ end
+
+ ##
# Interface for the executable
def self.run argv = ARGV
Please sign in to comment.
Something went wrong with that request. Please try again.