From 027c7598eb0a8b694d32d1bef37b371d924d95bd Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Mon, 17 Dec 2018 00:49:45 +0900 Subject: [PATCH] Missing .to_s added. Index/partition keys can now be non-string without build-time error. --- src/fs.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs.cr b/src/fs.cr index 7ae5618..030e743 100644 --- a/src/fs.cr +++ b/src/fs.cr @@ -58,7 +58,7 @@ class FS::Hash(K, V) @partitions.each do |index| index_key = index.key_proc.call value - symlink = file_path(key, index.name, index_key) + symlink = file_path(key.to_s, index.name, index_key) Dir.mkdir_p File.dirname symlink