✨ SequenceSet ordered entries methods (backports to v0.4-stable) #402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backports all of the following PRs to
v0.4-stable:SequenceSet#appendwhen its@stringis nil #376The code changes were backported already.
SequenceSet#cover?documentation #379SequenceSet#each_ordered_number#386SequenceSet#find_ordered_index#396SequenceSet#ordered_at#397With only a few simple exceptions (relating to differences in rdoc, versioned defaults in
config.rb, and the autoloads inresponse_data.rb) cherry-picking went smoothly and without conflicts.This adds the following new methods to
Net::IMAP::SequenceSet:#count_with_duplicates: The ordered entries version of#count.#count_duplicates: The difference between#countand#count_with_duplicates.#has_duplicates?: Returns whether#count_duplicatesis positive.#each_ordered_number: The ordered entries version of#each_number.#find_ordered_index: The ordered entries version of#find_index.#ordered_at: The ordered entries version of#at.