Sha256: fecf06c0d2e98d35c4c180c7825c4cf085df13761b9e4129c6490197401c8bee

Contents?: true

Size: 893 Bytes

Versions: 7

Compression:

Stored size: 893 Bytes

Contents

require 'rbconfig'

if RUBY_PLATFORM =~ /mswin$|mingw|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
end

require "gosu.#{RbConfig::CONFIG["DLEXT"]}"

require "gosu/swig_patches"
require "gosu/patches"
require "gosu/compat"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gosu-1.4.6 lib/gosu.rb
gosu-1.4.5 lib/gosu.rb
gosu-1.4.5.pre1 lib/gosu.rb
gosu-1.4.4 lib/gosu.rb
gosu-1.4.3 lib/gosu.rb
gosu-1.4.1 lib/gosu.rb
gosu-1.4.0 lib/gosu.rb