Sha256: 47099867d52ef3107f7bc5d12823a3ef6907dc999699dae06696c20ebea1f1e9
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
require 'rbconfig' begin case RbConfig::CONFIG['MAJOR'] when '2' if RbConfig::CONFIG['MINOR'] == '0' if RbConfig::CONFIG['arch'] =~ /x64/i require File.join(File.dirname(__FILE__), 'ruby2_64/win32/api') else require File.join(File.dirname(__FILE__), 'ruby2_32/win32/api') end end if RbConfig::CONFIG['MINOR'] == '1' if RbConfig::CONFIG['arch'] =~ /x64/i require File.join(File.dirname(__FILE__), 'ruby21_64/win32/api') else require File.join(File.dirname(__FILE__), 'ruby21_32/win32/api') end end if RbConfig::CONFIG['MINOR'] == '2' if RbConfig::CONFIG['arch'] =~ /x64/i require File.join(File.dirname(__FILE__), 'ruby22_64/win32/api') else require File.join(File.dirname(__FILE__), 'ruby22_32/win32/api') end end if RbConfig::CONFIG['MINOR'] == '3' if RbConfig::CONFIG['arch'] =~ /x64/i require File.join(File.dirname(__FILE__), 'ruby23_64/win32/api') else require File.join(File.dirname(__FILE__), 'ruby23_32/win32/api') end end if RbConfig::CONFIG['MINOR'] == '4' if RbConfig::CONFIG['arch'] =~ /x64/i require File.join(File.dirname(__FILE__), 'ruby24_64/win32/api') else require File.join(File.dirname(__FILE__), 'ruby24_32/win32/api') end end end rescue LoadError require File.join(File.dirname(__FILE__), '../../ext/api') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
win32-api-1.6.1.2-universal-mingw32 | lib/win32/api.rb |
win32-api-1.6.1.beta1-universal-mingw32 | lib/win32/api.rb |