commander-rb / commander

The complete solution for Ruby command-line executables
MIT License
822 stars 74 forks source link

Fix ERB for Ruby v2.7 warnings (no. 2) #93

Closed esotericpig closed 4 years ago

esotericpig commented 4 years ago

Try no. 2 to fix Ruby v2.7 warnings.

~/.gem/ruby/2.7.0/gems/commander-4.5.1/lib/commander/help_formatters/terminal.rb:15: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
~/.gem/ruby/2.7.0/gems/commander-4.5.1/lib/commander/help_formatters/terminal.rb:15: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
ggilder commented 4 years ago

Looks good, thank you!

ggilder commented 4 years ago

Released in v4.5.2