- Prohibit
def_methodon marshal-loaded ERB instances
- Exclude some files from published gem #108
- Freeze
srcinERB#initializefor Ractor compatibility #105
- Prohibit
def_methodon marshal-loaded ERB instances
- Freeze
ERB::Compiler::TrimScanner::ERB_STAGfor Ractor compatibility
- Remove
safe_leveland further positional arguments fromERB.new - Remove deprecated constant
ERB::Revision
- Release v5.1.2 with trusted publishing for JRuby
- Add
changelog_urito spec metadata #89
- Fix integer overflow that is introduced at v5.1.0
- html_escape: Avoid buffer allocation for strings with no escapable character #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
- Prohibit
def_methodon marshal-loaded ERB instances
- Skip building the C extension for JRuby
- Prohibit
def_methodon marshal-loaded ERB instances
- 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