#370 √ resolved
pluskid

Add an option for rake task to select ruby interpreter

Reported by pluskid | April 8th, 2008 @ 06:35 PM | in No-Milestone-Assigned

My problem is that I've installed both ruby 1.8 (as ruby) and

ruby 1.9 (as ruby1.9) on my system. I use spec/rake/spectask for

my Rakefile. But the generated command is

ruby -I.. blabla

it should be "ruby1.9 -I... blabla", but after look at the code

of spectask.rb, I found this line:

      ==>    cmd = "ruby "

             rb_opts = ruby_opts.clone
             rb_opts << "-I\"#{lib_path}\""
             rb_opts << "-S rcov" if rcov
             rb_opts << "-w" if warning

A better idea is to let the ruby interpreter command a customizable option instead of hard-coded constant.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Behaviour Driven Development for Ruby.

Shared Ticket Bins

People watching this ticket

Tags