Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.02 KB

File metadata and controls

29 lines (19 loc) · 1.02 KB

This file provides guidance to AI coding agents when working with code in this repository.

What this project is

code_manifest is a Ruby gem that fetches files by glob patterns and generates a digest of those files. It is used to produce stable manifests of file sets for caching and change-detection purposes.

Commands

bundle install

# Run all tests (RSpec)
bundle exec rspec

# Run a single spec file
bundle exec rspec spec/path/to/spec.rb

# Format code with rubyfmt (requires the rubyfmt binary on PATH, e.g. `brew install rubyfmt`)
rubyfmt -i lib/ spec/ Rakefile code_manifest.gemspec Gemfile bin/console

# Check formatting without writing changes (this is what CI runs)
rubyfmt --check lib/ spec/ Rakefile code_manifest.gemspec Gemfile bin/console

Architecture

  • lib/code_manifest.rb — public API; accepts glob patterns and returns matched files plus a digest
  • lib/code_manifest/ — internal helpers for glob resolution and hashing
  • spec/ — RSpec tests; spec/fixtures/ holds sample file trees