aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ostruct.rb
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/ostruct] Bump version to 0.5.2Marc-André Lafortune2021-12-081-1/+1
|
* [ruby/ostruct] `Proc`'s self should be shareable.Koichi Sasada2021-12-081-2/+5
| | | | | | | 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.
* [ruby/ostruct] ostruct v0.5.1Marc-André Lafortune2021-12-061-1/+1
|
* [ruby/ostruct] Alias less methodsMarc-André Lafortune2021-12-061-1/+6
| | | | | Skips methods that do not end with letter (in particular `!~` and `=~`) For JRuby, also skip `instance_exec`, `instance_eval` and `eval`
* [ruby/ostruct] [DOC] Fix code markups [ci skip]Nobuyoshi Nakada2021-11-281-6/+6
| | | | | | Backquotes are not special characters in RDoc. https://github.com/ruby/ostruct/commit/a901df26b9
* [ruby/ostruct] Bump up ostruct version to 0.5.0Hiroshi SHIBATA2021-10-211-1/+1
| | | | https://github.com/ruby/ostruct/commit/c535a406f8
* [ruby/ostruct] Strip trailing spacesNobuyoshi Nakada2021-09-281-1/+1
| | | | https://github.com/ruby/ostruct/commit/df1109c18f
* [ruby/ostruct] Allow properties to be accessed even when the object is moved ↵rm1552021-09-281-2/+8
| | | | | | to another Ractor (https://github.com/ruby/ostruct/pull/29) https://github.com/ruby/ostruct/commit/d85639f2f5
* [DOC] Fix broken links [ci skip]Nobuyoshi Nakada2021-09-151-1/+1
| | | | | | * 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.
* [ruby/ostruct] v0.4.0Marc-Andre Lafortune2021-06-151-1/+1
| | | | https://github.com/ruby/ostruct/commit/8534f69e4e
* [lib/ostruct] Allow overriding of `block_given?`Marc-Andre Lafortune2021-06-141-3/+4
|
* [ruby/ostruct] bump upNobuyoshi Nakada2021-06-141-3/+3
| | | | https://github.com/ruby/ostruct/commit/bb253be3e9
* Add fallback block to `OpenStruct#delete_field` (#1409)jfrazx2021-06-141-2/+9
|
* [ruby/ostruct] Add compatibility for to_h with block in Ruby 2.5Marc-Andre Lafortune2021-04-281-5/+15
| | | | https://github.com/ruby/ostruct/commit/da45de5068
* [ruby/ostruct] Compatibility with Ruby 2.5Marc-Andre Lafortune2021-04-281-1/+1
| | | | https://github.com/ruby/ostruct/commit/ecd9fafdf8
* [ruby/ostruct] Bump versionMarc-Andre Lafortune2021-01-131-1/+1
|
* Fix method protection for modules in the ancestry chain.Marc-Andre Lafortune2021-01-121-1/+9
| | | | [Fixes ruby/ostruct#23]
* [ruby/ostruct] Bump versionMarc-Andre Lafortune2021-01-051-1/+1
|
* [ruby/ostruct] Allow ostruct to return a value on super (#4028)Adam Hess2021-01-051-0/+1
| | | | | This fixes cases where you can super in something that inherits from OpenStruct Co-authored-by: John Hawthorn <john@hawthorn.email>
* [ruby/ostruct] Update versionMarc-Andre Lafortune2020-11-041-1/+1
|
* [ruby/ostruct] Restore `ostruct` docMarc-Andre Lafortune2020-11-041-3/+3
|
* Revert "Make `marshal_load` public"Marc-Andre Lafortune2020-11-041-1/+0
| | | | | | This reverts commit ee7cc6ac35cfb056b3946b1dcd6d4d5a140ccacf. I'm not sure I agree with the spec, but I just tweaked it.
* Separate `send` into `public_send` and `__send__`Nobuyoshi Nakada2020-10-271-3/+3
|
* Make `marshal_load` publicAaron Patterson2020-10-061-0/+1
| | | | Ruby specs expected this method to be public
* [lib/ostruct] Fix Marshal loadingMarc-Andre Lafortune2020-10-061-4/+1
|
* [ruby/ostruct] Tweak docMarc-Andre Lafortune2020-09-301-9/+9
|
* [ruby/ostruct] Remove unused conditionMarc-Andre Lafortune2020-09-301-2/+0
|
* [ruby/ostruct] Improved YAML serialization.Marc-Andre Lafortune2020-09-301-0/+27
| | | | Patch adapted from Pietro Monteiro [Fixes bug#8382]
* [ruby/ostruct] Add test that frozen OpenStructs are Ractor-shareableMarc-Andre Lafortune2020-09-301-0/+2
|
* [ruby/ostruct] Protect subclass' methods and our bang methods.Marc-Andre Lafortune2020-09-301-17/+33
| | | | Internally, use only bang methods
* [ruby/ostruct] Avoid calling initializeMarc-Andre Lafortune2020-09-301-5/+11
|
* [ruby/ostruct] Fix dup/cloneMarc-Andre Lafortune2020-09-141-3/+7
|
* [ruby/ostruct] method_missing is privateMarc-Andre Lafortune2020-09-141-1/+1
|
* [ruby/ostruct] Avoid self calling our public methods.Marc-Andre Lafortune2020-09-141-2/+4
| | | | | Found because `json` has a bad example in its test suite. This implementation still offers better encapsulation.
* [ruby/ostruct] Reinstate recent changesMarc-Andre Lafortune2020-09-141-28/+48
| | | | This reverts commit 28e60b0045b5732bca11012d81a5223001faa6b2.
* [ruby/ostruct] Revert recent changesMarc-Andre Lafortune2020-09-141-48/+28
| | | | This reverts commit e026e186f4..12a2e32d43.
* [ruby/ostruct] Add access to public instance methods in case they are overridenMarc-Andre Lafortune2020-09-141-2/+32
|
* [ruby/ostruct] Tweak docMarc-Andre Lafortune2020-09-141-1/+2
|
* [ruby/ostruct] Allow overriding public methodsMarc-Andre Lafortune2020-09-141-3/+3
| | | | [Fixes https://bugs.ruby-lang.org/issues/15409]
* [ruby/ostruct] Refactor handling of frozen OpenStruct. Simplify ↵Marc-Andre Lafortune2020-09-141-22/+11
| | | | `new_ostruct_member!`
* [ruby/ostruct] Revert "ostruct.rb: deferred accessors"Marc-Andre Lafortune2020-09-141-16/+5
| | | | | | | | | | | | This reverts commits: dc38e99813 22c082fcfd b499e0f9ff 58e5876646 Add test for overriden private methods [Fixes https://bugs.ruby-lang.org/issues/12136]
* lib/ostruct.rb: Revert "To use RuntimeError instead of FrozenError for old ↵Marc-Andre Lafortune2020-09-041-2/+1
| | | | | | ruby versions." This reverts commit 4cd1fc8b3559353069860eee90b1b5bade013917.
* Fix links to Dig Methods document (#3421)Burdette Lamar2020-08-141-1/+1
| | | | | * Fix links to Dig Methods document * Fix links to Dig Methods document
* Adding doc/dig_methods.rdoc and links to it (#3416)Burdette Lamar2020-08-131-14/+8
| | | | | | | 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.
* Extract version number from the sourceNobuyoshi Nakada2020-07-301-2/+1
| | | | | | | | | | | "requiring version.rb" strategy has some issues. - cannot work when cross-compiling - often introduces wrong namespace - must know the superclasses - costs at each runtime than at build-time etc.
* Fix OpenStructDocumentationzverok2020-01-051-3/+2
| | | | | | | In https://github.com/ruby/ruby/commit/9be3295d53b6fd9f8a3ad8157aa0655b1976d8ac, OpenStruct's documentation stopped to be rendered by RDoc (there should be no additional code between documentation comment and documented class). Fixing this.
* [ruby/ostruct] Create OpenStruct::VERSIONMarc-Andre Lafortune2019-12-221-0/+3
|
* Removed old names of internal methodsNobuyoshi Nakada2019-05-101-8/+0
|
* Suppress a warning in Psych&YAML with verbose modeNobuyoshi Nakada2019-05-101-1/+1
|
* OpenStruct: improve error message when passing wrong number of arguments.marcandre2019-04-141-1/+3
| | | | | | Patch by Lisa Ugray (issue #15515) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e