From 8c80ecafe218ae8540a5f891049a0faf15814f6c Mon Sep 17 00:00:00 2001 From: Danilo Grieco Date: Wed, 8 Nov 2023 13:39:16 +0100 Subject: [PATCH 1/3] Fixed require --- lib/doc_key.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/doc_key.rb b/lib/doc_key.rb index f535e9b..0c1863d 100644 --- a/lib/doc_key.rb +++ b/lib/doc_key.rb @@ -1,4 +1,4 @@ -require 'digest' +require 'digest/md5' module Colore # This is the unique identifier for a document, a composite of From 6db32969f12586f5c614c6a0095e6e906618569d Mon Sep 17 00:00:00 2001 From: Danilo Grieco Date: Wed, 8 Nov 2023 13:54:53 +0000 Subject: [PATCH 2/3] Required diges/sha2 in legacy converter --- lib/legacy_converter.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/legacy_converter.rb b/lib/legacy_converter.rb index 8c7101d..6a42ba8 100644 --- a/lib/legacy_converter.rb +++ b/lib/legacy_converter.rb @@ -2,6 +2,7 @@ require 'filemagic/ext' require 'mime/types' require 'heathen' +require 'digest/sha2' module Colore # The Colore Legacy Converter provides the conversion functionality from From 046b5be2919939a0e9e59851dbb500fb96eedaf1 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Wed, 8 Nov 2023 16:06:09 +0100 Subject: [PATCH 3/3] Remove digest import --- lib/utils.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/utils.rb b/lib/utils.rb index 15d44c5..85381b9 100644 --- a/lib/utils.rb +++ b/lib/utils.rb @@ -1,5 +1,3 @@ -require 'digest' - module Colore module Utils # Deep conversion of all hash keys to symbols.