davetron5000 / gli

Make awesome command-line applications the easy way
http://davetron5000.github.io/gli
Apache License 2.0
1.26k stars 102 forks source link

Fix basic bootstrap #260

Closed mbigras closed 4 years ago

mbigras commented 7 years ago

584334b addresses the weirdness about rendering an actual newline instead of the escape sequence.

33c7871 adds test-unit as a dev dep so the first bundle exec rake test will work. Otherwise you get the following:

/Users/max/Dropbox/work/src/github.com/mbigras/gli/some_gli/test/test_helper.rb:1:in `require': cannot load such file -- test/unit (LoadError)
    from /Users/max/Dropbox/work/src/github.com/mbigras/gli/some_gli/test/test_helper.rb:1:in `<top (required)>'
    from /Users/max/Dropbox/work/src/github.com/mbigras/gli/some_gli/test/default_test.rb:1:in `require'
    from /Users/max/Dropbox/work/src/github.com/mbigras/gli/some_gli/test/default_test.rb:1:in `<top (required)>'
    from /Users/max/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:15:in `require'
    from /Users/max/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:15:in `block in <main>'
    from /Users/max/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:4:in `select'
    from /Users/max/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1)
/Users/max/.rbenv/versions/2.2.2/bin/bundle:23:in `load'
/Users/max/.rbenv/versions/2.2.2/bin/bundle:23:in `<main>'
Tasks: TOP => test
(See full trace by running task with --trace)

I could also rewrite the bootstrapped test case to use Minitest which might be better because then we don't need to add the dependency.

What do you think?