Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Add Email#charsets reader #292

Merged
merged 2 commits into from
May 2, 2018

Conversation

heidi
Copy link
Contributor

@heidi heidi commented Jul 24, 2017

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.

Allow access to charsets field on Email. This allows for use by
clients in custom parsing of the data later on.
@@ -1026,6 +1033,7 @@ def header_from_email(header)
vendor_specific: {},
spam_report: email.spam_report,
spam_score: email.spam_score,
charsets: email.charsets

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.

html: 'utf-8',
subject: 'UTF-8',
from: 'UTF-8',
text: 'iso-8859-1'

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.

@@ -66,6 +69,7 @@ def to_h
vendor_specific: vendor_specific,
spam_score: spam_score,
spam_report: spam_report,
charsets: charsets

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.

@heidi heidi force-pushed the expose-email-charsets branch from 8afc316 to 964abf7 Compare July 24, 2017 18:33
@heidi heidi force-pushed the expose-email-charsets branch from 964abf7 to 32bd127 Compare July 24, 2017 18:34
Copy link

@sdhull sdhull left a 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

@sdhull
Copy link

sdhull commented May 1, 2018

Furthermore travis failure appears to be unrelated.
Someone with collaborator rights should merge this :shipit:

@wingrunr21
Copy link
Collaborator

zokay

@wingrunr21 wingrunr21 merged commit db3be24 into thoughtbot:master May 2, 2018
@wingrunr21
Copy link
Collaborator

I'll cut a new release tonight

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants