rake 10.4.2 → 10.5.0
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.
- checksums.yaml +4 -4
- data/CONTRIBUTING.rdoc +7 -3
- data/History.rdoc +8 -0
- data/README.rdoc +6 -7
- data/doc/glossary.rdoc +10 -11
- data/doc/rake.1 +3 -3
- data/doc/rakefile.rdoc +0 -29
- data/lib/rake.rb +1 -1
- data/lib/rake/application.rb +1 -1
- data/lib/rake/clean.rb +1 -1
- data/lib/rake/dsl_definition.rb +1 -1
- data/lib/rake/ext/string.rb +3 -1
- data/lib/rake/ext/time.rb +9 -7
- data/lib/rake/file_list.rb +1 -1
- data/lib/rake/loaders/makefile.rb +18 -5
- data/lib/rake/task_manager.rb +1 -4
- data/lib/rake/testtask.rb +3 -2
- data/test/helper.rb +0 -1
- data/test/test_rake_application_options.rb +3 -1
- data/test/test_rake_file_list.rb +15 -0
- data/test/test_rake_file_utils.rb +5 -0
- data/test/test_rake_linked_list.rb +2 -2
- data/test/test_rake_path_map.rb +4 -4
- data/test/test_rake_task.rb +4 -4
- data/test/test_rake_task_manager.rb +1 -1
- metadata +8 -58
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf5f8a6372c47a0e92776d846d4101f6caf9f9b8
|
4
|
+
data.tar.gz: 1d42fb2ecdd29aab1b383266afe3ae9241b297f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47849658b050f0cc282ed7e43159b26d5e7a981623e866b063e2705fd824f75d0e4cf52990c8ea0cc2ffeb827f08da4d2ee2295505987e33a5cedfc33e9a56d5
|
7
|
+
data.tar.gz: c93f0cdca921cf567929d737ff91d2ea5f5e0c342029a48183d3cad2246da9a65e2ea3649781da77b366f12c90f21b67d1ddc07171ae2c17e0a2ef3cb21001dd
|
data/CONTRIBUTING.rdoc
CHANGED
@@ -9,11 +9,15 @@ http://github.com/ruby/rake . The public git clone URL is
|
|
9
9
|
|
10
10
|
If you wish to run the unit and functional tests that come with Rake:
|
11
11
|
|
12
|
-
*
|
12
|
+
* +cd+ into the top project directory of rake.
|
13
|
+
* Install the +hoe+ gem dependency:
|
14
|
+
|
15
|
+
gem install hoe # Unless the hoe gem is already installed
|
16
|
+
|
13
17
|
* Type one of the following:
|
14
18
|
|
15
|
-
rake newb
|
16
|
-
rake
|
19
|
+
rake newb # If you have never run rake's tests
|
20
|
+
rake # If you have run rake's tests
|
17
21
|
|
18
22
|
= Issues and Bug Reports
|
19
23
|
|
data/History.rdoc
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 10.5.0 / 2016-01-13
|
2
|
+
|
3
|
+
Enhancements:
|
4
|
+
|
5
|
+
* Removed monkey patching for Ruby 1.8. Pull request #46 by Pablo Herrero.
|
6
|
+
* Inheritance class of Rake::FileList returns always self class.
|
7
|
+
Pull request #74 by Thomas Scholz
|
8
|
+
|
1
9
|
=== 10.4.2 / 2014-12-02
|
2
10
|
|
3
11
|
Bug fixes:
|
data/README.rdoc
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
home :: https://github.com/ruby/rake
|
4
4
|
bugs :: https://github.com/ruby/rake/issues
|
5
|
-
docs :: http://docs.seattlerb.org/rake
|
5
|
+
docs :: http://docs.seattlerb.org/rake/
|
6
|
+
build :: {<img src="https://travis-ci.org/ruby/rake.svg?branch=master" alt="travis-ci">}[https://travis-ci.org/ruby/rake]
|
6
7
|
|
7
8
|
== Description
|
8
9
|
|
@@ -89,8 +90,7 @@ Type "rake --help" for all available options.
|
|
89
90
|
5. {File Operations}[http://devblog.avdi.org/2014/04/25/rake-part-5-file-operations/]
|
90
91
|
6. {Clean and Clobber}[http://devblog.avdi.org/2014/04/28/rake-part-6-clean-and-clobber/]
|
91
92
|
7. {MultiTask}[http://devblog.avdi.org/2014/04/29/rake-part-7-multitask/]
|
92
|
-
* Jim Weirich's 2003 RubyConf presentation
|
93
|
-
http://onestepback.org/articles/buildingwithrake/
|
93
|
+
* {Jim Weirich's 2003 RubyConf presentation}[http://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/]
|
94
94
|
* Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html
|
95
95
|
|
96
96
|
== Other Make Re-envisionings ...
|
@@ -98,19 +98,19 @@ Type "rake --help" for all available options.
|
|
98
98
|
Rake is a late entry in the make replacement field. Here are links to
|
99
99
|
other projects with similar (and not so similar) goals.
|
100
100
|
|
101
|
-
* http://directory.fsf.org/
|
101
|
+
* http://directory.fsf.org/wiki/Bras -- Bras, one of earliest
|
102
102
|
implementations of "make in a scripting language".
|
103
103
|
* http://www.a-a-p.org -- Make in Python
|
104
104
|
* http://www.aromatic.com/tools/jam.txt -- JAM, Java Automated Make
|
105
105
|
* http://ant.apache.org -- The Ant project
|
106
106
|
* http://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
|
107
|
-
* http://rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool.
|
107
|
+
* http://www.rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool.
|
108
108
|
|
109
109
|
== Credits
|
110
110
|
|
111
111
|
[<b>Ryan Dlugosz</b>] For the initial conversation that sparked Rake.
|
112
112
|
|
113
|
-
[<b>nobu
|
113
|
+
[<b>Nobuyoshi Nakada <nobu@ruby-lang.org></b>] For the initial patch for rule support.
|
114
114
|
|
115
115
|
[<b>Tilman Sauerbeck <tilman@code-monkey.de></b>] For the recursive rule patch.
|
116
116
|
|
@@ -137,4 +137,3 @@ License:: Copyright Jim Weirich.
|
|
137
137
|
This software is provided "as is" and without any express or implied
|
138
138
|
warranties, including, without limitation, the implied warranties of
|
139
139
|
merchantability and fitness for a particular purpose.
|
140
|
-
|
data/doc/glossary.rdoc
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
= Glossary
|
2
2
|
|
3
3
|
action ::
|
4
|
-
Code to be executed in order to perform a task. Actions in a
|
5
|
-
specified in a code block (
|
4
|
+
Code to be executed in order to perform a task. Actions in a Rakefile are
|
5
|
+
specified in a code block. (Usually delimited by +do+/+end+ pairs.)
|
6
6
|
|
7
7
|
execute ::
|
8
|
-
When a task is executed, all of its actions are performed
|
9
|
-
were defined. Note that unlike <tt>invoke</tt>, <tt>execute</tt> always
|
8
|
+
When a task is executed, all of its actions are performed in the order they
|
9
|
+
were defined. Note that, unlike <tt>invoke</tt>, <tt>execute</tt> always
|
10
10
|
executes the actions (without invoking or executing the prerequisites).
|
11
11
|
|
12
12
|
file task (Rake::FileTask) ::
|
@@ -22,15 +22,15 @@ file task (Rake::FileTask) ::
|
|
22
22
|
|
23
23
|
invoke ::
|
24
24
|
When a task is invoked, first we check to see if it has been invoked before.
|
25
|
-
If it has been, then nothing else is done. If this is the first time
|
25
|
+
If it has been, then nothing else is done. If this is the first time it has
|
26
26
|
been invoked, then we invoke each of its prerequisites. Finally, we check
|
27
27
|
to see if we need to execute the actions of this task by calling
|
28
|
-
Rake::Task#needed?.
|
28
|
+
Rake::Task#needed?. If the task is needed, we execute its actions.
|
29
29
|
|
30
|
-
NOTE: Prerequisites are invoked even if the task is not needed.
|
30
|
+
NOTE: Prerequisites are still invoked even if the task is not needed.
|
31
31
|
|
32
32
|
prerequisites ::
|
33
|
-
Every task has a
|
33
|
+
Every task has a (possibly empty) set of prerequisites. A prerequisite P to
|
34
34
|
Task T is itself a task that must be invoked before Task T.
|
35
35
|
|
36
36
|
rule ::
|
@@ -38,6 +38,5 @@ rule ::
|
|
38
38
|
defined. Rules generally synthesize file tasks.
|
39
39
|
|
40
40
|
task (Rake::Task) ::
|
41
|
-
|
42
|
-
and a list of actions to be performed.
|
43
|
-
|
41
|
+
The basic unit of work in a Rakefile. A task has a name, a set of
|
42
|
+
prerequisites, and a list of actions to be performed.
|
data/doc/rake.1
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
.\" First parameter, NAME, should be all caps
|
3
3
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
4
4
|
.\" other parameters are allowed: see man(7), man(1)
|
5
|
-
.TH RAKE 1 "
|
5
|
+
.TH RAKE 1 "December 3, 2014" "rake 10.4.2" "Rake User Commands"
|
6
6
|
.\" Please adjust this date whenever revising the manpage.
|
7
7
|
.\"
|
8
8
|
.\" Some roff macros, for reference:
|
@@ -16,7 +16,7 @@
|
|
16
16
|
.\" .sp <n> insert n+1 empty lines
|
17
17
|
.\" for manpage-specific macros, see man(7)
|
18
18
|
.SH NAME
|
19
|
-
rake \- a make-like build utility for Ruby
|
19
|
+
rake \- a make-like build utility for Ruby
|
20
20
|
.SH SYNOPSIS
|
21
21
|
\fBrake\fR [\fI\-f rakefile\fR] {\fIOPTIONS\fR} \fITARGETS...\fR
|
22
22
|
.br
|
@@ -136,6 +136,6 @@ Display a help message.
|
|
136
136
|
The complete documentation for \fBrake\fR has been installed at \fI/usr/share/doc/rake-doc/html/index.html\fR. It is also available online at \fIhttp://docs.seattlerb.org/rake\fR.
|
137
137
|
.SH AUTHOR
|
138
138
|
.B rake
|
139
|
-
was written by Jim Weirich <jim@weirichhouse.org>
|
139
|
+
was written by Jim Weirich <jim@weirichhouse.org>
|
140
140
|
.PP
|
141
141
|
This manual was created by Caitlin Matos <caitlin.matos@zoho.com> for the Debian project (but may be used by others). It was inspired by the manual by Jani Monoses <jani@iv.ro> for the Ubuntu project.
|
data/doc/rakefile.rdoc
CHANGED
@@ -197,35 +197,6 @@ argument string should be quoted. Something like this:
|
|
197
197
|
(Quoting rules vary between operating systems and shells, so make sure
|
198
198
|
you consult the proper docs for your OS/shell).
|
199
199
|
|
200
|
-
=== Task Arguments and the Environment
|
201
|
-
|
202
|
-
Task argument values can also be picked up from the environment. For
|
203
|
-
example, if the "release" task expected a parameter named
|
204
|
-
"release_version", then either
|
205
|
-
|
206
|
-
rake release[0.8.2]
|
207
|
-
|
208
|
-
or
|
209
|
-
|
210
|
-
RELEASE_VERSION=0.8.2 rake release
|
211
|
-
|
212
|
-
or, alternatively
|
213
|
-
|
214
|
-
rake release RELEASE_VERSION=0.8.2
|
215
|
-
|
216
|
-
will work. Environment variable names must either match the task
|
217
|
-
parameter exactly, or match an all-uppercase version of the task
|
218
|
-
parameter.
|
219
|
-
|
220
|
-
*NOTE:* A variable declared within a rake command will
|
221
|
-
not persist in the environment:
|
222
|
-
|
223
|
-
$ export VALUE=old
|
224
|
-
$ rake print_value VALUE=new
|
225
|
-
new
|
226
|
-
$ rake print_value
|
227
|
-
old
|
228
|
-
|
229
200
|
=== Tasks that Expect Parameters
|
230
201
|
|
231
202
|
Parameters are only given to tasks that are setup to expect them. In
|
data/lib/rake.rb
CHANGED
data/lib/rake/application.rb
CHANGED
@@ -186,7 +186,7 @@ module Rake
|
|
186
186
|
exit_because_of_exception(ex)
|
187
187
|
end
|
188
188
|
|
189
|
-
# Exit the program because of an
|
189
|
+
# Exit the program because of an unhandled exception.
|
190
190
|
# (may be overridden by subclasses)
|
191
191
|
def exit_because_of_exception(ex) # :nodoc:
|
192
192
|
exit(false)
|
data/lib/rake/clean.rb
CHANGED
data/lib/rake/dsl_definition.rb
CHANGED
@@ -7,7 +7,7 @@ module Rake
|
|
7
7
|
# DSL is a module that provides #task, #desc, #namespace, etc. Use this
|
8
8
|
# when you'd like to use rake outside the top level scope.
|
9
9
|
#
|
10
|
-
# For a Rakefile you run from the
|
10
|
+
# For a Rakefile you run from the command line this module is automatically
|
11
11
|
# included.
|
12
12
|
|
13
13
|
module DSL
|
data/lib/rake/ext/string.rb
CHANGED
@@ -12,7 +12,9 @@ class String
|
|
12
12
|
# This String extension comes from Rake
|
13
13
|
def ext(newext='')
|
14
14
|
return self.dup if ['.', '..'].include? self
|
15
|
-
|
15
|
+
if newext != ''
|
16
|
+
newext = "." + newext unless newext =~ /^\./
|
17
|
+
end
|
16
18
|
self.chomp(File.extname(self)) << newext
|
17
19
|
end
|
18
20
|
end
|
data/lib/rake/ext/time.rb
CHANGED
@@ -4,13 +4,15 @@
|
|
4
4
|
require 'rake/early_time'
|
5
5
|
require 'rake/late_time'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
if RUBY_VERSION < "1.9"
|
8
|
+
class Time # :nodoc: all
|
9
|
+
alias rake_original_time_compare :<=>
|
10
|
+
def <=>(other)
|
11
|
+
if Rake::EarlyTime === other || Rake::LateTime === other
|
12
|
+
- other.<=>(self)
|
13
|
+
else
|
14
|
+
rake_original_time_compare(other)
|
15
|
+
end
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
data/lib/rake/file_list.rb
CHANGED
@@ -1,13 +1,26 @@
|
|
1
1
|
module Rake
|
2
2
|
|
3
|
-
# Makefile loader to be used with the import file loader.
|
3
|
+
# Makefile loader to be used with the import file loader. Use this to
|
4
|
+
# import dependencies from make dependency tools:
|
5
|
+
#
|
6
|
+
# require 'rake/loaders/makefile'
|
7
|
+
#
|
8
|
+
# file ".depends.mf" => [SRC_LIST] do |t|
|
9
|
+
# sh "makedepend -f- -- #{CFLAGS} -- #{t.prerequisites} > #{t.name}"
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# import ".depends.mf"
|
13
|
+
#
|
14
|
+
# See {Importing Dependencies}[link:doc/rakefile_rdoc.html#label-Importing+Dependencies]
|
15
|
+
# for further details.
|
16
|
+
|
4
17
|
class MakefileLoader
|
5
18
|
include Rake::DSL
|
6
19
|
|
7
|
-
SPACE_MARK = "\0"
|
20
|
+
SPACE_MARK = "\0" # :nodoc:
|
8
21
|
|
9
22
|
# Load the makefile dependencies in +fn+.
|
10
|
-
def load(fn)
|
23
|
+
def load(fn) # :nodoc:
|
11
24
|
lines = File.read fn
|
12
25
|
lines.gsub!(/\\ /, SPACE_MARK)
|
13
26
|
lines.gsub!(/#[^\n]*\n/m, "")
|
@@ -20,7 +33,7 @@ module Rake
|
|
20
33
|
private
|
21
34
|
|
22
35
|
# Process one logical line of makefile data.
|
23
|
-
def process_line(line)
|
36
|
+
def process_line(line) # :nodoc:
|
24
37
|
file_tasks, args = line.split(':', 2)
|
25
38
|
return if args.nil?
|
26
39
|
dependents = args.split.map { |d| respace(d) }
|
@@ -30,7 +43,7 @@ module Rake
|
|
30
43
|
end
|
31
44
|
end
|
32
45
|
|
33
|
-
def respace(str)
|
46
|
+
def respace(str) # :nodoc:
|
34
47
|
str.tr SPACE_MARK, ' '
|
35
48
|
end
|
36
49
|
end
|
data/lib/rake/task_manager.rb
CHANGED
@@ -59,7 +59,7 @@ module Rake
|
|
59
59
|
self.lookup(task_name, scopes) or
|
60
60
|
enhance_with_matching_rule(task_name) or
|
61
61
|
synthesize_file_task(task_name) or
|
62
|
-
fail "Don't know how to build task '#{task_name}'"
|
62
|
+
fail "Don't know how to build task '#{task_name}' (see --tasks)"
|
63
63
|
end
|
64
64
|
|
65
65
|
def synthesize_file_task(task_name) # :nodoc:
|
@@ -291,9 +291,6 @@ module Rake
|
|
291
291
|
result.flatten
|
292
292
|
end
|
293
293
|
|
294
|
-
|
295
|
-
private
|
296
|
-
|
297
294
|
# Return the current description, clearing it in the process.
|
298
295
|
def get_description(task)
|
299
296
|
desc = @last_description
|
data/lib/rake/testtask.rb
CHANGED
@@ -6,6 +6,7 @@ module Rake
|
|
6
6
|
# Create a task that runs a set of tests.
|
7
7
|
#
|
8
8
|
# Example:
|
9
|
+
# require "rake/testtask"
|
9
10
|
#
|
10
11
|
# Rake::TestTask.new do |t|
|
11
12
|
# t.libs << "test"
|
@@ -35,7 +36,7 @@ module Rake
|
|
35
36
|
# Name of test task. (default is :test)
|
36
37
|
attr_accessor :name
|
37
38
|
|
38
|
-
# List of directories
|
39
|
+
# List of directories added to $LOAD_PATH before running the
|
39
40
|
# tests. (default is 'lib')
|
40
41
|
attr_accessor :libs
|
41
42
|
|
@@ -62,7 +63,7 @@ module Rake
|
|
62
63
|
#
|
63
64
|
attr_accessor :loader
|
64
65
|
|
65
|
-
# Array of
|
66
|
+
# Array of command line options to pass to ruby when running test loader.
|
66
67
|
attr_accessor :ruby_opts
|
67
68
|
|
68
69
|
# Description of the test task. (default is 'Run tests')
|
data/test/helper.rb
CHANGED
@@ -7,6 +7,7 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
7
7
|
def setup
|
8
8
|
super
|
9
9
|
|
10
|
+
@testkey = ENV['TESTKEY']
|
10
11
|
clear_argv
|
11
12
|
Rake::FileUtilsExt.verbose_flag = false
|
12
13
|
Rake::FileUtilsExt.nowrite_flag = false
|
@@ -14,6 +15,7 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
14
15
|
end
|
15
16
|
|
16
17
|
def teardown
|
18
|
+
ENV['TESTKEY'] = @testkey
|
17
19
|
clear_argv
|
18
20
|
Rake::FileUtilsExt.verbose_flag = false
|
19
21
|
Rake::FileUtilsExt.nowrite_flag = false
|
@@ -198,7 +200,7 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
198
200
|
def test_quiet
|
199
201
|
Rake::FileUtilsExt.verbose_flag = true
|
200
202
|
flags('--quiet', '-q') do |opts|
|
201
|
-
assert ! Rake::FileUtilsExt.verbose_flag, "verbose flag
|
203
|
+
assert ! Rake::FileUtilsExt.verbose_flag, "verbose flag should be false"
|
202
204
|
assert ! opts.silent, "should not be silent"
|
203
205
|
end
|
204
206
|
end
|
data/test/test_rake_file_list.rb
CHANGED
@@ -642,6 +642,21 @@ class TestRakeFileList < Rake::TestCase
|
|
642
642
|
assert_equal FileList, r.class
|
643
643
|
end
|
644
644
|
|
645
|
+
def test_special_return_delegating_methods_object_type
|
646
|
+
custom_file_list = Class.new(FileList)
|
647
|
+
f = custom_file_list.new
|
648
|
+
|
649
|
+
FileList::SPECIAL_RETURN.each do |m|
|
650
|
+
r = if [].method(m).arity == 1
|
651
|
+
f.send(m, [])
|
652
|
+
else
|
653
|
+
f.send(m)
|
654
|
+
end
|
655
|
+
|
656
|
+
assert_equal custom_file_list, r.class
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
645
660
|
def test_file_utils_can_use_filelists
|
646
661
|
cfiles = FileList['*.c']
|
647
662
|
|
@@ -3,10 +3,15 @@ require 'fileutils'
|
|
3
3
|
require 'stringio'
|
4
4
|
|
5
5
|
class TestRakeFileUtils < Rake::TestCase
|
6
|
+
def setup
|
7
|
+
super
|
8
|
+
@rake_test_sh = ENV['RAKE_TEST_SH']
|
9
|
+
end
|
6
10
|
|
7
11
|
def teardown
|
8
12
|
FileUtils::LN_SUPPORTED[0] = true
|
9
13
|
RakeFileUtils.verbose_flag = Rake::FileUtilsExt::DEFAULT
|
14
|
+
ENV['RAKE_TEST_SH'] = @rake_test_sh
|
10
15
|
|
11
16
|
super
|
12
17
|
end
|
@@ -57,13 +57,13 @@ class TestLinkedList < Rake::TestCase
|
|
57
57
|
refute_equal short, list
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
60
|
+
def test_conversion_to_string
|
61
61
|
list = LinkedList.make(:one, :two, :three)
|
62
62
|
assert_equal "LL(one, two, three)", list.to_s
|
63
63
|
assert_equal "LL()", LinkedList.make().to_s
|
64
64
|
end
|
65
65
|
|
66
|
-
def
|
66
|
+
def test_conversion_with_inspect
|
67
67
|
list = LinkedList.make(:one, :two, :three)
|
68
68
|
assert_equal "LL(:one, :two, :three)", list.inspect
|
69
69
|
assert_equal "LL()", LinkedList.make().inspect
|
data/test/test_rake_path_map.rb
CHANGED
@@ -152,11 +152,11 @@ class TestRakePathMap < Rake::TestCase
|
|
152
152
|
"Your file extension is '.rb'",
|
153
153
|
"dir/abc.rb".pathmap("Your file extension is '%x'"))
|
154
154
|
assert_equal(
|
155
|
-
"bin/org/
|
156
|
-
"src/org/
|
155
|
+
"bin/org/onestepback/proj/A.class",
|
156
|
+
"src/org/onestepback/proj/A.java".pathmap("%{src,bin}d/%n.class"))
|
157
157
|
assert_equal(
|
158
|
-
"src_work/bin/org/
|
159
|
-
"src_work/src/org/
|
158
|
+
"src_work/bin/org/onestepback/proj/A.class",
|
159
|
+
"src_work/src/org/onestepback/proj/A.java".
|
160
160
|
pathmap('%{\bsrc\b,bin}X.class'))
|
161
161
|
assert_equal(
|
162
162
|
".depends.bak",
|
data/test/test_rake_task.rb
CHANGED
@@ -145,7 +145,7 @@ class TestRakeTask < Rake::TestCase
|
|
145
145
|
task :tfind
|
146
146
|
assert_equal "tfind", Task[:tfind].name
|
147
147
|
ex = assert_raises(RuntimeError) { Task[:leaves] }
|
148
|
-
assert_equal "Don't know how to build task 'leaves'", ex.message
|
148
|
+
assert_equal "Don't know how to build task 'leaves' (see --tasks)", ex.message
|
149
149
|
end
|
150
150
|
|
151
151
|
def test_defined
|
@@ -195,14 +195,14 @@ class TestRakeTask < Rake::TestCase
|
|
195
195
|
assert_equal ["b", "c"], Task[:a].prerequisites
|
196
196
|
end
|
197
197
|
|
198
|
-
def
|
198
|
+
def test_prerequisite_tasks_returns_tasks_not_strings
|
199
199
|
a = task :a => ["b", "c"]
|
200
200
|
b = task :b
|
201
201
|
c = task :c
|
202
202
|
assert_equal [b, c], a.prerequisite_tasks
|
203
203
|
end
|
204
204
|
|
205
|
-
def
|
205
|
+
def test_prerequisite_tasks_fails_if_prerequisites_are_undefined
|
206
206
|
a = task :a => ["b", "c"]
|
207
207
|
task :b
|
208
208
|
assert_raises(RuntimeError) do
|
@@ -210,7 +210,7 @@ class TestRakeTask < Rake::TestCase
|
|
210
210
|
end
|
211
211
|
end
|
212
212
|
|
213
|
-
def
|
213
|
+
def test_prerequisite_tasks_honors_namespaces
|
214
214
|
a = b = nil
|
215
215
|
namespace "X" do
|
216
216
|
a = task :a => ["b", "c"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '5.
|
20
|
+
version: '5.8'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '5.
|
27
|
+
version: '5.8'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rdoc
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '3.
|
48
|
+
version: '3.14'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '3.
|
55
|
+
version: '3.14'
|
56
56
|
description: |-
|
57
57
|
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
|
58
58
|
specified in standard Ruby syntax.
|
@@ -125,7 +125,6 @@ extra_rdoc_files:
|
|
125
125
|
- MIT-LICENSE
|
126
126
|
files:
|
127
127
|
- ".autotest"
|
128
|
-
- ".gemtest"
|
129
128
|
- ".rubocop.yml"
|
130
129
|
- ".togglerc"
|
131
130
|
- CONTRIBUTING.rdoc
|
@@ -313,57 +312,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
313
312
|
version: 1.3.2
|
314
313
|
requirements: []
|
315
314
|
rubyforge_project:
|
316
|
-
rubygems_version: 2.
|
315
|
+
rubygems_version: 2.5.1
|
317
316
|
signing_key:
|
318
317
|
specification_version: 4
|
319
318
|
summary: Rake is a Make-like program implemented in Ruby
|
320
|
-
test_files:
|
321
|
-
- test/test_private_reader.rb
|
322
|
-
- test/test_rake.rb
|
323
|
-
- test/test_rake_application.rb
|
324
|
-
- test/test_rake_application_options.rb
|
325
|
-
- test/test_rake_backtrace.rb
|
326
|
-
- test/test_rake_clean.rb
|
327
|
-
- test/test_rake_cpu_counter.rb
|
328
|
-
- test/test_rake_definitions.rb
|
329
|
-
- test/test_rake_directory_task.rb
|
330
|
-
- test/test_rake_dsl.rb
|
331
|
-
- test/test_rake_early_time.rb
|
332
|
-
- test/test_rake_extension.rb
|
333
|
-
- test/test_rake_file_creation_task.rb
|
334
|
-
- test/test_rake_file_list.rb
|
335
|
-
- test/test_rake_file_list_path_map.rb
|
336
|
-
- test/test_rake_file_task.rb
|
337
|
-
- test/test_rake_file_utils.rb
|
338
|
-
- test/test_rake_ftp_file.rb
|
339
|
-
- test/test_rake_functional.rb
|
340
|
-
- test/test_rake_invocation_chain.rb
|
341
|
-
- test/test_rake_late_time.rb
|
342
|
-
- test/test_rake_linked_list.rb
|
343
|
-
- test/test_rake_makefile_loader.rb
|
344
|
-
- test/test_rake_multi_task.rb
|
345
|
-
- test/test_rake_name_space.rb
|
346
|
-
- test/test_rake_package_task.rb
|
347
|
-
- test/test_rake_path_map.rb
|
348
|
-
- test/test_rake_path_map_explode.rb
|
349
|
-
- test/test_rake_path_map_partial.rb
|
350
|
-
- test/test_rake_pathname_extensions.rb
|
351
|
-
- test/test_rake_pseudo_status.rb
|
352
|
-
- test/test_rake_rake_test_loader.rb
|
353
|
-
- test/test_rake_reduce_compat.rb
|
354
|
-
- test/test_rake_require.rb
|
355
|
-
- test/test_rake_rules.rb
|
356
|
-
- test/test_rake_scope.rb
|
357
|
-
- test/test_rake_task.rb
|
358
|
-
- test/test_rake_task_argument_parsing.rb
|
359
|
-
- test/test_rake_task_arguments.rb
|
360
|
-
- test/test_rake_task_lib.rb
|
361
|
-
- test/test_rake_task_manager.rb
|
362
|
-
- test/test_rake_task_manager_argument_resolution.rb
|
363
|
-
- test/test_rake_task_with_arguments.rb
|
364
|
-
- test/test_rake_test_task.rb
|
365
|
-
- test/test_rake_thread_pool.rb
|
366
|
-
- test/test_rake_top_level_functions.rb
|
367
|
-
- test/test_rake_win32.rb
|
368
|
-
- test/test_thread_history_display.rb
|
369
|
-
- test/test_trace_output.rb
|
319
|
+
test_files: []
|
data/.gemtest
DELETED
File without changes
|