Skip to content

Reapply "Remove safe_level and further positional arguments (#7)"#95

Merged
k0kubun merged 1 commit intoruby:masterfrom
k0kubun:remove-safe-level
Nov 12, 2025
Merged

Reapply "Remove safe_level and further positional arguments (#7)"#95
k0kubun merged 1 commit intoruby:masterfrom
k0kubun:remove-safe-level

Conversation

@k0kubun
Copy link
Copy Markdown
Member

@k0kubun k0kubun commented Nov 12, 2025

This reverts commit 1c02d23.

Since we're cutting a Ruby 4.0 release, it's a good opportunity to revisit it. It's been deprecated for 7 years since Ruby 2.6. You should be able to install an older erb if an older sprockets doesn't work, anyway.

References

  • Feb, 2018: https://bugs.ruby-lang.org/issues/14256
    • Ruby 2.5's ERB.new interface will continue to be available until Ruby 2.5 becomes EOL.
    • We'll remove all of deprecated ones at Ruby 2.7+.
  • Dec, 2018: https://bugs.ruby-lang.org/issues/15478
    • Eric Wong: 3 years deprecation is way too fast for users on LTS systems.
  • Jan, 2022: 1c02d23
    • Given that the ERB.version change was released at 3.1 and it's obviously new, I'll skip this removal in 3.2 and postpone this to a future version.

@k0kubun k0kubun merged commit 4162a24 into ruby:master Nov 12, 2025
8 checks passed
@k0kubun k0kubun deleted the remove-safe-level branch November 12, 2025 19:53
matzbot pushed a commit to ruby/ruby that referenced this pull request Nov 12, 2025
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.

1 participant