Fix issue #877 (show-source -s doesn't work (when no method arg is
given))
This behaviour is shared between `show-source` and `show-doc`. So with
one fix I kill two bugs.
Add tests and rewrite some of the existing ones (related to the
`--super` switch).
When performing show-source/show-doc on a class whose code
cannot be extracted we now fall-back to its first accessible superclass
and show its code together with a warning.
Example:
class Model < ActiveRecord::Base
end
show-source Model #=> shows ActiveRecord::Base code
Wrap command descriptions to 80 characters. Convert some string options
to symbols (where possible). Align options in code. Remove dots in the
end of switch descriptions.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>