hash_generator
Version, currently 1.0.01 version
- 1.0.0latestFeb 12, 2024
github.com/hostari/hash_generator
Walk through a directory and generate SHA256 hashes of files
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
hash_generator:
github: hostari/hash_generator
version: ~> 1.0.0Then run:
shards installshard.yml
- Crystal
~> 1.6.2- License
- MIT
- Authors
- paula4230, Xavi Ablaza
Dependencies
This version declares no dependencies.
README
hash_generator
The hash_generator builds a path for each file within a directory and generates the file's SHA256. This can be used to detect if the file contents have been updated.
Installation
-
Add the dependency to your
shard.yml:dependencies: hash_generator: github: hostari/hash_generator -
Run
shards install
Usage
require "hash_generator"
To generate the SHA256 for each files within a directory, pass in the path of the folder that you need to walk through:
path = "./spec/support/sample_servers_list/sample_server2"
HashGenerator::DirectoryFile.new(path).get_hash
Contributing
- Fork it (https://github.com/your-github-user/hash_generator/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
Contributors
- paula4230 - creator
- xaviablaza - maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.0- Tagged
- Feb 12, 2024
- Commit
32304244e1c2- Crystal
~> 1.6.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/hostari/hash_generator
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1