<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/test_delegate.rb, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/delegate] Reapply "Merge pull request #46 from byroot/use-forward-send"</title>
<updated>2025-12-18T07:46:29+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-12-17T03:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a21fe2adfe3b4e4496f89e35d5a5a8cf11bf1ca0'/>
<id>a21fe2adfe3b4e4496f89e35d5a5a8cf11bf1ca0</id>
<content type='text'>
This reverts commit https://github.com/ruby/delegate/commit/fc2bd0498af0.

https://github.com/ruby/delegate/commit/7d5c1e0842

Co-authored-by: Jean Boussier &lt;byroot@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit https://github.com/ruby/delegate/commit/fc2bd0498af0.

https://github.com/ruby/delegate/commit/7d5c1e0842

Co-authored-by: Jean Boussier &lt;byroot@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/delegate] Allow use of DelegateClass in ractors</title>
<updated>2025-12-18T07:46:29+00:00</updated>
<author>
<name>Luke Gruber</name>
<email>luke.gruber@shopify.com</email>
</author>
<published>2025-12-12T18:54:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=01e9f95cc3d796bc7bf4f809016712c52f330d74'/>
<id>01e9f95cc3d796bc7bf4f809016712c52f330d74</id>
<content type='text'>
Tempfile uses DelegateClass and Tempfile should be able to be used
by different ractors.

https://github.com/ruby/delegate/commit/cad194260b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tempfile uses DelegateClass and Tempfile should be able to be used
by different ractors.

https://github.com/ruby/delegate/commit/cad194260b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/delegate] Prefer dedicated assertions</title>
<updated>2025-07-08T09:25:03+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-07-08T09:23:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7ce4db8409845af13c4530a4e8237b3ccc38bbf1'/>
<id>7ce4db8409845af13c4530a4e8237b3ccc38bbf1</id>
<content type='text'>
https://github.com/ruby/delegate/commit/5ee4189537
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/delegate/commit/5ee4189537
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/delegate] test: remove needless mu_pp</title>
<updated>2024-04-30T23:31:26+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2024-04-30T13:31:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0c13596686823427a52253ae0fdea9b37f0533a0'/>
<id>0c13596686823427a52253ae0fdea9b37f0533a0</id>
<content type='text'>
It's for minitest. We don't need it with test-unit.

https://github.com/ruby/delegate/commit/447cd43973
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's for minitest. We don't need it with test-unit.

https://github.com/ruby/delegate/commit/447cd43973
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/delegate] Revert "Fix `DelegateClass` block "method redefined" warning"</title>
<updated>2022-12-01T08:08:02+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-01T05:11:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a1d341efaf0b357e7aad3700ed7551559b4fcdf8'/>
<id>a1d341efaf0b357e7aad3700ed7551559b4fcdf8</id>
<content type='text'>
https://github.com/ruby/delegate/commit/2a91436284
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/delegate/commit/2a91436284
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/delegate] Fix DelegateClass block "method redefined" warning</title>
<updated>2022-10-14T15:08:44+00:00</updated>
<author>
<name>Jonathan Hefner</name>
<email>jonathan@hefner.pro</email>
</author>
<published>2022-10-11T17:02:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=60610031009e60bdfe5775b0316df251ee36a973'/>
<id>60610031009e60bdfe5775b0316df251ee36a973</id>
<content type='text'>
This commit prevents "method redefined" warnings when overriding methods
within a `DelegateClass` block, such as in the following example:

  ```ruby
  Base = Class.new do
    def foo
      "foo"
    end
  end

  Overridden = DelegateClass(Base) do
    def foo
      super + "!"
    end
  end
  ```

Fixes https://bugs.ruby-lang.org/issues/19047.

https://github.com/ruby/delegate/commit/214fae86de
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit prevents "method redefined" warnings when overriding methods
within a `DelegateClass` block, such as in the following example:

  ```ruby
  Base = Class.new do
    def foo
      "foo"
    end
  end

  Overridden = DelegateClass(Base) do
    def foo
      super + "!"
    end
  end
  ```

Fixes https://bugs.ruby-lang.org/issues/19047.

https://github.com/ruby/delegate/commit/214fae86de
</pre>
</div>
</content>
</entry>
<entry>
<title>Add instance_methods to class generated by DelegateClass</title>
<updated>2020-07-09T22:01:10+00:00</updated>
<author>
<name>Masataka Pocke Kuwabara</name>
<email>kuwabara@pocke.me</email>
</author>
<published>2020-07-09T22:01:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ba81bc24e62d03cc0f4c05cf4e2b378696631568'/>
<id>ba81bc24e62d03cc0f4c05cf4e2b378696631568</id>
<content type='text'>
Also, make DelegateClass.instance_method fallback to superclass.

Fixes [Bug #16982]</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, make DelegateClass.instance_method fallback to superclass.

Fixes [Bug #16982]</pre>
</div>
</content>
</entry>
<entry>
<title>Fix SimpleDelegator respond_to? regression</title>
<updated>2020-02-03T16:16:22+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2020-02-03T11:29:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f2552216d43040cd42bbb9fd484eab6c70856fe6'/>
<id>f2552216d43040cd42bbb9fd484eab6c70856fe6</id>
<content type='text'>
In 2.6, SimpleDelegator would always use the target `respond_to?`

In 2.7.0 it doesn't if the target does not inherit from Object.

This breaks compatibility for delegated objects that inherit
from BasicObject and redefine `respond_to?`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In 2.6, SimpleDelegator would always use the target `respond_to?`

In 2.7.0 it doesn't if the target does not inherit from Object.

This breaks compatibility for delegated objects that inherit
from BasicObject and redefine `respond_to?`.
</pre>
</div>
</content>
</entry>
<entry>
<title>delegate.rb: fixed keyword arguments in DelegateClass</title>
<updated>2020-01-30T13:13:29+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-01-21T02:47:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9bcf4f3db26249772c983896ebbc9ff41f4614db'/>
<id>9bcf4f3db26249772c983896ebbc9ff41f4614db</id>
<content type='text'>
`Delegator.delegating_block` should delegate keyword arguments
separately.  [ruby-core:96949]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`Delegator.delegating_block` should delegate keyword arguments
separately.  [ruby-core:96949]
</pre>
</div>
</content>
</entry>
<entry>
<title>Call initialize_clone with freeze: false if clone called with freeze: false</title>
<updated>2020-01-04T04:13:09+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2019-08-26T04:11:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=04eb7c7e462d1fcbab9efc7022c1b43636ab878a'/>
<id>04eb7c7e462d1fcbab9efc7022c1b43636ab878a</id>
<content type='text'>
This makes it possible to initialize_clone to correctly not freeze
internal state if the freeze: false keyword is passed to clone.

If clone is called with freeze: true or no keyword, do not pass
a second argument to initialize_clone to keep backwards
compatibility.

This makes it so that external libraries that override
initialize_clone but do not support the freeze keyword will fail
with ArgumentError if passing freeze: false to clone.  I think that
is better than the current behavior, which succeeds but results in
an unfrozen object with frozen internals.

Fix related issues in set and delegate in stdlib.

Fixes [Bug #14266]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes it possible to initialize_clone to correctly not freeze
internal state if the freeze: false keyword is passed to clone.

If clone is called with freeze: true or no keyword, do not pass
a second argument to initialize_clone to keep backwards
compatibility.

This makes it so that external libraries that override
initialize_clone but do not support the freeze keyword will fail
with ArgumentError if passing freeze: false to clone.  I think that
is better than the current behavior, which succeeds but results in
an unfrozen object with frozen internals.

Fix related issues in set and delegate in stdlib.

Fixes [Bug #14266]
</pre>
</div>
</content>
</entry>
</feed>
