| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.RubyGems.Document
Description
Retained RubyGems installation metadata stays separate from grouped policy facts.
Synopsis
- type GemRequirement = NonEmpty Text
- data GemDependency = GemDependency {}
- data GemRow = GemRow {}
- data GemDocument = GemDocument {
- gemName :: PackageName
- gemHeader :: ByteString
- gemRows :: [GemRow]
- restrictGemDocument :: Set EntryKey -> GemDocument -> GemDocument
- selectGemVersion :: Version -> GemDocument -> Maybe GemDocument
- gemDocumentBytes :: GemDocument -> Int64
Documentation
type GemRequirement = NonEmpty Text Source #
Conjunctive native clauses retain their exact operators and version spelling.
data GemDependency Source #
A runtime dependency and every conjunctive requirement on that dependency.
Constructors
| GemDependency | |
Fields | |
Instances
| Show GemDependency Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Document Methods showsPrec :: Int -> GemDependency -> ShowS # show :: GemDependency -> String # showList :: [GemDependency] -> ShowS # | |
| Eq GemDependency Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Document Methods (==) :: GemDependency -> GemDependency -> Bool # (/=) :: GemDependency -> GemDependency -> Bool # | |
One artifact retains its original physical position and independently owned source bytes.
Constructors
| GemRow | |
Fields | |
data GemDocument Source #
Ordered per-package rows preserve platform distinctions without fetching compact specifications.
Constructors
| GemDocument | |
Fields
| |
Instances
| Show GemDocument Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Document Methods showsPrec :: Int -> GemDocument -> ShowS # show :: GemDocument -> String # showList :: [GemDocument] -> ShowS # | |
| Eq GemDocument Source # | |
Defined in Ecluse.Core.Registry.RubyGems.Document | |
restrictGemDocument :: Set EntryKey -> GemDocument -> GemDocument Source #
Keep only artifacts authorised by their original source positions.
selectGemVersion :: Version -> GemDocument -> Maybe GemDocument Source #
Retain every platform row for one exact raw version, without comparison-key aliases.
gemDocumentBytes :: GemDocument -> Int64 Source #
Cache units for a retained document. Every row carries the document's gem name, so the name is measured once and counted per row.