blob: 457b4ef7d53cf9593b8db1b09c876a953d9b0790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
module Bundler
class Plugin::SourceList < Bundler::SourceList
def initialize
@rubygems_aggregate = Source::Rubygems.new :plugin => true
super
end
def add_git_source(options = {})
add_source_to_list Source::Git.new(options.merge(:plugin => true)), git_sources
end
def add_rubygems_source(options = {})
add_source_to_list Source::Rubygems.new(options.merge(:plugin => true)), @rubygems_sources
end
end
end
|