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