diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-12-14 23:16:06 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-12-15 00:04:01 -0500 |
commit | 07970cd90b8717dac008a59ac40177369bda9a80 (patch) | |
tree | 6f2b472812674a7d2a766729a505c0564b504f04 /lib | |
parent | filename reference version update sisu_7a_sqlite.cgi (diff) |
ao_images, require 'rmagick' (instead of 'RMagick' depreciated)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/ao_images.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/ao_images.rb b/lib/sisu/ao_images.rb index 06aec134..018152ed 100644 --- a/lib/sisu/ao_images.rb +++ b/lib/sisu/ao_images.rb @@ -57,10 +57,10 @@ module SiSU_AO_Images class Images begin - require 'RMagick' + require 'rmagick' include Magick rescue LoadError - #SiSU_Utils::CodeMarker.new(__LINE__,__FILE__,:fuchsia).mark('RMagic NOT FOUND') + #SiSU_Utils::CodeMarker.new(__LINE__,__FILE__,:fuchsia).mark('rmagic NOT FOUND') end def initialize(md,data) @md,@data=md,data @@ -71,7 +71,7 @@ module SiSU_AO_Images imagemagick_=true #imagemagick_=SiSU_Env::InfoSettings.new.program?('rmagick') if imagemagick_ begin - @rmgk=SiSU_Env::Load.new('RMagick').prog + @rmgk=SiSU_Env::Load.new('rmagick').prog rescue @rmgk=false end @@ -80,7 +80,7 @@ module SiSU_AO_Images || @md.opt.act[:maintenance][:set]==:on) SiSU_Screen::Ansi.new( @md.opt.act[:color_state][:set], - '*WARN* use of RMagick is not enabled in sisurc.yml' + '*WARN* use of rmagick is not enabled in sisurc.yml' ).warn end end @@ -114,7 +114,7 @@ module SiSU_AO_Images || @md.opt.act[:maintenance][:set]==:on) SiSU_Screen::Ansi.new( @md.opt.act[:color_state][:set], - '*WARN* RMagick not present, will attempt to use imagemagick (identify) directly' + '*WARN* rmagick not present, will attempt to use imagemagick (identify) directly' ).warn end imgk=SiSU_Env::SystemCall.new.imagemagick @@ -168,7 +168,7 @@ module SiSU_AO_Images images=dob.obj.scan(m) do |image| SiSU_Screen::Ansi.new( @md.opt.act[:color_state][:set], - '*WARN* where image dimensions have not been provided RMagick or imagemagick is required',image + '*WARN* where image dimensions have not been provided rmagick or imagemagick is required',image ).warn unless @md.opt.act[:quiet][:set]==:on end end |