File tree Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,8 @@ def ruby_bin_path
42
42
end
43
43
44
44
def ruby_args
45
- return "" if disable_args ?
45
+ return engine_args if engine_args ?
46
46
47
- args = [ "--disable-did_you_mean" ]
48
-
49
- unless rubygems_required?
50
- args << "--disable-gems"
51
- end
52
-
53
- args . join ( " " )
47
+ "--disable-did_you_mean --disable-gems"
54
48
end
55
49
end
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ def ruby_bin_path
3
3
ENV [ "RUBY_BIN" ] || `which ruby` . strip
4
4
end
5
5
6
- def rubygems_required ?
7
- ENV [ "RUBYGEMS_REQUIRED" ] && ! ENV [ "RUBYGEMS_REQUIRED" ] . empty?
6
+ def engine_args ?
7
+ ! engine_args . nil?
8
8
end
9
-
10
- def disable_args?
11
- ENV [ "DISBALE_RUBY_ARGS" ] && ! ENV [ "DISBALE_RUBY_ARGS" ] . empty?
9
+
10
+ def engine_args
11
+ ENV [ "ENGINE_ARGS" ]
12
12
end
13
13
14
14
def minimal_execution?
15
- ENV [ "MINIMAL_EXECUTION" ] && !ENV [ "DISBALE_RUBY_ARGS " ] . empty?
15
+ ENV [ "MINIMAL_EXECUTION" ] && !ENV [ "MINIMAL_EXECUTION " ] . empty?
16
16
end
17
17
end
Original file line number Diff line number Diff line change @@ -145,7 +145,8 @@ Resources:
145
145
- !Ref JRuby
146
146
Environment :
147
147
Variables :
148
- RUBYGEMS_REQUIRED : " true"
148
+ ENGINE_ARGS : " --dev --disable-did_you_mean"
149
+ MINIMAL_EXECUTION : " true"
149
150
Events :
150
151
HTTP :
151
152
Type : Api
@@ -166,7 +167,7 @@ Resources:
166
167
- !Ref MRuby
167
168
Environment :
168
169
Variables :
169
- DISBALE_RUBY_ARGS : " true "
170
+ ENGINE_ARGS : " "
170
171
MINIMAL_EXECUTION : " true"
171
172
Events :
172
173
HTTP :
@@ -188,7 +189,7 @@ Resources:
188
189
- !Ref MRubyDev
189
190
Environment :
190
191
Variables :
191
- DISBALE_RUBY_ARGS : " true "
192
+ ENGINE_ARGS : " "
192
193
MINIMAL_EXECUTION : " true"
193
194
Events :
194
195
HTTP :
@@ -205,7 +206,7 @@ Resources:
205
206
- !Ref ArtichokeRuby
206
207
Environment :
207
208
Variables :
208
- DISBALE_RUBY_ARGS : " true "
209
+ ENGINE_ARGS : " "
209
210
MINIMAL_EXECUTION : " true"
210
211
Events :
211
212
HTTPDev :
You can’t perform that action at this time.
0 commit comments