Sha256: 53d2cd9d9c0717dc3325c02948ae20426472f518f606a007868db3362198d269

Contents?: true

Size: 397 Bytes

Versions: 12

Compression:

Stored size: 397 Bytes

Contents

require 'cairo'

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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cairo-1.8.5-x86-mingw32 test/cairo-test-utils.rb
cairo-1.8.5 test/cairo-test-utils.rb
cairo-1.8.4 test/cairo-test-utils.rb
cairo-1.8.4-x86-mingw32 test/cairo-test-utils.rb
cairo-1.8.3-x86-mingw32 test/cairo-test-utils.rb
cairo-1.8.3 test/cairo-test-utils.rb
cairo-1.8.1-x86-mswin32 test/cairo-test-utils.rb
cairo-1.8.1 test/cairo-test-utils.rb
cairo-1.7.0 test/cairo-test-utils.rb
cairo-1.8.0-x86-mswin32 test/cairo-test-utils.rb
cairo-1.7.0-x86-mswin32 test/cairo-test-utils.rb
cairo-1.8.0 test/cairo-test-utils.rb