added automatic version fetching
This commit is contained in:
parent
59f49d2f92
commit
d1d8104ab4
2 changed files with 8 additions and 1 deletions
|
@ -8,3 +8,8 @@ authors:
|
||||||
crystal: 1.2.1
|
crystal: 1.2.1
|
||||||
|
|
||||||
license: MIT
|
license: MIT
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
version:
|
||||||
|
github: unn4m3d/version
|
||||||
|
version: 0.1.1
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
require "version"
|
||||||
|
|
||||||
module CompiledLicense
|
module CompiledLicense
|
||||||
VERSION = {{ `shards version`.stringify.chomp }}
|
VERSION = Version.fetch
|
||||||
|
|
||||||
LICENSES = {{ run("./compiled_license/licenses.cr").stringify }}
|
LICENSES = {{ run("./compiled_license/licenses.cr").stringify }}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue