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

[spaceship] fix case sensitive email issue for Spaceship::Members.find #18573

Merged
merged 2 commits into from Apr 19, 2021

Conversation

max-ott
Copy link
Contributor

@max-ott max-ott commented Apr 19, 2021

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

Apple treats emails case sensitive. Sample: Spaceship::Members.all => "emil.dvorjak@acme.com", "Stacy.Hammilton@acme.com", "samual.Ethan@acme.com"

If you search for Spaceship::Members.find("stacy.hammilton@acme.com"), the call will fail, because there is no match. This PR tries to fix the issue.

#edgecase

Apple treats emails case sensitive. Sample: `Spaceship::Members.all` => `"emil.dvorjak@acme.com", "Stacy.Hammilton@acme.com", "samual.Ethan@acme.com"` 

If you search for `Spaceship::Members.find("stacy.hammilton@acme.com")`, the call will fail, because there is no match. This PR tries to fix the issue.
Smarter comparison!

Co-authored-by: Josh Holtz <josh@rokkincat.com>
@joshdholtz joshdholtz changed the title Fix case sensitive email issue [spaceship] fix case sensitive email issue for Spaceship::Members.find Apr 19, 2021
Copy link
Member

@joshdholtz joshdholtz left a comment

Choose a reason for hiding this comment

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

Looks good to me! 😊 Thanks for all your contributions ❤️

@joshdholtz joshdholtz merged commit 291050c into master Apr 19, 2021
@joshdholtz joshdholtz deleted the max-ott-patch-3 branch April 19, 2021 10:58
@fastlane-bot
Copy link

Hey @max-ott 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a week, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀

@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.181.0 🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants