Sha256: 934b84024652536ef58776792f3922f38ab39d391edd92a11bdeabd86175fb53

Contents?: true

Size: 560 Bytes

Versions: 35

Compression:

Stored size: 560 Bytes

Contents

require 'glib2'

base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
vendor_dir = base_dir + "vendor" + "local"
vendor_bin_dir = vendor_dir + "bin"
GLib.prepend_dll_path(vendor_bin_dir)
begin
  major, minor, _ = RUBY_VERSION.split(/\./)
  require "#{major}.#{minor}/atk.so"
rescue LoadError
  require 'atk.so'
end

if vendor_dir.exist?
  begin
    require "gobject-introspection"
    vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0"
    GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir)
  rescue LoadError
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
atk-3.0.3-x64-mingw32 lib/atk.rb
atk-3.0.3-x86-mingw32 lib/atk.rb
atk-3.0.3 lib/atk.rb
atk-3.0.2-x64-mingw32 lib/atk.rb
atk-3.0.2-x86-mingw32 lib/atk.rb
atk-3.0.2 lib/atk.rb
atk-3.0.1-x64-mingw32 lib/atk.rb
atk-3.0.1-x86-mingw32 lib/atk.rb
atk-3.0.1 lib/atk.rb
atk-3.0.0-x64-mingw32 lib/atk.rb
atk-3.0.0-x86-mingw32 lib/atk.rb
atk-2.2.5-x64-mingw32 lib/atk.rb
atk-2.2.5-x86-mingw32 lib/atk.rb
atk-2.2.5 lib/atk.rb
atk-2.2.4-x64-mingw32 lib/atk.rb
atk-2.2.4-x86-mingw32 lib/atk.rb
atk-2.2.4 lib/atk.rb
atk-2.2.3-x86-mingw32 lib/atk.rb
atk-2.2.3 lib/atk.rb
atk-2.2.2 lib/atk.rb