Fork for same named repo from rubygems, tweaked for ruby 1.9 and rails 3