rails / thor

Thor is a toolkit for building powerful command-line interfaces.
http://whatisthor.com/
MIT License
5.11k stars 552 forks source link

Remove String#encode conditional required by Ruby < 2.6 #867

Closed p8 closed 4 months ago

p8 commented 6 months ago

As Thor requires Ruby >= 2.6 we don't need to check if String responds to #encode, as this is supported since Ruby 1.9.2 at least: https://www.rubydoc.info/stdlib/core/1.9.2/String:encode