Releases: rails/thor
Releases · rails/thor
1.3.2
What's Changed
- Fix a few typos in README by @duffuniverse in #880
- Correctly identify hyphenated and alias command names by @takmar in #878
New Contributors
- @duffuniverse made their first contribution in #880
Full Changelog: v1.3.1...v1.3.2
1.3.1
What's Changed
- Preserve Correct Indentation When Uncommenting Lines by @viktorianer in #873
- Document the '--skip-' option for boolean options. by @andrewn617 in #876
New Contributors
- @takmar made their first contribution in #865
- @m-nakamura145 made their first contribution in #866
- @cprodhomme made their first contribution in #863
- @ancao90 made their first contribution in #872
- @viktorianer made their first contribution in #873
- @andrewn617 made their first contribution in #876
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's Changed
- use the correct class for shared namespaces by @Gerst20051 in #754
- Allow to Override Order of Commands in Help by @alessio-signorini in #642
- Add support for providing http headers to get by @dnlgrv in #801
- Don't document negative boolean option named
no_*
by @BrentWheeldon in #797 - CreateFile#identical? fixed for files containing multi-byte UTF-8 codepoints by @tomclose in #786
- Drop support to Ruby 2.6 by @rafaelfranca in #821
- Fix dashless option usage info by @sambostock in #800
- Support Range in enum option by @phene in #775
- Check if
type: array
values are inenum
by @movermeyer in #784 - Fix inject into file warning by @nicolas-brousse in #709
- Support
Thor::CoreExt::HashWithIndifferentAccess#slice
method by @shuuuuun in #812 - 🌧️ long_desc: new option to disable wrapping by @igneus in #739
- Print default in help when option type is :boolean and default is false by @nevesenin in #849
- Silence encoding warnings in specs by @p8 in #857
- Validate arguments for
method_option
andclass_option
by @p8 in #856 - Fix help for file_collision method without block by @shuuuuun in #858
- Extract print methods to seperate classes by @p8 in #854
- Add support for printing tables with borders by @p8 in #855
- Fix printing tables with borders and indentation by @p8 in #861
New Contributors
- @Gerst20051 made their first contribution in #754
- @alessio-signorini made their first contribution in #642
- @dnlgrv made their first contribution in #801
- @BrentWheeldon made their first contribution in #797
- @tomclose made their first contribution in #786
- @sambostock made their first contribution in #800
- @phene made their first contribution in #775
- @movermeyer made their first contribution in #784
- @nicolas-brousse made their first contribution in #709
- @shuuuuun made their first contribution in #812
- @igneus made their first contribution in #739
- @nevesenin made their first contribution in #849
Full Changelog: v1.2.2...v1.3.0
v1.2.2
What's Changed
- Respect implicit encoding of thorfiles by @timdiggins in #782
- Switch hash from MD5 to SHA256 by @stanhu in #785
- Respect the updated NO_COLOR specification by @coderjoe in #796
- Remove support for deprecated OS by @peterzhu2118 in #798
- Support
thor install <uri>
to install remote thor files by @deivid-rodriguez in #787 - Update error message for content already exists case. by @jpgeek in #799
- Allow setting file permissions with create_file by @skipkayhil in #820
- Properly pad aliases for option usage by @p8 in #810
New Contributors
- @ytkg made their first contribution in #767
- @timdiggins made their first contribution in #780
- @stanhu made their first contribution in #785
- @jdufresne made their first contribution in #806
- @peterzhu2118 made their first contribution in #798
- @casperisfine made their first contribution in #807
- @jpgeek made their first contribution in #799
- @skipkayhil made their first contribution in #820
- @p8 made their first contribution in #810
Full Changelog: v1.2.1...v1.2.2
v1.2.1
v1.2.0
What's Changed
- Support
Thor::CoreExt::HashWithIndifferentAccess#except
for Rails 6.0 by @koic in #734 - The klass parameter 'inject_into_class' should be given a string type.(also inject_into_module) by @ratovia in #752
- Added Shell::Basic#say_error by @postmodern in #750
- Check for duplicate content in relevant section when inserting into files by @excid3 in #735
- Loaded the directory under tasks. by @Mitsuru53 in #747
- Update
Thor::Actions#inside
to return the value yielded by the block by @jordan-brough in #712 remove_file
should unlink broken symlinks by @2called-chaos in #720- Use string interpolation for trailing whitespace by @jonathanhefner in #730
- Indent multiline messages in say_status by @jonathanhefner in #714
- Allow leading hyphen in switch values when specified with = by @univerio in #737
- Fix for #707 by @scambra in #708
- Support latest did_you_mean by @deivid-rodriguez in #761
New Contributors
- @ratovia made their first contribution in #752
- @excid3 made their first contribution in #735
- @Mitsuru53 made their first contribution in #747
- @jordan-brough made their first contribution in #712
- @2called-chaos made their first contribution in #720
- @univerio made their first contribution in #737
- @scambra made their first contribution in #708
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
- Don't use ANSI colors when terminal is dumb by @tpope in #710
- Restore colors when TERM is unset by @tpope in #711
- Ensure default option/argument is not erroneously aliased by @tsontario in #715
- Update required rspec version by @bpo in #716
- Fix readline specs by @bpo in #717
- Fix another warning about $thor_runner by @bpo in #718
- Fixes a bug in the calculation of the print_wrapped method by @sergio-bobillier in #719
- Obey mute and options[:quiet] in Shell#say by @jonathanhefner in #729
- Use URI.open: Needed for Ruby 3 by @FloHeinle in #743
- Replace
set
usages with arrays by @deivid-rodriguez in #746 - Add force option to the gsub_file action by @AMHOL in #745
New Contributors
- @tsontario made their first contribution in #715
- @bpo made their first contribution in #716
- @sergio-bobillier made their first contribution in #719
- @FloHeinle made their first contribution in #743
- @AMHOL made their first contribution in #745
Full Changelog: v1.0.1...v1.1.0
v1.0.1
What's Changed
- Move deprecation_warning to lib/thor/base.rb by @BrianHawley in #704
- Handle relative source path in create_link #identical? by @chrisandreae in #701
New Contributors
- @BrianHawley made their first contribution in #704
- @orien made their first contribution in #699
- @chrisandreae made their first contribution in #701
Full Changelog: v1.0.0...v1.0.1
v1.0.0
What's Changed
- Drop support to Ruby 1.8 and 1.9 by @deivid-rodriguez in #664
- Fix typo by @yujideveloper in #638
- Fix #587 by @hugocorbucci in #639
- Do not require did_you_mean by @quixoten in #640
- Travis CI refresh by @deivid-rodriguez in #649
- Fix "warning: deprecated Object#=~ is called on Integer" by @y-yagi in #641
- Call super in hook methods by @azdavis in #667
- fix rescue of OpenURI by @sco11morgan in #663
- Prefer
require_relative
for internal requires by @deivid-rodriguez in #668 - Use absolute paths for internal autoloads by @deivid-rodriguez in #669
- Super up more by @azdavis in #670
- Allow Option to be repeatable by @dturn in #674
- Support the keyword separation feature on Ruby 2.7 by @hsbt in #673
- #542 Using Dir[] by @soobrakay in #655
- Multiple usages by @deivid-rodriguez in #652
- Followup to ruby 1 support drop by @deivid-rodriguez in #676
- Suppress
URI.open
warning in Ruby 2.7 by @koic in #677 - Fix
--skip-foo
switches when there's a trailing non-switch by @deivid-rodriguez in #679 - Amend
--skip-foo
fix with a trailing option by @deivid-rodriguez in #682 - Respect the use of the NO_COLOR environment variable by @coderjoe in #684
- Fix TypeError when no config given and warn if file unchanged by @enigmatt-pl in #683
- Fix uninitialized global variable warning by @deivid-rodriguez in #686
- Lazily require
readline
by @deivid-rodriguez in #689 - Restore old check on
completion_proc=
by @deivid-rodriguez in #690 - Add :env option to Actions#run by @jonathanhefner in #692
- Deprecate relying on default exit_on_failure? by @marcandre in #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
false
if you want the current behavior ortrue
if you want the new behavior. - Add :case-insensitive flag to allow case-insensitive matching for :limited_to options by @devanhurst in #644
- Deprecate default check by @marcandre in #626
- Abort if the command for
run
fails andexit_on_failure?
is true by @hibariya in #651 - More accurate Arguments#current_is_value? check by @timothysmith0609 in #691
- Escapes HTML content when setting colors. by @pradyumna2905 in #693
- IO.binread is provided since ruby 1.9 by @deivid-rodriguez in #694
- Remove unnecessary "uri" require by @deivid-rodriguez in #695
- Lazily load open3 by @deivid-rodriguez in #696
- Allow for nested no_commands blocks. by @tmfnll in #697
New Contributors
- @yujideveloper made their first contribution in #638
- @hugocorbucci made their first contribution in #639
- @quixoten made their first contribution in #640
- @azdavis made their first contribution in #667
- @sco11morgan made their first contribution in #663
- @jmkim made their first contribution in #662
- @dturn made their first contribution in #674
- @olleolleolle made their first contribution in #653
- @soobrakay made their first contribution in #655
- @coderjoe made their first contribution in #684
- @enigmatt-pl made their first contribution in #683
- @devanhurst made their first contribution in #644
- @hibariya made their first contribution in #651
- @timothysmith0609 made their first contribution in #691
- @pradyumna2905 made their first contribution in #693
- @tmfnll made their first contribution in #697
Full Changelog: v0.20.3...v1.0.0
v0.20.3
What's Changed
Full Changelog: v0.20.2...v0.20.3