Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Ruby 3.1 deprecation warning with ERB.new (#1108)
* Fix Ruby 3.1 deprecation warning with ERB.new This eliminates the warning: ``` warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead. ``` Per https://bugs.ruby-lang.org/issues/14256, `trim_mode` needs to be a keyword argument. This is compatible with Ruby 2.7 and on. Signed-off-by: Stan Hu <stanhu@gmail.com> * Remove safe_level argument as it's deprecated too Signed-off-by: Vikram Karve <vikram.karve@progress.com> --------- Signed-off-by: Stan Hu <stanhu@gmail.com> Signed-off-by: Vikram Karve <vikram.karve@progress.com> Co-authored-by: Vikram Karve <85881329+vkarve-chef@users.noreply.github.com>
- Loading branch information