github rails/thor v0.19.2

latest releases: v1.3.2, v1.3.1, v1.3.0...
2 years ago

What's Changed

  • fix 'thor_script subcommand [args] --help' 🌈 by @doudou in #500
    • Fix bug with handling of colors passed to ask (and methods like yes? and no? which it underpins)
  • Allow numeric arguments to be negative
  • Ensure that default option values are of the specified type (e.g. you can't specify "foo" as the default for a numeric option), but make symbols and strings interchangeable
  • Add Thor::Shell::Basic#indent method for intending output
  • Fix remove_command for an inherited command (see #451)
  • Allow hash arguments to only have each key provided once (see #455)
  • Allow commands to disable class options, for instance for "help" commands (see #363)
  • Do not generate a negative option (--no-no-foo) for already negative boolean options (--no-foo)
  • Improve compatibility of Thor::CoreExt::HashWithIndifferentAccess with Ruby standard library Hash
  • Allow specifying a custom binding for template evaluation (e.g. #key? and #fetch)
  • Fix support for subcommand-specific "help"s
  • Use a string buffer when handling ERB for Ruby 2.3 compatibility
  • Update dependencies

New Contributors

Full Changelog: v0.19.1...v0.19.2

Don't miss a new thor release

NewReleases is sending notifications on new releases.