https://github.com/rubyatscale/code_manifest
https://github.com/rubyatscale/code_manifest
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rubyatscale/code_manifest
- Owner: rubyatscale
- Created: 2022-09-14T03:09:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T21:09:49.000Z (over 1 year ago)
- Last Synced: 2025-05-17T14:54:53.478Z (9 months ago)
- Language: Ruby
- Size: 36.1 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CodeManifest
Simple manifest to fetch file by globs and generate digest.
## Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add code_manifest
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install code_manifest
## Usage
Put a `.code_manifest.yml` config file under your project root, for example:
```yml
ruby:
- app/**/*.rb
js:
- frontend/**/*.js
```
Then use it with:
```ruby
require 'code_manifest'
# Returns an `Array` of filepaths
CodeManifest[:ruby].files
CodeManifest[:js].files
# Returns a digest based on all files specified under same namespace
CodeManifest[:ruby].digest
CodeManifest[:js].digest
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/rubyatscale/code_manifest.