support sprockets only

this enables the gem to be used in sinatra apps aswell instead of
forcing the user to use rails

I updated the original pull request (#1) from @flintinatux to
work with the current codebase