def bundler_fetcher
      # Bundler versions 1.10.0 moves AnonymizableURI to Source::Rubygems::Remote
      # See https://github.com/bundler/bundler/pull/3476
      if defined?(Bundler::Source::Rubygems::Remote)
        remote = Bundler::Source::Rubygems::Remote.new(Gem.sources.first.uri)
      else
        remote = Gem.sources.first.uri
      end
      Bundler::Fetcher.new(remote)
    end
def bundler_fetcher
      # Bundler versions 1.10.0 moves AnonymizableURI to Source::Rubygems::Remote
      # See https://github.com/bundler/bundler/pull/3476
      if defined?(Bundler::Source::Rubygems::Remote)
        remote = Bundler::Source::Rubygems::Remote.new(Gem.sources.first.uri)
      else
        remote = Gem.sources.first.uri
      end
      Bundler::Fetcher.new(remote)
    end
TODO: Support private sources