Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out nil and empty string when bulk processing emails #12

Merged
merged 1 commit into from
Jun 29, 2016

Conversation

QuotableWater7
Copy link
Contributor

@QuotableWater7 QuotableWater7 commented Jun 29, 2016

Seems harmless to filter these out.

Also bump the minor version on the gem so we can publish.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 98.78% when pulling 31da455 on jt-filter into d399bb5 on master.

@@ -12,6 +14,8 @@ def repairs
end

def repair_all(emails)
emails = emails.reject(&:nil?).map(&:strip).reject { |email| email == '' }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no rails = no present?

Copy link
Contributor

Choose a reason for hiding this comment

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

There is, however, :empty?

@coveralls
Copy link

coveralls commented Jun 29, 2016

Coverage Status

Coverage increased (+0.02%) to 98.78% when pulling 31da455 on jt-filter into d399bb5 on master.

Seems harmless to filter these out.

Also bump the minor version on the gem so we can publish.
@coveralls
Copy link

coveralls commented Jun 29, 2016

Coverage Status

Coverage increased (+0.02%) to 98.78% when pulling 55d81f1 on jt-filter into d399bb5 on master.

@jordynchuhaloff
Copy link
Contributor

lgtm

@QuotableWater7 QuotableWater7 merged commit f895614 into master Jun 29, 2016
@QuotableWater7 QuotableWater7 deleted the jt-filter branch June 29, 2016 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants