require "rufus/lua/win/version"

module Rufus
  module Lua
    module Win
      # Your code goes here...
    end
  end
end

require "rufus/lua/win/version"

module Rufus
  module Lua
    module Win
      def self.inject
        dll = File.expand_path '../../../../vendor/lua/bin/liblua.dll', __FILE__
        rocks = File.expand_path '../../lib/lua', dll

        ENV['LUA_LIB']=dll
        ENV['LUA_PATH']=['', '/init'].map{|x| File.expand_path "?#{x}.lua", rocks}*';'
        ENV['LUA_CPATH']=File.expand_path "?.dll", rocks
        require 'rufus-lua'
      end

      inject
    end
  end
end

Use Lua binaries & libraries
Use Lua binaries & libraries
