Module: DefinitionSourceRequirementsPatch

Defined in:
lib/bootboot/bundler_patch.rb

Instance Method Summary collapse

Instance Method Details

#source_requirementsObject



34
35
36
37
38
39
40
41
# File 'lib/bootboot/bundler_patch.rb', line 34

def source_requirements
  super.tap do |source_requirements|
    # Bundler has a hard requirement that Ruby should be in the Metadata
    # source, so this replaces Ruby's Metadata source with our custom source
    source = Bootboot::RubySource.new({})
    source_requirements[source.ruby_spec_name] = source
  end
end