208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
|
# File 'lib/mspec/utils/options.rb', line 208
def targets
on("-t", "--target", "TARGET",
"Implementation to run the specs, where TARGET is:") do |t|
case t
when 'r', 'ruby'
config[:target] = 'ruby'
when 'r19', 'ruby19'
config[:target] = 'ruby1.9'
when 'x', 'rubinius'
config[:target] = './bin/rbx'
when 'x18', 'rubinius18'
config[:target] = './bin/rbx -X18'
when 'x19', 'rubinius19'
config[:target] = './bin/rbx -X19'
when 'x20', 'rubinius20'
config[:target] = './bin/rbx -X20'
when 'X', 'rbx'
config[:target] = 'rbx'
when 'j', 'jruby'
config[:target] = 'jruby'
when 'i','ironruby'
config[:target] = 'ir'
when 'm','maglev'
config[:target] = 'maglev-ruby'
when 't','topaz'
config[:target] = 'topaz'
else
config[:target] = t
end
end
doc ""
doc " r or ruby invokes ruby in PATH"
doc " r19, ruby19 invokes ruby1.9 in PATH"
doc " x or rubinius invokes ./bin/rbx"
doc " x18 or rubinius18 invokes ./bin/rbx -X18"
doc " x19 or rubinius19 invokes ./bin/rbx -X19"
doc " x20 or rubinius20 invokes ./bin/rbx -X20"
doc " X or rbx invokes rbx in PATH"
doc " j or jruby invokes jruby in PATH"
doc " i or ironruby invokes ir in PATH"
doc " m or maglev invokes maglev-ruby in PATH"
doc " t or topaz invokes topaz in PATH"
doc " full path to EXE invokes EXE directly\n"
on("-T", "--target-opt", "OPT",
"Pass OPT as a flag to the target implementation") do |t|
config[:flags] << t
end
on("-I", "--include", "DIR",
"Pass DIR through as the -I option to the target") do |d|
config[:includes] << "-I#{d}"
end
on("-r", "--require", "LIBRARY",
"Pass LIBRARY through as the -r option to the target") do |f|
config[:requires] << "-r#{f}"
end
end
|