Top Level Namespace

Includes:
Sys

Defined Under Namespace

Classes: Autotest

Instance Method Summary collapse

Instance Method Details

#emulate_extension_install(extension_name) ⇒ Object

Workaround to make Rubygems believe it builds a native gem



3
4
5
6
7
8
9
10
11
12
# File 'ext/fsevent/extconf.rb', line 3

def emulate_extension_install(extension_name)
  File.open('Makefile', 'w') { |f| f.write "all:\n\ninstall:\n\n" }
  File.open('make', 'w') do |f|
    f.write '#!/bin/sh'
    f.chmod f.stat.mode | 0111
  end
  File.open(extension_name + '.so', 'w') {}
  File.open(extension_name + '.dll', 'w') {}
  File.open('nmake.bat', 'w') { |f| }
end