Sha256: 2680251dd2087eb987e3d5755de5161701a5520a4b71d2e1b6cf05a13a8a6f05
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
# This file needs to be named mkrf_conf.rb # so that rubygems will recognize it as a ruby extension # file and not think it is a C extension file require 'rubygems/dependency_installer.rb' # Load up the rubygem's dependency installer to # installer the gems we want based on the version # of Ruby the user has installed installer = Gem::DependencyInstaller.new begin if RUBY_VERSION >= '2.4' installer.install 'xmlrpc', '~> 0.3' end rescue => e p e # Exit with a non-zero value to let rubygems something went wrong exit(1) end # If this was C, rubygems would attempt to run make # Since this is Ruby, rubygems will attempt to run rake # If it doesn't find and successfully run a rakefile, it errors out f = File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w') f.write("task :default\n") f.close
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sensu-plugins-supervisor-boutetnico-1.0.0 | ext/mkrf_conf.rb |