0.0
No commit activity in last 3 years
No release in over 3 years
The unix 'fortune' program - implemented as a ruby gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0
 Project Readme

A Ruby version of of the popular unix 'fortune' program. All the fortunes are from the fortune application you can install in via apt-get install fortune

Usage From an Application

require 'fortune_gem' FortuneGem.give_fortune

or if you want to limit it to fortunes <= 100...

FortuneGem.give_fortune({:max_length => 100})

Usage From the Command Line

The gem comes with an executable. You can run fortune_gem from the command line!

$ fortune_gem

Q:	How many Marxists does it take to screw in a light bulb?
A:	None:  The light bulb contains the seeds of its own revolution.

$ fortune_gem 40
You're at the end of the road again.