Module: StillActive::ArtifactoryClient::RubygemsClient

Extended by:
RubygemsClient
Included in:
RubygemsClient
Defined in:
lib/still_active/artifactory_client.rb

Overview

Artifactory’s Rubygems-compatible API

Instance Method Summary collapse

Instance Method Details

#versions(gem_name:, source_uri:, headers: {}) ⇒ Object



74
75
76
77
78
# File 'lib/still_active/artifactory_client.rb', line 74

def versions(gem_name:, source_uri:, headers: {})
  base = URI(source_uri.chomp("/"))
  path = "#{base.path}/api/v1/versions/#{encode(gem_name)}.json"
  HttpHelper.get_json(base, path, headers: headers) || []
end