Updated with two fixes for Rails 4 and Ruby 2.0.

Just some quick tweaks for Rails 4/Ruby 2.0:

Added a check to the sprocket initialization to load if Rails >= 4
Updated the references Regex to play nice with Ruby 2.0 regex and fixed a minor bug causing errors when more than one reference line is provided.