Skip to content

ERB.new arguments deprecated #2417

Description

@dmalan

Question 1: What is the problem?

  • What is the actual behavior?

Deprecation notices appear on startup, re https://github.com/phusion/passenger/blob/stable-6.0/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb#L282:

/usr/lib/ruby/vendor_ruby/phusion_passenger/standalone/start_command/nginx_engine.rb:282: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
/usr/lib/ruby/vendor_ruby/phusion_passenger/standalone/start_command/nginx_engine.rb:282: warning: Passing eoutvar with the 4th argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, eoutvar: ...) instead.
  • How can we reproduce it?
git clone https://gist.github.com/b6141f5d2730df8e28ff8961bc896bab.git
cd b6141f5d2730df8e28ff8961bc896bab
docker compose up

Question 2: Passenger version and integration mode:

Passenger 6.0.12-1~focal1 standalone

Question 3: OS or Linux distro, platform (including version):

Ubuntu 20.04 LTS x86_64

Question 4: Passenger installation method:

[x] Phusion APT repo

Question 5: Your app's programming language (including any version managers) and framework (including versions):

Ruby 3.1.1p18

Question 6: Are you using a PaaS and/or containerization? If so which one?

Docker 20.10.12 using https://github.com/cs50/server/blob/main/Dockerfile, which is based on https://github.com/cs50/cli/blob/main/Dockerfile.

Thank you!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions