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::Creature::Animal #1396

Merged
merged 8 commits into from
Oct 12, 2018
Merged

Conversation

molbrown
Copy link
Contributor

A set of animal names, sourced from: https://en.wikipedia.org/wiki/List_of_English_animal_nouns

Opportunity to add more Animal options (male/female animal names, young,
group names, species names...)

Tests and Rubocop passing.

A set of animal names, sourced from: https://en.wikipedia.org/wiki/List_of_English_animal_nouns

Opportunity to add more Animal options (male/female animal names, young,
group names, species names...)

Tests and Rubocop passing.
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.

We have a similar method in the Faker::Team.creature object, but your description makes sense. I think an exclusive module for Animal would be sense.

The question is: should we remove the Faker::Team.creature locale and just call

def self.creature 
   Faker::Animal.name
end 

instead?

@vbrazo
Copy link
Member

vbrazo commented Oct 11, 2018

We're introducing namespaces to keep the gem more organized. Could you wrap this new module in Faker::Creature::Animal?

@molbrown
Copy link
Contributor Author

Creature Namespace added above Animal, tests and Rubocop passing.

@vbrazo vbrazo changed the title Add Faker::Animal Add Faker::Creature::Animal Oct 12, 2018
@vbrazo vbrazo merged commit b38f99b into faker-ruby:master Oct 12, 2018
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* Add Faker::Animal

A set of animal names, sourced from: https://en.wikipedia.org/wiki/List_of_English_animal_nouns

Opportunity to add more Animal options (male/female animal names, young,
group names, species names...)

Tests and Rubocop passing.

* adds Creature namespace over Animal

* updated creature in faker.rb to follow existing pattern

* Rubocop fixes

* Update animal.md

* Update faker.rb

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

2 participants