Is there a way of installing the latest supported version of a dependency without specifying it?
I'm having issues with the activesupport gem. The latest version (5.0.0.1) supports Ruby >= 2.2.2. If I'm specifying that I require the gem like this '~> 4.2'
Bundler will try to install version 5 even if I'm on Ruby 2.0. Specifying the exact version 4.2.7.1
or setting a maximum '~> 4.2', '< 5'
works, except when using the gem with Rails 5.
Is there a way to manage gem versions based on the current Ruby version?