bagit-cr
Version, currently master branch1 version
- master branchlatestDec 7, 2016
github.com/nodanaonlyzuul/bagit-cr
A proof-of-concept to write a bagit validation tool in crystal.
Installation
# Add this to your shard.yml
dependencies:
bagit-cr:
github: nodanaonlyzuul/bagit-cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.19.4- License
- MIT
- Author
- nodanaonlyzuul
- Target
bagit-crfrom src/bagit-cr.cr
Dependencies
This version declares no dependencies.
README
bagit-cr
This is a bagit validator.
It's not ready for production but I am using this project to get acquainted with the crystal programming language.
Building
-
clone this repository and build with
crystal build --release src/bagit_validator.crfrom the project's root. This will output the executablebagit_validator.
Usage
$ ./bagit_validator ~/Desktop/good_bag
This bag is valid
$ ./bagit_validator ~/Desktop/bag-with-bad-checksum
This bag is not valid:malformed checksum for: picard.jpeg
$ ./bagit_validator ~Desktop/bag-with-stranger-in-manifest
This bag is not valid:manifest lists file not contained in bag: imnothere.jpg
Contributing (please)
- Fork it (https://github.com/nodanaonlyzuul/bagit-cr/fork)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Please write tests to backup your work.
Contributors
- nodanaonlyzuul - creator, maintainer
Acknowledgements
This is based on the Ruby gem tipr/bagit. I am just trying to see how fast a crystal implementation will validate compared to Ruby's.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Dec 7, 2016
- Crystal
0.19.4- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nodanaonlyzuul/bagit-cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1