Rails4 compatibility

Just a few gem version changes to make this gem work with Rails 4.