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 brand, vendor support to commerce (#1601) #1731

Merged
merged 6 commits into from Aug 19, 2021

Conversation

ashishra0
Copy link
Contributor

@ashishra0 ashishra0 commented Sep 6, 2019

#1601
The new brand method on Faker::Commerce will result in this

Faker::Commerce.brand
=> "Apple"

The new vendor method on Faker::Commerce will result in this

Faker::Commerce.vendor
=> "Walmart"

@ashishra0 ashishra0 changed the title add brand, vendor support to commerce #1601 add brand, vendor support to commerce (#1601) Sep 6, 2019
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.

Thanks for this addition! Looks good to me!

@@ -23,4 +23,10 @@ Faker::Commerce.promotion_code #=> "AmazingDeal829102"
Faker::Commerce.promotion_code(digits: 2) #=> "AmazingPrice57"

Faker::Commerce.material #=> "Plastic"

# Generate a random brand
Faker::Commerce.brand #=> "Apple"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice ! I will want to use this as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

lib/locales/en/commerce.yml Outdated Show resolved Hide resolved
lib/faker/default/commerce.rb 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.

Looks good to me. Thanks!

@ashishra0
Copy link
Contributor Author

ashishra0 commented Aug 17, 2021

@vbrazo, @Zeragamba are we good to merge this? Let me know if something is missing!

@psibi psibi merged commit 45bdf35 into faker-ruby:master Aug 19, 2021
@psibi
Copy link
Member

psibi commented Aug 19, 2021

Thank you!

@ashishra0
Copy link
Contributor Author

@psibi excellent, thank you!

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

5 participants