Method: Bundler::Fetcher::Dependency#dependency_api_uri

Defined in:
lib/bundler/fetcher/dependency.rb

#dependency_api_uri(gem_names = []) ⇒ Object



71
72
73
74
75
# File 'lib/bundler/fetcher/dependency.rb', line 71

def dependency_api_uri(gem_names = [])
  uri = fetch_uri + "api/v1/dependencies"
  uri.query = "gems=#{CGI.escape(gem_names.sort.join(","))}" if gem_names.any?
  uri
end