Skip to content

Conversation

@piyushawasthi
Copy link

/workspaces/warbler/lib/warbler/jar.rb:288: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/workspaces/warbler/lib/warbler/jar.rb:288: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.

@olleolleolle
Copy link
Member

So, we are running many versions of Ruby (as JRuby versions), and we probably need to support more argument lists than the new one.

I suggest adding a conditional, checking that the keyword argument way of doing things is available.

@doconnor-clintel
Copy link

May be worth as a separate PR dropping some of the older jruby versions as unsupported from CI.

end

after(:all) { ENV.clear; ENV.update @@_env }
# after(:all) { ENV.clear; ENV.update @@_env }
Copy link

@doconnor-clintel doconnor-clintel Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really need to be commented out; vs just replaced?

Copy link
Member

@kares kares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned already, erb = ERB.new(File.read(file), trim_mode: '-') looks good.

the rest (dotenv) isn't really needed in a library and should be removed. 🙏

@chadlwilson
Copy link
Contributor

This was subsequently fixed in #559 so can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants