Skip to content

Commit

Permalink
Updates Food Faker to separate out Fruits and Veggies (#1239)
Browse files Browse the repository at this point in the history
* Updates Food Faker to separate out Fruits and Veggies

* Updates ChangeLog

* Updates last updated date
  • Loading branch information
susiirwin authored and vbrazo committed May 22, 2018
1 parent 58958f2 commit fe586fb
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
@@ -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
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
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

0 comments on commit fe586fb

Please sign in to comment.