diff options
author | pdp8 <pdp8@pdp8.info> | 2023-10-06 15:02:59 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-10-06 15:02:59 +0200 |
commit | 580c684f792d6fab16c58b9a08d566cd03c72ca4 (patch) | |
tree | b6cda32267d02c5e5118fa2d6b1da92c48c457c6 /helpers.rb | |
parent | 6100f9971b74ee4d3449155beb881a69017a296d (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.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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| |