A platform for community discussion. Free, open, simple.
DEV: Update fastimage to 2.4.1 (#38939)
Jarek Radoszc08e13ff5d9e
diff --git a/Gemfile.lock b/Gemfile.lockindex b579510f84f..950a5b4c849 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -173,7 +173,7 @@ GEMfaraday-retry (2.4.0)faraday (~> 2.0)fast_blank (1.0.1)- fastimage (2.3.1)+ fastimage (2.4.1)ffi (1.17.3-aarch64-linux-gnu)ffi (1.17.3-aarch64-linux-musl)ffi (1.17.3-arm-linux-gnu)@@ -1004,7 +1004,7 @@ CHECKSUMSfaraday-net_http (3.4.2) sha256=f147758260d3526939bf57ecf911682f94926a3666502e24c69992765875906cfaraday-retry (2.4.0) sha256=7b79c48fb7e56526faf247b12d94a680071ff40c9fda7cf1ec1549439ad11ebefast_blank (1.0.1) sha256=269fc30414fed4e6403bc4a49081e1ea539f8b9226e59276ed1efaefabaa17ea- fastimage (2.3.1) sha256=23c629f1f3e7d61bcfcc06c25b3d2418bc6bf41d2e615dbf5132c0e3b63ecce9+ fastimage (2.4.1) sha256=c64bebd46b6fd8943ab70c1e6e85ff728f970f2e48f92ecd249b6bc3a540ad20ffi (1.17.3-aarch64-linux-gnu) sha256=28ad573df26560f0aedd8a90c3371279a0b2bd0b4e834b16a2baa10bd7a97068ffi (1.17.3-aarch64-linux-musl) sha256=020b33b76775b1abacc3b7d86b287cef3251f66d747092deec592c7f5df764b2ffi (1.17.3-arm-linux-gnu) sha256=5bd4cea83b68b5ec0037f99c57d5ce2dd5aa438f35decc5ef68a7d085c785668diff --git a/app/models/upload.rb b/app/models/upload.rbindex c6ac25c222b..0c09d16f928 100644--- a/app/models/upload.rb+++ b/app/models/upload.rb@@ -191,7 +191,9 @@ class Upload < ActiveRecord::Baseimage_info =begin- FastImage.new(original_path)+ image = FastImage.new(original_path)+ image.type # eager load to rescue errors early+ imagerescue StandardErrornilenddiff --git a/lib/upload_creator.rb b/lib/upload_creator.rbindex 4bccef90832..9d8dc708c56 100644--- a/lib/upload_creator.rb+++ b/lib/upload_creator.rb@@ -64,7 +64,9 @@ class UploadCreator@image_info =begin- FastImage.new(@file)+ image = FastImage.new(@file)+ image.type # eager load to rescue errors early+ imagerescue StandardErrornilend@@ -289,7 +291,9 @@ class UploadCreatordef extract_image_info!@image_info =begin- FastImage.new(@file)+ image = FastImage.new(@file)+ image.type # eager load to rescue errors early+ imagerescue StandardErrornilend