File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
- jruby-19mode
7
7
- rbx-18mode
8
8
- rbx-19mode
9
- # - ruby-head # test again later: RedCloth not compiling
9
+ - ruby-head # test again later: RedCloth not compiling
10
10
- jruby-head
11
11
- ree
12
12
branches :
Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ class TestCodeRayExecutable < Test::Unit::TestCase
14
14
15
15
ROOT_DIR = Pathname . new ( File . dirname ( __FILE__ ) ) + '..' + '..'
16
16
EXECUTABLE = ROOT_DIR + 'bin' + 'coderay'
17
+ RUBY_COMMAND = RUBY_VERSION < '2.0.0' ? 'ruby -w' : 'ruby' # Ruby 2 currently throws warnings for bundler
17
18
EXE_COMMAND =
18
19
if RUBY_PLATFORM === 'java' && `ruby --ng -e '' 2> /dev/null` && $?. success?
19
20
# use Nailgun
20
- 'ruby --ng -wI %s %s'
21
+ " #{ RUBY_COMMAND } --ng -I %s %s"
21
22
else
22
- 'ruby -wI %s %s'
23
+ " #{ RUBY_COMMAND } -I %s %s"
23
24
end % [ ROOT_DIR + 'lib' , EXECUTABLE ]
24
25
25
26
def coderay args , options = { }
You can’t perform that action at this time.
0 commit comments