rake 0.9.0.beta.5 → 0.9.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.
- data/CHANGES +1 -6
- data/Rakefile +0 -1
- data/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/lib/rake/dsl_definition.rb +18 -25
- data/lib/rake/version.rb +0 -2
- data/test/functional/session_based_tests.rb +0 -16
- data/test/lib/top_level_functions_test.rb +1 -7
- metadata +6 -6
data/CHANGES
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= Rake Changelog
|
2
2
|
|
3
|
-
==
|
3
|
+
== Version 0.9.0
|
4
4
|
|
5
5
|
* Rake now warns when the deprecated :needs syntax used.
|
6
6
|
|
@@ -8,8 +8,6 @@
|
|
8
8
|
commands are no longer private methods in Object. (Suggested by
|
9
9
|
James M. Lawrence/quix)
|
10
10
|
|
11
|
-
* Deprecated 'import'. Use 'Rake.import' instead.
|
12
|
-
|
13
11
|
* Rake history is now UTF-8 encoded.
|
14
12
|
|
15
13
|
* Rake now uses case-insensitive comparisons to find the Rakefile on Windows.
|
@@ -18,9 +16,6 @@
|
|
18
16
|
* Rake now requires (instead of loads) files in the test task. Patch by Cezary
|
19
17
|
Baginski.
|
20
18
|
|
21
|
-
* Rake now runs tasks when they have equal timestamps. Patch by James M.
|
22
|
-
Lawrence.
|
23
|
-
|
24
19
|
* Fixed typos. Patches by Sean Scot August Moon and R.T. Lechow.
|
25
20
|
|
26
21
|
* Rake now prints the Rakefile directory only when it's different from the
|
data/Rakefile
CHANGED
@@ -0,0 +1,112 @@
|
|
1
|
+
= Rake 0.9.0 Released
|
2
|
+
|
3
|
+
Rake version 0.9.0 has a number of bug fixes and enhancments (see
|
4
|
+
below for more details). Additionally, the internals have be slightly
|
5
|
+
restructured and improved.
|
6
|
+
|
7
|
+
== Changes
|
8
|
+
|
9
|
+
=== New Features / Enhancements / Bug Fixes in Version 0.9.0
|
10
|
+
|
11
|
+
* Rake now warns when the deprecated :needs syntax used (and suggests
|
12
|
+
the proper syntax in the warning).
|
13
|
+
|
14
|
+
* Moved Rake DSL commands to top level ruby object 'main'. Rake DSL
|
15
|
+
commands are no longer private methods in Object. (Suggested by
|
16
|
+
James M. Lawrence/quix)
|
17
|
+
|
18
|
+
* Rake now uses case-insensitive comparisons to find the Rakefile on Windows.
|
19
|
+
Based on patch by Roger Pack.
|
20
|
+
|
21
|
+
* Rake now requires (instead of loads) files in the test task. Patch by Cezary
|
22
|
+
Baginski.
|
23
|
+
|
24
|
+
* Fixed typos. Patches by Sean Scot August Moon and R.T. Lechow.
|
25
|
+
|
26
|
+
* Rake now prints the Rakefile directory only when it's different from the
|
27
|
+
current directory. Patch by Alex Chaffee.
|
28
|
+
|
29
|
+
* Improved rakefile_location discovery on Windows. Patch by James Tucker.
|
30
|
+
|
31
|
+
* Rake now recognizes "Windows Server" as a windows system. Patch by Matthias
|
32
|
+
Lüdtke
|
33
|
+
|
34
|
+
* Rake::RDocTask is deprecated. Use RDoc::Task from RDoc 2.4.2+ (require
|
35
|
+
'rdoc/task')
|
36
|
+
|
37
|
+
* Rake::GemPackageTask is deprecated. Use Gem::PackageTask (require
|
38
|
+
'rubygems/package_task')
|
39
|
+
|
40
|
+
* Rake now outputs various messages to $stderr instead of $stdout.
|
41
|
+
|
42
|
+
* Rake no longer emits warnings for Config. Patch by Santiago Pastorino.
|
43
|
+
|
44
|
+
* Removed Rake's DSL methods from the top level scope. If you need to
|
45
|
+
call 'task :xzy' in your code, include Rake::DSL into your class, or
|
46
|
+
put the code in a Rake::DSL.environment do ... end block.
|
47
|
+
|
48
|
+
* Split rake.rb into individual files.
|
49
|
+
|
50
|
+
* Support for the --where (-W) flag for showing where a task is defined.
|
51
|
+
|
52
|
+
* Fixed quoting in test task.
|
53
|
+
(http://onestepback.org/redmine/issues/show/44,
|
54
|
+
http://www.pivotaltracker.com/story/show/1223138)
|
55
|
+
|
56
|
+
* Fixed the silent option parsing problem.
|
57
|
+
(http://onestepback.org/redmine/issues/show/47)
|
58
|
+
|
59
|
+
* Fixed :verbose=>false flag on sh and ruby commands.
|
60
|
+
|
61
|
+
* Rake command line options may be given by default in a RAKEOPT
|
62
|
+
environment variable.
|
63
|
+
|
64
|
+
* Errors in Rake will now display the task invocation chain in effect
|
65
|
+
at the time of the error.
|
66
|
+
|
67
|
+
* Accepted change by warnickr to not expand test patterns in shell
|
68
|
+
(allowing more files in the test suite).
|
69
|
+
|
70
|
+
* Fixed that file tasks did not perform prereq lookups in scope
|
71
|
+
(Redmine #57).
|
72
|
+
|
73
|
+
== What is Rake
|
74
|
+
|
75
|
+
Rake is a build tool similar to the make program in many ways. But
|
76
|
+
instead of cryptic make recipes, Rake uses standard Ruby code to
|
77
|
+
declare tasks and dependencies. You have the full power of a modern
|
78
|
+
scripting language built right into your build tool.
|
79
|
+
|
80
|
+
== Availability
|
81
|
+
|
82
|
+
The easiest way to get and install rake is via RubyGems ...
|
83
|
+
|
84
|
+
gem install rake (you may need root/admin privileges)
|
85
|
+
|
86
|
+
Otherwise, you can get it from the more traditional places:
|
87
|
+
|
88
|
+
Home Page:: http://rake.rubyforge.org/
|
89
|
+
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
90
|
+
GitHub:: git://github.com/jimweirich/rake.git
|
91
|
+
|
92
|
+
== Thanks
|
93
|
+
|
94
|
+
As usual, it was input from users that drove a alot of these changes. The
|
95
|
+
following people either contributed patches, made suggestions or made
|
96
|
+
otherwise helpful comments. Thanks to ...
|
97
|
+
|
98
|
+
* James M. Lawrence (quix)
|
99
|
+
* Roger Pack
|
100
|
+
* Cezary Baginski
|
101
|
+
* Sean Scot August Moon
|
102
|
+
* R.T. Lechow
|
103
|
+
* Alex Chaffee
|
104
|
+
* James Tucker
|
105
|
+
* Matthias Lüdtke
|
106
|
+
* Santiago Pastorino
|
107
|
+
|
108
|
+
Also, bit thanks to Eric Hodel for assisting with getting this release
|
109
|
+
out the door (where "assisting" includes, but is not by any means
|
110
|
+
limited to, "pushing" me to get it done).
|
111
|
+
|
112
|
+
-- Jim Weirich
|
data/lib/rake/dsl_definition.rb
CHANGED
@@ -116,31 +116,24 @@ module Rake
|
|
116
116
|
Rake.application.last_description = description
|
117
117
|
end
|
118
118
|
|
119
|
-
#
|
120
|
-
#
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
#
|
138
|
-
# Example:
|
139
|
-
# import ".depend", "my_rules"
|
140
|
-
#
|
141
|
-
def Rake.import(*fns)
|
142
|
-
fns.each do |fn|
|
143
|
-
Rake.application.add_import(fn)
|
119
|
+
# Import the partial Rakefiles +fn+. Imported files are loaded
|
120
|
+
# _after_ the current file is completely loaded. This allows the
|
121
|
+
# import statement to appear anywhere in the importing file, and yet
|
122
|
+
# allowing the imported files to depend on objects defined in the
|
123
|
+
# importing file.
|
124
|
+
#
|
125
|
+
# A common use of the import statement is to include files
|
126
|
+
# containing dependency declarations.
|
127
|
+
#
|
128
|
+
# See also the --rakelibdir command line option.
|
129
|
+
#
|
130
|
+
# Example:
|
131
|
+
# import ".depend", "my_rules"
|
132
|
+
#
|
133
|
+
def import(*fns)
|
134
|
+
fns.each do |fn|
|
135
|
+
Rake.application.add_import(fn)
|
136
|
+
end
|
144
137
|
end
|
145
138
|
end
|
146
139
|
|
data/lib/rake/version.rb
CHANGED
@@ -254,22 +254,6 @@ class SessionBasedTests < Test::Unit::TestCase
|
|
254
254
|
assert_status
|
255
255
|
end
|
256
256
|
|
257
|
-
def test_deprecated_import
|
258
|
-
in_environment("PWD" => "test/data/deprecated_import") do
|
259
|
-
rake "imported"
|
260
|
-
end
|
261
|
-
assert_match(/deprecated/, @err)
|
262
|
-
assert_match(/imported!/, @out)
|
263
|
-
end
|
264
|
-
|
265
|
-
def test_suppressed_deprecated_message
|
266
|
-
in_environment("PWD" => "test/data/deprecated_import") do
|
267
|
-
rake "imported -X"
|
268
|
-
end
|
269
|
-
assert_not_match(/deprecated/, @err)
|
270
|
-
assert_match(/imported!/, @out)
|
271
|
-
end
|
272
|
-
|
273
257
|
def test_imports
|
274
258
|
open("test/data/imports/static_deps", "w") do |f|
|
275
259
|
f.puts 'puts "STATIC"'
|
@@ -38,13 +38,7 @@ class TestTopLevelFunctions < Test::Unit::TestCase
|
|
38
38
|
Rake.application.should_receive(:add_import).with("x").once.ordered
|
39
39
|
Rake.application.should_receive(:add_import).with("y").once.ordered
|
40
40
|
Rake.application.should_receive(:add_import).with("z").once.ordered
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
def test_deprecated_import
|
45
|
-
Rake.application.should_receive(:add_import).with("x").once.ordered
|
46
|
-
error_messages = capture_stderr { import('x') }
|
47
|
-
assert_match(/deprecated/, error_messages)
|
41
|
+
import('x', 'y', 'z')
|
48
42
|
end
|
49
43
|
|
50
44
|
def test_when_writing
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.9.0
|
4
|
+
prerelease:
|
5
|
+
version: 0.9.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jim Weirich
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable: rake
|
13
|
+
date: 2011-05-20 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: session
|
@@ -68,6 +67,7 @@ extra_rdoc_files:
|
|
68
67
|
- doc/release_notes/rake-0.8.5.rdoc
|
69
68
|
- doc/release_notes/rake-0.8.6.rdoc
|
70
69
|
- doc/release_notes/rake-0.8.7.rdoc
|
70
|
+
- doc/release_notes/rake-0.9.0.rdoc
|
71
71
|
files:
|
72
72
|
- .gemtest
|
73
73
|
- install.rb
|
@@ -215,7 +215,7 @@ files:
|
|
215
215
|
- doc/release_notes/rake-0.8.5.rdoc
|
216
216
|
- doc/release_notes/rake-0.8.6.rdoc
|
217
217
|
- doc/release_notes/rake-0.8.7.rdoc
|
218
|
-
|
218
|
+
- doc/release_notes/rake-0.9.0.rdoc
|
219
219
|
homepage: http://rake.rubyforge.org
|
220
220
|
licenses: []
|
221
221
|
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
requirements: []
|
245
245
|
|
246
246
|
rubyforge_project: rake
|
247
|
-
rubygems_version: 1.
|
247
|
+
rubygems_version: 1.8.3
|
248
248
|
signing_key:
|
249
249
|
specification_version: 3
|
250
250
|
summary: Ruby based make-like utility.
|