Version From Shard
A macro to declare the VERSION constant from the value found in shard.yml
, so you don't need to write the same version number in multiple places.
Installation
-
Add the dependency to your
shard.yml
:dependencies: version: github: hugopl/version_from_shard
-
Run
shards install
Usage
require "version_from_shard"
module MyAwesomeApp
VersionFromShard.declare
end
puts MyAwesomeApp::VERSION
Development
Suggestions are welcome.
Contributing
- Fork it (https://github.com/hugopl/version_from_shard/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
- Hugo Parente Lima - creator and maintainer