
# appended by pass-the-fork
require 'json'
if ENV['INJECT_GEMS']
  config = JSON.parse(ENV['INJECT_GEMS'])
  config.each do |gem_name, options|
    @dependencies.delete_if {|d| d.name == gem_name }
    git = options['git']
    branch = options['branch']
    STDERR.puts "pass-the-fork: gem(#{gem_name.inspect}, git: #{git.inspect}, branch: #{branch.inspect})"
    gem(gem_name, git: git, branch: branch)
  end
end
# end of code appended by pass-the-fork
