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

Updates Food Faker to separate out Fruits and Veggies #1239

Merged
merged 4 commits into from
May 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Change Log

## HEAD Unreleased
### Latest update: 2018-05-18
### Latest update: 2018-05-21

**Additions**

- [PR #1239](https://github.com/stympy/faker/pull/1239) Update Faker::Food ([susiirwin](https://github.com/susiirwin))
- [PR #900](https://github.com/stympy/faker/pull/900) Add Japanese lorem words to locale [@vietqhoang](https://github.com/vietqhoang)
- [PR #987](https://github.com/stympy/faker/pull/987) Add Faker::Cannabis class [@GhostGroup](https://github.com/GhostGroup)
- [PR #1236](https://github.com/stympy/faker/pull/1236) Updates dessert faker [@susiirwin](https://github.com/susiirwin)
Expand Down
6 changes: 5 additions & 1 deletion doc/food.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ Faker::Food.dish #=> "Caesar Salad"

Faker::Food.description #=> "Three eggs with cilantro, tomatoes, onions, avocados and melted Emmental cheese. With a side of roasted potatoes, and your choice of toast or croissant."

Faker::Food.ingredient #=> "Sweet Potato"
Faker::Food.ingredient #=> "Adzuki Beans"

Faker::Food.fruits #=> "Peaches"

Faker::Food.vegetables #=> "Broccolini"

Faker::Food.spice #=> "Caraway Seed"

Expand Down
8 changes: 8 additions & 0 deletions lib/faker/food.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ def ingredient
fetch('food.ingredients')
end

def fruits
fetch('food.fruits')
end

def vegetables
fetch('food.vegetables')
end

def spice
fetch('food.spices')
end
Expand Down
Loading