<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/ostruct.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/ostruct] Bump up 0.6.0</title>
<updated>2023-11-07T06:16:31+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-11-07T06:16:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=01d86818ff56720f479ceabc38c36e78a3f93e36'/>
<id>01d86818ff56720f479ceabc38c36e78a3f93e36</id>
<content type='text'>
https://github.com/ruby/ostruct/commit/0985296e72
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ostruct/commit/0985296e72
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] Emit a performance warning when OpenStruct is used</title>
<updated>2023-09-29T06:48:55+00:00</updated>
<author>
<name>Jean byroot Boussier</name>
<email>jean.boussier+github@shopify.com</email>
</author>
<published>2023-09-29T06:48:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f14cee39b867e416b974856171b52f725cb4892a'/>
<id>f14cee39b867e416b974856171b52f725cb4892a</id>
<content type='text'>
(https://github.com/ruby/ostruct/pull/56)

The OpenStruct documentation clearly state that it shouldn't
be used when performance is expected.

Ruby 3.3 introduce a new category of warnings that is silenced
by default: performance.

The expected use case is to enable this warning when looking
for potential performance issues within an application.

As such I think it would make sense to emit a performance warning
when OpenStruct is used, as it may help pinpoint that a dependency
rely on it, etc.

https://github.com/ruby/ostruct/commit/5826e12db8

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/ostruct/pull/56)

The OpenStruct documentation clearly state that it shouldn't
be used when performance is expected.

Ruby 3.3 introduce a new category of warnings that is silenced
by default: performance.

The expected use case is to enable this warning when looking
for potential performance issues within an application.

As such I think it would make sense to emit a performance warning
when OpenStruct is used, as it may help pinpoint that a dependency
rely on it, etc.

https://github.com/ruby/ostruct/commit/5826e12db8

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] v0.5.5</title>
<updated>2022-03-31T15:18:36+00:00</updated>
<author>
<name>Marc-André Lafortune</name>
<email>github@marc-andre.ca</email>
</author>
<published>2022-03-31T15:18:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8a38419b73ec2b698dd2d0462055f3e8f2bc6252'/>
<id>8a38419b73ec2b698dd2d0462055f3e8f2bc6252</id>
<content type='text'>
https://github.com/ruby/ostruct/commit/ce879e56cf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ostruct/commit/ce879e56cf
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] Avoid using block_given in the presence of aliases</title>
<updated>2022-03-31T15:16:49+00:00</updated>
<author>
<name>Charles Oliver Nutter</name>
<email>headius@headius.com</email>
</author>
<published>2022-03-29T19:50:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=87517696373cdcf38de2b11d9f2cfbe950e3ef47'/>
<id>87517696373cdcf38de2b11d9f2cfbe950e3ef47</id>
<content type='text'>
defined?(yield) bypasses the block_given? method (or any aliases
to it) and always does the right thing.

https://github.com/ruby/ostruct/commit/4c38fe612e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
defined?(yield) bypasses the block_given? method (or any aliases
to it) and always does the right thing.

https://github.com/ruby/ostruct/commit/4c38fe612e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] v0.5.4</title>
<updated>2022-03-24T12:38:26+00:00</updated>
<author>
<name>Marc-André Lafortune</name>
<email>github@marc-andre.ca</email>
</author>
<published>2022-03-24T12:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4c4a1e2035e08a627e71efd41d66549f233840dc'/>
<id>4c4a1e2035e08a627e71efd41d66549f233840dc</id>
<content type='text'>
https://github.com/ruby/ostruct/commit/fe19de4644
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ostruct/commit/fe19de4644
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] Avoid aliasing `block_given?` for JRuby [Fixes #40]</title>
<updated>2022-03-24T12:37:14+00:00</updated>
<author>
<name>Marc-André Lafortune</name>
<email>github@marc-andre.ca</email>
</author>
<published>2022-01-29T23:13:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ad5754162bddfd0ce2f11bd7fc7fce90ba6bf7ed'/>
<id>ad5754162bddfd0ce2f11bd7fc7fce90ba6bf7ed</id>
<content type='text'>
https://github.com/ruby/ostruct/commit/14d04ff694
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ostruct/commit/14d04ff694
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] v0.5.3</title>
<updated>2022-03-07T11:08:26+00:00</updated>
<author>
<name>Marc-André Lafortune</name>
<email>github@marc-andre.ca</email>
</author>
<published>2022-01-18T20:31:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0adabdc53d117a244c64de8b78bfcf5e658d386e'/>
<id>0adabdc53d117a244c64de8b78bfcf5e658d386e</id>
<content type='text'>
https://github.com/ruby/ostruct/commit/322efd0e61
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ostruct/commit/322efd0e61
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] Fix class and method as attribute names</title>
<updated>2022-03-07T11:08:22+00:00</updated>
<author>
<name>Ladislav Gallay</name>
<email>ladislav.gallay@lentil.sk</email>
</author>
<published>2022-01-18T13:54:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e1391bf96f03143387c500a168adb6fc9fc242c6'/>
<id>e1391bf96f03143387c500a168adb6fc9fc242c6</id>
<content type='text'>
https://github.com/ruby/ostruct/commit/7258535073
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ostruct/commit/7258535073
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] Bump version to 0.5.2</title>
<updated>2021-12-08T19:47:46+00:00</updated>
<author>
<name>Marc-André Lafortune</name>
<email>github@marc-andre.ca</email>
</author>
<published>2021-12-08T19:46:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c47e821b8928b1a8755dc8693ffce57342c10868'/>
<id>c47e821b8928b1a8755dc8693ffce57342c10868</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/ostruct] `Proc`'s self should be shareable.</title>
<updated>2021-12-08T19:47:46+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-12-08T19:06:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9c269316357a1a5b6ef27794f3c9412b2e33a6cd'/>
<id>9c269316357a1a5b6ef27794f3c9412b2e33a6cd</id>
<content type='text'>
To fix the issue https://bugs.ruby-lang.org/issues/18243
we need to make sure the Proc's self is shareable.
These procs are used by `define_method` and it doesn't use
Proc's self, so `nil` is enough.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To fix the issue https://bugs.ruby-lang.org/issues/18243
we need to make sure the Proc's self is shareable.
These procs are used by `define_method` and it doesn't use
Proc's self, so `nil` is enough.
</pre>
</div>
</content>
</entry>
</feed>
