- html_escape: Avoid buffer allocation for strings with no escapable character ruby#87
- Update help of erb(1) #85
- Declare escape functions as Ractor-safe #63
- Rescue
LoadErrorwhen failing to loaderb/escape
- Bump
required_ruby_versionto Ruby 3.2+ #60 - Drop
cgifrom runtime dependencies #59 - Make
ERB::VERSIONpublic
- Skip building the C extension for JRuby #52
- Enable
frozen_string_literalin 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_escapefaster thanCGI.escapeHTMLin no-escape cases.
- This makes
- It skips calling
#to_swhen an argument is already a String.
- No longer duplicate an argument string when nothing is escaped.
- Define
ERB::Escape.html_escapeas an alias toERB::Util.html_escape#38ERB::Util.html_escapeis known to be monkey-patched by Rails.ERB::Escape.html_escapeis useful when you want a non-monkey-patched version.
- Drop deprecated
-Soption fromerbcommand
- Bump
required_ruby_versionto Ruby 2.7+ #23 ERB::Util.url_encodeuses a native implementation #23- Fix a bug that a magic comment with a wrong format could be detected #6
- Bump
required_ruby_versionfrom 2.3 to 2.5 as it has never been supported #3
ERB.versionreturns just a version numberERB::Revisionis deprecated
ERB#initializewarnssafe_leveland later arguments even without -w
- Ruby 3.0 promoted ERB to a default gem