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 Faker for Famous Last Words #792

Merged
merged 9 commits into from
May 20, 2018
Merged

Add Faker for Famous Last Words #792

merged 9 commits into from
May 20, 2018

Conversation

susiirwin
Copy link
Contributor

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.

@susiirwin susiirwin changed the title Susi Irwin Add Faker for Famous Last Words Add Faker for Famous Last Words Jan 11, 2017
flexible :famous_last_words

class << self
def name
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

@vbrazo vbrazo left a 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

@vbrazo
Copy link
Member

vbrazo commented May 19, 2018

@susiirwin are you still interested in working in these changes? If not, we could assign to another contributor.

@susiirwin
Copy link
Contributor Author

I would really like to :) sorry I have left it dormant for so long! I will start working on it again soon.

@susiirwin
Copy link
Contributor Author

Will be working on this PR this week :) thanks for the encouragement!

@vbrazo
Copy link
Member

vbrazo commented May 20, 2018

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.

@vbrazo
Copy link
Member

vbrazo commented May 20, 2018

Could you rebase with master and fix the Rubocop violations? After rebasing, you'll need to install the new gems and then just run bundle exec rubocop -a. Let me know if you need help while rebasing @susiirwin

@susiirwin
Copy link
Contributor Author

@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....

Copy link
Contributor Author

@susiirwin susiirwin left a comment

Choose a reason for hiding this comment

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

Thank you!!!

@susiirwin
Copy link
Contributor Author

Thanks for all of your help @vbrazo! 💯

@vbrazo
Copy link
Member

vbrazo commented May 20, 2018

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:

git remote -v
git remote add faker git@github.com:stympy/faker.git  # if you don't have the faker remote address yet
git checkout master
git reset --hard HEAD~50 # because your branch master might have things that don't matter anymore
git pull faker master # now you're good to go
git push -f [your remote address] master # now your master is updated

# if you want to update your SusiIrwin-Dessert-Faker branch after updating master:
git checkout SusiIrwin-Dessert-Faker
git merge --no-ff master
git status  # to see what files have conflicts. Fix the conflicts and commit them
git add .
git commit -m 'something'
git push -f [your remote address] SusiIrwin-Dessert-Faker

I made a few changes. Notice that

  • the changelog.md has changed. Now we include the PR + name at the top. In the HEAD section.
  • locales changed a bit too. Now you have a file for them.

@vbrazo
Copy link
Member

vbrazo commented May 20, 2018

Notice that we are using Rubocop right now. I'm not sure if you are familiar with this gem, but now if you run rake, you'll run the tests and after that rubocop will be executed. Most rubocop issues are fixed with bundle exec rubocop -a, others you need to google and fix. Rubocop is great to control the code quality of your project.

@vbrazo
Copy link
Member

vbrazo commented May 20, 2018

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.

@vbrazo vbrazo merged commit 5678a98 into faker-ruby:master May 20, 2018
@vbrazo
Copy link
Member

vbrazo commented May 20, 2018

I just updated the contributors.md based on our discussions. New file. Thanks a lot.

@vbrazo vbrazo self-requested a review July 19, 2018 01:26
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* 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
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.

3 participants