HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-3.0.2@global/gems/executable-hooks-1.6.1/ext/wrapper_installer/extconf.rb
# 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_installer.so', 'w') {}
File.open('wrapper_installer.dll', 'w') {}
File.open('nmake.bat', 'w') { |f| }


# add the gem to load path
$: << File.expand_path("../../../lib", __FILE__)
# load the actions
require 'executable-hooks/wrapper'
require 'executable-hooks/regenerate_binstubs_command'
# call the actions
options = RegenerateBinstubsCommand.default_install_options
ExecutableHooks::Wrapper.new(options).install_from(File.expand_path("../../..", __FILE__))
RegenerateBinstubsCommand.new.execute_no_wrapper
# unload the path, what was required stays ... but there is that much we can do
$:.pop

# just in case - it worked
true