This bundler plugin allows to change dependencies for a gem. It can be helpful in situation when a developer needs to use some other dependency than default for the gem.
Ruby 3.2 and Bundler 2.4.14 are mostly tested versions.
-
Clone this project to your disk.
-
Install plugin from local git folder
Set proper path in place of 'PATH-TO-THE-FOLDER-WITH-PLUGIN' and run from terminal in your project folder:
bundle plugin install "bundler-override" --local-git PATH-TO-THE-FOLDER-WITH-PLUGIN/bundler-override/- Add plugin entry to the Gemfile in your project:
plugin 'bundler-override'
require File.join(Bundler::Plugin.index.load_paths("bundler-override")[0], "bundler-override") rescue nil- Add 'override' block to the Gemfile, e.g.:
override 'chef-config', :drop => 'chef-utils', :requirements => {
'chef-utils' => '17.10.68'
}or
override 'chef-config', :drop => ['chef-utils', 'mixlib-config'], :requirements => {
'chef-utils' => '17.10.68',
'mixlib-config' => '2.0.0'
}override is a command that allows to replace dependency for a gem with desired version
Takes a gem name or list of gem names to be replaced.
A map with gem versions to be used instead of the ones from drop.
The gem is available as open source under the terms of the Apache 2.0 License.