Update gemspec to allow for railties >= 3.1