Sha256: f6d1acceade926269bb48bfa4d67f6f7fcc1fb11e7e2f344c30ef6c73cfc0944
Contents?: true
Size: 1.03 KB
Versions: 15
Compression:
Stored size: 1.03 KB
Contents
require 'rbconfig' if RUBY_PLATFORM =~ /mswin$|mingw32|mingw64|win32\-|\-win32/ binary_path = File.dirname(__FILE__) # 64-bit builds of Windows use "x64-mingw32" as RUBY_PLATFORM binary_path += "64" if RUBY_PLATFORM =~ /^x64-/ begin # Make DLLs available as shown here: # https://github.com/oneclick/rubyinstaller2/wiki/For-gem-developers require 'ruby_installer' RubyInstaller::Runtime.add_dll_directory(binary_path) rescue LoadError # Add this gem to the PATH on Windows so that bundled DLLs can be found. # When running through Ocra on Windows, we need to be careful to preserve the ENV["PATH"] # encoding (see #385). path_encoding = ENV["PATH"].encoding ENV["PATH"] = "#{binary_path.encode(path_encoding)};#{ENV["PATH"]}" end # Add the correct lib directory for the current version of Ruby (major.minor). $LOAD_PATH.unshift File.join(binary_path, RUBY_VERSION[/^\d+.\d+/]) end require "gosu.#{RbConfig::CONFIG["DLEXT"]}" require "gosu/swig_patches" require "gosu/patches" require "gosu/compat"
Version data entries
15 entries across 15 versions & 1 rubygems