lib/ray/image_set.rb in ray-0.1.0.pre1 vs lib/ray/image_set.rb in ray-0.1.0

- old
+ new

@@ -24,14 +24,9 @@ end module_function :image_set end -begin - require 'open-uri' - - Ray.image_set(/^(http|ftp):\/\/(\S+)$/) do |protocol, address| - open("#{protocol}://#{address}") { |io| Ray::Image.new(io) } - end -rescue LoadError - # that image set is not needed +require 'open-uri' +Ray.image_set(/^(http|ftp):\/\/(\S+)$/) do |protocol, address| + open("#{protocol}://#{address}") { |io| Ray::Image.new(io) } end