Top Level Namespace

Defined Under Namespace

Modules: Tripwire

Constant Summary collapse

GEM_ROOT =
File.expand_path(File.join('..', '..'))
DARWIN_VERSION =
`uname -r`.to_i
SDK_VERSION =
{ 9 => '10.5', 10 => '10.6', 11 => '10.7' }[DARWIN_VERSION]

Instance Method Summary collapse

Instance Method Details

#emulate_extension_install(extension_name) ⇒ Object

Workaround to make Rubygems believe it builds a native gem from github.com/svoop/autotest-fsevent/tree/master/ext/fsevent/



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

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