public
Description: Behaviour Driven Development framework for Ruby
Homepage: http://rspec.info
Clone URL: git://github.com/dchelimsky/rspec.git
Click here to lend your support to: rspec and make a donation at www.pledgie.com !
Spectask works better with multiple versions of ruby.
btakita (author)
Sun May 25 12:09:41 -0700 2008
commit  8b73e1288e62f4d59e17405a715d58d0cb56cf4a
tree    72ca14e69d4ceda89e2c1e35ab7f5c48da078622
parent  3c00f80308585649dc4b59c581a9174c91240f8a
...
29
30
31
 
32
33
34
...
29
30
31
32
33
34
35
0
@@ -29,6 +29,7 @@ metaclass call with (class << self; self; end) and all will be well.
0
 * The after(:suite) callback lambda is passed a boolean representing whether the suite passed or failed
0
 * Added NestedTextFormatter. Closes #366.
0
 * decoupled mock framework from global extensions used by rspec - supports use of flexmock or mocha w/ rails
0
+* Applied patch for "Problem with running spec task, when several ruby interpreters are installed". Closes #325
0
 
0
 == Version 1.1.3
0
 
...
11
12
13
14
 
15
16
17
...
87
88
89
90
 
91
92
93
...
117
118
119
120
 
121
122
123
...
155
156
157
158
 
159
160
161
...
210
211
212
213
 
214
215
216
...
11
12
13
 
14
15
16
17
...
87
88
89
 
90
91
92
93
...
117
118
119
 
120
121
122
123
...
155
156
157
 
158
159
160
161
...
210
211
212
 
213
214
215
216
0
@@ -11,7 +11,7 @@ module Spec
0
     # A Rake task that runs a set of specs.
0
     #
0
     # Example:
0
-    #  
0
+    #
0
     #   Spec::Rake::SpecTask.new do |t|
0
     #     t.warning = true
0
     #     t.rcov = true
0
@@ -87,7 +87,7 @@ module Spec
0
       # Whether or not to use RCov (default is false)
0
       # See http://eigenclass.org/hiki.rb?rcov
0
       attr_accessor :rcov
0
-      
0
+
0
       # Array of commandline options to pass to RCov. Defaults to ['--exclude', 'lib\/spec,bin\/spec'].
0
       # Ignored if rcov=false
0
       # Setting the RCOV_OPTS environment variable overrides this.
0
@@ -117,7 +117,7 @@ module Spec
0
       # used, then the list of spec files is the union of the two.
0
       # Setting the SPEC environment variable overrides this.
0
       attr_accessor :spec_files
0
-      
0
+
0
       # Use verbose output. If this is set to true, the task will print
0
       # the executed spec command to stdout. Defaults to false.
0
       attr_accessor :verbose
0
@@ -155,7 +155,7 @@ module Spec
0
               # ruby [ruby_opts] -Ilib -S rcov [rcov_opts] bin/spec -- examples [spec_opts]
0
               # or
0
               # ruby [ruby_opts] -Ilib bin/spec examples [spec_opts]
0
-              cmd = "ruby "
0
+              cmd = "#{File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])} "
0
 
0
               rb_opts = ruby_opts.clone
0
               rb_opts << "-I\"#{lib_path}\""
0
@@ -210,7 +210,7 @@ module Spec
0
         STDERR.puts "RSPECOPTS is DEPRECATED and will be removed in a future version. Use SPEC_OPTS instead." if ENV['RSPECOPTS']
0
         ENV['SPEC_OPTS'] || ENV['RSPECOPTS'] || spec_opts.join(" ") || ""
0
       end
0
-      
0
+
0
       def evaluate(o) # :nodoc:
0
         case o
0
           when Proc then o.call
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@ module Spec
0
       TINY   = 3
0
       RELEASE_CANDIDATE = nil
0
 
0
-      BUILD_TIME_UTC = 20080525080528
0
+      BUILD_TIME_UTC = 20080525190449
0
 
0
       STRING = [MAJOR, MINOR, TINY].join('.')
0
       TAG = "REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}".upcase.gsub(/\.|-/, '_')

Comments

aslakhellesoy Mon May 26 16:04:06 -0700 2008

I think it would have been better to use Rake’s #ruby method – it already does this

btakita Mon May 26 23:16:48 -0700 2008

Suggestion applied in e6a156ddad03f6b49347ce67ff2f451be8464772.