Recent Releases of https://github.com/rails/thor
https://github.com/rails/thor - 1.5.0
What's Changed
- Add specs and linter documentation by @hlascelles in https://github.com/rails/thor/pull/907
- Add tree command by @hlascelles in https://github.com/rails/thor/pull/906
- feat: support
insert_into_fileerroring if the file is not changed, and addinsert_into_fileby @G-Rath in https://github.com/rails/thor/pull/908 - support THOR_MERGE values with arguments by @rafaelfranca in https://github.com/rails/thor/pull/910
- Hidden commands should not make an invocation ambiguous by @deivid-rodriguez in https://github.com/rails/thor/pull/911
- Set frozen_string_literal: true in colors.rb by @tenderlove in https://github.com/rails/thor/pull/913
- fix encoding error when running a merge tool by @moritzschepp in https://github.com/rails/thor/pull/916
New Contributors
- @tenderlove made their first contribution in https://github.com/rails/thor/pull/913
- @dependabot[bot] made their first contribution in https://github.com/rails/thor/pull/912
- @moritzschepp made their first contribution in https://github.com/rails/thor/pull/916
Full Changelog: https://github.com/rails/thor/compare/v1.4.0...v1.5.0
- Ruby
Published by rafaelfranca about 2 months ago
https://github.com/rails/thor - 1.4.0
What's Changed
- Lazily load YAML by @deivid-rodriguez in https://github.com/rails/thor/pull/892
- Fix encoding error when trying to show a diff: by @Edouard-chin in https://github.com/rails/thor/pull/898
- fix: Unsafe shell command constructed from library input by @odaysec in https://github.com/rails/thor/pull/897
- Use git difftool for merge.tool identifiers by @moguls753 in https://github.com/rails/thor/pull/900
- feat: support
gsub_fileerroring if gsub doesn't change anything, and addgsub_file!by @G-Rath in https://github.com/rails/thor/pull/877
New Contributors
- @hlascelles made their first contribution in https://github.com/rails/thor/pull/893
- @Edouard-chin made their first contribution in https://github.com/rails/thor/pull/898
- @odaysec made their first contribution in https://github.com/rails/thor/pull/897
- @moguls753 made their first contribution in https://github.com/rails/thor/pull/900
- @G-Rath made their first contribution in https://github.com/rails/thor/pull/877
- @Uaitt made their first contribution in https://github.com/rails/thor/pull/891
Full Changelog: https://github.com/rails/thor/compare/v1.3.2...v1.4.0
- Ruby
Published by rafaelfranca 8 months ago
https://github.com/rails/thor - 1.3.2
What's Changed
- Fix a few typos in README by @duffuniverse in https://github.com/rails/thor/pull/880
- Correctly identify hyphenated and alias command names by @takmar in https://github.com/rails/thor/pull/878
New Contributors
- @duffuniverse made their first contribution in https://github.com/rails/thor/pull/880
Full Changelog: https://github.com/rails/thor/compare/v1.3.1...v1.3.2
- Ruby
Published by rafaelfranca over 1 year ago
https://github.com/rails/thor - 1.3.1
What's Changed
- Preserve Correct Indentation When Uncommenting Lines by @viktorianer in https://github.com/rails/thor/pull/873
- Document the '--skip-' option for boolean options. by @andrewn617 in https://github.com/rails/thor/pull/876
New Contributors
- @takmar made their first contribution in https://github.com/rails/thor/pull/865
- @m-nakamura145 made their first contribution in https://github.com/rails/thor/pull/866
- @cprodhomme made their first contribution in https://github.com/rails/thor/pull/863
- @ancao90 made their first contribution in https://github.com/rails/thor/pull/872
- @viktorianer made their first contribution in https://github.com/rails/thor/pull/873
- @andrewn617 made their first contribution in https://github.com/rails/thor/pull/876
Full Changelog: https://github.com/rails/thor/compare/v1.3.0...v1.3.1
- Ruby
Published by rafaelfranca about 2 years ago
https://github.com/rails/thor - v1.3.0
What's Changed
- use the correct class for shared namespaces by @Gerst20051 in https://github.com/rails/thor/pull/754
- Allow to Override Order of Commands in Help by @alessio-signorini in https://github.com/rails/thor/pull/642
- Add support for providing http headers to get by @dnlgrv in https://github.com/rails/thor/pull/801
- Don't document negative boolean option named
no_*by @BrentWheeldon in https://github.com/rails/thor/pull/797 - CreateFile#identical? fixed for files containing multi-byte UTF-8 codepoints by @tomclose in https://github.com/rails/thor/pull/786
- Drop support to Ruby 2.6 by @rafaelfranca in https://github.com/rails/thor/pull/821
- Fix dashless option usage info by @sambostock in https://github.com/rails/thor/pull/800
- Support Range in enum option by @phene in https://github.com/rails/thor/pull/775
- Check if
type: arrayvalues are inenumby @movermeyer in https://github.com/rails/thor/pull/784 - Fix inject into file warning by @nicolas-brousse in https://github.com/rails/thor/pull/709
- Support
Thor::CoreExt::HashWithIndifferentAccess#slicemethod by @shuuuuun in https://github.com/rails/thor/pull/812 - 🌧️ long_desc: new option to disable wrapping by @igneus in https://github.com/rails/thor/pull/739
- Print default in help when option type is :boolean and default is false by @nevesenin in https://github.com/rails/thor/pull/849
- Silence encoding warnings in specs by @p8 in https://github.com/rails/thor/pull/857
- Validate arguments for
method_optionandclass_optionby @p8 in https://github.com/rails/thor/pull/856 - Fix help for file_collision method without block by @shuuuuun in https://github.com/rails/thor/pull/858
- Extract print methods to seperate classes by @p8 in https://github.com/rails/thor/pull/854
- Add support for printing tables with borders by @p8 in https://github.com/rails/thor/pull/855
- Fix printing tables with borders and indentation by @p8 in https://github.com/rails/thor/pull/861
New Contributors
- @Gerst20051 made their first contribution in https://github.com/rails/thor/pull/754
- @alessio-signorini made their first contribution in https://github.com/rails/thor/pull/642
- @dnlgrv made their first contribution in https://github.com/rails/thor/pull/801
- @BrentWheeldon made their first contribution in https://github.com/rails/thor/pull/797
- @tomclose made their first contribution in https://github.com/rails/thor/pull/786
- @sambostock made their first contribution in https://github.com/rails/thor/pull/800
- @phene made their first contribution in https://github.com/rails/thor/pull/775
- @movermeyer made their first contribution in https://github.com/rails/thor/pull/784
- @nicolas-brousse made their first contribution in https://github.com/rails/thor/pull/709
- @shuuuuun made their first contribution in https://github.com/rails/thor/pull/812
- @igneus made their first contribution in https://github.com/rails/thor/pull/739
- @nevesenin made their first contribution in https://github.com/rails/thor/pull/849
Full Changelog: https://github.com/rails/thor/compare/v1.2.2...v1.3.0
- Ruby
Published by rafaelfranca over 2 years ago
https://github.com/rails/thor - v1.2.2
What's Changed
- Respect implicit encoding of thorfiles by @timdiggins in https://github.com/rails/thor/pull/782
- Switch hash from MD5 to SHA256 by @stanhu in https://github.com/rails/thor/pull/785
- Respect the updated NO_COLOR specification by @coderjoe in https://github.com/rails/thor/pull/796
- Remove support for deprecated OS by @peterzhu2118 in https://github.com/rails/thor/pull/798
- Support
thor install <uri>to install remote thor files by @deivid-rodriguez in https://github.com/rails/thor/pull/787 - Update error message for content already exists case. by @jpgeek in https://github.com/rails/thor/pull/799
- Allow setting file permissions with create_file by @skipkayhil in https://github.com/rails/thor/pull/820
- Properly pad aliases for option usage by @p8 in https://github.com/rails/thor/pull/810
New Contributors
- @ytkg made their first contribution in https://github.com/rails/thor/pull/767
- @timdiggins made their first contribution in https://github.com/rails/thor/pull/780
- @stanhu made their first contribution in https://github.com/rails/thor/pull/785
- @jdufresne made their first contribution in https://github.com/rails/thor/pull/806
- @peterzhu2118 made their first contribution in https://github.com/rails/thor/pull/798
- @casperisfine made their first contribution in https://github.com/rails/thor/pull/807
- @jpgeek made their first contribution in https://github.com/rails/thor/pull/799
- @skipkayhil made their first contribution in https://github.com/rails/thor/pull/820
- @p8 made their first contribution in https://github.com/rails/thor/pull/810
Full Changelog: https://github.com/rails/thor/compare/v1.2.1...v1.2.2
- Ruby
Published by rafaelfranca almost 3 years ago
https://github.com/rails/thor - v1.2.1
What's Changed
- Fix regressions with
insert_into_file
Full Changelog: https://github.com/rails/thor/compare/v1.2.0...v1.2.1
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v1.2.0
What's Changed
- Support
Thor::CoreExt::HashWithIndifferentAccess#exceptfor Rails 6.0 by @koic in https://github.com/rails/thor/pull/734 - The klass parameter 'inject_into_class' should be given a string type.(also inject_into_module) by @ratovia in https://github.com/rails/thor/pull/752
- Added Shell::Basic#say_error by @postmodern in https://github.com/rails/thor/pull/750
- Check for duplicate content in relevant section when inserting into files by @excid3 in https://github.com/rails/thor/pull/735
- Loaded the directory under tasks. by @Mitsuru53 in https://github.com/rails/thor/pull/747
- Update
Thor::Actions#insideto return the value yielded by the block by @jordan-brough in https://github.com/rails/thor/pull/712 remove_fileshould unlink broken symlinks by @2called-chaos in https://github.com/rails/thor/pull/720- Use string interpolation for trailing whitespace by @jonathanhefner in https://github.com/rails/thor/pull/730
- Indent multiline messages in say_status by @jonathanhefner in https://github.com/rails/thor/pull/714
- Allow leading hyphen in switch values when specified with = by @univerio in https://github.com/rails/thor/pull/737
- Fix for #707 by @scambra in https://github.com/rails/thor/pull/708
- Support latest did_you_mean by @deivid-rodriguez in https://github.com/rails/thor/pull/761
New Contributors
- @ratovia made their first contribution in https://github.com/rails/thor/pull/752
- @excid3 made their first contribution in https://github.com/rails/thor/pull/735
- @Mitsuru53 made their first contribution in https://github.com/rails/thor/pull/747
- @jordan-brough made their first contribution in https://github.com/rails/thor/pull/712
- @2called-chaos made their first contribution in https://github.com/rails/thor/pull/720
- @univerio made their first contribution in https://github.com/rails/thor/pull/737
- @scambra made their first contribution in https://github.com/rails/thor/pull/708
Full Changelog: https://github.com/rails/thor/compare/v1.1.0...v1.2.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v1.0.1
What's Changed
- Move deprecation_warning to lib/thor/base.rb by @BrianHawley in https://github.com/rails/thor/pull/704
- Handle relative source path in create_link #identical? by @chrisandreae in https://github.com/rails/thor/pull/701
New Contributors
- @BrianHawley made their first contribution in https://github.com/rails/thor/pull/704
- @orien made their first contribution in https://github.com/rails/thor/pull/699
- @chrisandreae made their first contribution in https://github.com/rails/thor/pull/701
Full Changelog: https://github.com/rails/thor/compare/v1.0.0...v1.0.1
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v1.1.0
What's Changed
- Don't use ANSI colors when terminal is dumb by @tpope in https://github.com/rails/thor/pull/710
- Restore colors when TERM is unset by @tpope in https://github.com/rails/thor/pull/711
- Ensure default option/argument is not erroneously aliased by @tsontario in https://github.com/rails/thor/pull/715
- Update required rspec version by @bpo in https://github.com/rails/thor/pull/716
- Fix readline specs by @bpo in https://github.com/rails/thor/pull/717
- Fix another warning about $thor_runner by @bpo in https://github.com/rails/thor/pull/718
- Fixes a bug in the calculation of the print_wrapped method by @sergio-bobillier in https://github.com/rails/thor/pull/719
- Obey mute and options[:quiet] in Shell#say by @jonathanhefner in https://github.com/rails/thor/pull/729
- Use URI.open: Needed for Ruby 3 by @FloHeinle in https://github.com/rails/thor/pull/743
- Replace
setusages with arrays by @deivid-rodriguez in https://github.com/rails/thor/pull/746 - Add force option to the gsub_file action by @AMHOL in https://github.com/rails/thor/pull/745
New Contributors
- @tsontario made their first contribution in https://github.com/rails/thor/pull/715
- @bpo made their first contribution in https://github.com/rails/thor/pull/716
- @sergio-bobillier made their first contribution in https://github.com/rails/thor/pull/719
- @FloHeinle made their first contribution in https://github.com/rails/thor/pull/743
- @AMHOL made their first contribution in https://github.com/rails/thor/pull/745
Full Changelog: https://github.com/rails/thor/compare/v1.0.1...v1.1.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v1.0.0
What's Changed
- Drop support to Ruby 1.8 and 1.9 by @deivid-rodriguez in https://github.com/rails/thor/pull/664
- Fix typo by @yujideveloper in https://github.com/rails/thor/pull/638
- Fix erikhuda/thor#587 by @hugocorbucci in https://github.com/rails/thor/pull/639
- Do not require did_you_mean by @quixoten in https://github.com/rails/thor/pull/640
- Travis CI refresh by @deivid-rodriguez in https://github.com/rails/thor/pull/649
- Fix "warning: deprecated Object#=~ is called on Integer" by @y-yagi in https://github.com/rails/thor/pull/641
- Call super in hook methods by @azdavis in https://github.com/rails/thor/pull/667
- fix rescue of OpenURI by @sco11morgan in https://github.com/rails/thor/pull/663
- Prefer
require_relativefor internal requires by @deivid-rodriguez in https://github.com/rails/thor/pull/668 - Use absolute paths for internal autoloads by @deivid-rodriguez in https://github.com/rails/thor/pull/669
- Super up more by @azdavis in https://github.com/rails/thor/pull/670
- Allow Option to be repeatable by @dturn in https://github.com/rails/thor/pull/674
- Support the keyword separation feature on Ruby 2.7 by @hsbt in https://github.com/rails/thor/pull/673
- #542 Using Dir[] by @Soobrakay in https://github.com/rails/thor/pull/655
- Multiple usages by @deivid-rodriguez in https://github.com/rails/thor/pull/652
- Followup to ruby 1 support drop by @deivid-rodriguez in https://github.com/rails/thor/pull/676
- Suppress
URI.openwarning in Ruby 2.7 by @koic in https://github.com/rails/thor/pull/677 - Fix
--skip-fooswitches when there's a trailing non-switch by @deivid-rodriguez in https://github.com/rails/thor/pull/679 - Amend
--skip-foofix with a trailing option by @deivid-rodriguez in https://github.com/rails/thor/pull/682 - Respect the use of the NO_COLOR environment variable by @coderjoe in https://github.com/rails/thor/pull/684
- Fix TypeError when no config given and warn if file unchanged by @enigmatt-pl in https://github.com/rails/thor/pull/683
- Fix uninitialized global variable warning by @deivid-rodriguez in https://github.com/rails/thor/pull/686
- Lazily require
readlineby @deivid-rodriguez in https://github.com/rails/thor/pull/689 - Restore old check on
completion_proc=by @deivid-rodriguez in https://github.com/rails/thor/pull/690 - Add :env option to Actions#run by @jonathanhefner in https://github.com/rails/thor/pull/692
- Deprecate relying on default exit_on_failure? by @marcandre in https://github.com/rails/thor/pull/625
In preparation to make Thor commands exit when there is a failure we are deprecating
defining a command without defining what behavior is expected when there is a failure.
To fix the deprecation you need to define a class method calledexit_on_failure?returning
falseif you want the current behavior ortrueif you want the new behavior. - Add :case-insensitive flag to allow case-insensitive matching for :limited_to options by @devanhurst in https://github.com/rails/thor/pull/644
- Deprecate default check by @marcandre in https://github.com/rails/thor/pull/626
- Abort if the command for
runfails andexit_on_failure?is true by @hibariya in https://github.com/rails/thor/pull/651 - More accurate Arguments#current_is_value? check by @timothysmith0609 in https://github.com/rails/thor/pull/691
- Escapes HTML content when setting colors. by @pradyumna2905 in https://github.com/rails/thor/pull/693
- IO.binread is provided since ruby 1.9 by @deivid-rodriguez in https://github.com/rails/thor/pull/694
- Remove unnecessary "uri" require by @deivid-rodriguez in https://github.com/rails/thor/pull/695
- Lazily load open3 by @deivid-rodriguez in https://github.com/rails/thor/pull/696
- Allow for nested no_commands blocks. by @tmfnll in https://github.com/rails/thor/pull/697
New Contributors
- @yujideveloper made their first contribution in https://github.com/rails/thor/pull/638
- @hugocorbucci made their first contribution in https://github.com/rails/thor/pull/639
- @quixoten made their first contribution in https://github.com/rails/thor/pull/640
- @azdavis made their first contribution in https://github.com/rails/thor/pull/667
- @sco11morgan made their first contribution in https://github.com/rails/thor/pull/663
- @jmkim made their first contribution in https://github.com/rails/thor/pull/662
- @dturn made their first contribution in https://github.com/rails/thor/pull/674
- @olleolleolle made their first contribution in https://github.com/rails/thor/pull/653
- @Soobrakay made their first contribution in https://github.com/rails/thor/pull/655
- @coderjoe made their first contribution in https://github.com/rails/thor/pull/684
- @enigmatt-pl made their first contribution in https://github.com/rails/thor/pull/683
- @devanhurst made their first contribution in https://github.com/rails/thor/pull/644
- @hibariya made their first contribution in https://github.com/rails/thor/pull/651
- @timothysmith0609 made their first contribution in https://github.com/rails/thor/pull/691
- @pradyumna2905 made their first contribution in https://github.com/rails/thor/pull/693
- @tmfnll made their first contribution in https://github.com/rails/thor/pull/697
Full Changelog: https://github.com/rails/thor/compare/v0.20.3...v1.0.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.20.3
What's Changed
- Add care about old version of
did_you_meanby @y-yagi in https://github.com/rails/thor/pull/637
Full Changelog: https://github.com/rails/thor/compare/v0.20.2...v0.20.3
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.20.2
What's Changed
- Remove the globally installed gem by rvm by @y-yagi in https://github.com/rails/thor/pull/636
Full Changelog: https://github.com/rails/thor/compare/v0.20.1...v0.20.2
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.20.1
What's Changed
- Deprecate safe_level of ERB.new in Ruby 2.6 by @koic in https://github.com/rails/thor/pull/594
- Make sure future versions of ERB are invoked appropriately by @utilum in https://github.com/rails/thor/pull/599
- Fix comment_lines regexp by @jonathanhefner in https://github.com/rails/thor/pull/600
- Add
mergeaction to file colision menu by @y-yagi in https://github.com/rails/thor/pull/605 - Fix incorrect use of Process::exit. This fixes open issue #244. by @jmax315 in https://github.com/rails/thor/pull/578
- Use correct line numbers for
class_evalandmodule_evalmethods by @pocke in https://github.com/rails/thor/pull/589 - Fix check_unknown_options! when parsing gets stopped by @MaxLap in https://github.com/rails/thor/pull/618
- Fix edge cases in
#relative_to_original_destination_rootby @MaxLap in https://github.com/rails/thor/pull/620 - Remove duplicate option creation in spec by @marcandre in https://github.com/rails/thor/pull/623
- Fix print_wrapped to properly parse "\x5" newline character by @Choms in https://github.com/rails/thor/pull/616
- Abort when
runsubprocess fail by @deivid-rodriguez in https://github.com/rails/thor/pull/628 - Support did-you-mean functionality in thor by @kddnewton in https://github.com/rails/thor/pull/630
New Contributors
- @sschuberth made their first contribution in https://github.com/rails/thor/pull/572
- @sshaw made their first contribution in https://github.com/rails/thor/pull/576
- @lostapathy made their first contribution in https://github.com/rails/thor/pull/583
- @yahonda made their first contribution in https://github.com/rails/thor/pull/598
- @utilum made their first contribution in https://github.com/rails/thor/pull/599
- @pallan made their first contribution in https://github.com/rails/thor/pull/601
- @jmax315 made their first contribution in https://github.com/rails/thor/pull/578
- @bosoxbill made their first contribution in https://github.com/rails/thor/pull/611
- @pocke made their first contribution in https://github.com/rails/thor/pull/589
- @MaxLap made their first contribution in https://github.com/rails/thor/pull/618
- @Choms made their first contribution in https://github.com/rails/thor/pull/616
- @kddnewton made their first contribution in https://github.com/rails/thor/pull/630
Full Changelog: https://github.com/rails/thor/compare/v0.20.0...v0.20.1
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.20.0
What's Changed
- fix subcommand method help by @akm in https://github.com/rails/thor/pull/464
- Lazy-load io/console to avoid activating the gem unecessarily by @segiddins in https://github.com/rails/thor/pull/539
- Fix injecting into file which contains chinese by @lingceng in https://github.com/rails/thor/pull/528
- Inject into Modules by @revans in https://github.com/rails/thor/pull/515
- Template stacktraces by @maxlinc in https://github.com/rails/thor/pull/432
- Specify an explicit external encoding for tests by @TimMoore in https://github.com/rails/thor/pull/392
- Add
disable_required_check!to disable check for required options in some commands by @rafaelfranca in https://github.com/rails/thor/pull/545
It is a substitute ofdisable_class_optionsthat was not working as intended. - Make HashWithIndifferentAccess handle reverse_merge by @tejasbubane in https://github.com/rails/thor/pull/550
- Fix
warning: File.exists?in CI by @takkanm in https://github.com/rails/thor/pull/557 - update Simplecov dependency version by @takkanm in https://github.com/rails/thor/pull/556
- use latest ruby version in CI by @takkanm in https://github.com/rails/thor/pull/558
- Lazy-load date & fileutils gems by @segiddins in https://github.com/rails/thor/pull/560
- Avoid extra spaces from nil/false switches in Options.to_switches by @segiddins in https://github.com/rails/thor/pull/565
- refactor ordered_hash_spec by @colby-swandale in https://github.com/rails/thor/pull/566
- Prevent infinite loop on file collision when stdin closed by @tpope in https://github.com/rails/thor/pull/563
- Fix instance variable not initialized warning by @matthewd in https://github.com/rails/thor/pull/562
- Fix commands running even with pretend enabled by @DuoSRX in https://github.com/rails/thor/pull/559
- Fix "file clash" bug by @nodo in https://github.com/rails/thor/pull/541
- Feature/dont replace nonexistant files by @vcavallo in https://github.com/rails/thor/pull/505
- Add
check_default_type!to check if the default value of an option matches the defined type by @rafaelfranca in https://github.com/rails/thor/pull/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 https://github.com/rails/thor/pull/574
- Fix --no-opt boolean parsing when followed by an argument by @danajp in https://github.com/rails/thor/pull/575
- Updates so things work with frozen string literals by @pat in https://github.com/rails/thor/pull/567
- Add
inject_into_module
New Contributors
- @timrogers made their first contribution in https://github.com/rails/thor/pull/535
- @akm made their first contribution in https://github.com/rails/thor/pull/464
- @lingceng made their first contribution in https://github.com/rails/thor/pull/528
- @revans made their first contribution in https://github.com/rails/thor/pull/515
- @maxlinc made their first contribution in https://github.com/rails/thor/pull/432
- @tejasbubane made their first contribution in https://github.com/rails/thor/pull/550
- @takkanm made their first contribution in https://github.com/rails/thor/pull/557
- @colby-swandale made their first contribution in https://github.com/rails/thor/pull/566
- @matthewd made their first contribution in https://github.com/rails/thor/pull/562
- @DuoSRX made their first contribution in https://github.com/rails/thor/pull/559
- @nodo made their first contribution in https://github.com/rails/thor/pull/541
- @vcavallo made their first contribution in https://github.com/rails/thor/pull/505
- @yhirano55 made their first contribution in https://github.com/rails/thor/pull/574
- @danajp made their first contribution in https://github.com/rails/thor/pull/575
- @pat made their first contribution in https://github.com/rails/thor/pull/567
Full Changelog: https://github.com/rails/thor/compare/v0.19.4...v0.20.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.19.4
What's Changed
- Rename
Thor::Base#thor_reserved_word?to#is_thor_reserved_word?
Full Changelog: https://github.com/rails/thor/compare/v0.19.3...v0.19.4
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - 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: https://github.com/rails/thor/compare/v0.19.2...v0.19.3
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.19.2
What's Changed
- fix 'thor_script subcommand [args] --help' 🌈 by @doudou in https://github.com/rails/thor/pull/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#indentmethod for intending output - Fix
remove_commandfor 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::HashWithIndifferentAccesswith 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
- @yui-knk made their first contribution in https://github.com/rails/thor/pull/511
- @doudou made their first contribution in https://github.com/rails/thor/pull/501
Full Changelog: https://github.com/rails/thor/compare/v0.19.1...v0.19.2
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.19.1
What's Changed
- Fix
saynon-String break regression
Full Changelog: https://github.com/rails/thor/compare/v0.19.0...v0.19.1
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - 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: https://github.com/rails/thor/compare/v0.18.1...v0.19.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.18.1
What's Changed
- Revert regressions found in 0.18.0
Full Changelog: https://github.com/rails/thor/compare/v0.18.0...v0.18.1
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - 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: https://github.com/rails/thor/compare/v0.17.0...v0.18.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.17.0
What's Changed
- Add better support for tasks that accept arbitrary additional arguments (e.g. things like
bundle exec) - Add #stop_on_unknown_option!
- Only strip from stdin.gets if it wasn't ended with EOF
- Allow "send" as a task name
- Allow passing options as arguments after "--"
- Autoload Thor::Group
Full Changelog: https://github.com/rails/thor/compare/v0.16.0...v0.17.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.16.0
What's Changed
- Add enum to string arguments
Full Changelog: https://github.com/rails/thor/compare/v0.15.4...v0.16.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.15.4
What's Changed
- Fix regression when destination root contains reserved regexp characters
Full Changelog: https://github.com/rails/thor/compare/v0.15.2...v0.15.4
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.15.2
What's Changed
- Added print_in_columns
- Exposed terminal_width as a public API
Full Changelog: https://github.com/rails/thor/compare/v0.15.1...v0.15.2
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.15.1
What's Changed
- Fix Ruby 1.8 truncation bug with unicode chars
- Fix shell delegate methods to pass their block
- Don't output trailing spaces when printing the last column in a table
Full Changelog: https://github.com/rails/thor/compare/v0.15.0...v0.15.1
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.15.0
What's Changed
- Alias method_options to options
- Refactor say to allow multiple colors
- Exposed error as a public API
- Exposed file_collision as a public API
- Exposed print_wrapped as a public API
- Exposed set_color as a public API
- Fix number-formatting bugs in print_table
- Fix "indent" typo in print_table
- Fix Errno::EPIPE when piping tasks to
head - More friendly error messages
Full Changelog: https://github.com/rails/thor/compare/v0.14.6...v0.15.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.14.0
What's Changed
- Added CreateLink class and #link_file method
- Made Thor::Actions#run use system as default method for system calls
- Allow use of private methods from superclass as tasks
- Added mute(&block) method which allows to run block without any output
- Removed config[:pretend]
- Enabled underscores for command line switches
- Added Thor::Base.basename which is used by both Thor.banner and Thor::Group.banner
- Deprecated invoke() without arguments
- Added :only and :except to check_unknown_options
Full Changelog: https://github.com/rails/thor/compare/v0.13.8...v0.14.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.13.0
What's Changed
- Added :lazy_default which is only triggered if a switch is given
- Added Thor::Shell::HTML
- Added subcommands
- Decoupled Thor::Group and Thor, so it's easier to vendor
- Added check_unknown_options! in case you want error messages to be raised in valid switches
- run(command) should return the results of command
Full Changelog: https://github.com/rails/thor/compare/v0.12.3...v0.13.0
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.9.5
What's Changed
- Improve Windows compatibility
- Update (incorrect) README and task.thor sample file
- Options hash is now frozen (once returned)
- Allow magic predicates on options object. For instance:
options.force? - Add support for :numeric type
- BACKWARDS INCOMPATIBLE: Refactor Thor::Options. You cannot access shorthand forms in options hash anymore (for instance, options[:f])
- Allow specifying optional args with default values: method_options(:user => "mislav")
- Don't write options for nil or false values. This allows, for example, turning color off when running specs.
- Exit with the status of the spec command to help CI stuff out some.
Full Changelog: https://github.com/rails/thor/compare/0.9.4...0.9.5
- Ruby
Published by rafaelfranca about 4 years ago
https://github.com/rails/thor - v0.9.4
What's Changed
- Try to add Windows compatibility.
- BACKWARDS INCOMPATIBLE: options hash is now accessed as a property in your class and is not passed as last argument anymore
- Allow options at the beginning of the argument list as well as the end.
- Make options available with symbol keys in addition to string keys.
- Allow true to be passed to Thor#method_options to denote a boolean option.
- If loading a thor file fails, don't give up, just print a warning and keep going.
- Make sure that we re-raise errors if they happened further down the pipe than we care about.
- Only delete the old file on updating when the installation of the new one is a success
- Make it Ruby 1.8.5 compatible.
- Don't raise an error if a boolean switch is defined multiple times.
- Thor::Options now doesn't parse through things that look like options but aren't.
- Add URI detection to install task, and make sure we don't append ".thor" to URIs
- Add rake2thor to the gem binfiles.
- Make sure local Thorfiles override system-wide ones.
Full Changelog: https://github.com/rails/thor/compare/0.9.2...0.9.4
- Ruby
Published by rafaelfranca about 4 years ago