Thanks, but I think it would be better to use

```ruby
s.add_dependency("railties", ">= 3.1", "< 5")
```