Sha256: 549ca58ca5863280dd09cbb325df22b4df45880e01a2e1f0230f5b3649e3d9d9

Contents?: true

Size: 847 Bytes

Versions: 5

Compression:

Stored size: 847 Bytes

Contents

require 'java'

# Set location so the loader can find the native dll it needs
arch = ENV_JAVA['sun.arch.data.model'] == '32' ? 'x86' : 'x64'
java.lang.System.set_property 'racob.dll.path',
  File.dirname(__FILE__) + "/racob-#{arch}.dll"

require 'racob.jar'

require 'win32ole/win32ole'      # <- java native impl of WIN32OLE
require 'win32ole/win32ole_ruby' # <- ruby impl of WIN32OLE

java_import org.racob.com.Variant # Needed for static native initializer :(

java_import org.jruby.ext.win32ole.RubyWIN32OLE
java_import org.jruby.ext.win32ole.RubyInvocationProxy

require 'win32ole/win32ole_error'
require 'win32ole/win32ole_method'
require 'win32ole/win32ole_variant'
require 'win32ole/win32ole_variable'
require 'win32ole/win32ole_event'
require 'win32ole/win32ole_param'
require 'win32ole/win32ole_type'
require 'win32ole/win32ole_typelib'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jruby-win32ole-0.8.5 lib/jruby-win32ole.rb
jruby-win32ole-0.8.4 lib/jruby-win32ole.rb
jruby-win32ole-0.8.3 lib/jruby-win32ole.rb
jruby-win32ole-0.8.2 lib/jruby-win32ole.rb
jruby-win32ole-0.8.1 lib/jruby-win32ole.rb