mkrf_conf.rb 442 B

1234567891011121314151617181920
  1. require 'rubygems'
  2. require 'rubygems/command'
  3. require 'rubygems/dependency_installer'
  4. begin
  5. Gem::Command.build_args = ARGV
  6. rescue NoMethodError
  7. end
  8. inst = Gem::DependencyInstaller.new
  9. begin
  10. if Gem.win_platform?
  11. inst.install 'openssl-win-root', '~> 1.1'
  12. end
  13. rescue
  14. exit(1)
  15. end
  16. f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
  17. f.write("task :default\n")
  18. f.close