From d79fae2b04dc66d295f0ced59742ce4a3646e423 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Tue, 1 Jan 2019 15:54:58 -0200 Subject: [PATCH 1/9] Add Quotes namespace --- CHANGELOG.md | 2 ++ doc/unreleased/default/famous_last_words.md | 7 ---- doc/unreleased/default/fillmurray.md | 11 ------ doc/unreleased/default/greek_philosophers.md | 9 ----- doc/unreleased/default/matz.md | 7 ---- .../most_interesting_man_in_the_world.md | 6 ---- doc/unreleased/default/robin.md | 10 ------ doc/unreleased/quotes/famous_last_words.md | 7 ++++ doc/unreleased/quotes/fillmurray.md | 11 ++++++ doc/unreleased/quotes/greek_philosophers.md | 9 +++++ doc/unreleased/quotes/matz.md | 7 ++++ .../most_interesting_man_in_the_world.md | 6 ++++ doc/unreleased/quotes/robin.md | 7 ++++ .../{default => quotes}/singular_siegler.md | 2 +- lib/faker/default/fillmurray.rb | 15 -------- lib/faker/default/greek_philosophers.rb | 15 -------- .../most_interesting_man_in_the_world.rb | 11 ------ lib/faker/default/robin.rb | 11 ------ lib/faker/default/singular_siegler.rb | 11 ------ .../famous_last_words.rb | 6 +++- lib/faker/deprecate/fillmurray.rb | 15 ++++++++ lib/faker/deprecate/greek_philosophers.rb | 20 +++++++++++ .../league_of_legends.rb | 0 lib/faker/{default => deprecate}/matz.rb | 6 +++- .../most_interesting_man_in_the_world.rb | 15 ++++++++ lib/faker/deprecate/robin.rb | 15 ++++++++ lib/faker/deprecate/singular_siegler.rb | 15 ++++++++ lib/faker/{default => deprecate}/witcher.rb | 0 lib/faker/quotes/famous_last_words.rb | 15 ++++++++ lib/faker/quotes/fillmurray.rb | 17 +++++++++ lib/faker/quotes/greek_philosophers.rb | 17 +++++++++ lib/faker/quotes/matz.rb | 13 +++++++ .../most_interesting_man_in_the_world.rb | 13 +++++++ lib/faker/quotes/robin.rb | 13 +++++++ lib/faker/quotes/singular_siegler.rb | 13 +++++++ .../deprecate/test_faker_famous_last_words.rb | 13 +++++++ test/deprecate/test_faker_fillmurray.rb | 35 +++++++++++++++++++ .../test_faker_greek_philosophers.rb | 17 +++++++++ test/deprecate/test_faker_matz.rb | 13 +++++++ test/deprecate/test_faker_robin.rb | 13 +++++++ test/deprecate/test_faker_singular_siegler.rb | 13 +++++++ .../test_most_interesting_man_in_the_world.rb | 13 +++++++ .../test_faker_famous_last_words.rb | 2 +- .../test_faker_fillmurray.rb | 2 +- .../test_faker_greek_philosophers.rb | 2 +- .../{default => quotes}/test_faker_matz.rb | 2 +- .../{default => quotes}/test_faker_robin.rb | 2 +- .../test_faker_singular_siegler.rb | 2 +- .../test_most_interesting_man_in_the_world.rb | 2 +- unreleased_README.md | 16 +++++---- 50 files changed, 374 insertions(+), 130 deletions(-) delete mode 100644 doc/unreleased/default/famous_last_words.md delete mode 100644 doc/unreleased/default/fillmurray.md delete mode 100755 doc/unreleased/default/greek_philosophers.md delete mode 100644 doc/unreleased/default/matz.md delete mode 100644 doc/unreleased/default/most_interesting_man_in_the_world.md delete mode 100644 doc/unreleased/default/robin.md create mode 100644 doc/unreleased/quotes/famous_last_words.md create mode 100644 doc/unreleased/quotes/fillmurray.md create mode 100755 doc/unreleased/quotes/greek_philosophers.md create mode 100644 doc/unreleased/quotes/matz.md create mode 100644 doc/unreleased/quotes/most_interesting_man_in_the_world.md create mode 100644 doc/unreleased/quotes/robin.md rename doc/unreleased/{default => quotes}/singular_siegler.md (58%) delete mode 100644 lib/faker/default/fillmurray.rb delete mode 100644 lib/faker/default/greek_philosophers.rb delete mode 100644 lib/faker/default/most_interesting_man_in_the_world.rb delete mode 100644 lib/faker/default/robin.rb delete mode 100644 lib/faker/default/singular_siegler.rb rename lib/faker/{default => deprecate}/famous_last_words.rb (51%) create mode 100644 lib/faker/deprecate/fillmurray.rb create mode 100644 lib/faker/deprecate/greek_philosophers.rb rename lib/faker/{default => deprecate}/league_of_legends.rb (100%) rename lib/faker/{default => deprecate}/matz.rb (50%) create mode 100644 lib/faker/deprecate/most_interesting_man_in_the_world.rb create mode 100644 lib/faker/deprecate/robin.rb create mode 100644 lib/faker/deprecate/singular_siegler.rb rename lib/faker/{default => deprecate}/witcher.rb (100%) create mode 100644 lib/faker/quotes/famous_last_words.rb create mode 100644 lib/faker/quotes/fillmurray.rb create mode 100644 lib/faker/quotes/greek_philosophers.rb create mode 100644 lib/faker/quotes/matz.rb create mode 100644 lib/faker/quotes/most_interesting_man_in_the_world.rb create mode 100644 lib/faker/quotes/robin.rb create mode 100644 lib/faker/quotes/singular_siegler.rb create mode 100644 test/deprecate/test_faker_famous_last_words.rb create mode 100644 test/deprecate/test_faker_fillmurray.rb create mode 100644 test/deprecate/test_faker_greek_philosophers.rb create mode 100644 test/deprecate/test_faker_matz.rb create mode 100644 test/deprecate/test_faker_robin.rb create mode 100644 test/deprecate/test_faker_singular_siegler.rb create mode 100644 test/deprecate/test_most_interesting_man_in_the_world.rb rename test/faker/{default => quotes}/test_faker_famous_last_words.rb (82%) rename test/faker/{default => quotes}/test_faker_fillmurray.rb (95%) rename test/faker/{default => quotes}/test_faker_greek_philosophers.rb (85%) rename test/faker/{default => quotes}/test_faker_matz.rb (85%) rename test/faker/{default => quotes}/test_faker_robin.rb (84%) rename test/faker/{default => quotes}/test_faker_singular_siegler.rb (82%) rename test/faker/{default => quotes}/test_most_interesting_man_in_the_world.rb (78%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de9713ff5..3879018532 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ - [PR #372](https://github.com/stympy/faker/pull/372) Add test_password_could_achieve_max_length [@oleksii-ti](https://github.com/oleksii-ti) ### Deprecation +- [PR #1503](https://github.com/stympy/faker/pull/1503) Add Quotes namespace [@vbrazo](https://github.com/vbrazo) + - Deprecates `::FamousLastWords`, `Fillmurray`, `::GreekPhilosophers`, `::Matz`, `::MostInterestingManInTheWorld`, `::Robin`, `::SingularSiegler` - [PR #1480](https://github.com/stympy/faker/pull/1480) Add Music, Movies and TvShows namespaces [@vbrazo](https://github.com/vbrazo) - Deprecates `::Hobbit`, `HitchhikersGuideToTheGalaxy`, `::HarryPotter`, `::RockBand`, `::MichaelScott`, `::RuPaul` - [PR #1481](https://github.com/stympy/faker/pull/1481) Add Blockchain namespace [@vbrazo](https://github.com/vbrazo) diff --git a/doc/unreleased/default/famous_last_words.md b/doc/unreleased/default/famous_last_words.md deleted file mode 100644 index a9b44f151e..0000000000 --- a/doc/unreleased/default/famous_last_words.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::FamousLastWords - -Available since version 1.9.0. - -```ruby -Faker::FamousLastWords.last_words #=> "My vocabulary did this to me. Your love will let you go on…" -``` diff --git a/doc/unreleased/default/fillmurray.md b/doc/unreleased/default/fillmurray.md deleted file mode 100644 index e69e640511..0000000000 --- a/doc/unreleased/default/fillmurray.md +++ /dev/null @@ -1,11 +0,0 @@ -# Faker::Fillmurray - -Available since version 1.7.1. - -```ruby -Faker::Fillmurray.image #=> "http://fillmurray.com/300/300" - -Faker::Fillmurray.image(true) #=> "http://fillmurray.com/g/300/300" - -Faker::Fillmurray.image(false, 200, 400) #=> "http://fillmurray.com/200/400" -``` diff --git a/doc/unreleased/default/greek_philosophers.md b/doc/unreleased/default/greek_philosophers.md deleted file mode 100755 index 8f3421478d..0000000000 --- a/doc/unreleased/default/greek_philosophers.md +++ /dev/null @@ -1,9 +0,0 @@ -# Faker::GreekPhilosophers - -Available since version 1.9.0. - -```ruby -Faker::GreekPhilosophers.name #=> "Socrates" - -Faker::GreekPhilosophers.quote #=> "Only the educated are free." -``` diff --git a/doc/unreleased/default/matz.md b/doc/unreleased/default/matz.md deleted file mode 100644 index 8e530a28c9..0000000000 --- a/doc/unreleased/default/matz.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::Matz - -Available since version 1.8.0. - -```ruby -Faker::Matz.quote #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better." -``` diff --git a/doc/unreleased/default/most_interesting_man_in_the_world.md b/doc/unreleased/default/most_interesting_man_in_the_world.md deleted file mode 100644 index 27f5ad3170..0000000000 --- a/doc/unreleased/default/most_interesting_man_in_the_world.md +++ /dev/null @@ -1,6 +0,0 @@ -# Faker::MostInterestingManInTheWorld - -```ruby -# Random Most Interesting Man In The World quote -Faker::MostInterestingManInTheWorld.quote #=> "He can speak Russian… in French" -``` diff --git a/doc/unreleased/default/robin.md b/doc/unreleased/default/robin.md deleted file mode 100644 index 0c3de5d863..0000000000 --- a/doc/unreleased/default/robin.md +++ /dev/null @@ -1,10 +0,0 @@ -# Faker::Robin - -Available since version 1.8.0. - -```ruby -Faker::Robin.quote #=> "Holy Razors Edge" -Faker::Robin.quote #=> "Holy Alter Ego" -Faker::Robin.quote #=> "Holy Relief" -Faker::Robin.quote #=> "Holy Pressure Cooker" -``` diff --git a/doc/unreleased/quotes/famous_last_words.md b/doc/unreleased/quotes/famous_last_words.md new file mode 100644 index 0000000000..a94bac5618 --- /dev/null +++ b/doc/unreleased/quotes/famous_last_words.md @@ -0,0 +1,7 @@ +# Faker::Quotes::FamousLastWords + +Available since version 1.9.0. + +```ruby +Faker::Quotes::FamousLastWords.last_words #=> "My vocabulary did this to me. Your love will let you go on…" +``` diff --git a/doc/unreleased/quotes/fillmurray.md b/doc/unreleased/quotes/fillmurray.md new file mode 100644 index 0000000000..cac57daf55 --- /dev/null +++ b/doc/unreleased/quotes/fillmurray.md @@ -0,0 +1,11 @@ +# Faker::Quotes::Fillmurray + +Available since version 1.7.1. + +```ruby +Faker::Quotes::Fillmurray.image #=> "http://fillmurray.com/300/300" + +Faker::Quotes::Fillmurray.image(true) #=> "http://fillmurray.com/g/300/300" + +Faker::Quotes::Fillmurray.image(false, 200, 400) #=> "http://fillmurray.com/200/400" +``` diff --git a/doc/unreleased/quotes/greek_philosophers.md b/doc/unreleased/quotes/greek_philosophers.md new file mode 100755 index 0000000000..9bc89c2c2a --- /dev/null +++ b/doc/unreleased/quotes/greek_philosophers.md @@ -0,0 +1,9 @@ +# Faker::Quotes::GreekPhilosophers + +Available since version 1.9.0. + +```ruby +Faker::Quotes::GreekPhilosophers.name #=> "Socrates" + +Faker::Quotes::GreekPhilosophers.quote #=> "Only the educated are free." +``` diff --git a/doc/unreleased/quotes/matz.md b/doc/unreleased/quotes/matz.md new file mode 100644 index 0000000000..369bf9da49 --- /dev/null +++ b/doc/unreleased/quotes/matz.md @@ -0,0 +1,7 @@ +# Faker::Quotes::Matz + +Available since version 1.8.0. + +```ruby +Faker::Quotes::Matz.quote #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better." +``` diff --git a/doc/unreleased/quotes/most_interesting_man_in_the_world.md b/doc/unreleased/quotes/most_interesting_man_in_the_world.md new file mode 100644 index 0000000000..561904829f --- /dev/null +++ b/doc/unreleased/quotes/most_interesting_man_in_the_world.md @@ -0,0 +1,6 @@ +# Faker::Quotes::MostInterestingManInTheWorld + +```ruby +# Random Most Interesting Man In The World quote +Faker::Quotes::MostInterestingManInTheWorld.quote #=> "He can speak Russian… in French" +``` diff --git a/doc/unreleased/quotes/robin.md b/doc/unreleased/quotes/robin.md new file mode 100644 index 0000000000..53add5ba28 --- /dev/null +++ b/doc/unreleased/quotes/robin.md @@ -0,0 +1,7 @@ +# Faker::Quotes::Robin + +Available since version 1.8.0. + +```ruby +Faker::Quotes::Robin.quote #=> "Holy Razors Edge" +``` diff --git a/doc/unreleased/default/singular_siegler.md b/doc/unreleased/quotes/singular_siegler.md similarity index 58% rename from doc/unreleased/default/singular_siegler.md rename to doc/unreleased/quotes/singular_siegler.md index 2145c7e539..308f741c99 100644 --- a/doc/unreleased/default/singular_siegler.md +++ b/doc/unreleased/quotes/singular_siegler.md @@ -3,5 +3,5 @@ Available since version 1.9.0. ```ruby -Faker::SingularSiegler.quote #=> "Texas!" +Faker::Quotes::SingularSiegler.quote #=> "Texas!" ``` diff --git a/lib/faker/default/fillmurray.rb b/lib/faker/default/fillmurray.rb deleted file mode 100644 index 433dd8b93e..0000000000 --- a/lib/faker/default/fillmurray.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Fillmurray < Base - class << self - def image(grayscale = false, width = 200, height = 200) - raise ArgumentError, 'Width should be a number' unless width.to_s =~ /^\d+$/ - raise ArgumentError, 'Height should be a number' unless height.to_s =~ /^\d+$/ - raise ArgumentError, 'Grayscale should be a boolean' unless [true, false].include?(grayscale) - - grayscale == true ? "https://fillmurray.com/g/#{width}/#{height}" : "https://fillmurray.com/#{width}/#{height}" - end - end - end -end diff --git a/lib/faker/default/greek_philosophers.rb b/lib/faker/default/greek_philosophers.rb deleted file mode 100644 index 5b20410a1c..0000000000 --- a/lib/faker/default/greek_philosophers.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Faker - class GreekPhilosophers < Base - class << self - def name - fetch('greek_philosophers.names') - end - - def quote - fetch('greek_philosophers.quotes') - end - end - end -end diff --git a/lib/faker/default/most_interesting_man_in_the_world.rb b/lib/faker/default/most_interesting_man_in_the_world.rb deleted file mode 100644 index cb4843019e..0000000000 --- a/lib/faker/default/most_interesting_man_in_the_world.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Faker - class MostInterestingManInTheWorld < Base - class << self - def quote - fetch('most_interesting_man_in_the_world.quotes') - end - end - end -end diff --git a/lib/faker/default/robin.rb b/lib/faker/default/robin.rb deleted file mode 100644 index 48d2b1a7c1..0000000000 --- a/lib/faker/default/robin.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Robin < Base - class << self - def quote - fetch('robin.quotes') - end - end - end -end diff --git a/lib/faker/default/singular_siegler.rb b/lib/faker/default/singular_siegler.rb deleted file mode 100644 index 34f327ac81..0000000000 --- a/lib/faker/default/singular_siegler.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Faker - class SingularSiegler < Base - class << self - def quote - fetch('singular_siegler.quotes') - end - end - end -end diff --git a/lib/faker/default/famous_last_words.rb b/lib/faker/deprecate/famous_last_words.rb similarity index 51% rename from lib/faker/default/famous_last_words.rb rename to lib/faker/deprecate/famous_last_words.rb index 4f1104b5ca..697d2da4cb 100644 --- a/lib/faker/default/famous_last_words.rb +++ b/lib/faker/deprecate/famous_last_words.rb @@ -5,9 +5,13 @@ class FamousLastWords < Base flexible :famous_last_words class << self + extend Gem::Deprecate + def last_words - fetch('famous_last_words.last_words') + Faker::Quotes::FamousLastWords.last_words end + + deprecate :last_words, 'Faker::Quotes::FamousLastWords.last_words', 2018, 12 end end end diff --git a/lib/faker/deprecate/fillmurray.rb b/lib/faker/deprecate/fillmurray.rb new file mode 100644 index 0000000000..a4b482a00d --- /dev/null +++ b/lib/faker/deprecate/fillmurray.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Faker + class Fillmurray < Base + class << self + extend Gem::Deprecate + + def image(grayscale = false, width = 200, height = 200) + Faker::Quotes::Fillmurray.image(grayscale, width, height) + end + + deprecate :image, 'Faker::Quotes::Fillmurray.image', 2018, 12 + end + end +end diff --git a/lib/faker/deprecate/greek_philosophers.rb b/lib/faker/deprecate/greek_philosophers.rb new file mode 100644 index 0000000000..bdfdac708c --- /dev/null +++ b/lib/faker/deprecate/greek_philosophers.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Faker + class GreekPhilosophers < Base + class << self + extend Gem::Deprecate + + def name + Faker::Quotes::GreekPhilosophers.name + end + + def quote + Faker::Quotes::GreekPhilosophers.quote + end + + deprecate :name, 'Faker::Quotes::GreekPhilosophers.name', 2018, 12 + deprecate :quote, 'Faker::Quotes::GreekPhilosophers.quote', 2018, 12 + end + end +end diff --git a/lib/faker/default/league_of_legends.rb b/lib/faker/deprecate/league_of_legends.rb similarity index 100% rename from lib/faker/default/league_of_legends.rb rename to lib/faker/deprecate/league_of_legends.rb diff --git a/lib/faker/default/matz.rb b/lib/faker/deprecate/matz.rb similarity index 50% rename from lib/faker/default/matz.rb rename to lib/faker/deprecate/matz.rb index b1e137fc93..2cf51c37ad 100644 --- a/lib/faker/default/matz.rb +++ b/lib/faker/deprecate/matz.rb @@ -3,9 +3,13 @@ module Faker class Matz < Base class << self + extend Gem::Deprecate + def quote - fetch('matz.quotes') + Faker::Quotes::Matz.quote end + + deprecate :quote, 'Faker::Quotes::Matz.quote', 2018, 12 end end end diff --git a/lib/faker/deprecate/most_interesting_man_in_the_world.rb b/lib/faker/deprecate/most_interesting_man_in_the_world.rb new file mode 100644 index 0000000000..2255e257b3 --- /dev/null +++ b/lib/faker/deprecate/most_interesting_man_in_the_world.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Faker + class MostInterestingManInTheWorld < Base + class << self + extend Gem::Deprecate + + def quote + Faker::Quotes::MostInterestingManInTheWorld.quote + end + + deprecate :quote, 'Faker::Quotes::MostInterestingManInTheWorld.quote', 2018, 12 + end + end +end diff --git a/lib/faker/deprecate/robin.rb b/lib/faker/deprecate/robin.rb new file mode 100644 index 0000000000..d7341e2cc9 --- /dev/null +++ b/lib/faker/deprecate/robin.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Faker + class Robin < Base + class << self + extend Gem::Deprecate + + def quote + Faker::Quotes::Robin.quote + end + + deprecate :quote, 'Faker::Quotes::Robin.quote', 2018, 12 + end + end +end diff --git a/lib/faker/deprecate/singular_siegler.rb b/lib/faker/deprecate/singular_siegler.rb new file mode 100644 index 0000000000..988ff25393 --- /dev/null +++ b/lib/faker/deprecate/singular_siegler.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Faker + class SingularSiegler < Base + class << self + extend Gem::Deprecate + + def quote + Faker::Quotes::SingularSiegler.quote + end + + deprecate :quote, 'Faker::Quotes::SingularSiegler.quote', 2018, 12 + end + end +end diff --git a/lib/faker/default/witcher.rb b/lib/faker/deprecate/witcher.rb similarity index 100% rename from lib/faker/default/witcher.rb rename to lib/faker/deprecate/witcher.rb diff --git a/lib/faker/quotes/famous_last_words.rb b/lib/faker/quotes/famous_last_words.rb new file mode 100644 index 0000000000..707f3cf70c --- /dev/null +++ b/lib/faker/quotes/famous_last_words.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class FamousLastWords < Base + flexible :famous_last_words + + class << self + def last_words + fetch('famous_last_words.last_words') + end + end + end + end +end diff --git a/lib/faker/quotes/fillmurray.rb b/lib/faker/quotes/fillmurray.rb new file mode 100644 index 0000000000..9c99bad631 --- /dev/null +++ b/lib/faker/quotes/fillmurray.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class Fillmurray < Base + class << self + def image(grayscale = false, width = 200, height = 200) + raise ArgumentError, 'Width should be a number' unless width.to_s =~ /^\d+$/ + raise ArgumentError, 'Height should be a number' unless height.to_s =~ /^\d+$/ + raise ArgumentError, 'Grayscale should be a boolean' unless [true, false].include?(grayscale) + + grayscale == true ? "https://fillmurray.com/g/#{width}/#{height}" : "https://fillmurray.com/#{width}/#{height}" + end + end + end + end +end diff --git a/lib/faker/quotes/greek_philosophers.rb b/lib/faker/quotes/greek_philosophers.rb new file mode 100644 index 0000000000..1512134eaf --- /dev/null +++ b/lib/faker/quotes/greek_philosophers.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class GreekPhilosophers < Base + class << self + def name + fetch('greek_philosophers.names') + end + + def quote + fetch('greek_philosophers.quotes') + end + end + end + end +end diff --git a/lib/faker/quotes/matz.rb b/lib/faker/quotes/matz.rb new file mode 100644 index 0000000000..d0a2e234b5 --- /dev/null +++ b/lib/faker/quotes/matz.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class Matz < Base + class << self + def quote + fetch('matz.quotes') + end + end + end + end +end diff --git a/lib/faker/quotes/most_interesting_man_in_the_world.rb b/lib/faker/quotes/most_interesting_man_in_the_world.rb new file mode 100644 index 0000000000..b213283701 --- /dev/null +++ b/lib/faker/quotes/most_interesting_man_in_the_world.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class MostInterestingManInTheWorld < Base + class << self + def quote + fetch('most_interesting_man_in_the_world.quotes') + end + end + end + end +end diff --git a/lib/faker/quotes/robin.rb b/lib/faker/quotes/robin.rb new file mode 100644 index 0000000000..b1ca1cc707 --- /dev/null +++ b/lib/faker/quotes/robin.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class Robin < Base + class << self + def quote + fetch('robin.quotes') + end + end + end + end +end diff --git a/lib/faker/quotes/singular_siegler.rb b/lib/faker/quotes/singular_siegler.rb new file mode 100644 index 0000000000..f89b590652 --- /dev/null +++ b/lib/faker/quotes/singular_siegler.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class SingularSiegler < Base + class << self + def quote + fetch('singular_siegler.quotes') + end + end + end + end +end diff --git a/test/deprecate/test_faker_famous_last_words.rb b/test/deprecate/test_faker_famous_last_words.rb new file mode 100644 index 0000000000..499f43595d --- /dev/null +++ b/test/deprecate/test_faker_famous_last_words.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateFamousLastWords < Test::Unit::TestCase + def setup + @tester = Faker::FamousLastWords + end + + def test_name + assert @tester.last_words.match(/\w+/) + end +end diff --git a/test/deprecate/test_faker_fillmurray.rb b/test/deprecate/test_faker_fillmurray.rb new file mode 100644 index 0000000000..d973296c32 --- /dev/null +++ b/test/deprecate/test_faker_fillmurray.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateFillmurray < Test::Unit::TestCase + def setup + @tester = Faker::Fillmurray + end + + def test_fillmurray + assert !@tester.image(false, '300', '300').match(%r{https:\/\/fillmurray\.com\/(\d+)\/(\d+)}).nil? + end + + def test_fillmurray_with_grayscale + assert @tester.image(true, '300', '300').match(%r{https:\/\/fillmurray\.com\/(g?\/?)(\d+)\/(\d+)})[1] == 'g/' + end + + def test_fillmurray_with_incorrect_height_format + assert_raise ArgumentError do + @tester.image(false, '300', 'nine-thousand') + end + end + + def test_fillmurray_with_incorrect_width_format + assert_raise ArgumentError do + @tester.image(false, 'three-hundred') + end + end + + def test_fillmurray_with_incorrect_grayscale + assert_raise ArgumentError do + @tester.image('gray', '300', '400') + end + end +end diff --git a/test/deprecate/test_faker_greek_philosophers.rb b/test/deprecate/test_faker_greek_philosophers.rb new file mode 100644 index 0000000000..ca1b8d23ab --- /dev/null +++ b/test/deprecate/test_faker_greek_philosophers.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateGreekPhilosophers < Test::Unit::TestCase + def setup + @tester = Faker::GreekPhilosophers + end + + def test_name + assert @tester.name.match(/\w+/) + end + + def test_quote + assert @tester.quote.match(/\w+/) + end +end diff --git a/test/deprecate/test_faker_matz.rb b/test/deprecate/test_faker_matz.rb new file mode 100644 index 0000000000..f725c00182 --- /dev/null +++ b/test/deprecate/test_faker_matz.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateMatz < Test::Unit::TestCase + def setup + @tester = Faker::Matz + end + + def test_quote + assert @tester.quote.match(/\w+/) + end +end diff --git a/test/deprecate/test_faker_robin.rb b/test/deprecate/test_faker_robin.rb new file mode 100644 index 0000000000..44814a82c8 --- /dev/null +++ b/test/deprecate/test_faker_robin.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateRobin < Test::Unit::TestCase + def setup + @tester = Faker::Robin + end + + def test_quote + assert @tester.quote.match(/\w+/) + end +end diff --git a/test/deprecate/test_faker_singular_siegler.rb b/test/deprecate/test_faker_singular_siegler.rb new file mode 100644 index 0000000000..c3f604c01b --- /dev/null +++ b/test/deprecate/test_faker_singular_siegler.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateSingularSiegler < Test::Unit::TestCase + def setup + @tester = Faker::SingularSiegler + end + + def test_quote + assert @tester.quote.match(/\w/) + end +end diff --git a/test/deprecate/test_most_interesting_man_in_the_world.rb b/test/deprecate/test_most_interesting_man_in_the_world.rb new file mode 100644 index 0000000000..e6cf5966c2 --- /dev/null +++ b/test/deprecate/test_most_interesting_man_in_the_world.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateMostInterestingManInTheWorld < Test::Unit::TestCase + def setup + @tester = Faker::MostInterestingManInTheWorld + end + + def test_quote + assert @tester.quote.match(/\w+/) + end +end diff --git a/test/faker/default/test_faker_famous_last_words.rb b/test/faker/quotes/test_faker_famous_last_words.rb similarity index 82% rename from test/faker/default/test_faker_famous_last_words.rb rename to test/faker/quotes/test_faker_famous_last_words.rb index 48b5175728..6523ca7661 100644 --- a/test/faker/default/test_faker_famous_last_words.rb +++ b/test/faker/quotes/test_faker_famous_last_words.rb @@ -4,7 +4,7 @@ class TestFakerFamousLastWords < Test::Unit::TestCase def setup - @tester = Faker::FamousLastWords + @tester = Faker::Quotes::FamousLastWords end def test_name diff --git a/test/faker/default/test_faker_fillmurray.rb b/test/faker/quotes/test_faker_fillmurray.rb similarity index 95% rename from test/faker/default/test_faker_fillmurray.rb rename to test/faker/quotes/test_faker_fillmurray.rb index e10486079d..cb943a3aa9 100644 --- a/test/faker/default/test_faker_fillmurray.rb +++ b/test/faker/quotes/test_faker_fillmurray.rb @@ -4,7 +4,7 @@ class TestFakerFillmurray < Test::Unit::TestCase def setup - @tester = Faker::Fillmurray + @tester = Faker::Quotes::Fillmurray end def test_fillmurray diff --git a/test/faker/default/test_faker_greek_philosophers.rb b/test/faker/quotes/test_faker_greek_philosophers.rb similarity index 85% rename from test/faker/default/test_faker_greek_philosophers.rb rename to test/faker/quotes/test_faker_greek_philosophers.rb index e84ce4c914..8a155bbaa8 100644 --- a/test/faker/default/test_faker_greek_philosophers.rb +++ b/test/faker/quotes/test_faker_greek_philosophers.rb @@ -4,7 +4,7 @@ class TestFakerGreekPhilosophers < Test::Unit::TestCase def setup - @tester = Faker::GreekPhilosophers + @tester = Faker::Quotes::GreekPhilosophers end def test_name diff --git a/test/faker/default/test_faker_matz.rb b/test/faker/quotes/test_faker_matz.rb similarity index 85% rename from test/faker/default/test_faker_matz.rb rename to test/faker/quotes/test_faker_matz.rb index ec373bf801..71791120b5 100644 --- a/test/faker/default/test_faker_matz.rb +++ b/test/faker/quotes/test_faker_matz.rb @@ -4,7 +4,7 @@ class TestFakerMatz < Test::Unit::TestCase def setup - @tester = Faker::Matz + @tester = Faker::Quotes::Matz end def test_quote diff --git a/test/faker/default/test_faker_robin.rb b/test/faker/quotes/test_faker_robin.rb similarity index 84% rename from test/faker/default/test_faker_robin.rb rename to test/faker/quotes/test_faker_robin.rb index 6ee29ea573..a309679e73 100644 --- a/test/faker/default/test_faker_robin.rb +++ b/test/faker/quotes/test_faker_robin.rb @@ -4,7 +4,7 @@ class TestFakerRobin < Test::Unit::TestCase def setup - @tester = Faker::Robin + @tester = Faker::Quotes::Robin end def test_quote diff --git a/test/faker/default/test_faker_singular_siegler.rb b/test/faker/quotes/test_faker_singular_siegler.rb similarity index 82% rename from test/faker/default/test_faker_singular_siegler.rb rename to test/faker/quotes/test_faker_singular_siegler.rb index ab220fc2f8..7a6aa27f6d 100644 --- a/test/faker/default/test_faker_singular_siegler.rb +++ b/test/faker/quotes/test_faker_singular_siegler.rb @@ -4,7 +4,7 @@ class TestFakerSingularSiegler < Test::Unit::TestCase def setup - @tester = Faker::SingularSiegler + @tester = Faker::Quotes::SingularSiegler end def test_quote diff --git a/test/faker/default/test_most_interesting_man_in_the_world.rb b/test/faker/quotes/test_most_interesting_man_in_the_world.rb similarity index 78% rename from test/faker/default/test_most_interesting_man_in_the_world.rb rename to test/faker/quotes/test_most_interesting_man_in_the_world.rb index 5c29b063fb..ded2ac03df 100644 --- a/test/faker/default/test_most_interesting_man_in_the_world.rb +++ b/test/faker/quotes/test_most_interesting_man_in_the_world.rb @@ -4,7 +4,7 @@ class MostInterestingManInTheWorld < Test::Unit::TestCase def setup - @tester = Faker::MostInterestingManInTheWorld + @tester = Faker::Quotes::MostInterestingManInTheWorld end def test_quote diff --git a/unreleased_README.md b/unreleased_README.md index a96898e5aa..b7a8dceb41 100644 --- a/unreleased_README.md +++ b/unreleased_README.md @@ -150,15 +150,12 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' - [Faker::Educator](doc/unreleased/default/educator.md) - [Faker::ElectricalComponents](doc/unreleased/default/electrical_components.md) - [Faker::Esport](doc/unreleased/default/esport.md) - - [Faker::FamousLastWords](doc/unreleased/default/famous_last_words.md) - [Faker::File](doc/unreleased/default/file.md) - - [Faker::Fillmurray](doc/unreleased/default/fillmurray.md) - [Faker::Finance](doc/unreleased/default/finance.md) - [Faker::Food](doc/unreleased/default/food.md) - [Faker::Football](doc/unreleased/default/football.md) - [Faker::FunnyName](doc/unreleased/default/funny_name.md) - [Faker::Gender](doc/unreleased/default/gender.md) - - [Faker::GreekPhilosophers](doc/unreleased/default/greek_philosophers.md) - [Faker::Hacker](doc/unreleased/default/hacker.md) - [Faker::Hipster](doc/unreleased/default/hipster.md) - [Faker::House](doc/unreleased/default/house.md) @@ -175,10 +172,8 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' - [Faker::Lovecraft](doc/unreleased/default/lovecraft.md) - [Faker::Markdown](doc/unreleased/default/markdown.md) - [Faker::Marketing](doc/unreleased/default/marketing.md) - - [Faker::Matz](doc/unreleased/default/matz.md) - [Faker::Measurement](doc/unreleased/default/measurement.md) - [Faker::Military](doc/unreleased/default/military.md) - - [Faker::MostInterestingManInTheWorld](doc/unreleased/default/most_interesting_man_in_the_world.md) - [Faker::Name](doc/unreleased/default/name.md) - [Faker::Nation](doc/unreleased/default/nation.md) - [Faker::NatoPhoneticAlphabet](doc/unreleased/default/nato_phonetic_alphabet.md) @@ -190,9 +185,7 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' - [Faker::ProgrammingLanguage](doc/unreleased/default/programming_language.md) - [Faker::Relationship](doc/unreleased/default/relationship.md) - [Faker::Restaurant](doc/unreleased/default/restaurant.md) - - [Faker::Robin](doc/unreleased/default/robin.md) - [Faker::Science](doc/unreleased/default/science.md) - - [Faker::SingularSiegler](doc/unreleased/default/singular_siegler.md) - [Faker::SlackEmoji](doc/unreleased/default/slack_emoji.md) - [Faker::Source](doc/unreleased/default/source.md) - [Faker::SouthAfrica](doc/unreleased/default/south_africa.md) @@ -262,6 +255,15 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' - [Faker::Music::RockBand](doc/unreleased/music/rock_band.md) - [Faker::Music::UmphreysMcgee](doc/unreleased/music/umphreys_mcgee.md) +### Quotes + - [Faker::Quotes::FamousLastWords](doc/unreleased/quotes/famous_last_words.md) + - [Faker::Quotes::Fillmurray](doc/unreleased/quotes/fillmurray.md) + - [Faker::Quotes::GreekPhilosophers](doc/unreleased/quotes/greek_philosophers.md) + - [Faker::Quotes::Matz](doc/unreleased/quotes/matz.md) + - [Faker::Quotes::MostInterestingManInTheWorld](doc/unreleased/quotes/most_interesting_man_in_the_world.md) + - [Faker::Quotes::Robin](doc/unreleased/quotes/robin.md) + - [Faker::Quotes::SingularSiegler](doc/unreleased/quotes/singular_siegler.md) + ### Tv Shows - [Faker::TvShows::AquaTeenHungerForce](doc/unreleased/tv_shows/aqua_teen_hunger_force.md) - [Faker::TvShows::BojackHorseman](doc/unreleased/tv_shows/bojack_horseman.md) From 5ec3301333de7eb978c6a016d75c76774abefd79 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Tue, 1 Jan 2019 15:59:10 -0200 Subject: [PATCH 2/9] Deprecate ::Yoda --- CHANGELOG.md | 2 +- doc/unreleased/quotes/singular_siegler.md | 2 +- doc/unreleased/quotes/yoda.md | 7 +++++++ lib/faker/{default => deprecate}/yoda.rb | 6 +++++- lib/faker/quotes/yoda.rb | 14 ++++++++++++++ test/deprecate/test_deprecate_yoda.rb | 13 +++++++++++++ ...est_faker_most_interesting_man_in_the_world.rb} | 0 test/faker/{default => quotes}/test_faker_yoda.rb | 2 +- 8 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 doc/unreleased/quotes/yoda.md rename lib/faker/{default => deprecate}/yoda.rb (59%) create mode 100644 lib/faker/quotes/yoda.rb create mode 100644 test/deprecate/test_deprecate_yoda.rb rename test/faker/quotes/{test_most_interesting_man_in_the_world.rb => test_faker_most_interesting_man_in_the_world.rb} (100%) rename test/faker/{default => quotes}/test_faker_yoda.rb (85%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3879018532..4d99830192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,7 +34,7 @@ ### Deprecation - [PR #1503](https://github.com/stympy/faker/pull/1503) Add Quotes namespace [@vbrazo](https://github.com/vbrazo) - - Deprecates `::FamousLastWords`, `Fillmurray`, `::GreekPhilosophers`, `::Matz`, `::MostInterestingManInTheWorld`, `::Robin`, `::SingularSiegler` + - Deprecates `::FamousLastWords`, `Fillmurray`, `::GreekPhilosophers`, `::Matz`, `::MostInterestingManInTheWorld`, `::Robin`, `::SingularSiegler`, `::Yoda` - [PR #1480](https://github.com/stympy/faker/pull/1480) Add Music, Movies and TvShows namespaces [@vbrazo](https://github.com/vbrazo) - Deprecates `::Hobbit`, `HitchhikersGuideToTheGalaxy`, `::HarryPotter`, `::RockBand`, `::MichaelScott`, `::RuPaul` - [PR #1481](https://github.com/stympy/faker/pull/1481) Add Blockchain namespace [@vbrazo](https://github.com/vbrazo) diff --git a/doc/unreleased/quotes/singular_siegler.md b/doc/unreleased/quotes/singular_siegler.md index 308f741c99..51658fc1ae 100644 --- a/doc/unreleased/quotes/singular_siegler.md +++ b/doc/unreleased/quotes/singular_siegler.md @@ -1,4 +1,4 @@ -# Faker::SingularSiegler +# Faker::Quotes::SingularSiegler Available since version 1.9.0. diff --git a/doc/unreleased/quotes/yoda.md b/doc/unreleased/quotes/yoda.md new file mode 100644 index 0000000000..048dab2f1d --- /dev/null +++ b/doc/unreleased/quotes/yoda.md @@ -0,0 +1,7 @@ +# Faker::Quotes::Yoda + +Available since version 1.9.0. + +```ruby +Faker::Quotes::Yoda.quote #=> "Use your feelings, Obi-Wan, and find him you will." +``` diff --git a/lib/faker/default/yoda.rb b/lib/faker/deprecate/yoda.rb similarity index 59% rename from lib/faker/default/yoda.rb rename to lib/faker/deprecate/yoda.rb index 82b6e261e7..4cb74da1ee 100644 --- a/lib/faker/default/yoda.rb +++ b/lib/faker/deprecate/yoda.rb @@ -3,10 +3,14 @@ module Faker class Yoda < Base class << self + extend Gem::Deprecate + # from: http://morecoolquotes.com/famous-yoda-quotes/ def quote - fetch('yoda.quotes') + Faker::Quotes::Yoda.quote end + + deprecate :quote, 'Faker::Quotes::Yoda.quote', 2018, 12 end end end diff --git a/lib/faker/quotes/yoda.rb b/lib/faker/quotes/yoda.rb new file mode 100644 index 0000000000..be156f86b2 --- /dev/null +++ b/lib/faker/quotes/yoda.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class Yoda < Base + class << self + # from: http://morecoolquotes.com/famous-yoda-quotes/ + def quote + fetch('yoda.quotes') + end + end + end + end +end diff --git a/test/deprecate/test_deprecate_yoda.rb b/test/deprecate/test_deprecate_yoda.rb new file mode 100644 index 0000000000..6b6b8a00cf --- /dev/null +++ b/test/deprecate/test_deprecate_yoda.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateYoda < Test::Unit::TestCase + def setup + @tester = Faker::Yoda + end + + def test_fact + assert @tester.quote.match(/\w+/) + end +end diff --git a/test/faker/quotes/test_most_interesting_man_in_the_world.rb b/test/faker/quotes/test_faker_most_interesting_man_in_the_world.rb similarity index 100% rename from test/faker/quotes/test_most_interesting_man_in_the_world.rb rename to test/faker/quotes/test_faker_most_interesting_man_in_the_world.rb diff --git a/test/faker/default/test_faker_yoda.rb b/test/faker/quotes/test_faker_yoda.rb similarity index 85% rename from test/faker/default/test_faker_yoda.rb rename to test/faker/quotes/test_faker_yoda.rb index 89d2775d46..aef10126db 100644 --- a/test/faker/default/test_faker_yoda.rb +++ b/test/faker/quotes/test_faker_yoda.rb @@ -4,7 +4,7 @@ class TestFakerYoda < Test::Unit::TestCase def setup - @tester = Faker::Yoda + @tester = Faker::Quotes::Yoda end def test_fact From 895597931eb05b28e6a6bde9973d0b04b6e2e2bf Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Tue, 1 Jan 2019 16:07:01 -0200 Subject: [PATCH 3/9] Update unreleased_README.md --- unreleased_README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/unreleased_README.md b/unreleased_README.md index b7a8dceb41..ab53ca5288 100644 --- a/unreleased_README.md +++ b/unreleased_README.md @@ -28,6 +28,7 @@ development. - [Japanese Media](#japanese-media) - [Movies](#movies) - [Music](#music) + - [Quotes](#quotes) - [TV Shows](#tv-shows) - [Customization](#customization) - [Contributing](#contributing) From 2628a647728e6e121ebb01efd8bfb35a271bcdbb Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Tue, 1 Jan 2019 18:02:31 -0200 Subject: [PATCH 4/9] Revert ::Fillmurray and ::GreekPhilosophers deprecations --- CHANGELOG.md | 2 +- doc/unreleased/default/fillmurray.md | 11 ++++++ doc/unreleased/default/greek_philosophers.md | 9 +++++ doc/unreleased/quotes/fillmurray.md | 11 ------ doc/unreleased/quotes/greek_philosophers.md | 9 ----- lib/faker/default/fillmurray.rb | 15 ++++++++ lib/faker/default/greek_philosophers.rb | 15 ++++++++ lib/faker/deprecate/fillmurray.rb | 15 -------- lib/faker/deprecate/greek_philosophers.rb | 20 ----------- lib/faker/quotes/fillmurray.rb | 17 --------- lib/faker/quotes/greek_philosophers.rb | 17 --------- test/deprecate/test_faker_fillmurray.rb | 35 ------------------- .../test_faker_greek_philosophers.rb | 17 --------- .../test_faker_fillmurray.rb | 2 +- .../test_faker_greek_philosophers.rb | 2 +- unreleased_README.md | 4 +-- 16 files changed, 55 insertions(+), 146 deletions(-) create mode 100644 doc/unreleased/default/fillmurray.md create mode 100644 doc/unreleased/default/greek_philosophers.md delete mode 100644 doc/unreleased/quotes/fillmurray.md delete mode 100755 doc/unreleased/quotes/greek_philosophers.md create mode 100644 lib/faker/default/fillmurray.rb create mode 100644 lib/faker/default/greek_philosophers.rb delete mode 100644 lib/faker/deprecate/fillmurray.rb delete mode 100644 lib/faker/deprecate/greek_philosophers.rb delete mode 100644 lib/faker/quotes/fillmurray.rb delete mode 100644 lib/faker/quotes/greek_philosophers.rb delete mode 100644 test/deprecate/test_faker_fillmurray.rb delete mode 100644 test/deprecate/test_faker_greek_philosophers.rb rename test/faker/{quotes => default}/test_faker_fillmurray.rb (95%) rename test/faker/{quotes => default}/test_faker_greek_philosophers.rb (85%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d99830192..bb827ad9c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,7 +34,7 @@ ### Deprecation - [PR #1503](https://github.com/stympy/faker/pull/1503) Add Quotes namespace [@vbrazo](https://github.com/vbrazo) - - Deprecates `::FamousLastWords`, `Fillmurray`, `::GreekPhilosophers`, `::Matz`, `::MostInterestingManInTheWorld`, `::Robin`, `::SingularSiegler`, `::Yoda` + - Deprecates `::FamousLastWords`, `::Matz`, `::MostInterestingManInTheWorld`, `::Robin`, `::SingularSiegler`, `::Yoda` - [PR #1480](https://github.com/stympy/faker/pull/1480) Add Music, Movies and TvShows namespaces [@vbrazo](https://github.com/vbrazo) - Deprecates `::Hobbit`, `HitchhikersGuideToTheGalaxy`, `::HarryPotter`, `::RockBand`, `::MichaelScott`, `::RuPaul` - [PR #1481](https://github.com/stympy/faker/pull/1481) Add Blockchain namespace [@vbrazo](https://github.com/vbrazo) diff --git a/doc/unreleased/default/fillmurray.md b/doc/unreleased/default/fillmurray.md new file mode 100644 index 0000000000..e69e640511 --- /dev/null +++ b/doc/unreleased/default/fillmurray.md @@ -0,0 +1,11 @@ +# Faker::Fillmurray + +Available since version 1.7.1. + +```ruby +Faker::Fillmurray.image #=> "http://fillmurray.com/300/300" + +Faker::Fillmurray.image(true) #=> "http://fillmurray.com/g/300/300" + +Faker::Fillmurray.image(false, 200, 400) #=> "http://fillmurray.com/200/400" +``` diff --git a/doc/unreleased/default/greek_philosophers.md b/doc/unreleased/default/greek_philosophers.md new file mode 100644 index 0000000000..88925c6901 --- /dev/null +++ b/doc/unreleased/default/greek_philosophers.md @@ -0,0 +1,9 @@ +# Faker::GreekPhilosophers + +Available since version 1.9.0. + +```ruby +Faker::GreekPhilosophers.name #=> "Socrates" + +Faker::GreekPhilosophers.quote #=> "Only the educated are free." +``` diff --git a/doc/unreleased/quotes/fillmurray.md b/doc/unreleased/quotes/fillmurray.md deleted file mode 100644 index cac57daf55..0000000000 --- a/doc/unreleased/quotes/fillmurray.md +++ /dev/null @@ -1,11 +0,0 @@ -# Faker::Quotes::Fillmurray - -Available since version 1.7.1. - -```ruby -Faker::Quotes::Fillmurray.image #=> "http://fillmurray.com/300/300" - -Faker::Quotes::Fillmurray.image(true) #=> "http://fillmurray.com/g/300/300" - -Faker::Quotes::Fillmurray.image(false, 200, 400) #=> "http://fillmurray.com/200/400" -``` diff --git a/doc/unreleased/quotes/greek_philosophers.md b/doc/unreleased/quotes/greek_philosophers.md deleted file mode 100755 index 9bc89c2c2a..0000000000 --- a/doc/unreleased/quotes/greek_philosophers.md +++ /dev/null @@ -1,9 +0,0 @@ -# Faker::Quotes::GreekPhilosophers - -Available since version 1.9.0. - -```ruby -Faker::Quotes::GreekPhilosophers.name #=> "Socrates" - -Faker::Quotes::GreekPhilosophers.quote #=> "Only the educated are free." -``` diff --git a/lib/faker/default/fillmurray.rb b/lib/faker/default/fillmurray.rb new file mode 100644 index 0000000000..433dd8b93e --- /dev/null +++ b/lib/faker/default/fillmurray.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Faker + class Fillmurray < Base + class << self + def image(grayscale = false, width = 200, height = 200) + raise ArgumentError, 'Width should be a number' unless width.to_s =~ /^\d+$/ + raise ArgumentError, 'Height should be a number' unless height.to_s =~ /^\d+$/ + raise ArgumentError, 'Grayscale should be a boolean' unless [true, false].include?(grayscale) + + grayscale == true ? "https://fillmurray.com/g/#{width}/#{height}" : "https://fillmurray.com/#{width}/#{height}" + end + end + end +end diff --git a/lib/faker/default/greek_philosophers.rb b/lib/faker/default/greek_philosophers.rb new file mode 100644 index 0000000000..5b20410a1c --- /dev/null +++ b/lib/faker/default/greek_philosophers.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Faker + class GreekPhilosophers < Base + class << self + def name + fetch('greek_philosophers.names') + end + + def quote + fetch('greek_philosophers.quotes') + end + end + end +end diff --git a/lib/faker/deprecate/fillmurray.rb b/lib/faker/deprecate/fillmurray.rb deleted file mode 100644 index a4b482a00d..0000000000 --- a/lib/faker/deprecate/fillmurray.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Fillmurray < Base - class << self - extend Gem::Deprecate - - def image(grayscale = false, width = 200, height = 200) - Faker::Quotes::Fillmurray.image(grayscale, width, height) - end - - deprecate :image, 'Faker::Quotes::Fillmurray.image', 2018, 12 - end - end -end diff --git a/lib/faker/deprecate/greek_philosophers.rb b/lib/faker/deprecate/greek_philosophers.rb deleted file mode 100644 index bdfdac708c..0000000000 --- a/lib/faker/deprecate/greek_philosophers.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Faker - class GreekPhilosophers < Base - class << self - extend Gem::Deprecate - - def name - Faker::Quotes::GreekPhilosophers.name - end - - def quote - Faker::Quotes::GreekPhilosophers.quote - end - - deprecate :name, 'Faker::Quotes::GreekPhilosophers.name', 2018, 12 - deprecate :quote, 'Faker::Quotes::GreekPhilosophers.quote', 2018, 12 - end - end -end diff --git a/lib/faker/quotes/fillmurray.rb b/lib/faker/quotes/fillmurray.rb deleted file mode 100644 index 9c99bad631..0000000000 --- a/lib/faker/quotes/fillmurray.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quotes - class Fillmurray < Base - class << self - def image(grayscale = false, width = 200, height = 200) - raise ArgumentError, 'Width should be a number' unless width.to_s =~ /^\d+$/ - raise ArgumentError, 'Height should be a number' unless height.to_s =~ /^\d+$/ - raise ArgumentError, 'Grayscale should be a boolean' unless [true, false].include?(grayscale) - - grayscale == true ? "https://fillmurray.com/g/#{width}/#{height}" : "https://fillmurray.com/#{width}/#{height}" - end - end - end - end -end diff --git a/lib/faker/quotes/greek_philosophers.rb b/lib/faker/quotes/greek_philosophers.rb deleted file mode 100644 index 1512134eaf..0000000000 --- a/lib/faker/quotes/greek_philosophers.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quotes - class GreekPhilosophers < Base - class << self - def name - fetch('greek_philosophers.names') - end - - def quote - fetch('greek_philosophers.quotes') - end - end - end - end -end diff --git a/test/deprecate/test_faker_fillmurray.rb b/test/deprecate/test_faker_fillmurray.rb deleted file mode 100644 index d973296c32..0000000000 --- a/test/deprecate/test_faker_fillmurray.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -require_relative '../test_helper' - -class TestDeprecateFillmurray < Test::Unit::TestCase - def setup - @tester = Faker::Fillmurray - end - - def test_fillmurray - assert !@tester.image(false, '300', '300').match(%r{https:\/\/fillmurray\.com\/(\d+)\/(\d+)}).nil? - end - - def test_fillmurray_with_grayscale - assert @tester.image(true, '300', '300').match(%r{https:\/\/fillmurray\.com\/(g?\/?)(\d+)\/(\d+)})[1] == 'g/' - end - - def test_fillmurray_with_incorrect_height_format - assert_raise ArgumentError do - @tester.image(false, '300', 'nine-thousand') - end - end - - def test_fillmurray_with_incorrect_width_format - assert_raise ArgumentError do - @tester.image(false, 'three-hundred') - end - end - - def test_fillmurray_with_incorrect_grayscale - assert_raise ArgumentError do - @tester.image('gray', '300', '400') - end - end -end diff --git a/test/deprecate/test_faker_greek_philosophers.rb b/test/deprecate/test_faker_greek_philosophers.rb deleted file mode 100644 index ca1b8d23ab..0000000000 --- a/test/deprecate/test_faker_greek_philosophers.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -require_relative '../test_helper' - -class TestDeprecateGreekPhilosophers < Test::Unit::TestCase - def setup - @tester = Faker::GreekPhilosophers - end - - def test_name - assert @tester.name.match(/\w+/) - end - - def test_quote - assert @tester.quote.match(/\w+/) - end -end diff --git a/test/faker/quotes/test_faker_fillmurray.rb b/test/faker/default/test_faker_fillmurray.rb similarity index 95% rename from test/faker/quotes/test_faker_fillmurray.rb rename to test/faker/default/test_faker_fillmurray.rb index cb943a3aa9..e10486079d 100644 --- a/test/faker/quotes/test_faker_fillmurray.rb +++ b/test/faker/default/test_faker_fillmurray.rb @@ -4,7 +4,7 @@ class TestFakerFillmurray < Test::Unit::TestCase def setup - @tester = Faker::Quotes::Fillmurray + @tester = Faker::Fillmurray end def test_fillmurray diff --git a/test/faker/quotes/test_faker_greek_philosophers.rb b/test/faker/default/test_faker_greek_philosophers.rb similarity index 85% rename from test/faker/quotes/test_faker_greek_philosophers.rb rename to test/faker/default/test_faker_greek_philosophers.rb index 8a155bbaa8..e84ce4c914 100644 --- a/test/faker/quotes/test_faker_greek_philosophers.rb +++ b/test/faker/default/test_faker_greek_philosophers.rb @@ -4,7 +4,7 @@ class TestFakerGreekPhilosophers < Test::Unit::TestCase def setup - @tester = Faker::Quotes::GreekPhilosophers + @tester = Faker::GreekPhilosophers end def test_name diff --git a/unreleased_README.md b/unreleased_README.md index ab53ca5288..c6b5f7366e 100644 --- a/unreleased_README.md +++ b/unreleased_README.md @@ -152,11 +152,13 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' - [Faker::ElectricalComponents](doc/unreleased/default/electrical_components.md) - [Faker::Esport](doc/unreleased/default/esport.md) - [Faker::File](doc/unreleased/default/file.md) + - [Faker::Fillmurray](doc/unreleased/default/fillmurray.md) - [Faker::Finance](doc/unreleased/default/finance.md) - [Faker::Food](doc/unreleased/default/food.md) - [Faker::Football](doc/unreleased/default/football.md) - [Faker::FunnyName](doc/unreleased/default/funny_name.md) - [Faker::Gender](doc/unreleased/default/gender.md) + - [Faker::GreekPhilosophers](doc/unreleased/default/greek_philosophers.md) - [Faker::Hacker](doc/unreleased/default/hacker.md) - [Faker::Hipster](doc/unreleased/default/hipster.md) - [Faker::House](doc/unreleased/default/house.md) @@ -258,8 +260,6 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' ### Quotes - [Faker::Quotes::FamousLastWords](doc/unreleased/quotes/famous_last_words.md) - - [Faker::Quotes::Fillmurray](doc/unreleased/quotes/fillmurray.md) - - [Faker::Quotes::GreekPhilosophers](doc/unreleased/quotes/greek_philosophers.md) - [Faker::Quotes::Matz](doc/unreleased/quotes/matz.md) - [Faker::Quotes::MostInterestingManInTheWorld](doc/unreleased/quotes/most_interesting_man_in_the_world.md) - [Faker::Quotes::Robin](doc/unreleased/quotes/robin.md) From 08cc5e3ccecfc2ff7ac0579545c5786329cb9e20 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Fri, 4 Jan 2019 22:16:46 -0200 Subject: [PATCH 5/9] Deprecate ::Shakespeare --- CHANGELOG.md | 2 +- README.md | 1 + doc/unreleased/quotes/shakespeare.md | 8 +++ doc/v1.9.1/shakespeare.md | 8 +++ lib/faker/default/shakespeare.rb | 39 --------------- lib/faker/deprecate/shakespeare.rb | 50 +++++++++++++++++++ lib/faker/quotes/shakespeare.rb | 41 +++++++++++++++ test/deprecate/test_deprecate_shakespeare.rb | 25 ++++++++++ .../test_faker_shakespeare.rb | 0 unreleased_README.md | 1 + 10 files changed, 135 insertions(+), 40 deletions(-) create mode 100644 doc/unreleased/quotes/shakespeare.md create mode 100644 doc/v1.9.1/shakespeare.md delete mode 100644 lib/faker/default/shakespeare.rb create mode 100644 lib/faker/deprecate/shakespeare.rb create mode 100644 lib/faker/quotes/shakespeare.rb create mode 100644 test/deprecate/test_deprecate_shakespeare.rb rename test/faker/{default => quotes}/test_faker_shakespeare.rb (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb827ad9c4..e096298649 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,7 +34,7 @@ ### Deprecation - [PR #1503](https://github.com/stympy/faker/pull/1503) Add Quotes namespace [@vbrazo](https://github.com/vbrazo) - - Deprecates `::FamousLastWords`, `::Matz`, `::MostInterestingManInTheWorld`, `::Robin`, `::SingularSiegler`, `::Yoda` + - Deprecates `::FamousLastWords`, `::Matz`, `::MostInterestingManInTheWorld`, `::Robin`, `::Shakespeare`, `::SingularSiegler`, `::Yoda` - [PR #1480](https://github.com/stympy/faker/pull/1480) Add Music, Movies and TvShows namespaces [@vbrazo](https://github.com/vbrazo) - Deprecates `::Hobbit`, `HitchhikersGuideToTheGalaxy`, `::HarryPotter`, `::RockBand`, `::MichaelScott`, `::RuPaul` - [PR #1481](https://github.com/stympy/faker/pull/1481) Add Blockchain namespace [@vbrazo](https://github.com/vbrazo) diff --git a/README.md b/README.md index cd09b5736f..e329aa012d 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ Contents - [Faker::RuPaul](doc/v1.9.1/rupaul.md) - [Faker::Science](doc/v1.9.1/science.md) - [Faker::Seinfeld](doc/v1.9.1/seinfeld.md) + - [Faker::Shakespeare](doc/v1.9.1/shakespeare.md) - [Faker::SiliconValley](doc/v1.9.1/silicon_valley.md) - [Faker::Simpsons](doc/v1.9.1/simpsons.md) - [Faker::SingularSiegler](doc/v1.9.1/singular_siegler.md) diff --git a/doc/unreleased/quotes/shakespeare.md b/doc/unreleased/quotes/shakespeare.md new file mode 100644 index 0000000000..752b9fe5e6 --- /dev/null +++ b/doc/unreleased/quotes/shakespeare.md @@ -0,0 +1,8 @@ +# Faker::Quotes::Shakespeare + +```ruby +Faker::Quotes::Shakespeare.hamlet_quote # => "To be, or not to be: that is the question." +Faker::Quotes::Shakespeare.as_you_like_it_quote # => "Can one desire too much of a good thing?." +Faker::Quotes::Shakespeare.king_richard_iii_quote # => "Now is the winter of our discontent." +Faker::Quotes::Shakespeare.romeo_and_juliet_quote # => "O Romeo, Romeo! wherefore art thou Romeo?." +``` diff --git a/doc/v1.9.1/shakespeare.md b/doc/v1.9.1/shakespeare.md new file mode 100644 index 0000000000..5f2106fbb0 --- /dev/null +++ b/doc/v1.9.1/shakespeare.md @@ -0,0 +1,8 @@ +# Faker::Shakespeare + +```ruby +Faker::Shakespeare.hamlet_quote # => "To be, or not to be: that is the question." +Faker::Shakespeare.as_you_like_it_quote # => "Can one desire too much of a good thing?." +Faker::Shakespeare.king_richard_iii_quote # => "Now is the winter of our discontent." +Faker::Shakespeare.romeo_and_juliet_quote # => "O Romeo, Romeo! wherefore art thou Romeo?." +``` diff --git a/lib/faker/default/shakespeare.rb b/lib/faker/default/shakespeare.rb deleted file mode 100644 index c5122418e2..0000000000 --- a/lib/faker/default/shakespeare.rb +++ /dev/null @@ -1,39 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Shakespeare < Base - class << self - def hamlet_quote - sample(hamlet) - end - - def as_you_like_it_quote - sample(as_you_like_it) - end - - def king_richard_iii_quote - sample(king_richard_iii) - end - - def romeo_and_juliet_quote - sample(romeo_and_juliet) - end - - def hamlet - fetch('shakespeare.hamlet') - end - - def as_you_like_it - fetch('shakespeare.as_you_like_it') - end - - def king_richard_iii - fetch('shakespeare.king_richard_iii') - end - - def romeo_and_juliet - fetch('shakespeare.romeo_and_juliet') - end - end - end -end diff --git a/lib/faker/deprecate/shakespeare.rb b/lib/faker/deprecate/shakespeare.rb new file mode 100644 index 0000000000..e6424207bb --- /dev/null +++ b/lib/faker/deprecate/shakespeare.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +module Faker + class Shakespeare < Base + class << self + extend Gem::Deprecate + + def hamlet_quote + sample(hamlet) + end + + def as_you_like_it_quote + sample(as_you_like_it) + end + + def king_richard_iii_quote + sample(king_richard_iii) + end + + def romeo_and_juliet_quote + sample(romeo_and_juliet) + end + + def hamlet + fetch('shakespeare.hamlet') + end + + def as_you_like_it + fetch('shakespeare.as_you_like_it') + end + + def king_richard_iii + fetch('shakespeare.king_richard_iii') + end + + def romeo_and_juliet + fetch('shakespeare.romeo_and_juliet') + end + + deprecate :hamlet_quote, 'Faker::Quotes::Shakespeare.hamlet_quote', 2018, 12 + deprecate :as_you_like_it_quote, 'Faker::Quotes::Shakespeare.as_you_like_it_quote', 2018, 12 + deprecate :king_richard_iii_quote, 'Faker::Quotes::Shakespeare.king_richard_iii_quote', 2018, 12 + deprecate :romeo_and_juliet_quote, 'Faker::Quotes::Shakespeare.romeo_and_juliet_quote', 2018, 12 + deprecate :hamlet, 'Faker::Quotes::Shakespeare.hamlet', 2018, 12 + deprecate :as_you_like_it, 'Faker::Quotes::Shakespeare.as_you_like_it', 2018, 12 + deprecate :king_richard_iii, 'Faker::Quotes::Shakespeare.king_richard_iii', 2018, 12 + deprecate :romeo_and_juliet, 'Faker::Quotes::Shakespeare.romeo_and_juliet', 2018, 12 + end + end +end diff --git a/lib/faker/quotes/shakespeare.rb b/lib/faker/quotes/shakespeare.rb new file mode 100644 index 0000000000..fa00a8b158 --- /dev/null +++ b/lib/faker/quotes/shakespeare.rb @@ -0,0 +1,41 @@ +# frozen_string_literal: true + +module Faker + class Quotes + class Shakespeare < Base + class << self + def hamlet_quote + sample(hamlet) + end + + def as_you_like_it_quote + sample(as_you_like_it) + end + + def king_richard_iii_quote + sample(king_richard_iii) + end + + def romeo_and_juliet_quote + sample(romeo_and_juliet) + end + + def hamlet + fetch('shakespeare.hamlet') + end + + def as_you_like_it + fetch('shakespeare.as_you_like_it') + end + + def king_richard_iii + fetch('shakespeare.king_richard_iii') + end + + def romeo_and_juliet + fetch('shakespeare.romeo_and_juliet') + end + end + end + end +end diff --git a/test/deprecate/test_deprecate_shakespeare.rb b/test/deprecate/test_deprecate_shakespeare.rb new file mode 100644 index 0000000000..8b42d49da2 --- /dev/null +++ b/test/deprecate/test_deprecate_shakespeare.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +require_relative '../test_helper' + +class TestDeprecateShakespeare < Test::Unit::TestCase + def setup + @tester = Faker::Shakespeare + end + + def test_as_you_like_it_quote + assert @tester.as_you_like_it_quote.match(/\w+/) + end + + def test_king_richard_iii_quote + assert @tester.king_richard_iii_quote.match(/\w+/) + end + + def test_romeo_and_juliet_quote + assert @tester.romeo_and_juliet_quote.match(/\w+/) + end + + def test_hamlet_quote + assert @tester.hamlet_quote.match(/\w+/) + end +end diff --git a/test/faker/default/test_faker_shakespeare.rb b/test/faker/quotes/test_faker_shakespeare.rb similarity index 100% rename from test/faker/default/test_faker_shakespeare.rb rename to test/faker/quotes/test_faker_shakespeare.rb diff --git a/unreleased_README.md b/unreleased_README.md index c6b5f7366e..619b080b95 100644 --- a/unreleased_README.md +++ b/unreleased_README.md @@ -263,6 +263,7 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' - [Faker::Quotes::Matz](doc/unreleased/quotes/matz.md) - [Faker::Quotes::MostInterestingManInTheWorld](doc/unreleased/quotes/most_interesting_man_in_the_world.md) - [Faker::Quotes::Robin](doc/unreleased/quotes/robin.md) + - [Faker::Quotes::Shakespeare](doc/unreleased/quotes/shakespeare.md) - [Faker::Quotes::SingularSiegler](doc/unreleased/quotes/singular_siegler.md) ### Tv Shows From ecec954cc272e9d288e3ff036e68d305f5ceea1b Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Fri, 4 Jan 2019 22:48:43 -0200 Subject: [PATCH 6/9] Fix ::Yoda deprecation --- doc/unreleased/quotes/quota.md | 7 +++++++ doc/unreleased/quotes/yoda.md | 7 ------- lib/faker/deprecate/yoda.rb | 4 ++-- lib/faker/quotes/quote.rb | 12 ++++++++++++ lib/faker/quotes/yoda.rb | 8 ++++---- lib/locales/en/quotes.yml | 4 ++++ .../{test_faker_yoda.rb => test_faker_quote.rb} | 6 +++--- 7 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 doc/unreleased/quotes/quota.md delete mode 100644 doc/unreleased/quotes/yoda.md create mode 100644 lib/faker/quotes/quote.rb create mode 100644 lib/locales/en/quotes.yml rename test/faker/quotes/{test_faker_yoda.rb => test_faker_quote.rb} (61%) diff --git a/doc/unreleased/quotes/quota.md b/doc/unreleased/quotes/quota.md new file mode 100644 index 0000000000..130acb9cdf --- /dev/null +++ b/doc/unreleased/quotes/quota.md @@ -0,0 +1,7 @@ +# Faker::Quote + +Available since version 1.9.0. + +```ruby +Faker::Quote.yoda #=> "Use your feelings, Obi-Wan, and find him you will." +``` diff --git a/doc/unreleased/quotes/yoda.md b/doc/unreleased/quotes/yoda.md deleted file mode 100644 index 048dab2f1d..0000000000 --- a/doc/unreleased/quotes/yoda.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::Quotes::Yoda - -Available since version 1.9.0. - -```ruby -Faker::Quotes::Yoda.quote #=> "Use your feelings, Obi-Wan, and find him you will." -``` diff --git a/lib/faker/deprecate/yoda.rb b/lib/faker/deprecate/yoda.rb index 4cb74da1ee..bc5705a7a9 100644 --- a/lib/faker/deprecate/yoda.rb +++ b/lib/faker/deprecate/yoda.rb @@ -7,10 +7,10 @@ class << self # from: http://morecoolquotes.com/famous-yoda-quotes/ def quote - Faker::Quotes::Yoda.quote + Faker::Quote.yoda end - deprecate :quote, 'Faker::Quotes::Yoda.quote', 2018, 12 + deprecate :quote, 'Faker::Quote.yoda', 2018, 12 end end end diff --git a/lib/faker/quotes/quote.rb b/lib/faker/quotes/quote.rb new file mode 100644 index 0000000000..dd627a8f33 --- /dev/null +++ b/lib/faker/quotes/quote.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Faker + class Quote < Base + class << self + # from: http://morecoolquotes.com/famous-yoda-quotes/ + def yoda + fetch('quote.yoda') + end + end + end +end diff --git a/lib/faker/quotes/yoda.rb b/lib/faker/quotes/yoda.rb index be156f86b2..250f5b2848 100644 --- a/lib/faker/quotes/yoda.rb +++ b/lib/faker/quotes/yoda.rb @@ -1,12 +1,12 @@ # frozen_string_literal: true module Faker - class Quotes - class Yoda < Base + class Quote + class Yoga < Base class << self # from: http://morecoolquotes.com/famous-yoda-quotes/ - def quote - fetch('yoda.quotes') + def yoga + fetch('quote.yoda') end end end diff --git a/lib/locales/en/quotes.yml b/lib/locales/en/quotes.yml new file mode 100644 index 0000000000..d7ce6d9655 --- /dev/null +++ b/lib/locales/en/quotes.yml @@ -0,0 +1,4 @@ +en: + faker: + quote: + yoda: ["Use your feelings, Obi-Wan, and find him you will.", "Already know you that which you need.", "Adventure. Excitement. A Jedi craves not these things.", "At an end your rule is, and not short enough it was!", "Around the survivors a perimeter create.", "Soon will I rest, yes, forever sleep. Earned it I have. Twilight is upon me, soon night must fall.", "Not if anything to say about it I have", "Through the Force, things you will see. Other places. The future - the past. Old friends long gone.", "Ow, ow, OW! On my ear you are!", "The dark side clouds everything. Impossible to see the future is.", "Size matters not. Look at me. Judge me by my size, do you? Hmm? Hmm. And well you should not. For my ally is the Force, and a powerful ally it is. Life creates it, makes it grow. Its energy surrounds us and binds us. Luminous beings are we, not this crude matter. You must feel the Force around you; here, between you, me, the tree, the rock, everywhere, yes. Even between the land and the ship.", "Younglings, younglings gather ’round.", "Luminous beings are we - not this crude matter.", "Clear your mind must be, if you are to find the villains behind this plot.", "Always two there are, no more, no less. A master and an apprentice.", "Do. Or do not. There is no try.", "Much to learn you still have my old padawan. ... This is just the beginning!", "Good relations with the Wookiees, I have.", "Ready are you? What know you of ready? For eight hundred years have I trained Jedi. My own counsel will I keep on who is to be trained. A Jedi must have the deepest commitment, the most serious mind. This one a long time have I watched. All his life has he looked away - to the future, to the horizon. Never his mind on where he was. Hmm? What he was doing. Hmph. Adventure. Heh. Excitement. Heh. A Jedi craves not these things. You are reckless.", "Truly wonderful, the mind of a child is.", "Always pass on what you have learned.", "Once you start down the dark path, forever will it dominate your destiny, consume you it will.", "Mudhole? Slimy? My home this is!", "Yes, a Jedi’s strength flows from the Force. But beware of the dark side. Anger, fear, aggression; the dark side of the Force are they. Easily they flow, quick to join you in a fight. If once you start down the dark path, forever will it dominate your destiny, consume you it will, as it did Obi-Wan’s apprentice.", "Do not assume anything Obi-Wan. Clear your mind must be if you are to discover the real villains behind this plot.", "Death is a natural part of life. Rejoice for those around you who transform into the Force. Mourn them do not. Miss them do not. Attachment leads to jealously. The shadow of greed, that is.", "Like fire across the galaxy the Clone Wars spread. In league with the wicked Count Dooku, more and more planets slip. Against this threat, upon the Jedi Knights falls the duty to lead the newly formed army of the Republic. And as the heat of war grows, so, to, grows the prowess of one most gifted student of the Force.", "Hmm. In the end, cowards are those who follow the dark side.", "Strong is Vader. Mind what you have learned. Save you it can.", "Pain, suffering, death I feel. Something terrible has happened. Young Skywalker is in pain. Terrible pain", "Difficult to see. Always in motion is the future...", "You will find only what you bring in.", "Feel the force!", "Reckless he is. Matters are worse.", "That is why you fail.", "Your weapons, you will not need them.", "To answer power with power, the Jedi way this is not. In this war, a danger there is, of losing who we are."] diff --git a/test/faker/quotes/test_faker_yoda.rb b/test/faker/quotes/test_faker_quote.rb similarity index 61% rename from test/faker/quotes/test_faker_yoda.rb rename to test/faker/quotes/test_faker_quote.rb index aef10126db..2484f61878 100644 --- a/test/faker/quotes/test_faker_yoda.rb +++ b/test/faker/quotes/test_faker_quote.rb @@ -4,10 +4,10 @@ class TestFakerYoda < Test::Unit::TestCase def setup - @tester = Faker::Quotes::Yoda + @tester = Faker::Quote end - def test_fact - assert @tester.quote.match(/\w+/) + def test_quote + assert @tester.yoda.match(/\w+/) end end From 0713033d16f54c5d8594643270053b49ca1e2511 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Fri, 4 Jan 2019 23:03:21 -0200 Subject: [PATCH 7/9] Minor changes after own review --- lib/faker/deprecate/shakespeare.rb | 16 ++++++++-------- lib/faker/quotes/yoda.rb | 10 ++++------ test/faker/quotes/test_faker_quote.rb | 2 +- test/faker/quotes/test_faker_shakespeare.rb | 2 +- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/lib/faker/deprecate/shakespeare.rb b/lib/faker/deprecate/shakespeare.rb index e6424207bb..d184a38906 100644 --- a/lib/faker/deprecate/shakespeare.rb +++ b/lib/faker/deprecate/shakespeare.rb @@ -6,35 +6,35 @@ class << self extend Gem::Deprecate def hamlet_quote - sample(hamlet) + Faker::Quotes::Shakespeare.hamlet_quote end def as_you_like_it_quote - sample(as_you_like_it) + Faker::Quotes::Shakespeare.as_you_like_it_quote end def king_richard_iii_quote - sample(king_richard_iii) + Faker::Quotes::Shakespeare.king_richard_iii_quote end def romeo_and_juliet_quote - sample(romeo_and_juliet) + Faker::Quotes::Shakespeare.romeo_and_juliet_quote end def hamlet - fetch('shakespeare.hamlet') + Faker::Quotes::Shakespeare.hamlet end def as_you_like_it - fetch('shakespeare.as_you_like_it') + Faker::Quotes::Shakespeare.as_you_like_it end def king_richard_iii - fetch('shakespeare.king_richard_iii') + Faker::Quotes::Shakespeare.king_richard_iii end def romeo_and_juliet - fetch('shakespeare.romeo_and_juliet') + Faker::Quotes::Shakespeare.romeo_and_juliet end deprecate :hamlet_quote, 'Faker::Quotes::Shakespeare.hamlet_quote', 2018, 12 diff --git a/lib/faker/quotes/yoda.rb b/lib/faker/quotes/yoda.rb index 250f5b2848..8350c4b860 100644 --- a/lib/faker/quotes/yoda.rb +++ b/lib/faker/quotes/yoda.rb @@ -2,12 +2,10 @@ module Faker class Quote - class Yoga < Base - class << self - # from: http://morecoolquotes.com/famous-yoda-quotes/ - def yoga - fetch('quote.yoda') - end + class << self + # from: http://morecoolquotes.com/famous-yoda-quotes/ + def yoda + fetch('quote.yoda') end end end diff --git a/test/faker/quotes/test_faker_quote.rb b/test/faker/quotes/test_faker_quote.rb index 2484f61878..b27d6bba75 100644 --- a/test/faker/quotes/test_faker_quote.rb +++ b/test/faker/quotes/test_faker_quote.rb @@ -7,7 +7,7 @@ def setup @tester = Faker::Quote end - def test_quote + def test_yoda assert @tester.yoda.match(/\w+/) end end diff --git a/test/faker/quotes/test_faker_shakespeare.rb b/test/faker/quotes/test_faker_shakespeare.rb index 2c473c387b..01916f2a06 100644 --- a/test/faker/quotes/test_faker_shakespeare.rb +++ b/test/faker/quotes/test_faker_shakespeare.rb @@ -4,7 +4,7 @@ class TestFakerShakespeare < Test::Unit::TestCase def setup - @tester = Faker::Shakespeare + @tester = Faker::Quotes::Shakespeare end def test_as_you_like_it_quote From 6a9337c8de594bfb4c1743a34b0bbff1366d8592 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Sat, 5 Jan 2019 01:58:00 -0200 Subject: [PATCH 8/9] Update yoda.rb --- lib/faker/quotes/yoda.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faker/quotes/yoda.rb b/lib/faker/quotes/yoda.rb index 8350c4b860..dd627a8f33 100644 --- a/lib/faker/quotes/yoda.rb +++ b/lib/faker/quotes/yoda.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Faker - class Quote + class Quote < Base class << self # from: http://morecoolquotes.com/famous-yoda-quotes/ def yoda From 225fe5480b76a33f9db479050083fcd9d70d5540 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Sat, 5 Jan 2019 17:50:24 -0200 Subject: [PATCH 9/9] Add quotes methods to Faker::Quote --- doc/unreleased/quotes/famous_last_words.md | 7 - doc/unreleased/quotes/matz.md | 7 - .../most_interesting_man_in_the_world.md | 6 - doc/unreleased/quotes/quota.md | 7 - doc/unreleased/quotes/quote.md | 17 ++ doc/unreleased/quotes/robin.md | 7 - doc/unreleased/quotes/singular_siegler.md | 7 - lib/faker/deprecate/famous_last_words.rb | 6 +- lib/faker/deprecate/matz.rb | 4 +- .../most_interesting_man_in_the_world.rb | 4 +- lib/faker/deprecate/robin.rb | 4 +- lib/faker/deprecate/singular_siegler.rb | 4 +- lib/faker/quotes/famous_last_words.rb | 15 -- lib/faker/quotes/matz.rb | 13 -- .../most_interesting_man_in_the_world.rb | 13 -- lib/faker/quotes/quote.rb | 20 +++ lib/faker/quotes/robin.rb | 13 -- lib/faker/quotes/singular_siegler.rb | 13 -- lib/faker/quotes/yoda.rb | 12 -- lib/locales/en/famous_last_words.yml | 4 - lib/locales/en/matz.yml | 28 --- .../en/most_interesting_man_in_the_world.yml | 105 ----------- lib/locales/en/quote.yml | 166 ++++++++++++++++++ lib/locales/en/quotes.yml | 4 - lib/locales/en/robin.yml | 4 - lib/locales/en/singular_siegler.yml | 37 ---- .../quotes/test_faker_famous_last_words.rb | 13 -- test/faker/quotes/test_faker_matz.rb | 13 -- ...faker_most_interesting_man_in_the_world.rb | 13 -- test/faker/quotes/test_faker_quote.rb | 20 +++ test/faker/quotes/test_faker_robin.rb | 13 -- .../quotes/test_faker_singular_siegler.rb | 13 -- unreleased_README.md | 6 +- 33 files changed, 234 insertions(+), 384 deletions(-) delete mode 100644 doc/unreleased/quotes/famous_last_words.md delete mode 100644 doc/unreleased/quotes/matz.md delete mode 100644 doc/unreleased/quotes/most_interesting_man_in_the_world.md delete mode 100644 doc/unreleased/quotes/quota.md create mode 100644 doc/unreleased/quotes/quote.md delete mode 100644 doc/unreleased/quotes/robin.md delete mode 100644 doc/unreleased/quotes/singular_siegler.md delete mode 100644 lib/faker/quotes/famous_last_words.rb delete mode 100644 lib/faker/quotes/matz.rb delete mode 100644 lib/faker/quotes/most_interesting_man_in_the_world.rb delete mode 100644 lib/faker/quotes/robin.rb delete mode 100644 lib/faker/quotes/singular_siegler.rb delete mode 100644 lib/faker/quotes/yoda.rb delete mode 100644 lib/locales/en/famous_last_words.yml delete mode 100644 lib/locales/en/matz.yml delete mode 100644 lib/locales/en/most_interesting_man_in_the_world.yml create mode 100644 lib/locales/en/quote.yml delete mode 100644 lib/locales/en/quotes.yml delete mode 100644 lib/locales/en/robin.yml delete mode 100644 lib/locales/en/singular_siegler.yml delete mode 100644 test/faker/quotes/test_faker_famous_last_words.rb delete mode 100644 test/faker/quotes/test_faker_matz.rb delete mode 100644 test/faker/quotes/test_faker_most_interesting_man_in_the_world.rb delete mode 100644 test/faker/quotes/test_faker_robin.rb delete mode 100644 test/faker/quotes/test_faker_singular_siegler.rb diff --git a/doc/unreleased/quotes/famous_last_words.md b/doc/unreleased/quotes/famous_last_words.md deleted file mode 100644 index a94bac5618..0000000000 --- a/doc/unreleased/quotes/famous_last_words.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::Quotes::FamousLastWords - -Available since version 1.9.0. - -```ruby -Faker::Quotes::FamousLastWords.last_words #=> "My vocabulary did this to me. Your love will let you go on…" -``` diff --git a/doc/unreleased/quotes/matz.md b/doc/unreleased/quotes/matz.md deleted file mode 100644 index 369bf9da49..0000000000 --- a/doc/unreleased/quotes/matz.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::Quotes::Matz - -Available since version 1.8.0. - -```ruby -Faker::Quotes::Matz.quote #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better." -``` diff --git a/doc/unreleased/quotes/most_interesting_man_in_the_world.md b/doc/unreleased/quotes/most_interesting_man_in_the_world.md deleted file mode 100644 index 561904829f..0000000000 --- a/doc/unreleased/quotes/most_interesting_man_in_the_world.md +++ /dev/null @@ -1,6 +0,0 @@ -# Faker::Quotes::MostInterestingManInTheWorld - -```ruby -# Random Most Interesting Man In The World quote -Faker::Quotes::MostInterestingManInTheWorld.quote #=> "He can speak Russian… in French" -``` diff --git a/doc/unreleased/quotes/quota.md b/doc/unreleased/quotes/quota.md deleted file mode 100644 index 130acb9cdf..0000000000 --- a/doc/unreleased/quotes/quota.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::Quote - -Available since version 1.9.0. - -```ruby -Faker::Quote.yoda #=> "Use your feelings, Obi-Wan, and find him you will." -``` diff --git a/doc/unreleased/quotes/quote.md b/doc/unreleased/quotes/quote.md new file mode 100644 index 0000000000..6b74aa5dbd --- /dev/null +++ b/doc/unreleased/quotes/quote.md @@ -0,0 +1,17 @@ +# Faker::Quote + +Available since version 1.9.0. + +```ruby +Faker::Quote.famous_last_words #=> "My vocabulary did this to me. Your love will let you go on…" + +Faker::Quote.matz #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better." + +Faker::Quote.most_interesting_man_in_the_world #=> "He can speak Russian… in French" + +Faker::Quote.robin #=> "Holy Razors Edge" + +Faker::Quote.singular_siegler #=> "Texas!" + +Faker::Quote.yoda #=> "Use your feelings, Obi-Wan, and find him you will." +``` diff --git a/doc/unreleased/quotes/robin.md b/doc/unreleased/quotes/robin.md deleted file mode 100644 index 53add5ba28..0000000000 --- a/doc/unreleased/quotes/robin.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::Quotes::Robin - -Available since version 1.8.0. - -```ruby -Faker::Quotes::Robin.quote #=> "Holy Razors Edge" -``` diff --git a/doc/unreleased/quotes/singular_siegler.md b/doc/unreleased/quotes/singular_siegler.md deleted file mode 100644 index 51658fc1ae..0000000000 --- a/doc/unreleased/quotes/singular_siegler.md +++ /dev/null @@ -1,7 +0,0 @@ -# Faker::Quotes::SingularSiegler - -Available since version 1.9.0. - -```ruby -Faker::Quotes::SingularSiegler.quote #=> "Texas!" -``` diff --git a/lib/faker/deprecate/famous_last_words.rb b/lib/faker/deprecate/famous_last_words.rb index 697d2da4cb..eabf36c6a6 100644 --- a/lib/faker/deprecate/famous_last_words.rb +++ b/lib/faker/deprecate/famous_last_words.rb @@ -2,16 +2,14 @@ module Faker class FamousLastWords < Base - flexible :famous_last_words - class << self extend Gem::Deprecate def last_words - Faker::Quotes::FamousLastWords.last_words + Faker::Quote.famous_last_words end - deprecate :last_words, 'Faker::Quotes::FamousLastWords.last_words', 2018, 12 + deprecate :last_words, 'Faker::Quote.famous_last_words', 2018, 12 end end end diff --git a/lib/faker/deprecate/matz.rb b/lib/faker/deprecate/matz.rb index 2cf51c37ad..079ad82e61 100644 --- a/lib/faker/deprecate/matz.rb +++ b/lib/faker/deprecate/matz.rb @@ -6,10 +6,10 @@ class << self extend Gem::Deprecate def quote - Faker::Quotes::Matz.quote + Faker::Quote.matz end - deprecate :quote, 'Faker::Quotes::Matz.quote', 2018, 12 + deprecate :quote, 'Faker::Quote.matz', 2018, 12 end end end diff --git a/lib/faker/deprecate/most_interesting_man_in_the_world.rb b/lib/faker/deprecate/most_interesting_man_in_the_world.rb index 2255e257b3..722825168e 100644 --- a/lib/faker/deprecate/most_interesting_man_in_the_world.rb +++ b/lib/faker/deprecate/most_interesting_man_in_the_world.rb @@ -6,10 +6,10 @@ class << self extend Gem::Deprecate def quote - Faker::Quotes::MostInterestingManInTheWorld.quote + Faker::Quote.most_interesting_man_in_the_world end - deprecate :quote, 'Faker::Quotes::MostInterestingManInTheWorld.quote', 2018, 12 + deprecate :quote, 'Faker::Quote.most_interesting_man_in_the_world', 2018, 12 end end end diff --git a/lib/faker/deprecate/robin.rb b/lib/faker/deprecate/robin.rb index d7341e2cc9..e14a178cea 100644 --- a/lib/faker/deprecate/robin.rb +++ b/lib/faker/deprecate/robin.rb @@ -6,10 +6,10 @@ class << self extend Gem::Deprecate def quote - Faker::Quotes::Robin.quote + Faker::Quote.robin end - deprecate :quote, 'Faker::Quotes::Robin.quote', 2018, 12 + deprecate :quote, 'Faker::Quote.robin', 2018, 12 end end end diff --git a/lib/faker/deprecate/singular_siegler.rb b/lib/faker/deprecate/singular_siegler.rb index 988ff25393..5b15dd4636 100644 --- a/lib/faker/deprecate/singular_siegler.rb +++ b/lib/faker/deprecate/singular_siegler.rb @@ -6,10 +6,10 @@ class << self extend Gem::Deprecate def quote - Faker::Quotes::SingularSiegler.quote + Faker::Quote.singular_siegler end - deprecate :quote, 'Faker::Quotes::SingularSiegler.quote', 2018, 12 + deprecate :quote, 'Faker::Quote.singular_siegler', 2018, 12 end end end diff --git a/lib/faker/quotes/famous_last_words.rb b/lib/faker/quotes/famous_last_words.rb deleted file mode 100644 index 707f3cf70c..0000000000 --- a/lib/faker/quotes/famous_last_words.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quotes - class FamousLastWords < Base - flexible :famous_last_words - - class << self - def last_words - fetch('famous_last_words.last_words') - end - end - end - end -end diff --git a/lib/faker/quotes/matz.rb b/lib/faker/quotes/matz.rb deleted file mode 100644 index d0a2e234b5..0000000000 --- a/lib/faker/quotes/matz.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quotes - class Matz < Base - class << self - def quote - fetch('matz.quotes') - end - end - end - end -end diff --git a/lib/faker/quotes/most_interesting_man_in_the_world.rb b/lib/faker/quotes/most_interesting_man_in_the_world.rb deleted file mode 100644 index b213283701..0000000000 --- a/lib/faker/quotes/most_interesting_man_in_the_world.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quotes - class MostInterestingManInTheWorld < Base - class << self - def quote - fetch('most_interesting_man_in_the_world.quotes') - end - end - end - end -end diff --git a/lib/faker/quotes/quote.rb b/lib/faker/quotes/quote.rb index dd627a8f33..f9688c55af 100644 --- a/lib/faker/quotes/quote.rb +++ b/lib/faker/quotes/quote.rb @@ -3,6 +3,26 @@ module Faker class Quote < Base class << self + def famous_last_words + fetch('quote.famous_last_words') + end + + def matz + fetch('quote.matz') + end + + def most_interesting_man_in_the_world + fetch('quote.most_interesting_man_in_the_world') + end + + def robin + fetch('quote.robin') + end + + def singular_siegler + fetch('quote.singular_siegler') + end + # from: http://morecoolquotes.com/famous-yoda-quotes/ def yoda fetch('quote.yoda') diff --git a/lib/faker/quotes/robin.rb b/lib/faker/quotes/robin.rb deleted file mode 100644 index b1ca1cc707..0000000000 --- a/lib/faker/quotes/robin.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quotes - class Robin < Base - class << self - def quote - fetch('robin.quotes') - end - end - end - end -end diff --git a/lib/faker/quotes/singular_siegler.rb b/lib/faker/quotes/singular_siegler.rb deleted file mode 100644 index f89b590652..0000000000 --- a/lib/faker/quotes/singular_siegler.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quotes - class SingularSiegler < Base - class << self - def quote - fetch('singular_siegler.quotes') - end - end - end - end -end diff --git a/lib/faker/quotes/yoda.rb b/lib/faker/quotes/yoda.rb deleted file mode 100644 index dd627a8f33..0000000000 --- a/lib/faker/quotes/yoda.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Faker - class Quote < Base - class << self - # from: http://morecoolquotes.com/famous-yoda-quotes/ - def yoda - fetch('quote.yoda') - end - end - end -end diff --git a/lib/locales/en/famous_last_words.yml b/lib/locales/en/famous_last_words.yml deleted file mode 100644 index ccc436ce78..0000000000 --- a/lib/locales/en/famous_last_words.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - faker: - famous_last_words: - last_words: ["I don't know.", "No comment.", "Van Halen!", "Is it not meningitis?", "I love you too, honey. Good luck with your show.", "Am I dying, or is this my birthday?", "I want your bunk!", "I went the distance.", "Goodnight, my darlings, I'll see you tomorrow.", "I am confound.", "That was the best ice-cream soda I ever tasted.", "All my possessions for a moment of time.", "Hurrah for anarchy! This is the happiest moment of my life.", "It's stopped.", "You can get anything you want at Alice's restaurant.", "Yes, it's tough, but not as tough as doing comedy.", "That's good. Go on, read some more.", "I love you.", "One! Two! Three!", "Do you want me to come with you?", "Does nobody understand?", "I wish I could go with you.", "I'll be in Hell before you start breakfast! Let her rip!", "Tape Seinfeld for me.", "Strike the tent.", "I don't think they even heard me.", "I regret that I should leave this world without again beholding him.", "Well, this is certainly a pleasant surprise.", "Okay, I won't.", "I want to go home.", "Happy.", "I forgot something.", "My vocabulary did this to me. Your love will let you go on…"] \ No newline at end of file diff --git a/lib/locales/en/matz.yml b/lib/locales/en/matz.yml deleted file mode 100644 index 962493bc06..0000000000 --- a/lib/locales/en/matz.yml +++ /dev/null @@ -1,28 +0,0 @@ -en: - faker: - matz: - quotes: [ - "I believe consistency and orthogonality are tools of design, not the primary goal in design.", - "From the viewpoint of what you can do, therefore, languages do differ - but the differences are limited. For example, Python and Ruby provide almost the same power to the programmer.", - "The orthogonal features, when combined, can explode into complexity.", - "I didn't work hard to make Ruby perfect for everyone, because you feel differently from me. No language can be perfect for everyone. I tried to make Ruby perfect for me, but maybe it's not perfect for you. The perfect language for Guido van Rossum is probably Python.", - "Because of the Turing completeness theory, everything one Turing-complete language can do can theoretically be done by another Turing-complete language, but at a different cost. You can do everything in assembler, but no one wants to program in assembler anymore.", - "Ruby inherited the Perl philosophy of having more than one way to do the same thing. I inherited that philosophy from Larry Wall, who is my hero actually. I want to make Ruby users free. I want to give them the freedom to choose.", - "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better.", - "People are different. People choose different criteria. But if there is a better way among many alternatives, I want to encourage that way by making it comfortable. So that's what I've tried to do.", - "In our daily lives as programmers, we process text strings a lot. So I tried to work hard on text processing, namely the string class and regular expressions. Regular expressions are built into the language and are very tuned up for use.", - "Most of the tasks we do are for humans. For example, a tax calculation is counting numbers so the government can pull money out from my wallet, but government consists of humans.", - "Actually, I didn't make the claim that Ruby follows the principle of least surprise. Someone felt the design of Ruby follows that philosophy, so they started saying that. I didn't bring that up, actually.", - "Smart people underestimate the ordinarity of ordinary people.", - "Language designers want to design the perfect language. They want to be able to say, 'My language is perfect. It can do everything.' But it's just plain impossible to design a perfect language, because there are two ways to look at a language. One way is by looking at what can be done with that language. The other is by looking at how we feel using that language-how we feel while programming.", - "I believe that the purpose of life is, at least in part, to be happy. Based on this belief, Ruby is designed to make programming not only easy but also fun. It allows you to concentrate on the creative side of programming, with less stress.", - "Most programs are not write-once. They are reworked and rewritten again and again in their lived. Bugs must be debugged. Changing requirements and the need for increased functionality mean the program itself may be modified on an ongoing basis. During this process, human beings must be able to read and understand the original code. It is therefore more important by far for humans to be able to understand the program than it is for the computer.", - "I hope to see Ruby help every programmer in the world to be productive, and to enjoy programming, and to be happy. That is the primary purpose of Ruby language.", - "Man is driven to create; I know I really love to create things. And while I'm not good at painting, drawing, or music, I can write software.", - "It is not the responsibility of the language to force good looking code, but the language should make good looking code possible.", - "Plant a memory, plant a tree, do it today for tomorrow.", - "Imagine you are writing an email. You are in front of the computer. You are operating the computer, clicking a mouse and typing on a keyboard, but the message will be sent to a human over the internet. So you are working before the computer, but with a human behind the computer.", - "Often people, especially computer engineers, focus on the machines. But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines.", - "Everyone has an individual background. Someone may come from Python, someone else may come from Perl, and they may be surprised by different aspects of the language. Then they come up to me and say, 'I was surprised by this feature of the language, so therefore Ruby violates the principle of least surprise.' Wait. Wait. The principle of least surprise is not for you only.", - "Sometimes people jot down pseudo-code on paper. If that pseudo-code runs directly on their computers, its best, isn't it? Ruby tries to be like that, like pseudo-code that runs. Python people say that too." - ] diff --git a/lib/locales/en/most_interesting_man_in_the_world.yml b/lib/locales/en/most_interesting_man_in_the_world.yml deleted file mode 100644 index 41fbec7a9c..0000000000 --- a/lib/locales/en/most_interesting_man_in_the_world.yml +++ /dev/null @@ -1,105 +0,0 @@ -en: - faker: - most_interesting_man_in_the_world: - quotes: [ - "His only regret is not knowing what regret feels like.", - "When in Rome, they do as HE does", - "He is considered a national treasure in countries he’s never visited.", - "He has won the lifetime achievement award… twice", - "He can kill two stones with one bird", - "When a tree falls in a forest and no one is there, he hears it", - "His lovemaking has been detected by a seismograph", - "He once had an awkward moment, just to see how it feels", - "He is fluent in all languages, including three that he only speaks", - "If opportunity knocks, and he’s not at home, opportunity waits", - "Mosquitoes refuse to bite him purely out of respect", - "He has taught old dogs a variety of new tricks", - "In museums, he is allowed to touch the art", - "His business card simply says ‘I’ll Call You”", - "If he was to pat you on the back, you would list it on your resume.", - "Freemasons strive to learn HIS secret handshake.", - "He played a game of Russian Roulette with a fully loaded magnum, and won", - "He is the life of parties that he has never attended", - "He once won the Tour-de-France, but was disqualified for riding a unicycle", - "His organ donation card also lists his beard", - "He is left-handed. And right-handed", - "Sharks have a week dedicated to him", - "Presidents take his birthday off", - "Time waits on no one, but him", - "He never wears a watch because time is always on his side", - "He taught Chuck Norris martial arts", - "When he holds a lady’s purse, he looks manly", - "He once won a staring contest with his own reflection", - "When he meets the Pope, the Pope kisses his ring", - "His beard alone has experienced more than a lesser man’s entire body", - "Superman has pijamas with his logo", - "If he were to punch you in the face you would have to fight off a strong urge to thank him", - "He once went to the psychic, to warn her", - "His feet don’t get blisters, but his shoes do", - "When he drives a car off the lot, its price increases in value", - "On every continent in the world, there is a sandwich named after him.", - "Once a rattlesnake bit him, after 5 days of excruciating pain, the snake finally died", - "His passport requires no photograph", - "He gave his father “the talk”", - "He can speak Russian… in French", - "His signature won a Pulitzer", - "Once while sailing around the world, he discovered a short cut", - "He once got pulled over for speeding, and the cop got the ticket", - "The dark is afraid of him", - "If he were to visit the dark side of the moon, it wouldn’t be dark", - "He once brought a knife to a gunfight… just to even the odds", - "He bowls overhand", - "A bird in his hand is worth three in the bush", - "He once started a fire using only dental floss and water", - "Roses stop to smell him", - "Bigfoot tries to get pictures of him", - "He once turned a vampire into a vegetarian", - "Batman watches Saturday morning cartoons about him", - "When he was young he once sent his parents to his room", - "His blood smells like cologne", - "When he goes to Spain, he chases the bulls", - "His shadow has been on the ‘best dressed’ list twice", - "Two countries went to war to dispute HIS nationality", - "His pillow is cool on BOTH sides", - "The Nobel Academy was awarded a prize from HIM", - "His mother has a tattoo that says “Son”", - "His shirts never wrinkle", - "Respected archaeologists fight over his discarded apple cores", - "His garden maze is responsible for more missing persons than the bermuda triangle", - "He doesn’t believe in using oven mitts, nor potholders", - "His cereal never gets soggy. It sits there, staying crispy, just for him", - "The police often question him, just because they find him interesting", - "He has never walked into a spider web", - "The star on his Christmas tree is tracked by NASA", - "He’s never lost a game of chance", - "He once caught the Loch Ness Monster….with a cane pole, but threw it back", - "His wallet is woven out of chupacabra leather", - "Cars look both ways for him, before driving down a street", - "His 5 de Mayo party starts on the 8th of March", - "His tears can cure cancer, too bad he never cries", - "His friends call him by his name, his enemies don’t call him anything because they are all dead", - "No less than 25 Mexican folk songs have been written about his beard", - "He once taught a german shepherd how to bark in Spanish", - "The Holy Grail is looking for him", - "Werewolves are jealous of his beard", - "Once he ran a marathon because it was “on the way”", - "He was on a recent archaeological dig and came across prehistoric foot prints that lead out of Africa into all parts of the world. On close inspection, it turned out that the prints were his", - "Whatever side of the tracks he’s currently on is the right side, even if he crosses the tracks he’ll still be on the right side", - "The circus ran away to join him", - "He once made a weeping willow laugh", - "He is allowed to talk about the fight club", - "His sweat is the cure for the common cold", - "While swimming off the coast of Australia, he once scratched the underbelly of the Great White with his right hand", - "If he were to say something costs an arm and a leg, it would", - "He never says something tastes like chicken.. not even chicken", - "Panhandlers give him money", - "He once tried to acquire a cold just to see what it felt like, but it didn’t take", - "His ten gallon hat holds twenty gallons", - "He once won the world series of poker using UNO cards", - "He has inside jokes with people he’s never met.", - "Bear hugs are what he gives bears", - "Even his tree houses have fully finished basements", - "He has never waited 15 minutes after finishing a meal before returning to the pool", - "He lives vicariously through himself" - ] - diff --git a/lib/locales/en/quote.yml b/lib/locales/en/quote.yml new file mode 100644 index 0000000000..9a7495c089 --- /dev/null +++ b/lib/locales/en/quote.yml @@ -0,0 +1,166 @@ +en: + faker: + quote: + famous_last_words: ["I don't know.", "No comment.", "Van Halen!", "Is it not meningitis?", "I love you too, honey. Good luck with your show.", "Am I dying, or is this my birthday?", "I want your bunk!", "I went the distance.", "Goodnight, my darlings, I'll see you tomorrow.", "I am confound.", "That was the best ice-cream soda I ever tasted.", "All my possessions for a moment of time.", "Hurrah for anarchy! This is the happiest moment of my life.", "It's stopped.", "You can get anything you want at Alice's restaurant.", "Yes, it's tough, but not as tough as doing comedy.", "That's good. Go on, read some more.", "I love you.", "One! Two! Three!", "Do you want me to come with you?", "Does nobody understand?", "I wish I could go with you.", "I'll be in Hell before you start breakfast! Let her rip!", "Tape Seinfeld for me.", "Strike the tent.", "I don't think they even heard me.", "I regret that I should leave this world without again beholding him.", "Well, this is certainly a pleasant surprise.", "Okay, I won't.", "I want to go home.", "Happy.", "I forgot something.", "My vocabulary did this to me. Your love will let you go on…"] + matz: [ + "I believe consistency and orthogonality are tools of design, not the primary goal in design.", + "From the viewpoint of what you can do, therefore, languages do differ - but the differences are limited. For example, Python and Ruby provide almost the same power to the programmer.", + "The orthogonal features, when combined, can explode into complexity.", + "I didn't work hard to make Ruby perfect for everyone, because you feel differently from me. No language can be perfect for everyone. I tried to make Ruby perfect for me, but maybe it's not perfect for you. The perfect language for Guido van Rossum is probably Python.", + "Because of the Turing completeness theory, everything one Turing-complete language can do can theoretically be done by another Turing-complete language, but at a different cost. You can do everything in assembler, but no one wants to program in assembler anymore.", + "Ruby inherited the Perl philosophy of having more than one way to do the same thing. I inherited that philosophy from Larry Wall, who is my hero actually. I want to make Ruby users free. I want to give them the freedom to choose.", + "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better.", + "People are different. People choose different criteria. But if there is a better way among many alternatives, I want to encourage that way by making it comfortable. So that's what I've tried to do.", + "In our daily lives as programmers, we process text strings a lot. So I tried to work hard on text processing, namely the string class and regular expressions. Regular expressions are built into the language and are very tuned up for use.", + "Most of the tasks we do are for humans. For example, a tax calculation is counting numbers so the government can pull money out from my wallet, but government consists of humans.", + "Actually, I didn't make the claim that Ruby follows the principle of least surprise. Someone felt the design of Ruby follows that philosophy, so they started saying that. I didn't bring that up, actually.", + "Smart people underestimate the ordinarity of ordinary people.", + "Language designers want to design the perfect language. They want to be able to say, 'My language is perfect. It can do everything.' But it's just plain impossible to design a perfect language, because there are two ways to look at a language. One way is by looking at what can be done with that language. The other is by looking at how we feel using that language-how we feel while programming.", + "I believe that the purpose of life is, at least in part, to be happy. Based on this belief, Ruby is designed to make programming not only easy but also fun. It allows you to concentrate on the creative side of programming, with less stress.", + "Most programs are not write-once. They are reworked and rewritten again and again in their lived. Bugs must be debugged. Changing requirements and the need for increased functionality mean the program itself may be modified on an ongoing basis. During this process, human beings must be able to read and understand the original code. It is therefore more important by far for humans to be able to understand the program than it is for the computer.", + "I hope to see Ruby help every programmer in the world to be productive, and to enjoy programming, and to be happy. That is the primary purpose of Ruby language.", + "Man is driven to create; I know I really love to create things. And while I'm not good at painting, drawing, or music, I can write software.", + "It is not the responsibility of the language to force good looking code, but the language should make good looking code possible.", + "Plant a memory, plant a tree, do it today for tomorrow.", + "Imagine you are writing an email. You are in front of the computer. You are operating the computer, clicking a mouse and typing on a keyboard, but the message will be sent to a human over the internet. So you are working before the computer, but with a human behind the computer.", + "Often people, especially computer engineers, focus on the machines. But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines.", + "Everyone has an individual background. Someone may come from Python, someone else may come from Perl, and they may be surprised by different aspects of the language. Then they come up to me and say, 'I was surprised by this feature of the language, so therefore Ruby violates the principle of least surprise.' Wait. Wait. The principle of least surprise is not for you only.", + "Sometimes people jot down pseudo-code on paper. If that pseudo-code runs directly on their computers, its best, isn't it? Ruby tries to be like that, like pseudo-code that runs. Python people say that too." + ] + most_interesting_man_in_the_world: [ + "His only regret is not knowing what regret feels like.", + "When in Rome, they do as HE does", + "He is considered a national treasure in countries he’s never visited.", + "He has won the lifetime achievement award… twice", + "He can kill two stones with one bird", + "When a tree falls in a forest and no one is there, he hears it", + "His lovemaking has been detected by a seismograph", + "He once had an awkward moment, just to see how it feels", + "He is fluent in all languages, including three that he only speaks", + "If opportunity knocks, and he’s not at home, opportunity waits", + "Mosquitoes refuse to bite him purely out of respect", + "He has taught old dogs a variety of new tricks", + "In museums, he is allowed to touch the art", + "His business card simply says ‘I’ll Call You”", + "If he was to pat you on the back, you would list it on your resume.", + "Freemasons strive to learn HIS secret handshake.", + "He played a game of Russian Roulette with a fully loaded magnum, and won", + "He is the life of parties that he has never attended", + "He once won the Tour-de-France, but was disqualified for riding a unicycle", + "His organ donation card also lists his beard", + "He is left-handed. And right-handed", + "Sharks have a week dedicated to him", + "Presidents take his birthday off", + "Time waits on no one, but him", + "He never wears a watch because time is always on his side", + "He taught Chuck Norris martial arts", + "When he holds a lady’s purse, he looks manly", + "He once won a staring contest with his own reflection", + "When he meets the Pope, the Pope kisses his ring", + "His beard alone has experienced more than a lesser man’s entire body", + "Superman has pijamas with his logo", + "If he were to punch you in the face you would have to fight off a strong urge to thank him", + "He once went to the psychic, to warn her", + "His feet don’t get blisters, but his shoes do", + "When he drives a car off the lot, its price increases in value", + "On every continent in the world, there is a sandwich named after him.", + "Once a rattlesnake bit him, after 5 days of excruciating pain, the snake finally died", + "His passport requires no photograph", + "He gave his father “the talk”", + "He can speak Russian… in French", + "His signature won a Pulitzer", + "Once while sailing around the world, he discovered a short cut", + "He once got pulled over for speeding, and the cop got the ticket", + "The dark is afraid of him", + "If he were to visit the dark side of the moon, it wouldn’t be dark", + "He once brought a knife to a gunfight… just to even the odds", + "He bowls overhand", + "A bird in his hand is worth three in the bush", + "He once started a fire using only dental floss and water", + "Roses stop to smell him", + "Bigfoot tries to get pictures of him", + "He once turned a vampire into a vegetarian", + "Batman watches Saturday morning cartoons about him", + "When he was young he once sent his parents to his room", + "His blood smells like cologne", + "When he goes to Spain, he chases the bulls", + "His shadow has been on the ‘best dressed’ list twice", + "Two countries went to war to dispute HIS nationality", + "His pillow is cool on BOTH sides", + "The Nobel Academy was awarded a prize from HIM", + "His mother has a tattoo that says “Son”", + "His shirts never wrinkle", + "Respected archaeologists fight over his discarded apple cores", + "His garden maze is responsible for more missing persons than the bermuda triangle", + "He doesn’t believe in using oven mitts, nor potholders", + "His cereal never gets soggy. It sits there, staying crispy, just for him", + "The police often question him, just because they find him interesting", + "He has never walked into a spider web", + "The star on his Christmas tree is tracked by NASA", + "He’s never lost a game of chance", + "He once caught the Loch Ness Monster….with a cane pole, but threw it back", + "His wallet is woven out of chupacabra leather", + "Cars look both ways for him, before driving down a street", + "His 5 de Mayo party starts on the 8th of March", + "His tears can cure cancer, too bad he never cries", + "His friends call him by his name, his enemies don’t call him anything because they are all dead", + "No less than 25 Mexican folk songs have been written about his beard", + "He once taught a german shepherd how to bark in Spanish", + "The Holy Grail is looking for him", + "Werewolves are jealous of his beard", + "Once he ran a marathon because it was “on the way”", + "He was on a recent archaeological dig and came across prehistoric foot prints that lead out of Africa into all parts of the world. On close inspection, it turned out that the prints were his", + "Whatever side of the tracks he’s currently on is the right side, even if he crosses the tracks he’ll still be on the right side", + "The circus ran away to join him", + "He once made a weeping willow laugh", + "He is allowed to talk about the fight club", + "His sweat is the cure for the common cold", + "While swimming off the coast of Australia, he once scratched the underbelly of the Great White with his right hand", + "If he were to say something costs an arm and a leg, it would", + "He never says something tastes like chicken.. not even chicken", + "Panhandlers give him money", + "He once tried to acquire a cold just to see what it felt like, but it didn’t take", + "His ten gallon hat holds twenty gallons", + "He once won the world series of poker using UNO cards", + "He has inside jokes with people he’s never met.", + "Bear hugs are what he gives bears", + "Even his tree houses have fully finished basements", + "He has never waited 15 minutes after finishing a meal before returning to the pool", + "He lives vicariously through himself" + ] + robin: ["Holy Agility", "Holy Almost", "Holy Alphabet", "Holy Alps", "Holy Alter Ego", "Holy Anagram", "Holy Apparition", "Holy Armadillo", "Holy Armour Plate", "Holy Ashtray", "Holy Asp", "Holy Astronomy", "Holy Astringent Plum-like Fruit", "Holy Audubon", "Holy Backfire", "Holy Ball And Chain", "Holy Bank Balance", "Holy Bankruptcy", "Holy Banks", "Holy Bargain Basements", "Holy Barracuda", "Holy Bat Logic", "Holy Bat Trap", "Holy Batman", "Holy Benedict Arnold", "Holy Bijou", "Holy Bikini", "Holy Bill Of Rights", "Holy Birthday Cake", "Holy Black Beard", "Holy Blackout", "Holy Blank Cartridge", "Holy Blizzard", "Holy Blonde Mackerel Ash", "Holy Bluebeard", "Holy Bouncing Boiler Plate", "Holy Bowler", "Holy Bullseye", "Holy Bunions", "Holy Caffeine", "Holy Camouflage", "Holy Captain Nemo", "Holy Caruso", "Holy Catastrophe", "Holy Cat(s)", "Holy Chicken Coop", "Holy Chilblains", "Holy Chocolate Eclair", "Holy Cinderella", "Holy Cinemascope", "Holy Cliche", "Holy Cliffhangers", "Holy Clockwork", "Holy Clockworks", "Holy Cofax You Mean", "Holy Coffin Nails", "Holy Cold Creeps", "Holy Complications", "Holy Conflagration", "Holy Contributing to the Delinquency of Minors", "Holy Corpuscles", "Holy Cosmos", "Holy Costume Party", "Holy Crack Up", "Holy Crickets", "Holy Crossfire", "Holy Crucial Moment", "Holy Cryptology", "Holy D'artagnan", "Holy Davy Jones", "Holy Detonator", "Holy Disappearing Act", "Holy Distortion", "Holy Diversionary Tactics", "Holy Dr. Jekyll and Mr. Hyde", "Holy Egg Shells", "Holy Encore", "Holy Endangered Species", "Holy Epigrams", "Holy Escape-hatch", "Holy Explosion", "Holy Fate-worse-than-death", "Holy Felony", "Holy Finishing-touches", "Holy Fireworks", "Holy Firing Squad", "Holy Fishbowl", "Holy Flight Plan", "Holy Flip-flop", "Holy Flood Gate", "Holy Floor Covering", "Holy Flypaper", "Holy Fly Trap", "Holy Fog", "Holy Forecast", "Holy Fork In The Road", "Holy Fourth Amendment", "Holy Fourth Of July", "Holy Frankenstein", "Holy Frankenstein It's Alive", "Holy Fratricide", "Holy Frogman", "Holy Fruit Salad", "Holy Frying Towels", "Holy Funny Bone", "Holy Gall", "Holy Gambles", "Holy Gemini", "Holy Geography", "Holy Ghost Writer", "Holy Giveaways", "Holy Glow Pot", "Holy Golden Gate", "Holy Graf Zeppelin", "Holy Grammar", "Holy Graveyards", "Holy Greed", "Holy Green Card", "Holy Greetings-cards", "Holy Guacamole", "Holy Guadalcanal", "Holy Gullibility", "Holy Gunpowder", "Holy Haberdashery", "Holy Hailstorm", "Holy Hairdo", "Holy Hallelujah", "Holy Halloween", "Holy Hallucination", "Holy Hamburger", "Holy Hamlet", "Holy Hamstrings", "Holy Happenstance", "Holy Hardest Metal In The World", "Holy Harem", "Holy Harshin", "Holy Haziness", "Holy Headache", "Holy Headline", "Holy Heart Failure", "Holy Heartbreak", "Holy Heidelberg", "Holy Helmets", "Holy Helplessness", "Holy Here We Go Again", "Holy Hi-fi", "Holy Hieroglyphic", "Holy High-wire", "Holy Hijack", "Holy Hijackers", "Holy History", "Holy Hoaxes", "Holy Hole In A Donut", "Holy Hollywood", "Holy Holocaust", "Holy Homecoming", "Holy Homework", "Holy Homicide", "Holy Hoodwink", "Holy Hoof Beats", "Holy Hors D'Oeuvre", "Holy Horseshoes", "Holy Hostage", "Holy Hot Foot", "Holy Houdini", "Holy Human Collectors Item", "Holy Human Pearls", "Holy Human Pressure Cookers", "Holy Human Surfboards", "Holy Hunting Horn", "Holy Hurricane", "Holy Hutzpa", "Holy Hydraulics", "Holy Hypnotism", "Holy Hypodermics", "Holy Ice Picks", "Holy Ice Skates", "Holy Iceberg", "Holy Impossibility", "Holy Impregnability", "Holy Incantation", "Holy Inquisition", "Holy Interplanetary Yardstick", "Holy Interruptions", "Holy Iodine", "Holy IT and T", "Holy Jack In The Box", "Holy Jackpot", "Holy Jail Break", "Holy Jaw Breaker", "Holy Jelly Molds", "Holy Jet Set", "Holy Jigsaw Puzzles", "Holy Jitter Bugs", "Holy Joe", "Holy Journey To The Center Of The Earth", "Holy Jumble", "Holy Jumpin' Jiminy", "Holy Karats", "Holy Key Hole", "Holy Key Ring", "Holy Kilowatts", "Holy Kindergarten", "Holy Knit One Purl Two", "Holy Knock Out Drops", "Holy Known Unknown Flying Objects", "Holy Kofax", "Holy Las Vegas", "Holy Leopard", "Holy Levitation", "Holy Liftoff", "Holy Living End", "Holy Lodestone", "Holy Long John Silver", "Holy Looking Glass", "Holy Love Birds", "Holy Luther Burbank", "Holy Madness", "Holy Magic Lantern", "Holy Magician", "Holy Main Springs", "Holy Marathon", "Holy Mashed Potatoes", "Holy Masquerade", "Holy Matador", "Holy Mechanical Armies", "Holy Memory Bank", "Holy Merlin Magician", "Holy Mermaid", "Holy Merry Go Around", "Holy Mesmerism", "Holy Metronome", "Holy Miracles", "Holy Miscast", "Holy Missing Relatives", "Holy Molars", "Holy Mole Hill", "Holy Mucilage", "Holy Multitudes", "Holy Murder", "Holy Mush", "Holy Naive", "Holy New Year's Eve", "Holy Nick Of Time", "Holy Nightmare", "Holy Non Sequiturs", "Holy Oleo", "Holy Olfactory", "Holy One Track Bat Computer Mind", "Holy Oversight", "Holy Oxygen", "Holy Paderewski", "Holy Paraffin", "Holy Perfect Pitch", "Holy Pianola", "Holy Pin Cushions", "Holy Polar Front", "Holy Polar Ice Sheet", "Holy Polaris", "Holy Popcorn", "Holy Potluck", "Holy Pressure Cooker", "Holy Priceless Collection of Etruscan Snoods", "Holy Pseudonym", "Holy Purple Cannibals", "Holy Puzzlers", "Holy Rainbow", "Holy Rats In A Trap", "Holy Ravioli", "Holy Razors Edge", "Holy Recompense", "Holy Red Herring", "Holy Red Snapper", "Holy Reincarnation", "Holy Relief", "Holy Remote Control Robot", "Holy Reshevsky", "Holy Return From Oblivion", "Holy Reverse Polarity", "Holy Rheostat", "Holy Ricochet", "Holy Rip Van Winkle", "Holy Rising Hemlines", "Holy Roadblocks", "Holy Robert Louis Stevenson", "Holy Rock Garden", "Holy Rocking Chair", "Holy Romeo And Juliet", "Holy Rudder", "Holy Safari", "Holy Sarcophagus", "Holy Sardine", "Holy Scalding", "Holy Schizophrenia", "Holy Sedatives", "Holy Self Service", "Holy Semantics", "Holy Serpentine", "Holy Sewer Pipe", "Holy Shamrocks", "Holy Sherlock Holmes", "Holy Show-Ups", "Holy Showcase", "Holy Shrinkage", "Holy Shucks", "Holy Skull Tap", "Holy Sky Rocket", "Holy Slipped Disc", "Holy Smoke", "Holy Smokes", "Holy Smokestack", "Holy Snowball", "Holy Sonic Booms", "Holy Special Delivery", "Holy Spider Webs", "Holy Split Seconds", "Holy Squirrel Cage", "Holy Stalactites", "Holy Stampede", "Holy Standstills", "Holy Steam Valve", "Holy Stew Pot", "Holy Stomach Aches", "Holy Stratosphere", "Holy Stuffing", "Holy Subliminal", "Holy Sudden Incapacitation", "Holy Sundials", "Holy Surprise Party", "Holy Switch A Roo", "Holy Taj Mahal", "Holy Tartars", "Holy Taxation", "Holy Taxidermy", "Holy Tee Shot", "Holy Ten Toes", "Holy Terminology", "Holy Time Bomb", "Holy Tintinnabulation", "Holy Tipoffs", "Holy Titanic", "Holy Tome", "Holy Toreador", "Holy Trampoline", "Holy Transistors", "Holy Travel Agent", "Holy Trickery", "Holy Triple Feature", "Holy Trolls And Goblins", "Holy Tuxedo", "Holy Uncanny Photographic Mental Processes", "Holy Understatements", "Holy Underwritten Metropolis", "Holy Unlikelihood", "Holy Unrefillable Prescriptions", "Holy Vat", "Holy Venezuela", "Holy Vertebrae", "Holy Voltage", "Holy Waste Of Energy", "Holy Wayne Manor", "Holy Weaponry", "Holy Wedding Cake", "Holy Wernher von Braun", "Holy Whiskers", "Holy Wigs", "Holy Zorro"] + singular_siegler: [ + "Texas!", + "Come on now", + "Turd gone wrong", + "I want my 5$ back", + "I tell you what", + "My buddy Harlen", + "Goin' hog huntin'", + "C'mon Naomi", + "Might be DQ time", + "That goddamn Datamate", + "That damn gimble", + "That Barbala couldn't fly his way out of a wet paper bag", + "So I was walking Oscar", + "How 'bout them Cowboys", + "Always the last one to the party", + "Standby", + "No one tells me shit", + "My boss gonna fire me", + "That damn Bill Stull", + "Like a red-headed stepchild", + "Y'all never listen to me", + "It's around here somewhere", + "Reminds me of my old girlfriend Olga Goodntight", + "Let me tell ya", + "I got that scurvy", + "Got depression, Smith and Wessen", + "I'm washing my hands of it", + "Yup", + "Contact the tower", + "That damn diabetes", + "That's messed up", + "I want my damn cart back" + ] + yoda: ["Use your feelings, Obi-Wan, and find him you will.", "Already know you that which you need.", "Adventure. Excitement. A Jedi craves not these things.", "At an end your rule is, and not short enough it was!", "Around the survivors a perimeter create.", "Soon will I rest, yes, forever sleep. Earned it I have. Twilight is upon me, soon night must fall.", "Not if anything to say about it I have", "Through the Force, things you will see. Other places. The future - the past. Old friends long gone.", "Ow, ow, OW! On my ear you are!", "The dark side clouds everything. Impossible to see the future is.", "Size matters not. Look at me. Judge me by my size, do you? Hmm? Hmm. And well you should not. For my ally is the Force, and a powerful ally it is. Life creates it, makes it grow. Its energy surrounds us and binds us. Luminous beings are we, not this crude matter. You must feel the Force around you; here, between you, me, the tree, the rock, everywhere, yes. Even between the land and the ship.", "Younglings, younglings gather ’round.", "Luminous beings are we - not this crude matter.", "Clear your mind must be, if you are to find the villains behind this plot.", "Always two there are, no more, no less. A master and an apprentice.", "Do. Or do not. There is no try.", "Much to learn you still have my old padawan. ... This is just the beginning!", "Good relations with the Wookiees, I have.", "Ready are you? What know you of ready? For eight hundred years have I trained Jedi. My own counsel will I keep on who is to be trained. A Jedi must have the deepest commitment, the most serious mind. This one a long time have I watched. All his life has he looked away - to the future, to the horizon. Never his mind on where he was. Hmm? What he was doing. Hmph. Adventure. Heh. Excitement. Heh. A Jedi craves not these things. You are reckless.", "Truly wonderful, the mind of a child is.", "Always pass on what you have learned.", "Once you start down the dark path, forever will it dominate your destiny, consume you it will.", "Mudhole? Slimy? My home this is!", "Yes, a Jedi’s strength flows from the Force. But beware of the dark side. Anger, fear, aggression; the dark side of the Force are they. Easily they flow, quick to join you in a fight. If once you start down the dark path, forever will it dominate your destiny, consume you it will, as it did Obi-Wan’s apprentice.", "Do not assume anything Obi-Wan. Clear your mind must be if you are to discover the real villains behind this plot.", "Death is a natural part of life. Rejoice for those around you who transform into the Force. Mourn them do not. Miss them do not. Attachment leads to jealously. The shadow of greed, that is.", "Like fire across the galaxy the Clone Wars spread. In league with the wicked Count Dooku, more and more planets slip. Against this threat, upon the Jedi Knights falls the duty to lead the newly formed army of the Republic. And as the heat of war grows, so, to, grows the prowess of one most gifted student of the Force.", "Hmm. In the end, cowards are those who follow the dark side.", "Strong is Vader. Mind what you have learned. Save you it can.", "Pain, suffering, death I feel. Something terrible has happened. Young Skywalker is in pain. Terrible pain", "Difficult to see. Always in motion is the future...", "You will find only what you bring in.", "Feel the force!", "Reckless he is. Matters are worse.", "That is why you fail.", "Your weapons, you will not need them.", "To answer power with power, the Jedi way this is not. In this war, a danger there is, of losing who we are."] diff --git a/lib/locales/en/quotes.yml b/lib/locales/en/quotes.yml deleted file mode 100644 index d7ce6d9655..0000000000 --- a/lib/locales/en/quotes.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - faker: - quote: - yoda: ["Use your feelings, Obi-Wan, and find him you will.", "Already know you that which you need.", "Adventure. Excitement. A Jedi craves not these things.", "At an end your rule is, and not short enough it was!", "Around the survivors a perimeter create.", "Soon will I rest, yes, forever sleep. Earned it I have. Twilight is upon me, soon night must fall.", "Not if anything to say about it I have", "Through the Force, things you will see. Other places. The future - the past. Old friends long gone.", "Ow, ow, OW! On my ear you are!", "The dark side clouds everything. Impossible to see the future is.", "Size matters not. Look at me. Judge me by my size, do you? Hmm? Hmm. And well you should not. For my ally is the Force, and a powerful ally it is. Life creates it, makes it grow. Its energy surrounds us and binds us. Luminous beings are we, not this crude matter. You must feel the Force around you; here, between you, me, the tree, the rock, everywhere, yes. Even between the land and the ship.", "Younglings, younglings gather ’round.", "Luminous beings are we - not this crude matter.", "Clear your mind must be, if you are to find the villains behind this plot.", "Always two there are, no more, no less. A master and an apprentice.", "Do. Or do not. There is no try.", "Much to learn you still have my old padawan. ... This is just the beginning!", "Good relations with the Wookiees, I have.", "Ready are you? What know you of ready? For eight hundred years have I trained Jedi. My own counsel will I keep on who is to be trained. A Jedi must have the deepest commitment, the most serious mind. This one a long time have I watched. All his life has he looked away - to the future, to the horizon. Never his mind on where he was. Hmm? What he was doing. Hmph. Adventure. Heh. Excitement. Heh. A Jedi craves not these things. You are reckless.", "Truly wonderful, the mind of a child is.", "Always pass on what you have learned.", "Once you start down the dark path, forever will it dominate your destiny, consume you it will.", "Mudhole? Slimy? My home this is!", "Yes, a Jedi’s strength flows from the Force. But beware of the dark side. Anger, fear, aggression; the dark side of the Force are they. Easily they flow, quick to join you in a fight. If once you start down the dark path, forever will it dominate your destiny, consume you it will, as it did Obi-Wan’s apprentice.", "Do not assume anything Obi-Wan. Clear your mind must be if you are to discover the real villains behind this plot.", "Death is a natural part of life. Rejoice for those around you who transform into the Force. Mourn them do not. Miss them do not. Attachment leads to jealously. The shadow of greed, that is.", "Like fire across the galaxy the Clone Wars spread. In league with the wicked Count Dooku, more and more planets slip. Against this threat, upon the Jedi Knights falls the duty to lead the newly formed army of the Republic. And as the heat of war grows, so, to, grows the prowess of one most gifted student of the Force.", "Hmm. In the end, cowards are those who follow the dark side.", "Strong is Vader. Mind what you have learned. Save you it can.", "Pain, suffering, death I feel. Something terrible has happened. Young Skywalker is in pain. Terrible pain", "Difficult to see. Always in motion is the future...", "You will find only what you bring in.", "Feel the force!", "Reckless he is. Matters are worse.", "That is why you fail.", "Your weapons, you will not need them.", "To answer power with power, the Jedi way this is not. In this war, a danger there is, of losing who we are."] diff --git a/lib/locales/en/robin.yml b/lib/locales/en/robin.yml deleted file mode 100644 index ce1e14b186..0000000000 --- a/lib/locales/en/robin.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - faker: - robin: - quotes: ["Holy Agility", "Holy Almost", "Holy Alphabet", "Holy Alps", "Holy Alter Ego", "Holy Anagram", "Holy Apparition", "Holy Armadillo", "Holy Armour Plate", "Holy Ashtray", "Holy Asp", "Holy Astronomy", "Holy Astringent Plum-like Fruit", "Holy Audubon", "Holy Backfire", "Holy Ball And Chain", "Holy Bank Balance", "Holy Bankruptcy", "Holy Banks", "Holy Bargain Basements", "Holy Barracuda", "Holy Bat Logic", "Holy Bat Trap", "Holy Batman", "Holy Benedict Arnold", "Holy Bijou", "Holy Bikini", "Holy Bill Of Rights", "Holy Birthday Cake", "Holy Black Beard", "Holy Blackout", "Holy Blank Cartridge", "Holy Blizzard", "Holy Blonde Mackerel Ash", "Holy Bluebeard", "Holy Bouncing Boiler Plate", "Holy Bowler", "Holy Bullseye", "Holy Bunions", "Holy Caffeine", "Holy Camouflage", "Holy Captain Nemo", "Holy Caruso", "Holy Catastrophe", "Holy Cat(s)", "Holy Chicken Coop", "Holy Chilblains", "Holy Chocolate Eclair", "Holy Cinderella", "Holy Cinemascope", "Holy Cliche", "Holy Cliffhangers", "Holy Clockwork", "Holy Clockworks", "Holy Cofax You Mean", "Holy Coffin Nails", "Holy Cold Creeps", "Holy Complications", "Holy Conflagration", "Holy Contributing to the Delinquency of Minors", "Holy Corpuscles", "Holy Cosmos", "Holy Costume Party", "Holy Crack Up", "Holy Crickets", "Holy Crossfire", "Holy Crucial Moment", "Holy Cryptology", "Holy D'artagnan", "Holy Davy Jones", "Holy Detonator", "Holy Disappearing Act", "Holy Distortion", "Holy Diversionary Tactics", "Holy Dr. Jekyll and Mr. Hyde", "Holy Egg Shells", "Holy Encore", "Holy Endangered Species", "Holy Epigrams", "Holy Escape-hatch", "Holy Explosion", "Holy Fate-worse-than-death", "Holy Felony", "Holy Finishing-touches", "Holy Fireworks", "Holy Firing Squad", "Holy Fishbowl", "Holy Flight Plan", "Holy Flip-flop", "Holy Flood Gate", "Holy Floor Covering", "Holy Flypaper", "Holy Fly Trap", "Holy Fog", "Holy Forecast", "Holy Fork In The Road", "Holy Fourth Amendment", "Holy Fourth Of July", "Holy Frankenstein", "Holy Frankenstein It's Alive", "Holy Fratricide", "Holy Frogman", "Holy Fruit Salad", "Holy Frying Towels", "Holy Funny Bone", "Holy Gall", "Holy Gambles", "Holy Gemini", "Holy Geography", "Holy Ghost Writer", "Holy Giveaways", "Holy Glow Pot", "Holy Golden Gate", "Holy Graf Zeppelin", "Holy Grammar", "Holy Graveyards", "Holy Greed", "Holy Green Card", "Holy Greetings-cards", "Holy Guacamole", "Holy Guadalcanal", "Holy Gullibility", "Holy Gunpowder", "Holy Haberdashery", "Holy Hailstorm", "Holy Hairdo", "Holy Hallelujah", "Holy Halloween", "Holy Hallucination", "Holy Hamburger", "Holy Hamlet", "Holy Hamstrings", "Holy Happenstance", "Holy Hardest Metal In The World", "Holy Harem", "Holy Harshin", "Holy Haziness", "Holy Headache", "Holy Headline", "Holy Heart Failure", "Holy Heartbreak", "Holy Heidelberg", "Holy Helmets", "Holy Helplessness", "Holy Here We Go Again", "Holy Hi-fi", "Holy Hieroglyphic", "Holy High-wire", "Holy Hijack", "Holy Hijackers", "Holy History", "Holy Hoaxes", "Holy Hole In A Donut", "Holy Hollywood", "Holy Holocaust", "Holy Homecoming", "Holy Homework", "Holy Homicide", "Holy Hoodwink", "Holy Hoof Beats", "Holy Hors D'Oeuvre", "Holy Horseshoes", "Holy Hostage", "Holy Hot Foot", "Holy Houdini", "Holy Human Collectors Item", "Holy Human Pearls", "Holy Human Pressure Cookers", "Holy Human Surfboards", "Holy Hunting Horn", "Holy Hurricane", "Holy Hutzpa", "Holy Hydraulics", "Holy Hypnotism", "Holy Hypodermics", "Holy Ice Picks", "Holy Ice Skates", "Holy Iceberg", "Holy Impossibility", "Holy Impregnability", "Holy Incantation", "Holy Inquisition", "Holy Interplanetary Yardstick", "Holy Interruptions", "Holy Iodine", "Holy IT and T", "Holy Jack In The Box", "Holy Jackpot", "Holy Jail Break", "Holy Jaw Breaker", "Holy Jelly Molds", "Holy Jet Set", "Holy Jigsaw Puzzles", "Holy Jitter Bugs", "Holy Joe", "Holy Journey To The Center Of The Earth", "Holy Jumble", "Holy Jumpin' Jiminy", "Holy Karats", "Holy Key Hole", "Holy Key Ring", "Holy Kilowatts", "Holy Kindergarten", "Holy Knit One Purl Two", "Holy Knock Out Drops", "Holy Known Unknown Flying Objects", "Holy Kofax", "Holy Las Vegas", "Holy Leopard", "Holy Levitation", "Holy Liftoff", "Holy Living End", "Holy Lodestone", "Holy Long John Silver", "Holy Looking Glass", "Holy Love Birds", "Holy Luther Burbank", "Holy Madness", "Holy Magic Lantern", "Holy Magician", "Holy Main Springs", "Holy Marathon", "Holy Mashed Potatoes", "Holy Masquerade", "Holy Matador", "Holy Mechanical Armies", "Holy Memory Bank", "Holy Merlin Magician", "Holy Mermaid", "Holy Merry Go Around", "Holy Mesmerism", "Holy Metronome", "Holy Miracles", "Holy Miscast", "Holy Missing Relatives", "Holy Molars", "Holy Mole Hill", "Holy Mucilage", "Holy Multitudes", "Holy Murder", "Holy Mush", "Holy Naive", "Holy New Year's Eve", "Holy Nick Of Time", "Holy Nightmare", "Holy Non Sequiturs", "Holy Oleo", "Holy Olfactory", "Holy One Track Bat Computer Mind", "Holy Oversight", "Holy Oxygen", "Holy Paderewski", "Holy Paraffin", "Holy Perfect Pitch", "Holy Pianola", "Holy Pin Cushions", "Holy Polar Front", "Holy Polar Ice Sheet", "Holy Polaris", "Holy Popcorn", "Holy Potluck", "Holy Pressure Cooker", "Holy Priceless Collection of Etruscan Snoods", "Holy Pseudonym", "Holy Purple Cannibals", "Holy Puzzlers", "Holy Rainbow", "Holy Rats In A Trap", "Holy Ravioli", "Holy Razors Edge", "Holy Recompense", "Holy Red Herring", "Holy Red Snapper", "Holy Reincarnation", "Holy Relief", "Holy Remote Control Robot", "Holy Reshevsky", "Holy Return From Oblivion", "Holy Reverse Polarity", "Holy Rheostat", "Holy Ricochet", "Holy Rip Van Winkle", "Holy Rising Hemlines", "Holy Roadblocks", "Holy Robert Louis Stevenson", "Holy Rock Garden", "Holy Rocking Chair", "Holy Romeo And Juliet", "Holy Rudder", "Holy Safari", "Holy Sarcophagus", "Holy Sardine", "Holy Scalding", "Holy Schizophrenia", "Holy Sedatives", "Holy Self Service", "Holy Semantics", "Holy Serpentine", "Holy Sewer Pipe", "Holy Shamrocks", "Holy Sherlock Holmes", "Holy Show-Ups", "Holy Showcase", "Holy Shrinkage", "Holy Shucks", "Holy Skull Tap", "Holy Sky Rocket", "Holy Slipped Disc", "Holy Smoke", "Holy Smokes", "Holy Smokestack", "Holy Snowball", "Holy Sonic Booms", "Holy Special Delivery", "Holy Spider Webs", "Holy Split Seconds", "Holy Squirrel Cage", "Holy Stalactites", "Holy Stampede", "Holy Standstills", "Holy Steam Valve", "Holy Stew Pot", "Holy Stomach Aches", "Holy Stratosphere", "Holy Stuffing", "Holy Subliminal", "Holy Sudden Incapacitation", "Holy Sundials", "Holy Surprise Party", "Holy Switch A Roo", "Holy Taj Mahal", "Holy Tartars", "Holy Taxation", "Holy Taxidermy", "Holy Tee Shot", "Holy Ten Toes", "Holy Terminology", "Holy Time Bomb", "Holy Tintinnabulation", "Holy Tipoffs", "Holy Titanic", "Holy Tome", "Holy Toreador", "Holy Trampoline", "Holy Transistors", "Holy Travel Agent", "Holy Trickery", "Holy Triple Feature", "Holy Trolls And Goblins", "Holy Tuxedo", "Holy Uncanny Photographic Mental Processes", "Holy Understatements", "Holy Underwritten Metropolis", "Holy Unlikelihood", "Holy Unrefillable Prescriptions", "Holy Vat", "Holy Venezuela", "Holy Vertebrae", "Holy Voltage", "Holy Waste Of Energy", "Holy Wayne Manor", "Holy Weaponry", "Holy Wedding Cake", "Holy Wernher von Braun", "Holy Whiskers", "Holy Wigs", "Holy Zorro"] diff --git a/lib/locales/en/singular_siegler.yml b/lib/locales/en/singular_siegler.yml deleted file mode 100644 index 667cfef4bd..0000000000 --- a/lib/locales/en/singular_siegler.yml +++ /dev/null @@ -1,37 +0,0 @@ -en: - faker: - singular_siegler: - quotes: [ - "Texas!", - "Come on now", - "Turd gone wrong", - "I want my 5$ back", - "I tell you what", - "My buddy Harlen", - "Goin' hog huntin'", - "C'mon Naomi", - "Might be DQ time", - "That goddamn Datamate", - "That damn gimble", - "That Barbala couldn't fly his way out of a wet paper bag", - "So I was walking Oscar", - "How 'bout them Cowboys", - "Always the last one to the party", - "Standby", - "No one tells me shit", - "My boss gonna fire me", - "That damn Bill Stull", - "Like a red-headed stepchild", - "Y'all never listen to me", - "It's around here somewhere", - "Reminds me of my old girlfriend Olga Goodntight", - "Let me tell ya", - "I got that scurvy", - "Got depression, Smith and Wessen", - "I'm washing my hands of it", - "Yup", - "Contact the tower", - "That damn diabetes", - "That's messed up", - "I want my damn cart back" - ] diff --git a/test/faker/quotes/test_faker_famous_last_words.rb b/test/faker/quotes/test_faker_famous_last_words.rb deleted file mode 100644 index 6523ca7661..0000000000 --- a/test/faker/quotes/test_faker_famous_last_words.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -require_relative '../../test_helper' - -class TestFakerFamousLastWords < Test::Unit::TestCase - def setup - @tester = Faker::Quotes::FamousLastWords - end - - def test_name - assert @tester.last_words.match(/\w+/) - end -end diff --git a/test/faker/quotes/test_faker_matz.rb b/test/faker/quotes/test_faker_matz.rb deleted file mode 100644 index 71791120b5..0000000000 --- a/test/faker/quotes/test_faker_matz.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -require_relative '../../test_helper' - -class TestFakerMatz < Test::Unit::TestCase - def setup - @tester = Faker::Quotes::Matz - end - - def test_quote - assert @tester.quote.match(/\w+/) - end -end diff --git a/test/faker/quotes/test_faker_most_interesting_man_in_the_world.rb b/test/faker/quotes/test_faker_most_interesting_man_in_the_world.rb deleted file mode 100644 index ded2ac03df..0000000000 --- a/test/faker/quotes/test_faker_most_interesting_man_in_the_world.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -require_relative '../../test_helper' - -class MostInterestingManInTheWorld < Test::Unit::TestCase - def setup - @tester = Faker::Quotes::MostInterestingManInTheWorld - end - - def test_quote - assert @tester.quote.match(/\w+/) - end -end diff --git a/test/faker/quotes/test_faker_quote.rb b/test/faker/quotes/test_faker_quote.rb index b27d6bba75..2e19349b7b 100644 --- a/test/faker/quotes/test_faker_quote.rb +++ b/test/faker/quotes/test_faker_quote.rb @@ -7,6 +7,26 @@ def setup @tester = Faker::Quote end + def test_famous_last_words + assert @tester.famous_last_words.match(/\w+/) + end + + def test_matz + assert @tester.matz.match(/\w+/) + end + + def test_most_interesting_man_in_the_world + assert @tester.most_interesting_man_in_the_world.match(/\w+/) + end + + def test_robin + assert @tester.robin.match(/\w+/) + end + + def test_singular_siegler + assert @tester.singular_siegler.match(/\w+/) + end + def test_yoda assert @tester.yoda.match(/\w+/) end diff --git a/test/faker/quotes/test_faker_robin.rb b/test/faker/quotes/test_faker_robin.rb deleted file mode 100644 index a309679e73..0000000000 --- a/test/faker/quotes/test_faker_robin.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -require_relative '../../test_helper' - -class TestFakerRobin < Test::Unit::TestCase - def setup - @tester = Faker::Quotes::Robin - end - - def test_quote - assert @tester.quote.match(/\w+/) - end -end diff --git a/test/faker/quotes/test_faker_singular_siegler.rb b/test/faker/quotes/test_faker_singular_siegler.rb deleted file mode 100644 index 7a6aa27f6d..0000000000 --- a/test/faker/quotes/test_faker_singular_siegler.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -require_relative '../../test_helper' - -class TestFakerSingularSiegler < Test::Unit::TestCase - def setup - @tester = Faker::Quotes::SingularSiegler - end - - def test_quote - assert @tester.quote.match(/\w/) - end -end diff --git a/unreleased_README.md b/unreleased_README.md index 619b080b95..909b5868b6 100644 --- a/unreleased_README.md +++ b/unreleased_README.md @@ -259,12 +259,8 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' - [Faker::Music::UmphreysMcgee](doc/unreleased/music/umphreys_mcgee.md) ### Quotes - - [Faker::Quotes::FamousLastWords](doc/unreleased/quotes/famous_last_words.md) - - [Faker::Quotes::Matz](doc/unreleased/quotes/matz.md) - - [Faker::Quotes::MostInterestingManInTheWorld](doc/unreleased/quotes/most_interesting_man_in_the_world.md) - - [Faker::Quotes::Robin](doc/unreleased/quotes/robin.md) + - [Faker::Quote](doc/unreleased/quotes/quote.md) - [Faker::Quotes::Shakespeare](doc/unreleased/quotes/shakespeare.md) - - [Faker::Quotes::SingularSiegler](doc/unreleased/quotes/singular_siegler.md) ### Tv Shows - [Faker::TvShows::AquaTeenHungerForce](doc/unreleased/tv_shows/aqua_teen_hunger_force.md)