Releases: rails/thor
Releases · rails/thor
v0.20.2
What's Changed
Full Changelog: v0.20.1...v0.20.2
v0.20.1
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
andmodule_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
- @sschuberth made their first contribution in #572
- @sshaw made their first contribution in #576
- @lostapathy made their first contribution in #583
- @yahonda made their first contribution in #598
- @utilum made their first contribution in #599
- @pallan made their first contribution in #601
- @jmax315 made their first contribution in #578
- @bosoxbill made their first contribution in #611
- @pocke made their first contribution in #589
- @MaxLap made their first contribution in #618
- @Choms made their first contribution in #616
- @kddnewton made their first contribution in #630
Full Changelog: v0.20.0...v0.20.1
v0.20.0
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 ofdisable_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
- @timrogers made their first contribution in #535
- @akm made their first contribution in #464
- @lingceng made their first contribution in #528
- @revans made their first contribution in #515
- @maxlinc made their first contribution in #432
- @tejasbubane made their first contribution in #550
- @takkanm made their first contribution in #557
- @colby-swandale made their first contribution in #566
- @matthewd made their first contribution in #562
- @DuoSRX made their first contribution in #559
- @nodo made their first contribution in #541
- @vcavallo made their first contribution in #505
- @yhirano55 made their first contribution in #574
- @danajp made their first contribution in #575
- @pat made their first contribution in #567
Full Changelog: v0.19.4...v0.20.0
v0.19.4
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
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
What's Changed
- fix 'thor_script subcommand [args] --help' 🌈 by @doudou in #500
-
- Fix bug with handling of colors passed to
ask
(and methods likeyes?
andno?
which it underpins)
- Fix bug with handling of colors passed to
- 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 libraryHash
- 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
v0.19.0
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
v0.18.0
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