codingjester / zoltar

A ruby API fortune teller based on the fortune program.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A ruby API fortune teller based on the fortune program.

License:MIT License


Languages

Language:Ruby 100.0%