crystal-version-freezer v0.1.1

❄️ Freeze `YourLibrary::VERSION` from `shard.yml` at compile time!

Version Freezer Build Status

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

  1. Fork it ( https://github.com/pine/crystal-version-freezer/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

  • pine Pine Mizune - creator, maintainer
Repository

crystal-version-freezer

Owner
Statistic
  • 0
  • 0
  • 0
  • 2
  • 0
  • almost 8 years ago
  • July 7, 2016
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 05:40:54 GMT

Languages