ttscoff/doing

Warning about ERB.new being deprecated

ansonlos opened this issue · 3 comments

Am getting the following warnings every time doing (ver 1.0.35) is executed:

/usr/local/lib/ruby/gems/3.0.0/gems/gli-2.19.2/lib/gli/commands/help_modules/global_help_format.rb:37: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.

/usr/local/lib/ruby/gems/3.0.0/gems/gli-2.19.2/lib/gli/commands/help_modules/global_help_format.rb:37: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.

/usr/local/lib/ruby/gems/3.0.0/gems/gli-2.19.2/lib/gli/commands/help_modules/command_help_format.rb:28: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.

Any way to suppress these warnings?

Got a fix for this upstream, should be able to release a new gem update shortly.

I can confirm the latest update to the GLI gem (ver. 2.20.0) has now fixed the issue. The warnings no longer appear.

Thanks Brett!