Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for safe_level, trim_mode argument of ERB.new is deprecated warning #550

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants