diff --git a/shard.yml b/shard.yml index 4d64fd4..73e048c 100644 --- a/shard.yml +++ b/shard.yml @@ -8,3 +8,8 @@ authors: crystal: 1.2.1 license: MIT + +dependencies: + version: + github: unn4m3d/version + version: 0.1.1 diff --git a/src/compiled_license.cr b/src/compiled_license.cr index bc26aea..10e8103 100644 --- a/src/compiled_license.cr +++ b/src/compiled_license.cr @@ -1,5 +1,7 @@ +require "version" + module CompiledLicense - VERSION = {{ `shards version`.stringify.chomp }} + VERSION = Version.fetch LICENSES = {{ run("./compiled_license/licenses.cr").stringify }} end