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

Conversation

@calebhearth
Copy link
Contributor

No description provided.

@calebhearth
Copy link
Contributor Author

Ping @jayroh and @theycallmeswift

@theycallmeswift
Copy link
Collaborator

Interesting. Code looks fine, needs to be documented though. What's your use case for this?

@jayroh
Copy link
Contributor

jayroh commented Aug 16, 2013

Yeah what Swift said. @calebthompson can you give some more context in the PR description?

@calebhearth
Copy link
Contributor Author

Documented.

@calebhearth
Copy link
Contributor Author

The use case was @r38y's. He mentioned it here: #69 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm weary of the context of these two tests. The description states that we're testing the body formatting but these are with regards to the to and from email addresses. For now I'd suggest we consider pulling these out into their own describe.

In the future I think a good bit of the responsibility in our Email class should get extracted to more focused and relevant classes. What do you guys think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a concerted effort to prevent bloat in the Email class is a good idea. I think the things that are in there now are fairly relevant though. Do you disagree?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking a few days ago that it would probably be a good idea to have an email builder and turn Griddler::Email into a value object.

@jayroh
Copy link
Contributor

jayroh commented Aug 16, 2013

I just have that one comment, Caleb. Other than that it looks really good. And it's a good call.

* Add default from configuration of :email
* Extract shared examples for email address config and apply them to
  both #to and #from
* Document `from` options
@r38y
Copy link
Contributor

r38y commented Aug 19, 2013

I could have sworn I submitted this as a PR. I guess I was hallucinating or did the work and forgot to. Anywho, the thing I wanted in the end, configuring from return type, is now in! Hurrah!

@r38y
Copy link
Contributor

r38y commented Aug 19, 2013

Aha! Here is my branch: https://github.com/r38y/griddler/tree/from-hash I may have to submit some of those commits because some changes needed to happen to the Postmark adapter.

Ignore me, carry on.

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.

5 participants