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

Add user generator that accepts arguments (#1671) #1730

Merged
merged 11 commits into from Aug 20, 2021

Conversation

ashishra0
Copy link
Contributor

The new user class method will now allow you to do this

user = Faker::Internet.user('name', 'email', password')
=> {'name' => 'John Doe', 'email' => 'fake_email@test.com', 'password' => 'pass123' }

  The new user class method will now allow you to do this

  ```
  user = Faker::Internet.user('name', 'email', password')
  => {'name' => 'John Doe', 'email' => 'fake_email@test.com', 'password' => 'pass123' }
  ```
Copy link
Member

@bpleslie bpleslie left a comment

Choose a reason for hiding this comment

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

This looks good! Thanks for contributing, I'm sure a lot of projects will find this feature useful!

  The new user class method will now allow you to do this

  ```
  user = Faker::Internet.user('name', 'email', password')
  => {'name' => 'John Doe', 'email' => 'fake_email@test.com', 'password' => 'pass123' }
  ```
  The new user class method will now allow you to do this

  ```
  user = Faker::Internet.user('name', 'email', password')
  => {'name' => 'John Doe', 'email' => 'fake_email@test.com', 'password' => 'pass123' }
  ```
@vbrazo
Copy link
Member

vbrazo commented Sep 19, 2019

Could you rebase with master?

@ashishra0
Copy link
Contributor Author

I just did

@ashishra0 ashishra0 closed this Sep 19, 2019
@ashishra0 ashishra0 reopened this Sep 19, 2019
@ashishra0
Copy link
Contributor Author

@vbrazo are we good to merge?

lib/faker/default/internet.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@Zeragamba Zeragamba left a comment

Choose a reason for hiding this comment

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

Just need the conflicts resolved, and should be good to go

@ashishra0
Copy link
Contributor Author

@Zeragamba got it, Will fix these conflicts!

@ashishra0
Copy link
Contributor Author

ashishra0 commented Aug 17, 2021

Fixed the conflicts, @Zeragamba, @psibi could you please verify if the changes are in order? If not I will fix it :)

@psibi psibi merged commit dbe1362 into faker-ruby:master Aug 20, 2021
@psibi
Copy link
Member

psibi commented Aug 20, 2021

Thank you!

Sign up for free to 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.

None yet

5 participants