Sha256: c3f7fce7b89ab6049ef259110124fc4ff19982b7fb0635f808934596c1538a24

Contents?: true

Size: 793 Bytes

Versions: 76

Compression:

Stored size: 793 Bytes

Contents

require "ffi"
require "rbconfig"

module ChildProcess
  module Windows
    module Lib
      extend FFI::Library

      def self.msvcrt_name
        host_part = RbConfig::CONFIG['host_os'].split("_")[1]
        manifest  = File.join(RbConfig::CONFIG['bindir'], 'ruby.exe.manifest')

        if host_part && host_part.to_i > 80 && File.exists?(manifest)
          "msvcr#{host_part}"
        else
          "msvcrt"
        end
      end

      ffi_lib "kernel32", msvcrt_name
      ffi_convention :stdcall


    end # Library
  end # Windows
end # ChildProcess

require "childprocess/windows/lib"
require "childprocess/windows/structs"
require "childprocess/windows/handle"
require "childprocess/windows/io"
require "childprocess/windows/process_builder"
require "childprocess/windows/process"

Version data entries

76 entries across 74 versions & 16 rubygems

Version Path
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/childprocess-0.3.2/lib/childprocess/windows.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb
ftl-0.2.0 vendor/bundle/gems/childprocess-0.3.2/lib/childprocess/windows.rb
childprocess-0.3.2 lib/childprocess/windows.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb
childprocess-0.3.1 lib/childprocess/windows.rb
childprocess-0.3.0 lib/childprocess/windows.rb
childprocess-0.2.9 lib/childprocess/windows.rb
childprocess-0.2.8 lib/childprocess/windows.rb
childprocess-0.2.7 lib/childprocess/windows.rb
childprocess-0.2.6 lib/childprocess/windows.rb