class

Mrcv::Resolver::VersionRegistry

Inherits Reference < Object

Constants

DEFAULT_DISCOVERY_URL = "https://api.github.com/repos/crystal-lang/crystal/tags"
STATIC_BASELINE_VERSIONS = ["1.0.0", "1.1.0", "1.2.0", "1.3.0", "1.4.0", "1.5.0", "1.6.0", "1.7.0", "1.8.0", "1.9.0", "1.10.0", "1.11.0", "1.12.0", "1.13.0", "1.14.0", "1.15.0", "1.16.0", "1.17.0", "1.18.0", "1.19.0", "1.20.0", "1.21.0"]

Authoritative immutable static baseline of official Crystal minor releases (1.0.0 through 1.21.0)

Constructors

discover(offline : Bool = false, endpoint : String = DEFAULT_DISCOVERY_URL) : VersionRegistry

Factory method: dynamic tag discovery with offline fallback

Source
new(candidates : Array(Core::Version) | Nil = nil)
Source

Class methods

static_baseline

Returns the static baseline candidate list

Source

Instance methods

includes?(version : Core::Version) : Bool

Checks if a specific version is registered

Source
latest

Latest available version in registry

Source
oldest

Oldest available version in registry

Source
resolve(constraint : Core::VersionRange | Nil = nil, min_version : Core::Version | Nil = nil, max_version : Core::Version | Nil = nil) : Array(Core::Version)

Resolves candidate versions matching optional manifest constraint, min_version, and max_version bounds

Source
size

Total number of registered versions

Source
versions
Source