In my gemfile I have gems that are only installed in test or development group.
eg
group :test do
gem "rspec-rails"
end
group :development do
gem "dev_gem"
end
Is there a way I can bundle update only the gems in these two groups?
I don't want to update ALL the gems in the Gemfile. Just the ones in test and development.
Yes, with
$ bundle update --conservative --group test development
Bundler’s --conservative
option is key, because it prevents updates in any "Production" gem that is also a dependency of a "Test" or "Development" gem.