From a234e383cbfa4b95c912d38ea372ace3d2432c03 Mon Sep 17 00:00:00 2001 From: Anirudh Date: Mon, 1 Oct 2018 01:35:50 +0530 Subject: [PATCH 1/4] Refactor uuids.nimble to fit the latest NimScript format Signed-off-by: Anirudh --- uuids.nimble | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/uuids.nimble b/uuids.nimble index 98eaf59..32df926 100644 --- a/uuids.nimble +++ b/uuids.nimble @@ -1,9 +1,10 @@ -[Package] -name: "uuids" -version: "0.1.10" -author: "Xored Software, Inc." -description: "UUID library" -license: "MIT" +# Package + +version = "0.1.10" +author = "Xored Software, Inc." +description = "UUID library" +license = "MIT" + +# Dependencies -[Deps] requires: "isaac >= 0.1.3" From 6d0a3079d9897c61567b739a912443360aea99d9 Mon Sep 17 00:00:00 2001 From: Anirudh Date: Mon, 1 Oct 2018 01:36:46 +0530 Subject: [PATCH 2/4] Move code to src/ dir Signed-off-by: Anirudh --- uuids.nim => src/uuids.nim | 0 {uuids => src/uuids}/urandom.nim | 0 uuids.nimble | 1 + 3 files changed, 1 insertion(+) rename uuids.nim => src/uuids.nim (100%) rename {uuids => src/uuids}/urandom.nim (100%) diff --git a/uuids.nim b/src/uuids.nim similarity index 100% rename from uuids.nim rename to src/uuids.nim diff --git a/uuids/urandom.nim b/src/uuids/urandom.nim similarity index 100% rename from uuids/urandom.nim rename to src/uuids/urandom.nim diff --git a/uuids.nimble b/uuids.nimble index 32df926..121828c 100644 --- a/uuids.nimble +++ b/uuids.nimble @@ -4,6 +4,7 @@ version = "0.1.10" author = "Xored Software, Inc." description = "UUID library" license = "MIT" +srcDir = "src" # Dependencies From 4adae190bf34ee0c85e72621135767a483a25dd0 Mon Sep 17 00:00:00 2001 From: Anirudh Date: Mon, 1 Oct 2018 01:47:03 +0530 Subject: [PATCH 3/4] Add `bin` key to uuids.nimble Signed-off-by: Anirudh --- uuids.nimble | 1 + 1 file changed, 1 insertion(+) diff --git a/uuids.nimble b/uuids.nimble index 121828c..de18883 100644 --- a/uuids.nimble +++ b/uuids.nimble @@ -4,6 +4,7 @@ version = "0.1.10" author = "Xored Software, Inc." description = "UUID library" license = "MIT" +bin = @["uuids"] srcDir = "src" # Dependencies From 91404ee97ecb8d17439c46f7a0d0664253402771 Mon Sep 17 00:00:00 2001 From: Anirudh Date: Mon, 1 Oct 2018 01:48:19 +0530 Subject: [PATCH 4/4] Rename uuids subdir to uuidspkg, to follow convention This also gets rid of the warning thrown by `nimble build` Signed-off-by: Anirudh --- src/uuids.nim | 2 +- src/{uuids => uuidspkg}/urandom.nim | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{uuids => uuidspkg}/urandom.nim (100%) diff --git a/src/uuids.nim b/src/uuids.nim index b44ede2..3f6ab38 100644 --- a/src/uuids.nim +++ b/src/uuids.nim @@ -1,6 +1,6 @@ import strutils, hashes import isaac -import uuids/urandom +import uuidspkg/urandom type UUID* = object diff --git a/src/uuids/urandom.nim b/src/uuidspkg/urandom.nim similarity index 100% rename from src/uuids/urandom.nim rename to src/uuidspkg/urandom.nim