rake 0.4.14 → 0.4.15
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.
- data/README +1 -1
- data/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/lib/rake.rb +5 -5
- data/lib/rake/testtask.rb +4 -10
- data/test/testfileutils.rb +8 -1
- metadata +5 -2
data/README
CHANGED
@@ -169,7 +169,7 @@ Options are:
|
|
169
169
|
are defined using the "desc" command.
|
170
170
|
|
171
171
|
[<tt>--trace</tt> (-t)]
|
172
|
-
Turn on invoke/execute tracing.
|
172
|
+
Turn on invoke/execute tracing. Also enable full backtrace on errors.
|
173
173
|
|
174
174
|
[<tt>--usage</tt> (-h)]
|
175
175
|
Display a usage message and exit.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
= Rake 0.4.14 Released
|
2
|
+
|
3
|
+
== Changes
|
4
|
+
|
5
|
+
Version 0.4.14 is a compatibility fix to allow Rake's test task to
|
6
|
+
work under Ruby 1.8.2. A change in the Test::Unit autorun feature
|
7
|
+
prevented Rake from running any tests. This release fixes the
|
8
|
+
problem.
|
9
|
+
|
10
|
+
Rake 0.4.14 is the recommended release for anyone using Ruby 1.8.2.
|
11
|
+
|
12
|
+
== What is Rake
|
13
|
+
|
14
|
+
Rake is a build tool similar to the make program in many ways. But
|
15
|
+
instead of cryptic make recipes, Rake uses standard Ruby code to
|
16
|
+
declare tasks and dependencies. You have the full power of a modern
|
17
|
+
scripting language built right into your build tool.
|
18
|
+
|
19
|
+
== Availability
|
20
|
+
|
21
|
+
Home Page:: http://rake.rubyforge.org/
|
22
|
+
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
23
|
+
|
data/lib/rake.rb
CHANGED
@@ -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.
|
32
|
+
RAKEVERSION = '0.4.15'
|
33
33
|
|
34
34
|
require 'rbconfig'
|
35
35
|
require 'ftools'
|
@@ -413,9 +413,9 @@ module FileUtils
|
|
413
413
|
options = {}
|
414
414
|
end
|
415
415
|
if args.length > 1 then
|
416
|
-
sh
|
416
|
+
sh(*([RUBY] + args + [options]), &block)
|
417
417
|
else
|
418
|
-
sh
|
418
|
+
sh("#{RUBY} #{args}", options, &block)
|
419
419
|
end
|
420
420
|
end
|
421
421
|
|
@@ -567,7 +567,7 @@ module Rake
|
|
567
567
|
# Rewrite all array methods (and to_s/inspect) to resolve the list
|
568
568
|
# before running.
|
569
569
|
method_list = Array.instance_methods - Object.instance_methods
|
570
|
-
%w[to_a
|
570
|
+
%w[to_a inspect].each do |meth|
|
571
571
|
method_list << meth unless method_list.include? meth
|
572
572
|
end
|
573
573
|
method_list.each_with_index do |sym, i|
|
@@ -833,7 +833,7 @@ class RakeApp
|
|
833
833
|
['--tasks', '-T', GetoptLong::NO_ARGUMENT,
|
834
834
|
"Display the tasks and dependencies, then exit."],
|
835
835
|
['--trace', '-t', GetoptLong::NO_ARGUMENT,
|
836
|
-
"Turn on invoke/execute tracing."],
|
836
|
+
"Turn on invoke/execute tracing, enable full backtrace."],
|
837
837
|
['--usage', '-h', GetoptLong::NO_ARGUMENT,
|
838
838
|
"Display usage."],
|
839
839
|
['--verbose', '-v', GetoptLong::NO_ARGUMENT,
|
data/lib/rake/testtask.rb
CHANGED
@@ -46,7 +46,9 @@ module Rake
|
|
46
46
|
# True if verbose test output desired. (default is false)
|
47
47
|
attr_accessor :verbose
|
48
48
|
|
49
|
-
# Test options passed to the test suite.
|
49
|
+
# Test options passed to the test suite. An explicit
|
50
|
+
# TESTOPTS=opts on the command line will override this. (default
|
51
|
+
# is NONE)
|
50
52
|
attr_accessor :options
|
51
53
|
|
52
54
|
# Glob pattern to match test files. (default is 'test/test*.rb')
|
@@ -85,15 +87,7 @@ module Rake
|
|
85
87
|
end
|
86
88
|
|
87
89
|
def option_list # :nodoc:
|
88
|
-
|
89
|
-
testoptions = " -- #{get_options}"
|
90
|
-
else
|
91
|
-
testoptions = ''
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
def get_options # :nodoc:
|
96
|
-
ENV['TESTOPTS'] || @options
|
90
|
+
ENV['TESTOPTS'] || @options || ""
|
97
91
|
end
|
98
92
|
|
99
93
|
def file_list # :nodoc:
|
data/test/testfileutils.rb
CHANGED
@@ -56,7 +56,7 @@ class TestFileUtils < Test::Unit::TestCase
|
|
56
56
|
verbose(false) { sh %{test/shellcommand.rb} }
|
57
57
|
assert true, "should not fail"
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
def test_sh_multiple_arguments
|
61
61
|
ENV['RAKE_TEST_SH'] = 'someval'
|
62
62
|
# This one gets expanded by the shell
|
@@ -94,16 +94,23 @@ class TestFileUtils < Test::Unit::TestCase
|
|
94
94
|
def test_ruby
|
95
95
|
verbose(false) do
|
96
96
|
ENV['RAKE_TEST_RUBY'] = "123"
|
97
|
+
block_run = false
|
97
98
|
# This one gets expanded by the shell
|
98
99
|
ruby %{-e "exit $RAKE_TEST_RUBY"} do |ok, status|
|
99
100
|
assert(!ok)
|
100
101
|
assert_equal 123, status.exitstatus
|
102
|
+
block_run = true
|
101
103
|
end
|
104
|
+
assert block_run, "The block must be run"
|
105
|
+
|
102
106
|
# This one does not get expanded
|
107
|
+
block_run = false
|
103
108
|
ruby '-e', 'exit "$RAKE_TEST_RUBY".length' do |ok, status|
|
104
109
|
assert(!ok)
|
105
110
|
assert_equal 15, status.exitstatus
|
111
|
+
block_run = true
|
106
112
|
end
|
113
|
+
assert block_run, "The block must be run"
|
107
114
|
end
|
108
115
|
end
|
109
116
|
|
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.
|
7
|
-
date:
|
6
|
+
version: 0.4.15
|
7
|
+
date: 2005-01-03
|
8
8
|
summary: Ruby based make-like utility.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -66,11 +66,13 @@ files:
|
|
66
66
|
- doc/jamis.rb
|
67
67
|
- doc/rational.rdoc
|
68
68
|
- doc/rakefile.rdoc
|
69
|
+
- doc/release_notes
|
69
70
|
- doc/example/Rakefile1
|
70
71
|
- doc/example/Rakefile2
|
71
72
|
- doc/example/a.c
|
72
73
|
- doc/example/b.c
|
73
74
|
- doc/example/main.c
|
75
|
+
- doc/release_notes/rake-0.4.14.rdoc
|
74
76
|
test_files: []
|
75
77
|
rdoc_options:
|
76
78
|
- "--title"
|
@@ -87,6 +89,7 @@ extra_rdoc_files:
|
|
87
89
|
- doc/proto_rake.rdoc
|
88
90
|
- doc/rational.rdoc
|
89
91
|
- doc/rakefile.rdoc
|
92
|
+
- doc/release_notes/rake-0.4.14.rdoc
|
90
93
|
executables:
|
91
94
|
- rake
|
92
95
|
extensions: []
|