summaryrefslogtreecommitdiff
path: root/lib/erb.rb
AgeCommit message (Collapse)Author
2026-04-21[ruby/erb] Prohibit def_method on marshal-loaded ERB instancesTakashi Kokubun
Extends the @_init guard to def_method so that an ERB object created via Marshal.load (which bypasses initialize) raises ArgumentError instead of evaluating arbitrary source. def_module and def_class both delegate to def_method and are covered by the same check. Co-authored-by: Tristan Madani <TristanInSec@gmail.com>
2025-11-12[ruby/erb] Drop a deprecated constant ERB::RevisionTakashi Kokubun
https://github.com/ruby/erb/commit/1f83b2578f
2025-11-12[ruby/erb] Drop an obsolete constant ERB::NOT_GIVENTakashi Kokubun
and update some documentation https://github.com/ruby/erb/commit/9da628f21c
2025-11-12Reapply "[ruby/erb] Reapply "Remove safe_level and further positional"Takashi Kokubun
This reverts commit 5b6658a406b5f1c535aed4cb68e8e18a3cbabb81. With a ruby spec fix.
2025-11-12Revert "[ruby/erb] Reapply "Remove safe_level and further positional"Takashi Kokubun
This reverts commit 6ea4f36716f8970f418f32837575405ddeea75aa. I'll fix ruby/spec shortly. For now, let me just revert it for ruby/ruby.
2025-11-12[ruby/erb] Reapply "Remove safe_level and further positionalTakashi Kokubun
arguments (https://github.com/ruby/erb/pull/7)" (https://github.com/ruby/erb/pull/95) This reverts commit https://github.com/ruby/erb/commit/1c02d23dc618. https://github.com/ruby/erb/commit/4162a24ecc
2025-11-05[ruby/erb] Fix tag shown in example of ERB expression tag andSam Partington
execution tag (https://github.com/ruby/erb/pull/92) These were the wrong way around. https://github.com/ruby/erb/commit/50a5cd76fe
2025-11-02[ruby/erb] Fix typo in documentationAlejandro Exojo
(https://github.com/ruby/erb/pull/91) https://github.com/ruby/erb/commit/6bceee7d6e
2025-09-26[ruby/erb] Enhancements (mostly documentation)Burdette Lamar
(https://github.com/ruby/erb/pull/85) https://github.com/ruby/erb/commit/692597b9a2
2025-09-22[ruby/erb] [DOC] Correct two errorsBurdetteLamar
https://github.com/ruby/erb/commit/1512314a3b
2025-09-22[ruby/erb] [DOC] Doc for #def_method and #def_moduleBurdetteLamar
https://github.com/ruby/erb/commit/a082298db7
2025-09-22[ruby/erb] [DOC] Doc for ERB#def_classBurdetteLamar
https://github.com/ruby/erb/commit/4ca7784f10
2025-09-18[ruby/erb] [DOC] Doc for ERB#set_eoutvarBurdetteLamar
https://github.com/ruby/erb/commit/cb4911f5f0
2025-09-18[ruby/erb] [DOC] Correct error in #make_compiler exampleBurdetteLamar
https://github.com/ruby/erb/commit/5e6fea0417
2025-09-18[ruby/erb] [DOC] Doc for ERB#make_compilerBurdetteLamar
https://github.com/ruby/erb/commit/ad8231cd68
2025-09-18[ruby/erb] [DOC] Remove example from ERB.version (will get out-of-date)BurdetteLamar
https://github.com/ruby/erb/commit/b0ccb1e317
2025-09-18[ruby/erb] [DOC] Tweak for ERB.new (argument eoutvar)BurdetteLamar
https://github.com/ruby/erb/commit/b629d578c0
2025-09-18[ruby/erb] [DOC] Correct link in doc for attribute #encodingBurdetteLamar
https://github.com/ruby/erb/commit/3e57b27566
2025-09-18[ruby/erb] [DOC] Doc for constant NOT_GIVENBurdetteLamar
https://github.com/ruby/erb/commit/dd6db81d43
2025-09-18[ruby/erb] [DOC] Doc for attribute srcBurdetteLamar
https://github.com/ruby/erb/commit/7556e6817c
2025-09-18[ruby/erb] [DOC] Fix the description of #new_toplevelNobuyoshi Nakada
(https://github.com/ruby/erb/pull/78) https://github.com/ruby/erb/commit/de0f18579e
2025-09-17[ruby/erb] [DOC] Doc for #new_toplevelBurdetteLamar
https://github.com/ruby/erb/commit/dee5dd4da8
2025-09-17[ruby/erb] [DOC] More on encodingsBurdetteLamar
https://github.com/ruby/erb/commit/d5f6f65a89
2025-09-17[ruby/erb] [DOC] Doc for ERB#runBurdetteLamar
https://github.com/ruby/erb/commit/77830cb205
2025-09-17[ruby/erb] [DOC] Adds section 'Error Reporting'Burdette Lamar
(https://github.com/ruby/erb/pull/75) https://github.com/ruby/erb/commit/8dc0eacaad
2025-09-17[ruby/erb] [DOC] More on bindingsBurdette Lamar
(https://github.com/ruby/erb/pull/74) https://github.com/ruby/erb/commit/125ce1f897
2025-09-16[ruby/erb] [DOC] Enhanced doc for ERB.resultBurdette Lamar
(https://github.com/ruby/erb/pull/73) https://github.com/ruby/erb/commit/04bb746fc7
2025-09-16[ruby/erb] [DOC] Improve section 'In Brief' in ERB class docBurdette Lamar
(https://github.com/ruby/erb/pull/71) https://github.com/ruby/erb/commit/f4abab7195
2025-09-16[ruby/erb] [DOC] Enhanced doc for ERB.versionBurdette Lamar
(https://github.com/ruby/erb/pull/72) https://github.com/ruby/erb/commit/df7bdcd5cb
2025-09-16[ruby/erb] [DOC] Fix typos (https://github.com/ruby/erb/pull/70)Burdette Lamar
https://github.com/ruby/erb/commit/aae3a5be34
2025-09-15[ruby/erb] [DOC] More on class ERBBurdette Lamar
(https://github.com/ruby/erb/pull/69) * [DOC] More on class …ERB * [DOC] More on class …ERB * More * More * More https://github.com/ruby/erb/commit/d9d73ed58e
2025-09-14[ruby/erb] [DOC] Enhanced doc for ERB.newBurdette Lamar
(https://github.com/ruby/erb/pull/68) https://github.com/ruby/erb/commit/9591b5d23b
2025-09-12[ruby/erb] [DOC] Enhanced documentation for class ERBBurdette Lamar
(https://github.com/ruby/erb/pull/67) https://github.com/ruby/erb/commit/7646ece279
2025-05-13[ruby/erb] Support all cgi.gem versionsTakashi Kokubun
(https://github.com/ruby/erb/pull/60) https://github.com/ruby/erb/commit/de9bb8c3cc
2025-05-12[ruby/erb] Use cgi/escape instead of deprecated cgi/utilNobuyoshi Nakada
2025-05-09Use cgi/escape instead of cgi/utilHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/13275
2025-01-15[ruby/erb] Make `ERB::NOT_GIVEN` ractor-shareablewanabe
https://github.com/ruby/erb/commit/348777b5bf
2024-12-26[ruby/erb] Fix up some doco on erbRyan Davis
(https://github.com/ruby/erb/pull/56) * ERB#result: Dropped mention of deprecated safe_level since it is no longer documented. * Fixed grammar for chicken fried steak :P https://github.com/ruby/erb/commit/4efd3437ac Notes: Merged: https://github.com/ruby/ruby/pull/12469
2023-03-21[ruby/erb] [DOC] Use indented heredocNobuyoshi Nakada
https://github.com/ruby/erb/commit/8ba8bb7acf
2022-11-24[ruby/erb] Split erb.rb into files for each module under ERBTakashi Kokubun
(https://github.com/ruby/erb/pull/36) https://github.com/ruby/erb/commit/f74833cc07
2022-11-24[ruby/erb] Rename erb.so to erb/escape.soTakashi Kokubun
(https://github.com/ruby/erb/pull/35) https://github.com/ruby/erb/commit/1280046952
2022-11-04[ruby/erb] Avoid using prepend + super for fallbackTakashi Kokubun
(https://github.com/ruby/erb/pull/28) `prepend` is prioritized more than ActiveSupport's monkey-patch, but the monkey-patch needs to work. https://github.com/ruby/erb/commit/611de5a865
2022-11-04[ruby/erb] Copy CGI.escapeHTML to ERB::Util.html_escapeTakashi Kokubun
https://github.com/ruby/erb/commit/ac9b219fa9
2022-10-25[ruby/erb] url_encode: use CGI.escapeURIComponentJean Boussier
(https://github.com/ruby/erb/pull/23) Ref: https://github.com/ruby/cgi/pull/26 This native implementation is much faster and available in `cgi 0.3.3`. https://github.com/ruby/erb/commit/2d90e9b010
2022-01-17[ruby/erb] Revert "Remove safe_level and further positional arguments ↵Takashi Kokubun
(https://github.com/ruby/erb/pull/7)" This reverts commit https://github.com/ruby/erb/commit/5133efa06f0603ae79292f3b2b942957bc8a442e. While we already handled this deprecation in many libraries, we noticed that some (e.g. sprockets) relied on the format of `ERB.version` and https://github.com/ruby/erb/commit/2b4182eb108b9e42fa30bcfa41931896132f88b8 broke such handling. 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.
2022-01-16[ruby/erb] Remove safe_level and further positional arguments ↵Takashi Kokubun
(https://github.com/ruby/erb/pull/7) [Feature #14256] https://github.com/ruby/erb/commit/5133efa06f
2022-01-16[ruby/erb] Escape the second *Takashi Kokubun
The original code just seems unintentional https://github.com/ruby/erb/commit/75a0749cb7
2022-01-16[ruby/erb] fix regexp (https://github.com/ruby/erb/pull/6)ooooooo_q
https://github.com/ruby/erb/commit/33100a022f
2021-05-05[ruby/erb] Document that `<% #` doesn't workTakashi Kokubun
[Bug #17846] https://github.com/ruby/erb/commit/b58b188028fbb403f75d48d62717373fc0908f7a
2021-01-21[ruby/erb] Let ERB.version just return a versionTakashi Kokubun
and deprecate ERB::Revision. `'$Date:: $'` has not been working since Git migration from SVN. I'm sorry. Because it has been already broken, I'd like to take this opportunity to make `ERB.version` compatible with `Gem::Version.new`. https://github.com/ruby/erb/commit/2b4182eb10