Skip to content

Remove deprecate safe_email and free_email methods - #2841

Merged
stefannibrasil merged 7 commits into
faker-ruby:mainfrom
hatsu38:feature/remove-safe_email
Nov 22, 2023
Merged

Remove deprecate safe_email and free_email methods#2841
stefannibrasil merged 7 commits into
faker-ruby:mainfrom
hatsu38:feature/remove-safe_email

Conversation

@hatsu38

@hatsu38hatsu38 commented Oct 17, 2023

Copy link
Copy Markdown
Contributor

Motivation / Background

FYI: #2733

The safe_email and free_email methods are slated for deprecation in October 2023. Therefore, they are being removed in this pull request.

Additional information

bundle exec rake test
スクリーンショット 2023-10-18 1 51 30

bundle exec rubocop
スクリーンショット 2023-10-18 1 51 39

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug, refactor something, or add a feature.
  • Tests and Rubocop are passing before submitting your proposed changes.

If you're proposing a new generator:

  • Open an issue first for discussion before you write any code.
  • Double-check the existing generators documentation to make sure the new generator you want to add doesn't already exist.
  • You've reviewed and followed the Documentation guidelines.

@hatsu38hatsu38 changed the title Remove duplicate safe_email and free_email methodsRemove deprecate safe_email and free_email methodsOct 29, 2023

@stefannibrasilstefannibrasil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for working on this! I left one small comment that needs to be addressed. This PR also needs to be rebased with main to fix the merge conflicts. Thanks!

construct_email(sanitized_local_part, generate_domain)
end

##

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can remove extend Gem::Deprecate from line 18 as well.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Thx! fix: 68f26b5

@hatsu38

Copy link
Copy Markdown
ContributorAuthor

I fixed conflicts with main!

@stefannibrasilstefannibrasil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yay, thanks for doing this! 🚀

@stefannibrasil
stefannibrasil merged commit 505a667 into faker-ruby:mainNov 22, 2023
@hatsu38
hatsu38 deleted the feature/remove-safe_email branch November 22, 2023 14:59
toshimaru added a commit to toshimaru/RailsTwitterClone that referenced this pull request May 15, 2024
toshimaru added a commit to toshimaru/RailsTwitterClone that referenced this pull request May 15, 2024
* build(deps-dev): Bump faker from 3.2.3 to 3.3.1
Bumps [faker](https://github.com/faker-ruby/faker) from 3.2.3 to 3.3.1.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md)
- [Commits](faker-ruby/faker@v3.2.3...v3.3.1)
---
updated-dependencies:
- dependency-name: faker
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix: Use `Faker::Internet.email` instead of `free_email`
## Related PR
- faker-ruby/faker#2733
- faker-ruby/faker#2841
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Toshimaru <me@toshimaru.net>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hatsu38@stefannibrasil@thdaraujo