Sha256: a262b271cb76832a807cb26e978745f62856df8726a0c063f1865e74056db280
Contents?: true
Size: 838 Bytes
Versions: 16
Compression:
Stored size: 838 Bytes
Contents
require 'cairo' require 'stringio' module CairoTestUtils private def only_cairo_version(major, minor, micro=nil) unless Cairo.satisfied_version?(major, minor, micro) omit("Require cairo >= #{major}.#{minor}.#{micro}") end end def only_win32 omit("Only for Win32 platform") unless win32 end def win32? /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM) ? true : false end def only_device(name) only_cairo_version(1, 10) unless Cairo::Device.supported?(name) omit("Only for #{name} device available") end end def only_surface(name) unless Cairo::Surface.supported?(name) omit("Only for #{name} device available") end end def only_pattern(name) unless Cairo::Pattern.supported?(name) omit("Only for #{name} device available") end end end
Version data entries
16 entries across 16 versions & 1 rubygems