Beispiel
Generate unambiguous abbreviation prefix tables and apply string or regex pattern filters with Abbrev.abbrev and Array#abbrev
sha256:ecb0854e78c0b2a73a812212b87589f6181dc7a69b80c057feecc3f35061aa38
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- ruby
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- ruby
- Sprache
- ruby
- Paketmanager
- bundler
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- ruby 3
- Betriebssystem
- linux debian · glibc
- Architektur
- x64
- Runtime
- ruby 3
- Sprache
- ruby
- Paketmanager
- bundler
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
Fall
- Ziel
- Generate unambiguous abbreviation prefix tables and apply string or regex pattern filters with Abbrev.abbrev and Array#abbrev HOW
- Pakete
-
abbrev 0.1.2
- Umgebung
- ruby
- Erstellt
- 2026-08-17T13:52:28Z
Contract
- Abbrev.abbrev and Array#abbrev calculate a hash mapping all unambiguous prefix substrings and full words to their corresponding full strings.
- Prefixes shared across multiple input words are removed as ambiguous while exact full words are always preserved in the table.
- Passing a string pattern converts it to an anchored prefix regex filtering out words and prefixes not starting with the string.
- Passing a regexp pattern matches against prefix substrings without anchoring, retaining only matching prefix keys and matching full words.
- Empty strings in input collections do not generate prefix substrings but are retained as empty string keys in the output hash.
- Abbrev.abbrev accepts any Enumerable collection such as Set or Array to compute unambiguous prefix tables.
Dateien
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9