From 580c684f792d6fab16c58b9a08d566cd03c72ca4 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Fri, 6 Oct 2023 15:02:59 +0200 Subject: announce to fixed, find_file replaced with find_object, CONTENT_LENGHT included in signature verification --- helpers.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'helpers.rb') diff --git a/helpers.rb b/helpers.rb index 0a7f829..1f106a7 100644 --- a/helpers.rb +++ b/helpers.rb @@ -201,11 +201,11 @@ helpers do "#{type[0]}/#{ext}" end - def find_file(id) - Dir[File.join('*', 'object', '*', '*.json')].find do |f| - JSON.load_file(f)['id'] == id - end - end + # def find_file(id) + # Dir[File.join('*', 'object', '*', '*.json')].find do |f| + # JSON.load_file(f)['id'] == id + # end + # end def find_object(id) Dir[File.join('*', '**', '*.json')].each do |file| -- cgit v1.2.3