summaryrefslogtreecommitdiff
path: root/lib/bundler/plugin/source_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/plugin/source_list.rb')
-rw-r--r--lib/bundler/plugin/source_list.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/plugin/source_list.rb b/lib/bundler/plugin/source_list.rb
index b90a331d28..547661cf2f 100644
--- a/lib/bundler/plugin/source_list.rb
+++ b/lib/bundler/plugin/source_list.rb
@@ -17,6 +17,10 @@ module Bundler
path_sources + git_sources + rubygems_sources + [metadata_source]
end
+ def default_source
+ git_sources.first || global_rubygems_source
+ end
+
private
def rubygems_aggregate_class