Skip to content

Commit 27b96a8

Browse files
committed
automatically detect jruby
1 parent 8562aee commit 27b96a8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: config.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ server_start_up_timeout: 5
1717
# either should be on the $PATH or use full path
1818
interpreter: ruby
1919

20-
# whether the interpreter is JRuby (XXX poll the interpreter for this info)
21-
is_jruby: false
22-
2320
# whether to run JRuby instance in debug mode
2421
debug_jruby: false
2522

Diff for: test-base/test_base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def interpreter
7575
end
7676

7777
def jruby?
78-
config_load('is_jruby')
78+
defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
7979
end
8080

8181
def debug_jruby?

0 commit comments

Comments
 (0)