version_from_shard

A macro to declare the VERSION constant from the value found in shard.yml versioning
1.0.0 released

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

  1. Add the dependency to your shard.yml:

    dependencies:
      version:
        github: hugopl/version_from_shard
    
  2. Run shards install

Usage

require "version_from_shard"

module MyAwesomeApp
  VersionFromShard.declare
end

puts MyAwesomeApp::VERSION

Development

Suggestions are welcome.

Contributing

  1. Fork it (https://github.com/hugopl/version_from_shard/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

version_from_shard:
  github: hugopl/version_from_shard
  version: ~> 1.0.0
License MIT
Crystal 0.31.1

Authors

Dependencies 0

Development Dependencies 0

Dependents 3

Other repos 1

Last synced .
search fire star recently