N.B. This is a sample app for the Atlanta Intermediate Ruby group. I'm not serious. Don't take it seriously.
Cats on demand
Clone this repo and then
$ bundle
$ rake db:setup cats:herd # to download some gifs
$ rails s
Assuming the app is already up and running…
$ rake db:test:prepare # if needed
$ rspec
Note that (in the interest of not actually depending on outside services), "serving" a cat gif really just calls open
on the file. You may need to replace that call with thunar
or nautilus
or what have you if you're not on OSX.
- Select a queue backend
- Run
CatRequest#fulfill!
in the background - Make sure specs still pass
- Bonus: find a better way of spec'ing the
open
system call
- Bonus: find a better way of spec'ing the
- Install a job administration system
- Determine appropriate failure / retry logic
- Cats from edgecats
- Design by Lewis King