From e1e54c631cdcf87e7d224e8230408fd6505f4d23 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Sat, 19 May 2018 23:34:50 -0300 Subject: [PATCH] Update changelog.md and add missing dota docs --- CHANGELOG.md | 3 +++ README.md | 1 + doc/dota.md | 18 ++++++++++++++++++ test/test_helper.rb | 2 +- 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 doc/dota.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 74c8d200b9..6489f35528 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ **Additions** +- [PR #1134](https://github.com/stympy/faker/pull/1134) Test against latest Ruby versions [@tagliala](https://github.com/tagliala) +- [PR #794](https://github.com/stympy/faker/pull/794) Adding country code + minor locale updates [@vveliev](https://github.com/vveliev) +- [PR #1108](https://github.com/stympy/faker/pull/1108) Update Faker::Dessert [@natalietate](https://github.com/natalietate) - [PR #1223](https://github.com/stympy/faker/pull/1223) Fix minitest warnings [@vbrazo](https://github.com/vbrazo) - [PR #1174](https://github.com/stympy/faker/pull/1174) Dota2 API: Str Heroes, heroes quotes, Items, Teams, Players [@felipesousafs](https://github.com/darylf) - [PR #974](https://github.com/stympy/faker/pull/974) Specify version number each class was introduced [@darylf](https://github.com/darylf) diff --git a/README.md b/README.md index 8052f2ea2b..ceac8425ab 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ Contents - [Faker::Demographic](doc/demographic.md) - [Faker::Dessert](doc/dessert.md) - [Faker::Dog](doc/dog.md) + - [Faker::Dota](doc/dota.md) - [Faker::DragonBall](doc/dragon_ball.md) - [Faker::DrWho](doc/dr_who.md) - [Faker::DumbAndDumber](doc/dumb_and_dumber.md) diff --git a/doc/dota.md b/doc/dota.md new file mode 100644 index 0000000000..4d45eea848 --- /dev/null +++ b/doc/dota.md @@ -0,0 +1,18 @@ +# Faker::Dota + +```ruby +# Random hero +Faker::Dota.hero #=> "Abaddon" + +# Random item +Faker::Dota.item #=> "You have called death upon yourself." + +# Random team +Faker::Dota.team #=> "Evil Geniuses" + +# Random player +Faker::Dota.player #=> "Dendi" + +# Random quote +Faker::Dota.quote #=> "Easy now, this stuff is explosive!" +``` \ No newline at end of file diff --git a/test/test_helper.rb b/test/test_helper.rb index 266eeda0f2..ccf68e14a2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -6,7 +6,7 @@ simplecov_params = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter] SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(simplecov_params) SimpleCov.start do - add_filter ['.bundle', 'lib/helpers', 'lib/extensions', 'test'] + add_filter ['.bundle', 'lib/extensions', 'test'] end rescue LoadError puts 'Coverage disabled, enable by installing simplecov'