| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.Project
Description
Native RubyGems identities preserve published versions and platform spellings.
Synopsis
- projectName :: Text -> Either ParseError PackageName
- rubyGemsNameChar :: Char -> Bool
- rubyGemsNameChars :: [Char]
- unscopedRubyGems :: PackageName -> Bool
- gemFileStem :: Text -> Maybe Text
- projectVersion :: Text -> Either ParseError Version
- data GemPlatform
- mkGemPlatform :: Text -> Either ParseError GemPlatform
- unGemPlatform :: GemPlatform -> Text
- data GemCoordinate
- mkCoordinate :: PackageName -> Version -> GemPlatform -> Either ParseError GemCoordinate
- coordinateName :: GemCoordinate -> PackageName
- coordinateVersion :: GemCoordinate -> Version
- coordinatePlatform :: GemCoordinate -> GemPlatform
- coordinateFilename :: GemCoordinate -> Filename
- coordinateStem :: GemCoordinate -> Text
- candidateCoordinates :: Int -> Filename -> Either ParseError [GemCoordinate]
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.
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.
Instances
| Show GemPlatform Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Project Methods showsPrec :: Int -> GemPlatform -> ShowS # show :: GemPlatform -> String # showList :: [GemPlatform] -> ShowS # | |
| Eq GemPlatform Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Project | |
| Ord GemPlatform Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Project Methods compare :: GemPlatform -> GemPlatform -> Ordering # (<) :: GemPlatform -> GemPlatform -> Bool # (<=) :: GemPlatform -> GemPlatform -> Bool # (>) :: GemPlatform -> GemPlatform -> Bool # (>=) :: GemPlatform -> GemPlatform -> Bool # max :: GemPlatform -> GemPlatform -> GemPlatform # min :: GemPlatform -> GemPlatform -> GemPlatform # | |
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.
Instances
| Show GemCoordinate Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Project Methods showsPrec :: Int -> GemCoordinate -> ShowS # show :: GemCoordinate -> String # showList :: [GemCoordinate] -> ShowS # | |
| Eq GemCoordinate Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Project Methods (==) :: GemCoordinate -> GemCoordinate -> Bool # (/=) :: GemCoordinate -> GemCoordinate -> Bool # | |
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.