Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove dependency on ostruct #112

Merged
merged 1 commit into from
Dec 28, 2024
Merged

Conversation

Earlopain
Copy link
Contributor

Requiring ostruct on Ruby 3.4 warns:

/home/user/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/gem-release-2.2.2/lib/gem/release/data.rb:2: warning: /home/user/.rbenv/versions/3.4.1/lib/ruby/3.4.0/ostruct.rb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.
Also please contact the author of gem-release-2.2.2 to request adding ostruct into its gemspec.

But since the values that this ostruct will take is known, there is no need to use ostruct all all. I've simply replaced it with a normal struct. It's a bit akward because of support for such old ruby versions (no keyword_init) but works out.

Requiring ostruct on Ruby 3.4 warns:
```
/home/user/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/gem-release-2.2.2/lib/gem/release/data.rb:2: warning: /home/user/.rbenv/versions/3.4.1/lib/ruby/3.4.0/ostruct.rb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.
Also please contact the author of gem-release-2.2.2 to request adding ostruct into its gemspec.
```

But since the values that this ostruct will take is known, there is no need to use ostruct all all. I've simply replaced it with a normal struct.
It's a bit akward because of support for such old ruby versions (no `keyword_init`) but works out.
@coveralls
Copy link

Coverage Status

coverage: 93.988% (+0.02%) from 93.966%
when pulling 2789df1 on Earlopain:no-ostruct
into 84486c5 on svenfuchs:master.

1 similar comment
@coveralls
Copy link

Coverage Status

coverage: 93.988% (+0.02%) from 93.966%
when pulling 2789df1 on Earlopain:no-ostruct
into 84486c5 on svenfuchs:master.

@PikachuEXE
Copy link
Collaborator

Thanks!
I will release it soon

@PikachuEXE PikachuEXE merged commit 34a5a11 into svenfuchs:master Dec 28, 2024
16 checks passed
@Earlopain
Copy link
Contributor Author

Appreciated (:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants