Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/image_processing/mini_magick.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require "image_processing"
begin
require "mini_magick"
rescue LoadError
fail ImageProcessing::Error, "ImageProcessing::MiniMagick requires the mini_magick gem. Please add `gem \"mini_magick\", \"~> 5.0\"` to your Gemfile."
rescue LoadError => e
raise e, "ImageProcessing::MiniMagick requires the mini_magick gem. Please add `gem \"mini_magick\", \"~> 5.0\"` to your Gemfile."
end

module ImageProcessing
Expand Down
4 changes: 2 additions & 2 deletions lib/image_processing/vips.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require "image_processing"
begin
require "vips"
rescue LoadError
fail ImageProcessing::Error, "ImageProcessing::Vips requires the ruby-vips gem. Please add `gem \"ruby-vips\", \"~> 2.0\"` to your Gemfile."
rescue LoadError => e
raise e, "ImageProcessing::Vips requires the ruby-vips gem. Please add `gem \"ruby-vips\", \"~> 2.0\"` to your Gemfile."
end

Vips.block_untrusted(true) if Vips.respond_to?(:block_untrusted) && !ENV["VIPS_BLOCK_UNTRUSTED"]
Expand Down
Loading