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

Ruby 3.2 compatibility #616

Merged
merged 5 commits into from
Jan 1, 2024
Merged

Ruby 3.2 compatibility #616

merged 5 commits into from
Jan 1, 2024

Conversation

danc86
Copy link
Contributor

@danc86 danc86 commented Mar 29, 2023

No description provided.

The Redwood module was leaking into other tests via the wrongly placed
`include` in test/test_header_parsing.rb. Without this fix, running
`rake test TEST=test/integration/test_maildir.rb` or
`rake test TEST=test/integration/test_mbox.rb` would fail because
Redwood was not being included in that case.

Fix the tests to include Redwood into each individual class where it's
needed, and avoid leaking into other tests.
This only matters in the test suite, which is the only time that Index
is constructed pointing to a custom directory (the test's temp dir).

Fixes test/integration/test_mbox.rb and
test/integration/test_maildir.rb to not try reading my sources from
~/.sup during test execution.
Since Ruby 3.2, the URI#host method returns empty string rather than nil
if the URI does not have a host component (like maildir:///blah).
Apparently for some kind of security reasons, see:
ruby/ruby@dd5118f
This is to get ruby_3_2.
@danc86 danc86 merged commit 88779f9 into sup-heliotrope:develop Jan 1, 2024
14 checks passed
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.

None yet

1 participant