0.0
Low commit activity in last 3 years
A long-lived project that still receives updates
A sentence generator that quotes Lord of the Rings and the Hobbit.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.0
~> 5.0
~> 13.0
 Project Readme

LoremTolkien

Build Status

Test Coverage

On RubyGems.org

Installation

Add this line to your application's Gemfile:

gem 'lorem_tolkien'

And then execute:

$ bundle

Or install it yourself as:

$ gem install lorem_tolkien

Building

$ gem build lorem_tolkien.gemspec 

$ gem push lorem_tolkien-1.0.0.gem

Usage

Single Sentence

LoremTolkien.sentence => "Do you wish me a good morning, or mean that it is a good morning whether I want it or not; or that you feel good this morning; or that it is a morning to be good on?"

Multiple Sentences

LoremTolkien.sentences(5) => "Do you wish me a good morning, or mean that it is a good morning whether I want it or not; or that you feel good this morning; or that it is a morning to be good on? In a hole in the ground there lived a hobbit. There is nothing like looking, if you want to find something. You certainly usually find something, if you look, but it is not always quite the something you were after. It does not do to leave a live dragon out of your calculations, if you live near him."

Specific Word Count

LoremTolkien.words(10) => "arranging, do Where yore as morning; the fire want shining"

Single Paragraph

LoremTolkien.paragraph => "Do you wish me a good morning, or mean that it is a good morning whether I want it or not; or that you feel good this morning; or that it is a morning to be good on? In a hole in the ground there lived a hobbit. There is nothing like looking, if you want to find something."

Multiple Paragraphs

LoremTolkien.paragraphs(3) => "Do you wish me a good morning, or mean that it is a good morning whether I want it or not; or that you feel good this morning; or that it is a morning to be good on? In a hole in the ground there lived a hobbit. There is nothing like looking, if you want to find something.

Far over the misty mountains cold To dungeons deep and caverns old We must away ere break of day To seek the pale enchanted gold. The dwarves of yore made mighty spells.

You certainly usually find something, if you look, but it is not always quite the something you were after. It does not do to leave a live dragon out of your calculations, if you live near him."

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

Authored by John Maddux. jemaddux.com