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

Remove unused ostruct #97

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Sep 11, 2024

Since Ruby 3.3.5, Bundler shows the following warning when using ostruct.

ostruct 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.

Ref: https://bugs.ruby-lang.org/issues/20309

As the message described, we need to add ostruct to the gemspec to keep using it. But, it seems that diff-lcs doesn't use it. So I just remove `require of it.

Since Ruby 3.3.5, Bundler shows the following warning when using
`ostruct`.

```
ostruct 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.
```
Ref: https://bugs.ruby-lang.org/issues/20309

As the message described, we need to add `ostruct` to the gemspec
to keep using it. But, it seems that `diff-lcs` doesn't use it.
So I just remove `require of it.
@halostatue halostatue enabled auto-merge (rebase) September 11, 2024 02:02
@halostatue
Copy link
Owner

I will look at getting a minor version update released with this change later this week.

@halostatue halostatue merged commit 714bb8c into halostatue:main Sep 11, 2024
27 of 33 checks passed
@y-yagi y-yagi deleted the remove_unused_ostruct branch September 11, 2024 03:25
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.

2 participants