-
-
Notifications
You must be signed in to change notification settings - Fork 199
Add Email#charsets reader #292
Add Email#charsets reader #292
Conversation
Allow access to charsets field on Email. This allows for use by clients in custom parsing of the data later on.
spec/griddler/email_spec.rb
Outdated
@@ -1026,6 +1033,7 @@ def header_from_email(header) | |||
vendor_specific: {}, | |||
spam_report: email.spam_report, | |||
spam_score: email.spam_score, | |||
charsets: email.charsets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a comma after the last parameter of a multiline method call.
spec/griddler/email_spec.rb
Outdated
html: 'utf-8', | ||
subject: 'UTF-8', | ||
from: 'UTF-8', | ||
text: 'iso-8859-1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a comma after the last item of a multiline hash.
lib/griddler/email.rb
Outdated
@@ -66,6 +69,7 @@ def to_h | |||
vendor_specific: vendor_specific, | |||
spam_score: spam_score, | |||
spam_report: spam_report, | |||
charsets: charsets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a comma after the last item of a multiline hash.
8afc316
to
964abf7
Compare
964abf7
to
32bd127
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems both reasonable & useful
Furthermore travis failure appears to be unrelated. |
zokay |
I'll cut a new release tonight |
Allow access to charsets field on Email. This allows for use by
clients in custom parsing of the data later on, in tandem with
thoughtbot/griddler-sendgrid#29 for
those using the Sendgrid adapter specifically.