From d1d8104ab4117148e4eb5d201611f808b1c39df3 Mon Sep 17 00:00:00 2001 From: grimmigerFuchs Date: Sat, 23 Oct 2021 13:42:39 +0200 Subject: [PATCH] added automatic version fetching --- shard.yml | 5 +++++ src/compiled_license.cr | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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