diff --git a/ext/attach/extconf.rb b/ext/attach/extconf.rb index 0556056..123b49e 100644 --- a/ext/attach/extconf.rb +++ b/ext/attach/extconf.rb @@ -1,4 +1,4 @@ -if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE +if defined?(RUBY_ENGINE) && RUBY_ENGINE != 'ruby' # create dummy Makefile to indicate success f = File.open(File.join(File.dirname(__FILE__), "Makefile"), "w") f.write("all:\n\techo all\ninstall:\n\techo installed\n") diff --git a/ext/extconf.rb b/ext/extconf.rb index ce56cb7..3465387 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -1,4 +1,4 @@ -if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE +if defined?(RUBY_ENGINE) && RUBY_ENGINE != 'ruby' # create dummy Makefile to indicate success f = File.open(File.join(File.dirname(__FILE__), "Makefile"), "w") f.write("all:\n\techo all\ninstall:\n\techo installed\n") diff --git a/lib/debase.rb b/lib/debase.rb index 4459835..f4d9956 100644 --- a/lib/debase.rb +++ b/lib/debase.rb @@ -1,5 +1,10 @@ if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE require 'debase/rbx' +elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby' + require "debase/version" + + Debugger = Module.new + return else require "debase_internals" end