Sha256: d850eb95f2957cc7159c9b53a322cb3d0344f880a646c3263921d29f85faad10

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

#!/usr/bin/env ruby -w
puts RUBY_VERSION
puts RUBY_VERSION.class
root_dir = File.expand_path('..', __dir__)
IMAGES_DIR = File.join(root_dir, 'doc/ex/images')
FILES = Dir[IMAGES_DIR + '/Button_*.gif'].sort
FLOWER_HAT = IMAGES_DIR + '/Flower_Hat.jpg'
IMAGE_WITH_PROFILE = IMAGES_DIR + '/image_with_profile.jpg'

require 'test/unit'
if RUBY_VERSION < '1.9'
  require 'test/unit/ui/console/testrunner'
  $LOAD_PATH.push(root_dir)
else
  require 'simplecov'
  $LOAD_PATH.unshift(File.join(root_dir, 'lib'))
  $LOAD_PATH.unshift(File.join(root_dir, 'test'))
end

require 'rmagick'

Magick::Magick_version =~ /ImageMagick (\d+\.\d+\.\d+)-(\d+) /
abort 'Unable to get ImageMagick version' unless Regexp.last_match(1) && Regexp.last_match(2)

IM_VERSION = Gem::Version.new(Regexp.last_match(1))
IM_REVISION = Gem::Version.new(Regexp.last_match(2))

FreezeError = if RUBY_VERSION > '2.5'
                FrozenError
              elsif RUBY_VERSION > '1.9'
                RuntimeError
              else
                TypeError
              end

require 'Image1.rb'
require 'Image2.rb'
require 'Image3.rb'
require 'ImageList1.rb'
require 'ImageList2.rb'
require 'Image_attributes.rb'
require 'Import_Export.rb'
require 'Pixel.rb'
require 'Preview.rb'
require 'Info.rb'
require 'Magick.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmagick-3.0.0 test/test_all_basic.rb