Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LatestAPI is the string format for the Rubygems latest API LatestAPI = "https://rubygems.org/api/v1/versions/%s/latest.json" // VersionsAPI is the string format for the Rubygems versions API VersionsAPI = "https://rubygems.org/api/v1/versions/%s.json" // SourceFormat is the string format for Gem sources SourceFormat = "https://rubygems.org/downloads/%s-%s.gem" )
Variables ¶
View Source
var GemRegex = regexp.MustCompile("https?://rubygems.org/downloads/(.+).gem")
GemRegex matches Rubygems sources
Functions ¶
This section is empty.
Types ¶
type LatestVersion ¶
type LatestVersion struct {
Version string `json:"version"`
}
LatestVersion is a JSON representation of the latest Version of a Gem
type Provider ¶
type Provider struct{}
Provider is the upstream provider interface for rubygems
Click to show internal directories.
Click to hide internal directories.