summaryrefslogtreecommitdiff
path: root/helpers.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-10-06 15:02:59 +0200
committerpdp8 <pdp8@pdp8.info>2023-10-06 15:02:59 +0200
commit580c684f792d6fab16c58b9a08d566cd03c72ca4 (patch)
treeb6cda32267d02c5e5118fa2d6b1da92c48c457c6 /helpers.rb
parent6100f9971b74ee4d3449155beb881a69017a296d (diff)
announce to fixed, find_file replaced with find_object, CONTENT_LENGHT included in signature verification
Diffstat (limited to 'helpers.rb')
-rw-r--r--helpers.rb10
1 files changed, 5 insertions, 5 deletions
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|