- Skip building the C extension for JRuby #52
- Enable
frozen_string_literal
in all files #49
- Fix line numbers after multi-line
<%#
#42
- Stop building the C extension for TruffleRuby #39
- Optimize
ERB::Util.html_escape
#27- No longer duplicate an argument string when nothing is escaped.
- This makes
ERB::Util.html_escape
faster thanCGI.escapeHTML
in no-escape cases.
- This makes
- It skips calling
#to_s
when an argument is already a String.
- No longer duplicate an argument string when nothing is escaped.
- Define
ERB::Escape.html_escape
as an alias toERB::Util.html_escape
#38ERB::Util.html_escape
is known to be monkey-patched by Rails.ERB::Escape.html_escape
is useful when you want a non-monkey-patched version.
- Drop deprecated
-S
option fromerb
command
- Bump
required_ruby_version
to Ruby 2.7+ #23 ERB::Util.url_encode
uses a native implementation #23- Fix a bug that a magic comment with a wrong format could be detected #6
- Bump
required_ruby_version
from 2.3 to 2.5 as it has never been supported #3
ERB.version
returns just a version numberERB::Revision
is deprecated
ERB#initialize
warnssafe_level
and later arguments even without -w
- Ruby 3.0 promoted ERB to a default gem