ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.RubyGems.Project

Description

Native RubyGems identities preserve published versions and platform spellings.

Synopsis

Documentation

projectName :: Text -> Either ParseError PackageName Source #

Parse names without rewriting legacy registry punctuation or case.

rubyGemsNameChar :: Char -> Bool Source #

A character of a native name or platform label.

rubyGemsNameChars :: [Char] Source #

Every rubyGemsNameChar, in the maintenance bucket order.

unscopedRubyGems :: PackageName -> Bool Source #

A RubyGems name, which never carries a namespace.

gemFileStem :: Text -> Maybe Text Source #

A native archive filename without its .gem extension.

projectVersion :: Text -> Either ParseError Version Source #

Parse a digit-leading native version and retain its exact source spelling.

data GemPlatform Source #

A native platform label, distinct from a version or a content address.

mkGemPlatform :: Text -> Either ParseError GemPlatform Source #

Parse a platform label without normalising OS, architecture or ABI spelling.

unGemPlatform :: GemPlatform -> Text Source #

Return the exact source platform, including ruby for the generic artifact.

data GemCoordinate Source #

An artifact identity whose filename follows its checked native components.

mkCoordinate :: PackageName -> Version -> GemPlatform -> Either ParseError GemCoordinate Source #

Bind a raw version and platform to one unscoped RubyGems package.

coordinateStem :: GemCoordinate -> Text Source #

Return the native filename without its .gem extension for quick specifications. mkCoordinate always appends the extension, so the fallback never applies.

candidateCoordinates :: Int -> Filename -> Either ParseError [GemCoordinate] Source #

Enumerate bounded native capture candidates before checking admitted artifact inventory.