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 ostruct dependency from specs #196

Merged
merged 1 commit into from
May 30, 2024

Conversation

mattbrictson
Copy link
Contributor

Starting in Ruby 3.4, the following deprecation warning is printed when running the childprocess specs:

childprocess/spec/spec_helper.rb:14: 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.

This commit fixes this warning by removing the dependency on the ostruct gem entirely, replacing it with a normal Struct.

Starting in Ruby 3.4, the following deprecation warning is printed when
running the childprocess specs:

> childprocess/spec/spec_helper.rb:14: 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.

This commit fixes this warning by removing our dependency on the
`ostruct` gem entirely, replacing it with a normal `Struct`.
@sds sds added the bug label May 30, 2024
@sds sds merged commit 9c0d345 into enkessler:master May 30, 2024
25 of 28 checks passed
@sds
Copy link
Collaborator

sds commented May 30, 2024

Thanks! Test failures seem unrelated.

@eregon
Copy link
Contributor

eregon commented May 30, 2024

Thanks!

@eregon
Copy link
Contributor

eregon commented May 30, 2024

The failures are because ruby < 2.6 can't be build on macos-arm64, on macos-latest magically moved to arm64.
I'll improve the error message in setup-ruby for it, and make a PR here.

@eregon
Copy link
Contributor

eregon commented May 30, 2024

#197

@mattbrictson mattbrictson deleted the remove-ostruct branch June 17, 2024 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants