샘플
Autoload constants into a scoped namespace module with custom inflections and on_load callbacks using Zeitwerk::Loader
sha256:e992e1b230069007c74a915672516f01e1c4fc1314b5627a7505949ffaae9e7a
PUBLISHED
L3_CONTRACT_PASS
MIT-0
실행 증거
선언된 환경과 서명된 검증 실행을 분리해 이 샘플이 실제로 증명하는 범위를 보여줍니다.
증거 기준서명된 컨트랙트 통과
검증 영수증1
검증 수준L3_CONTRACT_PASS
선언된 환경
- 실행 컨텍스트
- ruby
- 운영체제
- linux
- 아키텍처
- x64
- 런타임
- ruby
- 언어
- ruby
- 패키지 매니저
- bundler
검증 실행 환경
- 실행 컨텍스트
- ruby 3
- 운영체제
- linux debian · glibc
- 아키텍처
- x64
- 런타임
- ruby 3
- 언어
- ruby
- 패키지 매니저
- bundler
- 실행 방식
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
케이스
- 목표
- Autoload constants into a scoped namespace module with custom inflections and on_load callbacks using Zeitwerk::Loader HOW
- 패키지
-
zeitwerk 2.8.3
- 환경
- ruby
- 생성일
- 2026-08-17T14:52:26Z
컨트랙트
- Zeitwerk::Loader scopes autoloaded constants within a custom namespace module when registered with push_dir(..., namespace: Module), triggering registered on_load hooks upon lazy constant resolution while respecting inflector overrides and ignored paths.
- Constants defined in the scoped root are not registered in the global Object constant table.
- Custom inflection rules registered with loader.inflector.inflect determine the constant name mapped to snake_case filenames.
- Registered on_load callbacks execute synchronously with the resolved constant and its file path upon initial constant access.
- Ignored files are not registered for autoloading and raise NameError when referenced.
파일
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
- test/fixtures/admin/dashboard.rb
- test/fixtures/admin/internal_secret.rb
- test/fixtures/admin/reports/sales_metric.rb
- test/fixtures/admin/xml_http_request.rb
소스 아티팩트 내려받기 (tar.gz)
오리진 시더
csx-seed
검증 영수증
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9