A ruby API fortune teller based on the fortune program.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fortunes
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
config.ru
zoltar.rb

README.md

Zoltar

Zoltar was my quick "relieve my boredom" on a train while going home to see my parents. It just reads in a list of the BSD "%" separated quotes that I found when I installed fortune and turns it into an API.

I'm probably going to add more to this and possibly try to turn it into some kind of api to get a markov chain of the fortunes.

Regardless, it's silly and kinda fun. Please feel free to add any categories or quotes/phrases that you want. I'll probably pull in the majority of them and deploy them to my site.

Running Zoltar

It's pretty easy. Just run rackup config.ru or ruby zoltar.rb

I've only tested it with ruby 2.0, so buyer beware.

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