<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/erb, branch ruby_3_4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/erb] Prohibit def_method on marshal-loaded ERB instances</title>
<updated>2026-04-21T23:56:46+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2026-04-21T07:27:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=85a0a76403ea52cf8af913f112d28c9f1d401eab'/>
<id>85a0a76403ea52cf8af913f112d28c9f1d401eab</id>
<content type='text'>
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 &lt;TristanInSec@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;TristanInSec@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Fix line numbers after multi-line &lt;%#</title>
<updated>2022-11-29T04:56:03+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-29T04:55:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=129d208f9a5d54faf2eb4d944bc874fe347bfd64'/>
<id>129d208f9a5d54faf2eb4d944bc874fe347bfd64</id>
<content type='text'>
(https://github.com/ruby/erb/pull/42)

https://github.com/ruby/erb/commit/526885923e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/erb/pull/42)

https://github.com/ruby/erb/commit/526885923e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Drop deprecated -S option from erb command</title>
<updated>2022-11-24T22:49:21+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-24T22:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1c0c1c8098bfb989ff5288b2e0a43b1bd0be2781'/>
<id>1c0c1c8098bfb989ff5288b2e0a43b1bd0be2781</id>
<content type='text'>
We attempted to remove things like this and reverted all of them, but I
think nobody relies on this unlike the positional arguments of
`ERB#initialize`.

https://github.com/ruby/erb/commit/92fde7e403
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We attempted to remove things like this and reverted all of them, but I
think nobody relies on this unlike the positional arguments of
`ERB#initialize`.

https://github.com/ruby/erb/commit/92fde7e403
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Suppress warnings to fix ruby-head CI</title>
<updated>2022-11-24T22:35:33+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-24T22:35:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e5a0abc5dedfd011986b16e8f8cf5cda476984c9'/>
<id>e5a0abc5dedfd011986b16e8f8cf5cda476984c9</id>
<content type='text'>
(https://github.com/ruby/erb/pull/34)

There seems to be no way to fix this. It doesn't happen in an installed
directory, so it's likely a false positive and/or a bug in rubygems.

  | &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85: warning: &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85: warning: loading in progress, circular require considered harmful - /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb
  | 	from /home/runner/work/erb/erb/libexec/erb:0:in  `require'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb:3:in  `&lt;top (required)&gt;'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb:3:in  `require_relative'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/shared_helpers.rb:8:in  `&lt;top (required)&gt;'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/shared_helpers.rb:8:in  `require_relative'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/rubygems_integration.rb:3:in  `&lt;top (required)&gt;'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/rubygems_integration.rb:3:in  `require'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems.rb:1352:in  `&lt;top (required)&gt;'
  | 	from &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85:in  `require'
  | 	from &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85:in  `require'</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/erb/pull/34)

There seems to be no way to fix this. It doesn't happen in an installed
directory, so it's likely a false positive and/or a bug in rubygems.

  | &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85: warning: &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85: warning: loading in progress, circular require considered harmful - /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb
  | 	from /home/runner/work/erb/erb/libexec/erb:0:in  `require'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb:3:in  `&lt;top (required)&gt;'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb:3:in  `require_relative'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/shared_helpers.rb:8:in  `&lt;top (required)&gt;'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/shared_helpers.rb:8:in  `require_relative'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/rubygems_integration.rb:3:in  `&lt;top (required)&gt;'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/rubygems_integration.rb:3:in  `require'
  | 	from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems.rb:1352:in  `&lt;top (required)&gt;'
  | 	from &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85:in  `require'
  | 	from &lt;internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb&gt;:85:in  `require'</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Copy CGI.escapeHTML to ERB::Util.html_escape</title>
<updated>2022-11-04T07:07:23+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-03T05:28:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dc5d06e9b145f7d5f8c5f7c3757b43f2d68833fd'/>
<id>dc5d06e9b145f7d5f8c5f7c3757b43f2d68833fd</id>
<content type='text'>
https://github.com/ruby/erb/commit/ac9b219fa9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/erb/commit/ac9b219fa9
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Skip a test for JRuby</title>
<updated>2022-11-03T05:58:14+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-03T05:56:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7b6c5f9b5b16d244268f700aa5cd60bdde3e34d6'/>
<id>7b6c5f9b5b16d244268f700aa5cd60bdde3e34d6</id>
<content type='text'>
https://github.com/ruby/erb/commit/48a75665ab
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/erb/commit/48a75665ab
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Skip tests for truffleruby</title>
<updated>2022-11-03T05:58:14+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-03T05:53:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f667d3afc9096ea32f6f84204529b95099062e86'/>
<id>f667d3afc9096ea32f6f84204529b95099062e86</id>
<content type='text'>
https://github.com/ruby/erb/commit/65a7c70a00
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/erb/commit/65a7c70a00
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Revert "Remove safe_level and further positional arguments (https://github.com/ruby/erb/pull/7)"</title>
<updated>2022-01-17T20:39:17+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-01-17T20:37:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c0d18a1aa2be26d416f4c5d1809533143374b863'/>
<id>c0d18a1aa2be26d416f4c5d1809533143374b863</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Remove safe_level and further positional arguments (https://github.com/ruby/erb/pull/7)</title>
<updated>2022-01-15T21:46:47+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-01-15T21:46:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d12a08abb5fd1412d59094a953899bbd8a64ac88'/>
<id>d12a08abb5fd1412d59094a953899bbd8a64ac88</id>
<content type='text'>
[Feature #14256]

https://github.com/ruby/erb/commit/5133efa06f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Feature #14256]

https://github.com/ruby/erb/commit/5133efa06f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/erb] Warn safe_level and later args even without -w</title>
<updated>2021-01-21T04:52:02+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2021-01-21T04:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=922989fa0f1bf1e13b2c9bf1c8d6ad9459c798f6'/>
<id>922989fa0f1bf1e13b2c9bf1c8d6ad9459c798f6</id>
<content type='text'>
because, when Ruby 3.1 is released, Ruby 2.5, the last version with the
old method signature, will have been EOL. Therefore we can safely warn
the old interface from Ruby 3.1.

https://github.com/ruby/erb/commit/c3a753f49f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
because, when Ruby 3.1 is released, Ruby 2.5, the last version with the
old method signature, will have been EOL. Therefore we can safely warn
the old interface from Ruby 3.1.

https://github.com/ruby/erb/commit/c3a753f49f
</pre>
</div>
</content>
</entry>
</feed>
