rake 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rake might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/CHANGES +5 -0
  2. data/lib/rake.rb +1 -1
  3. data/lib/rake/testtask.rb +2 -8
  4. metadata +2 -2
data/CHANGES CHANGED
@@ -1,5 +1,10 @@
1
1
  = Rake Changelog
2
2
 
3
+ == Version 0.4.14
4
+
5
+ * Modified the TestTask to workaround the Ruby 1.8.2 change in
6
+ autoexecuting unit tests.
7
+
3
8
  == Version 0.4.13
4
9
 
5
10
  * Fixed the dry-run flag so it is operating again.
@@ -29,7 +29,7 @@
29
29
  # referenced as a library via a require statement, but it can be
30
30
  # distributed independently as an application.
31
31
 
32
- RAKEVERSION = '0.4.13'
32
+ RAKEVERSION = '0.4.14'
33
33
 
34
34
  require 'rbconfig'
35
35
  require 'ftools'
@@ -36,8 +36,6 @@ module Rake
36
36
  #
37
37
  class TestTask < TaskLib
38
38
 
39
- SEP = ''
40
-
41
39
  # Name of test task. (default is :test)
42
40
  attr_accessor :name
43
41
 
@@ -80,19 +78,15 @@ module Rake
80
78
  desc "Run tests" + (@name==:test ? "" : " for #{@name}")
81
79
  task @name do
82
80
  RakeFileUtils.verbose(@verbose) do
83
- ruby %{-I#{lib_path} -e0 #{SEP}#{required_files}#{option_list}}
81
+ ruby %{-I#{lib_path} -S testrb #{file_list.join(' ')} #{option_list}}
84
82
  end
85
83
  end
86
84
  self
87
85
  end
88
86
 
89
- def required_files # :nodoc:
90
- file_list.gsub(/^(.*)\.rb$/, ' -r\1').join(" #{SEP}")
91
- end
92
-
93
87
  def option_list # :nodoc:
94
88
  if get_options
95
- testoptions = " #{SEP} -- #{get_options}"
89
+ testoptions = " -- #{get_options}"
96
90
  else
97
91
  testoptions = ''
98
92
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.3
3
3
  specification_version: 1
4
4
  name: rake
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.13
7
- date: 2004-12-22
6
+ version: 0.4.14
7
+ date: 2004-12-30
8
8
  summary: Ruby based make-like utility.
9
9
  require_paths:
10
10
  - lib