ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.RubyGems.Wire

Description

Compact-index rows retain native requirements and reject ambiguous artifact metadata.

Synopsis

Documentation

data GemRowError Source #

Native syntax failure differs from an explicitly unsupported wire representation.

Constructors

GemRowMalformed Text

A required field or its grammar is invalid.

GemRowUnsupported Text

The row describes a newer artifact format outside the supported client contract.

Instances

Instances details
Show GemRowError Source # 
Instance details

Defined in Ecluse.Core.Registry.RubyGems.Wire

Eq GemRowError Source # 
Instance details

Defined in Ecluse.Core.Registry.RubyGems.Wire

decodeInfoRow :: PackageName -> EntryKey -> ByteString -> Either GemRowError GemRow Source #

Decode one complete row without losing timestamp colons or requirement conjunctions.

infoRowIdentity :: PackageName -> ByteString -> Maybe GemCoordinate Source #

Recover a claimed identity before decoding other fields, so malformed duplicates cannot hide.

infoRowVersion :: ByteString -> Maybe Version Source #

Preserve the raw version claim even when the platform or later payload cannot decode.

parseGemRequirement :: Text -> Either GemRowError GemRequirement Source #

Parse conjunctions while retaining each native operator and version spelling.