Skip to content
davetron5000 edited this page Dec 12, 2010 · 49 revisions

v1.2.5 - Dec 12 2010

  • Corrected gemspec to include all the files
  • Fixed issue with Ruby 1.9 case statement

v1.2.4 - Dec 12 2010

This version is broken, as it doesn't include ONE file in the .gem

v1.2.3 - Dec 12 2010

This version is broken, as it doesn't include two files in the .gem, and is not compatible with Ruby 1.9

  • new GLI apps will exit nonzero on errors (see Error Handling)
  • Support for custom exit codes
  • GLI now uses an environment variable to allow for debugging caught exceptions
  • GLI now uses the width of the terminal for displaying help messages, not just hard-coding 80

v1.2.2 - Dec 11 2010

  • Changed uses of map(&:symbol) to older form, since this doesn't work on 100% of Ruby 1.8.7s.

v1.2.1 - Nov 26 2010

  • Changed default data structure of options back to a Hash. If you want to use the OpenStruct subclass Options, simply put use_openstruct true in your command line definition.

v1.2.0 - Nov 26 2010

  • Added ability to use help command to list commands suitable for creating bash completion script
  • options and global_options will now contain values for all aliases of each flag and switch, so if you created a flag with flag [:f,:flag] and the user specifies -f foo on the command line, both options[:f] and options[:flag] will have the value foo. Same behavior for --flag=foo.
  • You may now no-longer use names that have already been used. So if you declare a switch switch :foo and then later declare a flag flag [:f,:foo], you get an ArgumentError. This is only checked within relevant scope, so you can still use the same option names between commands, and you can still have the same option name once in global and once in command scope. This is really a bugfix as the behavior of GLI was not clear before.
  • long_desc now shows up in generated rdoc for flags and switches
  • Scaffoling now generates a usable Gemfile for bundler
  • More direct support for version numbers in GLI-managed apps

v1.1.3 - Oct 24 2010

Changed the way we locate FILE's directory; if it's a symlink it would've have worked. Required adding :realpath method to File for pre 1.9.2 rubies