From cd3ee0a624bbd49abe4239fac8cb6ae44670f554 Mon Sep 17 00:00:00 2001 From: Stefano Verna Date: Wed, 3 Mar 2021 12:37:13 +0100 Subject: [PATCH] Compat: %i[] is not available on Ruby 1.9 --- lib/fastimage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fastimage.rb b/lib/fastimage.rb index e08e776..5784ce2 100644 --- a/lib/fastimage.rb +++ b/lib/fastimage.rb @@ -89,7 +89,7 @@ class FastImage LocalFileChunkSize = 256 unless const_defined?(:LocalFileChunkSize) - SUPPORTED_IMAGE_TYPES = %i[bmp gif jpeg png tiff psd heic heif webp svg svg ico cur].freeze + SUPPORTED_IMAGE_TYPES = [:bmp, :gif, :jpeg, :png, :tiff, :psd, :heic, :heif, :webp, :svg, :ico, :cur].freeze # Returns an array containing the width and height of the image. # It will return nil if the image could not be fetched, or if the image type was not recognised.