-
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 Faker for Famous Last Words #792
Add Faker for Famous Last Words #792
Conversation
lib/faker/famous_last_words.rb
Outdated
flexible :famous_last_words | ||
|
||
class << self | ||
def name |
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 don't think this code is being tested; this method can be removed without the test failing
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.
The entire class << self
block can be removed, I think
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.
You are absolutely right! Thanks for pointing this out... I am going to continue working on this. I need to adjust my test to reflect the correct regex.
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.
It's the flexible :famous_last_words
combined with https://github.com/stympy/faker/blob/94db84f53c9623cdcbdccd0081f39c7f2684e9da/lib/faker.rb#L174
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.
Your changes look good. I think you still have work to do here, right?
A couple of things before we review this PR:
- Add your name + PR in the
changelog.md
- Rebase with master and fix all the
Rubocop
violations - After pushing the new changes, check Travis and Coveralls out to see if things are well
@susiirwin are you still interested in working in these changes? If not, we could assign to another contributor. |
I would really like to :) sorry I have left it dormant for so long! I will start working on it again soon. |
Will be working on this PR this week :) thanks for the encouragement! |
Awesome @susiirwin 💯 Well, I'm here to help, so if you need someone to review your changes, have doubts, want to discuss something or would like to do a pair programming with me, let me know. |
Could you rebase with master and fix the |
@vbrazo - a second set of eyes would be AMAZING :) I am pretty sure i did the rebase and fixed the extra line errors that Rubocop was angry about. BUT i am not sure that it is correct still? Can you take a look and offer some suggestions? Thanks in advance.... |
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.
Thank you!!!
Thanks for all of your help @vbrazo! 💯 |
I saw that you created a new branch to work on the desserts API. Great :) You should update your master branch. You should have the latest merged PRs there. Once it's up-to-date, you can create a new branch based in your new file structure. To update your master branch in your repository, you should do something like this in your terminal:
I made a few changes. Notice that
|
Notice that we are using Rubocop right now. I'm not sure if you are familiar with this gem, but now if you run |
I think this PR looks good and is good to go. Thanks for the hard work 👍 Let me know when the Dessert API is done. |
I just updated the |
* Add test, faker, locales * Add more Phrases to the faker * Add documentation for Famous Last Words * update documentation * updates tests, code, and documentation * Removes trailing line, updates Changelog * Add locales to new structure * Update changelog.md
Add a Faker Module for Famous Last Words - phrases from People who passed away from a variety of causes but left us with some great last Phrases. Test and Documentation included.