Skip to content

Remove the dependency on OpenStruct in the test code #382

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

Merged
merged 2 commits into from
Jun 19, 2025

Conversation

willnet
Copy link
Member

@willnet willnet commented Jun 18, 2025

When running tests with Ruby 3.4, a warning about OpenStruct is displayed.

/Users/willnet/ghq/github.com/Sorcery/sorcery/spec/controllers/controller_oauth_spec.rb:4: warning: 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.

Since there was only one place using OpenStruct, I changed the code to avoid using it.

willnet added 2 commits June 18, 2025 17:40
When running tests with Ruby 3.4, a warning about OpenStruct is displayed.

```
/Users/willnet/ghq/github.com/Sorcery/sorcery/spec/controllers/controller_oauth_spec.rb:4: warning: 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.
```

Since there was only one place using OpenStruct, I changed the code to avoid using it.
@willnet willnet requested a review from joshbuker June 18, 2025 10:34
@willnet willnet merged commit 7ddbfde into Sorcery:master Jun 19, 2025
18 checks passed
@willnet willnet deleted the remove-ostruct-dependency branch June 19, 2025 01:30
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