Skip to content

Deprecation warning about use of ostruct without listing it in the .gemspec #30

@galori

Description

@galori

Hello,

After upgrading to Ruby 3.3.5 we started getting this warning:

~/.rbenv/versions/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75: warning: ~/.rbenv/versions/3.3.5/lib/ruby/3.3.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 merge_ruby_client-0.1.4 to request adding ostruct into its gemspec.

I got this for a handful of other gems, but I was able to address by upgrading to the latest version of each of those gems. In the newest version each of those gems added ostruct to their .gemspec to address this.

Looks like the latest version of this gem does not have that yet.

The workaround is for us to explicitly gem 'ostruct' to our gemfile, but that's not ideal since we do not use it directly and where possible best to let Bundler handle dependency management.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions