Sha256: e5f537b3b745b0b7994f14eca312b3ab4b394444264ab9fb453476aadc57e6b4
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 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)/ 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
interception-0.3 | ext/extconf.rb |
interception-0.2 | ext/extconf.rb |