Smart gem installation #5994
-
From time to time we face a problem with gems installation when ruby or gem version is pretty old. This is caused by vague dependencies description and/or If you try to install Probably this is not a big deal for occasional manual installation, but a really big pain for automatic installations. Or to be able to run Or may be there is a way to do this with cli or simple code? Also, recently met unclear issue on the macos, after
And on ruby 2.3 & 2.4 bundler attempts to install the last one and fails (dependency specified as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is already the default behavior. The problem is that on old Rubies, the version of the |
Beta Was this translation helpful? Give feedback.
This is already the default behavior. The problem is that on old Rubies, the version of the
gem
CLI is too old and doesn't have this fix. If you rungem update --system
first,gem install
should resolve to the highest version that's also compatible with your current Ruby version.