Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.66 KB

NEWS.md

File metadata and controls

51 lines (31 loc) · 1.66 KB

Change Log

4.0.4

  • Skip building the C extension for JRuby #52

4.0.3

  • Enable frozen_string_literal in all files #49

4.0.2

  • Fix line numbers after multi-line <%# #42

4.0.1

  • Stop building the C extension for TruffleRuby #39

4.0.0

  • Optimize ERB::Util.html_escape #27
    • No longer duplicate an argument string when nothing is escaped.
      • This makes ERB::Util.html_escape faster than CGI.escapeHTML in no-escape cases.
    • It skips calling #to_s when an argument is already a String.
  • Define ERB::Escape.html_escape as an alias to ERB::Util.html_escape #38
    • ERB::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 from erb command

3.0.0

  • 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

2.2.3

  • Bump required_ruby_version from 2.3 to 2.5 as it has never been supported #3

2.2.2

  • ERB.version returns just a version number
  • ERB::Revision is deprecated

2.2.1

  • ERB#initialize warns safe_level and later arguments even without -w

2.2.0

  • Ruby 3.0 promoted ERB to a default gem