Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Require 'thor/group' so that task.rb line 92 doesn't blow up."

Patches the problem at task.rb:92, but spec_helper.rb blows up when loading fixtures/group.thor

This reverts commit 5943a11.
  • Loading branch information...
commit 37e8a9bda1c6da7477b6d407a69e250b48ee2696 1 parent 5943a11
@rheimbuch rheimbuch authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/thor/task.rb
View
4 lib/thor/task.rb
@@ -1,5 +1,3 @@
-require 'thor/group'
-
class Thor
class Task < Struct.new(:name, :description, :usage, :options)
FILE_REGEXP = /^#{Regexp.escape(File.dirname(__FILE__))}/
@@ -40,7 +38,7 @@ def run(instance, args=[])
parse_no_method_error(instance, e)
end
- # Returns the formatted usage by injecting given required arguments
+ # Returns the formatted usage by injecting given required arguments
# and required options into the given usage.
def formatted_usage(klass, namespace=true)
namespace = klass.namespace unless namespace == false
Please sign in to comment.
Something went wrong with that request. Please try again.