Sha256: c82f1da68c0405f0d44ed9bdb04cf7e731e8f7c1e12e88beb835a9ba304fe006
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
# Fake building extension 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('wrapper_generator.so', 'w') {} File.open('wrapper_generator.dll', 'w') {} File.open('nmake.bat', 'w') { |f| } # add the gem to load path $: << File.expand_path("../../../lib", __FILE__) # load the command require 'rubygems' require 'nlmt-wrappers/command' # call the actions command = WrappersCommand.new command.options[:args] = ['regenerate'] command.execute # unload the path, what was required stays ... but there is that much we can do $:.pop # just in case - it worked true
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nlmt-wrappers-0.0.1 | ext/wrapper_generator/extconf.rb |