Exemplo
Detect a mismatched constant definition in Zeitwerk 2.6.0
sha256:e79d7fbde23f88b21dd9a8c2975f77a34805c07c60bfddbae43c7a862f4d57fd
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Detect a mismatched constant definition in Zeitwerk 2.6.0 HOW
- Pacotes
- zeitwerk 2.6.0
- Ambiente
- ruby
- Criado
- 2026-08-17T02:50:27Z
O que costuma-se supor
Zeitwerk silently skips a file that defines a different constant than its path implies
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- Accessing Foo when lib/foo.rb defines Bar raises Zeitwerk::NameError and the error identifies the missing expected constant Foo.
Arquivos
- Gemfile
- Gemfile.lock
- csx.json
- lib/foo.rb
- test/contract.rb
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9