summaryrefslogtreecommitdiff
path: root/lib/ostruct.rb
AgeCommit message (Collapse)Author
2022-04-01[ruby/ostruct] v0.5.5Marc-André Lafortune
https://github.com/ruby/ostruct/commit/ce879e56cf
2022-04-01[ruby/ostruct] Avoid using block_given in the presence of aliasesCharles Oliver Nutter
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
2022-03-24[ruby/ostruct] v0.5.4Marc-André Lafortune
https://github.com/ruby/ostruct/commit/fe19de4644
2022-03-24[ruby/ostruct] Avoid aliasing `block_given?` for JRuby [Fixes #40]Marc-André Lafortune
https://github.com/ruby/ostruct/commit/14d04ff694
2022-03-07[ruby/ostruct] v0.5.3Marc-André Lafortune
https://github.com/ruby/ostruct/commit/322efd0e61
2022-03-07[ruby/ostruct] Fix class and method as attribute namesLadislav Gallay
https://github.com/ruby/ostruct/commit/7258535073
2021-12-08[ruby/ostruct] Bump version to 0.5.2Marc-André Lafortune
2021-12-08[ruby/ostruct] `Proc`'s self should be shareable.Koichi Sasada
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.
2021-12-06[ruby/ostruct] ostruct v0.5.1Marc-André Lafortune
2021-12-06[ruby/ostruct] Alias less methodsMarc-André Lafortune
Skips methods that do not end with letter (in particular `!~` and `=~`) For JRuby, also skip `instance_exec`, `instance_eval` and `eval`
2021-11-28[ruby/ostruct] [DOC] Fix code markups [ci skip]Nobuyoshi Nakada
Backquotes are not special characters in RDoc. https://github.com/ruby/ostruct/commit/a901df26b9
2021-10-21[ruby/ostruct] Bump up ostruct version to 0.5.0Hiroshi SHIBATA
https://github.com/ruby/ostruct/commit/c535a406f8
2021-09-28[ruby/ostruct] Strip trailing spacesNobuyoshi Nakada
https://github.com/ruby/ostruct/commit/df1109c18f
2021-09-28[ruby/ostruct] Allow properties to be accessed even when the object is moved ↵rm155
to another Ractor (https://github.com/ruby/ostruct/pull/29) https://github.com/ruby/ostruct/commit/d85639f2f5
2021-09-15[DOC] Fix broken links [ci skip]Nobuyoshi Nakada
* 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.
2021-06-15[ruby/ostruct] v0.4.0Marc-Andre Lafortune
https://github.com/ruby/ostruct/commit/8534f69e4e
2021-06-14[lib/ostruct] Allow overriding of `block_given?`Marc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/4572
2021-06-14[ruby/ostruct] bump upNobuyoshi Nakada
https://github.com/ruby/ostruct/commit/bb253be3e9
2021-06-14Add fallback block to `OpenStruct#delete_field` (#1409)jfrazx
Notes: Merged-By: marcandre <github@marc-andre.ca>
2021-04-28[ruby/ostruct] Add compatibility for to_h with block in Ruby 2.5Marc-Andre Lafortune
https://github.com/ruby/ostruct/commit/da45de5068
2021-04-28[ruby/ostruct] Compatibility with Ruby 2.5Marc-Andre Lafortune
https://github.com/ruby/ostruct/commit/ecd9fafdf8
2021-01-13[ruby/ostruct] Bump versionMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/4054
2021-01-12Fix method protection for modules in the ancestry chain.Marc-Andre Lafortune
[Fixes ruby/ostruct#23]
2021-01-05[ruby/ostruct] Bump versionMarc-Andre Lafortune
2021-01-05[ruby/ostruct] Allow ostruct to return a value on super (#4028)Adam Hess
This fixes cases where you can super in something that inherits from OpenStruct Co-authored-by: John Hawthorn <john@hawthorn.email> Notes: Merged-By: marcandre <github@marc-andre.ca>
2020-11-04[ruby/ostruct] Update versionMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3736
2020-11-04[ruby/ostruct] Restore `ostruct` docMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3736
2020-11-04Revert "Make `marshal_load` public"Marc-Andre Lafortune
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
2020-10-27Separate `send` into `public_send` and `__send__`Nobuyoshi Nakada
2020-10-06Make `marshal_load` publicAaron Patterson
Ruby specs expected this method to be public
2020-10-06[lib/ostruct] Fix Marshal loadingMarc-Andre Lafortune
2020-09-30[ruby/ostruct] Tweak docMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3593
2020-09-30[ruby/ostruct] Remove unused conditionMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3593
2020-09-30[ruby/ostruct] Improved YAML serialization.Marc-Andre Lafortune
Patch adapted from Pietro Monteiro [Fixes bug#8382] Notes: Merged: https://github.com/ruby/ruby/pull/3593
2020-09-30[ruby/ostruct] Add test that frozen OpenStructs are Ractor-shareableMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3593
2020-09-30[ruby/ostruct] Protect subclass' methods and our bang methods.Marc-Andre Lafortune
Internally, use only bang methods Notes: Merged: https://github.com/ruby/ruby/pull/3593
2020-09-30[ruby/ostruct] Avoid calling initializeMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3593
2020-09-14[ruby/ostruct] Fix dup/cloneMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] method_missing is privateMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] Avoid self calling our public methods.Marc-Andre Lafortune
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
2020-09-14[ruby/ostruct] Reinstate recent changesMarc-Andre Lafortune
This reverts commit 28e60b0045b5732bca11012d81a5223001faa6b2. Notes: Merged: https://github.com/ruby/ruby/pull/3541
2020-09-14[ruby/ostruct] Revert recent changesMarc-Andre Lafortune
This reverts commit e026e186f4..12a2e32d43.
2020-09-14[ruby/ostruct] Add access to public instance methods in case they are overridenMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Tweak docMarc-Andre Lafortune
2020-09-14[ruby/ostruct] Allow overriding public methodsMarc-Andre Lafortune
[Fixes https://bugs.ruby-lang.org/issues/15409]
2020-09-14[ruby/ostruct] Refactor handling of frozen OpenStruct. Simplify ↵Marc-Andre Lafortune
`new_ostruct_member!`
2020-09-14[ruby/ostruct] Revert "ostruct.rb: deferred accessors"Marc-Andre Lafortune
This reverts commits: dc38e99813 22c082fcfd b499e0f9ff 58e5876646 Add test for overriden private methods [Fixes https://bugs.ruby-lang.org/issues/12136]
2020-09-04lib/ostruct.rb: Revert "To use RuntimeError instead of FrozenError for old ↵Marc-Andre Lafortune
ruby versions." This reverts commit 4cd1fc8b3559353069860eee90b1b5bade013917.
2020-08-14Fix links to Dig Methods document (#3421)Burdette Lamar
* Fix links to Dig Methods document * Fix links to Dig Methods document Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-08-13Adding doc/dig_methods.rdoc and links to it (#3416)Burdette Lamar
Adds a full discussion of #dig, along with links from Array, Hash, Struct, and OpenStruct. CSV::Table and CSV::Row are over in ruby/csv. I'll get to them soon. The art to the thing is to figure out how much (or how little) to say at each #dig. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>