Sha256: ea3d3ccdf0a10ebe7a6bc363b9a11e85b4708ecc51e6e98427239d4317066880
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
require 'rbconfig' if RbConfig::CONFIG['ruby_install_name'] == 'jruby' File.open("Makefile", "w") do |f| f.write "install:\n\tjrubyc --javac org/pryrepl/InterceptionEventHook.java\n" end elsif RbConfig::CONFIG['ruby_install_name'] =~ /^ruby/ require 'mkmf' $CFLAGS += " -DRUBY_18" if RUBY_VERSION =~ /^(1.8)/ $CFLAGS += " -DRUBY_19" if RUBY_VERSION =~ /^(1.9)/ $CFLAGS += " -DRUBY_20" if RUBY_VERSION =~ /^(2.0)/ extension_name = "interception" dir_config(extension_name) create_makefile(extension_name) else File.open("Makefile", "w") do |f| f.write "install:\n\t:\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
interception-0.4 | ext/extconf.rb |