File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ export JRUBY_OPTS=${JRUBY_OPTS:-"--server -Xcompile.invokedynamic=false"}
8
8
SPECS_HAVE_RUN_FILE=specs.out
9
9
MAINTENANCE_BRANCH=` cat maintenance-branch`
10
10
11
- # Don't allow rubygems to pollute what's loaded. Also, things boot
12
- # faster without the extra load time of rubygems.
13
- export RUBYOPT=" --disable=gem"
11
+ # Don't allow rubygems to pollute what's loaded. Also, things boot faster
12
+ # without the extra load time of rubygems. Only works on MRI Ruby 1.9+
13
+ if is_mri_192_plus; then
14
+ export RUBYOPT=" --disable=gem"
15
+ fi
14
16
15
17
function clone_repo {
16
18
if [ ! -d $1 ]; then # don't clone if the dir is already there
Original file line number Diff line number Diff line change @@ -20,6 +20,18 @@ function is_mri_192 {
20
20
fi
21
21
}
22
22
23
+ function is_mri_192_plus {
24
+ if is_mri; then
25
+ if ruby -e " exit(RUBY_VERSION.to_f > 1.9)" ; then
26
+ return 0
27
+ else
28
+ return 1
29
+ fi
30
+ else
31
+ return 1
32
+ fi
33
+ }
34
+
23
35
function is_mri_2plus {
24
36
if is_mri; then
25
37
if ruby -e " exit(RUBY_VERSION.to_f > 2.0)" ; then
You can’t perform that action at this time.
0 commit comments