Version Freezer
Freeze YourLibrary::VERSION
from shard.yml
at compile time!
Installation
Add this to your application's shard.yml
:
dependencies:
version-freezer:
github: pine/crystal-version-freezer
Usage
require "version-freezer"
module YourLibrary
VERSION = VersionFreezer.freeze(__DIR__)
end
The freeze
method finds your shard.yml
file recursively.
Contributing
- Fork it ( https://github.com/pine/crystal-version-freezer/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
- pine Pine Mizune - creator, maintainer