Skip to content

Avoid using ostruct as it no longer will ship with Ruby 3.5.0#807

Open
olleolleolle wants to merge 2 commits into
ddollar:mainfrom
olleolleolle:deal-with-ostruct
Open

Avoid using ostruct as it no longer will ship with Ruby 3.5.0#807
olleolleolle wants to merge 2 commits into
ddollar:mainfrom
olleolleolle:deal-with-ostruct

Conversation

@olleolleolle
Copy link
Copy Markdown
Contributor

@olleolleolle olleolleolle commented Sep 16, 2024

This change introduces a local Struct, used in a supporting-deprecated use-case part of the code.

Benefit: When requiring ostruct, a warning is emitted by Ruby, saying that ostruct will no longer be a standard built-in library in Ruby 3.5.0.

This PR avoids the warning by using a Struct.

The OpenStruct library was not used in that test.

ostruct raises a warning about not being a shipped-and-bundled-with-Ruby standard library in Ruby 3.5.0.
...in order to avoid Ruby warnings in Ruby 3.5.0 about ostruct not being a built-in library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant