-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 automotive data #692
add automotive data #692
Conversation
62b7bc9
to
24b4198
Compare
lib/faker/auto.rb
Outdated
end | ||
|
||
def model(make = '') | ||
return fetch('auto.models_by_make').values.flatten.sample if make.empty? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest not to shadow the make
method with a local variable, can it be renamed? _make
maybe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I didn't noticed it 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have force pushed the changes.
24b4198
to
f250def
Compare
f250def
to
ed9e8df
Compare
Why don´t you extend Faker::Vehicle? |
Good question. As you can see I just fetch existing #254 and fix some code and specs. |
@vbrazo unfortunately, I don't have a time for that. |
a359def
to
a5d7731
Compare
Sure, I'll take a look at it tomorrow |
Ok cool |
@vbrazo sorry, I won't be able to help with this any time soon. 😕 Thanks for keeping me mind though 😄 |
I'm on it! 😎 |
Thanks for the hard work @ivanovaleksey We are working in this feature in another PR #1260 |
#254 seems to be stale.
I fetched commits from the PR, fix specs and some methods.
TODO