Age | Commit message (Collapse) | Author |
|
https://github.com/ruby/ostruct/commit/0985296e72
|
|
(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 <[email protected]>
|
|
https://github.com/ruby/ostruct/commit/ce879e56cf
|
|
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
|
|
https://github.com/ruby/ostruct/commit/fe19de4644
|
|
https://github.com/ruby/ostruct/commit/14d04ff694
|
|
https://github.com/ruby/ostruct/commit/322efd0e61
|
|
https://github.com/ruby/ostruct/commit/7258535073
|
|
|
|
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.
|
|
|
|
Skips methods that do not end with letter (in particular `!~` and `=~`)
For JRuby, also skip `instance_exec`, `instance_eval` and `eval`
|
|
Backquotes are not special characters in RDoc.
https://github.com/ruby/ostruct/commit/a901df26b9
|
|
https://github.com/ruby/ostruct/commit/c535a406f8
|
|
https://github.com/ruby/ostruct/commit/df1109c18f
|
|
to another Ractor (https://github.com/ruby/ostruct/pull/29)
https://github.com/ruby/ostruct/commit/d85639f2f5
|
|
* As the "doc/" prefix is specified by the `--page-dir` option,
remove from the rdoc references.
* Refer to the original .rdoc instead of the converted .html.
|
|
https://github.com/ruby/ostruct/commit/8534f69e4e
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/4572
|
|
https://github.com/ruby/ostruct/commit/bb253be3e9
|
|
Notes:
Merged-By: marcandre <[email protected]>
|
|
https://github.com/ruby/ostruct/commit/da45de5068
|
|
https://github.com/ruby/ostruct/commit/ecd9fafdf8
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/4054
|
|
[Fixes ruby/ostruct#23]
|
|
|
|
This fixes cases where you can super in something that inherits from OpenStruct
Co-authored-by: John Hawthorn <[email protected]>
Notes:
Merged-By: marcandre <[email protected]>
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3736
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3736
|
|
This reverts commit ee7cc6ac35cfb056b3946b1dcd6d4d5a140ccacf.
I'm not sure I agree with the spec, but I just tweaked it.
Notes:
Merged: https://github.com/ruby/ruby/pull/3736
|
|
|
|
Ruby specs expected this method to be public
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3593
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3593
|
|
Patch adapted from Pietro Monteiro [Fixes bug#8382]
Notes:
Merged: https://github.com/ruby/ruby/pull/3593
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3593
|
|
Internally, use only bang methods
Notes:
Merged: https://github.com/ruby/ruby/pull/3593
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3593
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3541
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3541
|
|
Found because `json` has a bad example in its test suite.
This implementation still offers better encapsulation.
Notes:
Merged: https://github.com/ruby/ruby/pull/3541
|
|
This reverts commit 28e60b0045b5732bca11012d81a5223001faa6b2.
Notes:
Merged: https://github.com/ruby/ruby/pull/3541
|
|
This reverts commit e026e186f4..12a2e32d43.
|
|
|
|
|
|
[Fixes https://bugs.ruby-lang.org/issues/15409]
|
|
`new_ostruct_member!`
|
|
This reverts commits:
dc38e99813
22c082fcfd
b499e0f9ff
58e5876646
Add test for overriden private methods
[Fixes https://bugs.ruby-lang.org/issues/12136]
|
|
ruby versions."
This reverts commit 4cd1fc8b3559353069860eee90b1b5bade013917.
|