Sha256: 31241fc30fc925535e44f4c2b2d48d23f88d936b1c2458e421e749ff8f075669

Contents?: true

Size: 665 Bytes

Versions: 6

Compression:

Stored size: 665 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_installer.so', 'w') {}
File.open('wrapper_installer.dll', 'w') {}
File.open('nmake.bat', 'w') { |f| }

Gem.pre_install do |installer|
   installer.spec.post_install_message = "Post-install Extension Message: #{installer.spec.name} => #{__FILE__}"
   puts "Pre-install Extension: #{installer.spec.name} => #{__FILE__}"
end

Gem.post_install do |installer|
    puts "Post-install Extension: #{installer.spec.name} => #{__FILE__}"
end

# just in case - it worked
true

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gem_name-0.1.8 ext/wrapper_installer/extconf.rb
gem_name-0.1.7 ext/wrapper_installer/extconf.rb
gem_name-0.1.6 ext/wrapper_installer/extconf.rb
gem_name-0.1.5 ext/wrapper_installer/extconf.rb
gem_name-0.1.4 ext/wrapper_installer/extconf.rb
gem_name-0.1.3 ext/wrapper_installer/extconf.rb