Skip to content

Releases: rails/thor

v0.20.2

04 Jan 20:39
v0.20.2
Compare
Choose a tag to compare

What's Changed

  • Remove the globally installed gem by rvm by @y-yagi in #636

Full Changelog: v0.20.1...v0.20.2

v0.20.1

04 Jan 20:38
v0.20.1
Compare
Choose a tag to compare

What's Changed

  • Deprecate safe_level of ERB.new in Ruby 2.6 by @koic in #594
  • Make sure future versions of ERB are invoked appropriately by @utilum in #599
  • Fix comment_lines regexp by @jonathanhefner in #600
  • Add merge action to file colision menu by @y-yagi in #605
  • Fix incorrect use of Process::exit. This fixes open issue #244. by @jmax315 in #578
  • Use correct line numbers for class_eval and module_eval methods by @pocke in #589
  • Fix check_unknown_options! when parsing gets stopped by @MaxLap in #618
  • Fix edge cases in #relative_to_original_destination_root by @MaxLap in #620
  • Remove duplicate option creation in spec by @marcandre in #623
  • Fix print_wrapped to properly parse "\x5" newline character by @Choms in #616
  • Abort when run subprocess fail by @deivid-rodriguez in #628
  • Support did-you-mean functionality in thor by @kddnewton in #630

New Contributors

Full Changelog: v0.20.0...v0.20.1

v0.20.0

04 Jan 20:36
v0.20.0
Compare
Choose a tag to compare

What's Changed

  • fix subcommand method help by @akm in #464
  • Lazy-load io/console to avoid activating the gem unecessarily by @segiddins in #539
  • Fix injecting into file which contains chinese by @lingceng in #528
  • Inject into Modules by @revans in #515
  • Template stacktraces by @maxlinc in #432
  • Specify an explicit external encoding for tests by @TimMoore in #392
  • Add disable_required_check! to disable check for required options in some commands by @rafaelfranca in #545
    It is a substitute of disable_class_options that was not working as intended.
  • Make HashWithIndifferentAccess handle reverse_merge by @tejasbubane in #550
  • Fix warning: File.exists? in CI by @takkanm in #557
  • update Simplecov dependency version by @takkanm in #556
  • use latest ruby version in CI by @takkanm in #558
  • Lazy-load date & fileutils gems by @segiddins in #560
  • Avoid extra spaces from nil/false switches in Options.to_switches by @segiddins in #565
  • refactor ordered_hash_spec by @colby-swandale in #566
  • Prevent infinite loop on file collision when stdin closed by @tpope in #563
  • Fix instance variable not initialized warning by @matthewd in #562
  • Fix commands running even with pretend enabled by @DuoSRX in #559
  • Fix "file clash" bug by @nodo in #541
  • Feature/dont replace nonexistant files by @vcavallo in #505
  • Add check_default_type! to check if the default value of an option matches the defined type by @rafaelfranca in #569
    It removes the warning on usage and gives the command authors the possibility to check for programming errors.
  • Fix bug and refactoring by @yhirano55 in #574
  • Fix --no-opt boolean parsing when followed by an argument by @danajp in #575
  • Updates so things work with frozen string literals by @pat in #567
  • Add inject_into_module

New Contributors

Full Changelog: v0.19.4...v0.20.0

v0.19.4

04 Jan 20:34
Compare
Choose a tag to compare

What's Changed

  • Rename Thor::Base#thor_reserved_word? to #is_thor_reserved_word?

Full Changelog: v0.19.3...v0.19.4

v0.19.3

04 Jan 20:34
Compare
Choose a tag to compare

What's Changed

  • Output a warning instead of raising an exception when a default option value doesn't match its specified type

Full Changelog: v0.19.2...v0.19.3

v0.19.2

04 Jan 20:34
Compare
Choose a tag to compare

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

v0.19.1

04 Jan 20:33
Compare
Choose a tag to compare

What's Changed

  • Fix say non-String break regression

Full Changelog: v0.19.0...v0.19.1

v0.19.0

04 Jan 20:32
Compare
Choose a tag to compare

What's Changed

  • Add support for a default to #ask
  • Avoid @namespace not initialized warning
  • Avoid private attribute? warning
  • Fix initializing with unknown options
  • Loosen required_rubygems_version for compatibility with Ubuntu 10.04
  • Shell#ask: support a noecho option for stdin
  • Shell#ask: change API to be :echo => false
  • Display a message without a stack trace for ambiguous commands
  • Make say and say_status thread safe
  • Dependency for console io version check
  • Alias --help to help on subcommands
  • Use mime-types 1.x for Ruby 1.8.7 compatibility for Ruby 1.8 only
  • Accept .tt files as templates
  • Check if numeric value is in enum
  • Use Readline for user input
  • Fix dispatching of subcommands (concerning :help and *args)
  • Fix warnings when running specs with $VERBOSE = true
  • Make subcommand help more consistent
  • Make the current command chain accessible in command

Full Changelog: v0.18.1...v0.19.0

v0.18.1

04 Jan 20:32
Compare
Choose a tag to compare

What's Changed

  • Revert regressions found in 0.18.0

Full Changelog: v0.18.0...v0.18.1

v0.18.0

04 Jan 20:31
Compare
Choose a tag to compare

What's Changed

  • Remove rake2thor
  • Only display colors if output medium supports colors
  • Pass parent_options to subcommands
  • Fix non-dash-prefixed aliases
  • Make error messages more helpful
  • Rename "task" to "command"
  • Add the method to allow for custom package name

Full Changelog: v0.17.0...v0.18.0