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.
What
Upgrades to
mail
2.8.1
.singular?
is the new way to denote when a field should only have one value inmail
2.8.Mail::Header::LIMITED_FIELDS
has been removed.fixes #7
How
2.7.1
code:[]=
checkslimited_field?
:https://github.com/mikel/mail/blob/7c43c84c16f017e0ff5e5c9962f6a1d842301ee3/lib/mail/header.rb#L162-L189
limited_field?
checksMail::Header::LIMITED_FIELDS
:https://github.com/mikel/mail/blob/7c43c84c16f017e0ff5e5c9962f6a1d842301ee3/lib/mail/header.rb#L266-L268
2.8.1
code:[]=
callsadd_field
:https://github.com/mikel/mail/blob/b6b6cb737d47a85ddc720fda0e6b991e99224848/lib/mail/header.rb#L147-L167
add_field
checks#singular?
:https://github.com/mikel/mail/blob/b6b6cb737d47a85ddc720fda0e6b991e99224848/lib/mail/field_list.rb#L22-L29
#singular?
checks.singular?
:https://github.com/mikel/mail/blob/b6b6cb737d47a85ddc720fda0e6b991e99224848/lib/mail/fields/common_field.rb#L28-L30
.singular?
defaults tofalse
:https://github.com/mikel/mail/blob/b6b6cb737d47a85ddc720fda0e6b991e99224848/lib/mail/fields/common_field.rb#L7-L9