Permalink
Browse files

Added autoload for Thor::Group. Closes #22.

Thor::Group was not autoloaded, despite the comment on ba20598 indicating so.
Autoloading Thor::Group is consistent with autoloading Thor::Actions.
No longer require 'thor/group' in spec_helper.rb.
All specs pass.
`thor list` now runs without error.
  • Loading branch information...
1 parent 37e8a9b commit 1f55b6459c004a02dfb8094ffae6c2c9d6a59606 @rheimbuch rheimbuch committed Feb 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −0 lib/thor/base.rb
  2. +0 −1 spec/spec_helper.rb
View
@@ -10,6 +10,7 @@
class Thor
autoload :Actions, 'thor/actions'
autoload :RakeCompat, 'thor/rake_compat'
+ autoload :Group, 'thor/group'
# Shortcuts for help.
HELP_MAPPINGS = %w(-h -? --help -D)
View
@@ -2,7 +2,6 @@
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require 'thor'
-require 'thor/group'
require 'stringio'
require 'rubygems'

1 comment on commit 1f55b64

Contributor

indirect commented on 1f55b64 Feb 11, 2010

Much more elegant. Nice.

Please sign in to comment.