Last patch for me today - this was what I was originally trying to do:
Previously ruby -w, when running an unknown command in Thor, a warning was
printed:
thor-1.0.1/lib/thor/base.rb:514: warning: global variable `$thor_runner' not initialized
This was raised earlier in #633 but the fix was incomplete -- the global variable was being lazily defined in a method which is not the only entry point to Thor. This moves the global definition out to where the Thor class is defined.
Last patch for me today - this was what I was originally trying to do:
Previously
ruby -w
, when running an unknown command in Thor, a warning was printed:This was raised earlier in #633 but the fix was incomplete -- the global variable was being lazily defined in a method which is not the only entry point to Thor. This moves the global definition out to where the Thor class is defined.