`Rails.root`? That won't work!
Explicitly require JSON
Make tmp folder in gem root
Merge pull request #2 from theodi/bugfix-get-rid-of-rails-specific-stuff

Get rid of rails specific stuff