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

Use OpenStruct only if available #562

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Use OpenStruct only if available #562

merged 1 commit into from
Apr 29, 2024

Commits on Apr 16, 2024

  1. Use OpenStruct only if available

    This commit uses OpenStruct only if available because of the following reasons:
    
    - Starting from Ruby 3.4.0dev, Using `ostruct` raises the following warning.
    > ostruct was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0. Add ostruct to your Gemfile or gemspec.
    
    - And when the warning category is `:performance` it also raises this warning.
    > "OpenStruct use is discouraged for performance reasons
    
    Refer to
    https://bugs.ruby-lang.org/issues/20309
    ruby/ruby#10428
    ruby/ostruct#56
    Fix #561
    yahonda committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    02a3f0a View commit details
    Browse the repository at this point in the history