Sha256: a3813cab21de74b42305ddcf89a7fd0809b76d302c0ecdd49bb307fd68aad207
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 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 'gem-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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gem-wrappers-0.9.0 | ext/wrapper_generator/extconf.rb |
gem-wrappers-0.8.1 | ext/wrapper_generator/extconf.rb |
gem-wrappers-0.8.0 | ext/wrapper_generator/extconf.rb |