ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.RubyGems.Directory.Internal

Description

The Compact Index directory parser under any gem-name ceiling, and its fixed production ceiling. Importing this module opts out of the public surface's stability promises. It exists so a spec can parse under a small ceiling.

Synopsis

Documentation

newtype GemDirectory Source #

Sorted complete rows carry an explicit blank info-file hint.

Constructors

GemDirectory 

data DirectoryRead Source #

A parsed directory and the malformed rows it dropped, in source order.

directoryNameCeiling :: Int Source #

Distinct gem names one directory may hold. config/default.yaml and the RubyGems protocol reference document it.

directoryStepsWithin :: Monad m => Int -> (Int -> m ()) -> Steps m DirectoryRead Source #

Repeated rows apply additions and removals under a gem-name ceiling. The metadata byte cap bounds the rows.

applyChanges :: ByteString -> ByteString -> ByteString Source #

Apply comma-separated additions and - removals to a version list, in sorted token order.