Update gemspec to allow installing on Rails 4

Adapted from devise's gemspec (https://github.com/plataformatec/devise/blob/master/devise.gemspec)