diff options
Diffstat (limited to 'lib/bundler/source_list.rb')
-rw-r--r-- | lib/bundler/source_list.rb | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/bundler/source_list.rb b/lib/bundler/source_list.rb index 3ca6d4ad..49a976ba 100644 --- a/lib/bundler/source_list.rb +++ b/lib/bundler/source_list.rb @@ -1,13 +1,11 @@ module Bundler class SourceList attr_reader :path_sources, - :git_sources, - :svn_sources + :git_sources def initialize @path_sources = [] @git_sources = [] - @svn_sources = [] @rubygems_aggregate = Source::Rubygems.new @rubygems_sources = [] end @@ -20,10 +18,6 @@ module Bundler add_source_to_list Source::Git.new(options), git_sources end - def add_svn_source(options = {}) - add_source_to_list Source::SVN.new(options), svn_sources - end - def add_rubygems_source(options = {}) add_source_to_list Source::Rubygems.new(options), @rubygems_sources end @@ -42,7 +36,7 @@ module Bundler end def all_sources - path_sources + git_sources + svn_sources + rubygems_sources + path_sources + git_sources + rubygems_sources end def get(source) @@ -50,14 +44,14 @@ module Bundler end def lock_sources - lock_sources = (path_sources + git_sources + svn_sources).sort_by(&:to_s) + lock_sources = (path_sources + git_sources).sort_by(&:to_s) lock_sources << combine_rubygems_sources end def replace_sources!(replacement_sources) return true if replacement_sources.empty? - [path_sources, git_sources, svn_sources].each do |source_list| + [path_sources, git_sources].each do |source_list| source_list.map! do |source| replacement_sources.find { |s| s == source } || source end @@ -90,7 +84,6 @@ module Bundler def source_list_for(source) case source when Source::Git then git_sources - when Source::SVN then svn_sources when Source::Path then path_sources when Source::Rubygems then rubygems_sources else raise ArgumentError, "Invalid source: #{source.inspect}" |