Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ostruct warning with ruby 3.4 #5197

Closed
aandrieu opened this issue Dec 30, 2024 · 1 comment
Closed

ostruct warning with ruby 3.4 #5197

aandrieu opened this issue Dec 30, 2024 · 1 comment

Comments

@aandrieu
Copy link

aandrieu commented Dec 30, 2024

Describe the bug

Hello 👋

a warning is now emitted when using the graphql lib with ruby 3.4.

/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/graphql-2.4.8/lib/graphql/subscriptions/serialize.rb:3: warning: /.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 graphql-2.4.8 to request adding ostruct into its gemspec.

Versions

graphql version: 2.4.8
rails (or other framework): 8.0.0
ruby: 3.4.1

Steps to reproduce

Install graphql lib with ruby 3.4.

Expected behavior

This warning should be cleaned.

Actual behavior

Warning raised.

@rmosolgo
Copy link
Owner

Hey, thanks for reporting this. I'll update the gemfile soon for the next release 👍

rmosolgo added a commit that referenced this issue Jan 3, 2025
Update default gem usage for Ruby 3.4, fixes #5197
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

No branches or pull requests

2 participants