Sha256: 4f804ad919420624b4d337e4e28e9a7a5c30ba26c1fca4bc0f10186f0e746cd6

Contents?: true

Size: 743 Bytes

Versions: 66

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal: true

module Bundler
  # SourceList object to be used while parsing the Gemfile, setting the
  # approptiate options to be used with Source classes for plugin installation
  module Plugin
    class SourceList < Bundler::SourceList
      def add_git_source(options = {})
        add_source_to_list Plugin::Installer::Git.new(options), git_sources
      end

      def add_rubygems_source(options = {})
        add_source_to_list Plugin::Installer::Rubygems.new(options), @rubygems_sources
      end

      def all_sources
        path_sources + git_sources + rubygems_sources + [metadata_source]
      end

    private

      def rubygems_aggregate_class
        Plugin::Installer::Rubygems
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 3 rubygems

Version Path
rubygems-update-3.1.6 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-3.1.5 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-3.0.9 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-2.7.11 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-3.2.0.rc.1 bundler/lib/bundler/plugin/source_list.rb
bundler-2.2.0.rc.1 lib/bundler/plugin/source_list.rb
rubygems-update-3.1.4 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-3.1.3 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-3.0.8 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-3.0.7 bundler/lib/bundler/plugin/source_list.rb
bundler-2.1.4 lib/bundler/plugin/source_list.rb
bundler-2.1.3 lib/bundler/plugin/source_list.rb
rubygems-update-3.1.2 bundler/lib/bundler/plugin/source_list.rb
bundler-2.1.2 lib/bundler/plugin/source_list.rb
bundler-2.1.1 lib/bundler/plugin/source_list.rb
rubygems-update-3.1.1 bundler/lib/bundler/plugin/source_list.rb
rubygems-update-3.1.0 bundler/lib/bundler/plugin/source_list.rb
bundler-2.1.0 lib/bundler/plugin/source_list.rb
rubygems-update-3.1.0.pre3 bundler/lib/bundler/plugin/source_list.rb
bundler-2.1.0.pre.3 lib/bundler/plugin/source_list.rb