drake 0.9.1.0.3.0 → 0.9.2.0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/rakefile.rdoc +1 -1
- data/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/lib/rake/dsl_definition.rb +16 -11
- data/lib/rake/version.rb +2 -2
- data/test/data/extra/Rakefile +1 -0
- data/test/test_rake_dsl.rb +20 -0
- data/test/test_rake_functional.rb +3 -3
- metadata +6 -3
data/doc/rakefile.rdoc
CHANGED
@@ -0,0 +1,49 @@
|
|
1
|
+
= Rake 0.9.2 Released
|
2
|
+
|
3
|
+
Rake version 0.9.2 has a few small fixes. See below for details.
|
4
|
+
|
5
|
+
== Changes
|
6
|
+
|
7
|
+
* Support for Ruby 1.8.6 was fixed.
|
8
|
+
* Global DSL warnings now honor --no-deprecate
|
9
|
+
|
10
|
+
== What is Rake
|
11
|
+
|
12
|
+
Rake is a build tool similar to the make program in many ways. But
|
13
|
+
instead of cryptic make recipes, Rake uses standard Ruby code to
|
14
|
+
declare tasks and dependencies. You have the full power of a modern
|
15
|
+
scripting language built right into your build tool.
|
16
|
+
|
17
|
+
== Availability
|
18
|
+
|
19
|
+
The easiest way to get and install rake is via RubyGems ...
|
20
|
+
|
21
|
+
gem install rake (you may need root/admin privileges)
|
22
|
+
|
23
|
+
Otherwise, you can get it from the more traditional places:
|
24
|
+
|
25
|
+
Home Page:: http://rake.rubyforge.org/
|
26
|
+
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
27
|
+
GitHub:: git://github.com/jimweirich/rake.git
|
28
|
+
|
29
|
+
== Thanks
|
30
|
+
|
31
|
+
As usual, it was input from users that drove a alot of these changes. The
|
32
|
+
following people either contributed patches, made suggestions or made
|
33
|
+
otherwise helpful comments. Thanks to ...
|
34
|
+
|
35
|
+
* James M. Lawrence (quix)
|
36
|
+
* Roger Pack
|
37
|
+
* Cezary Baginski
|
38
|
+
* Sean Scot August Moon
|
39
|
+
* R.T. Lechow
|
40
|
+
* Alex Chaffee
|
41
|
+
* James Tucker
|
42
|
+
* Matthias Lüdtke
|
43
|
+
* Santiago Pastorino
|
44
|
+
|
45
|
+
Also, bit thanks to Eric Hodel for assisting with getting this release
|
46
|
+
out the door (where "assisting" includes, but is not by any means
|
47
|
+
limited to, "pushing" me to get it done).
|
48
|
+
|
49
|
+
-- Jim Weirich
|
data/lib/rake/dsl_definition.rb
CHANGED
@@ -140,18 +140,23 @@ module Rake
|
|
140
140
|
end
|
141
141
|
|
142
142
|
module DeprecatedObjectDSL
|
143
|
-
|
143
|
+
Commands = Object.new.extend DSL
|
144
144
|
DSL.private_instance_methods(false).each do |name|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
145
|
+
line = __LINE__+1
|
146
|
+
class_eval %{
|
147
|
+
def #{name}(*args, &block)
|
148
|
+
unless Rake.application.options.ignore_deprecate
|
149
|
+
unless @rake_dsl_warning
|
150
|
+
$stderr.puts "WARNING: Global access to Rake DSL methods is deprecated. Please include"
|
151
|
+
$stderr.puts " ... Rake::DSL into classes and modules which use the Rake DSL methods."
|
152
|
+
@rake_dsl_warning = true
|
153
|
+
end
|
154
|
+
$stderr.puts "WARNING: DSL method \#{self.class}##{name} called at \#{caller.first}"
|
155
|
+
end
|
156
|
+
Rake::DeprecatedObjectDSL::Commands.send(:#{name}, *args, &block)
|
157
|
+
end
|
158
|
+
private :#{name}
|
159
|
+
}, __FILE__, line
|
155
160
|
end
|
156
161
|
end
|
157
162
|
|
data/lib/rake/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
task :default
|
data/test/test_rake_dsl.rb
CHANGED
@@ -2,6 +2,11 @@ require File.expand_path('../helper', __FILE__)
|
|
2
2
|
|
3
3
|
class TestRakeDsl < Rake::TestCase
|
4
4
|
|
5
|
+
def setup
|
6
|
+
super
|
7
|
+
Rake::Task.clear
|
8
|
+
end
|
9
|
+
|
5
10
|
def test_namespace_command
|
6
11
|
namespace "n" do
|
7
12
|
task "t"
|
@@ -50,4 +55,19 @@ class TestRakeDsl < Rake::TestCase
|
|
50
55
|
assert_match(/Foo\#file/, err)
|
51
56
|
assert_match(/test_rake_dsl\.rb:\d+/, err)
|
52
57
|
end
|
58
|
+
|
59
|
+
def test_deprecated_object_dsl_with_suppressed_warnings
|
60
|
+
Rake.application.options.ignore_deprecate = true
|
61
|
+
out, err = capture_io do
|
62
|
+
Foo.new
|
63
|
+
Rake.application.invoke_task :foo_deprecated_a
|
64
|
+
end
|
65
|
+
assert_equal("ba", out)
|
66
|
+
refute_match(/deprecated/, err)
|
67
|
+
refute_match(/Foo\#task/, err)
|
68
|
+
refute_match(/Foo\#file/, err)
|
69
|
+
refute_match(/test_rake_dsl\.rb:\d+/, err)
|
70
|
+
ensure
|
71
|
+
Rake.application.options.ignore_deprecate = false
|
72
|
+
end
|
53
73
|
end
|
@@ -131,8 +131,8 @@ class TestRakeFunctional < Rake::TestCase
|
|
131
131
|
end
|
132
132
|
|
133
133
|
def test_by_default_rakelib_files_are_included
|
134
|
-
in_environment('RAKE_SYSTEM' => 'test/data/sys') do
|
135
|
-
rake '-T', 'extra'
|
134
|
+
in_environment('RAKE_SYSTEM' => 'test/data/sys', "PWD" => 'test/data/extra') do
|
135
|
+
rake '-T', 'extra', '--trace'
|
136
136
|
end
|
137
137
|
assert_match %r{extra:extra}, @out
|
138
138
|
end
|
@@ -145,7 +145,7 @@ class TestRakeFunctional < Rake::TestCase
|
|
145
145
|
end
|
146
146
|
|
147
147
|
def test_no_system
|
148
|
-
in_environment('RAKE_SYSTEM' => 'test/data/sys') do
|
148
|
+
in_environment('RAKE_SYSTEM' => 'test/data/sys', "PWD" => "test/data/extra") do
|
149
149
|
rake '-G', "sys1"
|
150
150
|
end
|
151
151
|
assert_match %r{^Don't know how to build task}, @err # emacs wart: '
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: drake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.
|
5
|
+
version: 0.9.2.0.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James M. Lawrence
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-07-31 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: comp_tree
|
@@ -93,6 +93,7 @@ extra_rdoc_files:
|
|
93
93
|
- doc/release_notes/rake-0.8.7.rdoc
|
94
94
|
- doc/release_notes/rake-0.9.0.rdoc
|
95
95
|
- doc/release_notes/rake-0.9.1.rdoc
|
96
|
+
- doc/release_notes/rake-0.9.2.rdoc
|
96
97
|
files:
|
97
98
|
- .gemtest
|
98
99
|
- install.rb
|
@@ -212,6 +213,7 @@ files:
|
|
212
213
|
- test/data/default/Rakefile
|
213
214
|
- test/data/deprecated_import/Rakefile
|
214
215
|
- test/data/dryrun/Rakefile
|
216
|
+
- test/data/extra/Rakefile
|
215
217
|
- test/data/file_creation_task/Rakefile
|
216
218
|
- test/data/imports/Rakefile
|
217
219
|
- test/data/multidesc/Rakefile
|
@@ -251,6 +253,7 @@ files:
|
|
251
253
|
- doc/release_notes/rake-0.8.7.rdoc
|
252
254
|
- doc/release_notes/rake-0.9.0.rdoc
|
253
255
|
- doc/release_notes/rake-0.9.1.rdoc
|
256
|
+
- doc/release_notes/rake-0.9.2.rdoc
|
254
257
|
homepage: http://quix.github.com/rake
|
255
258
|
licenses: []
|
256
259
|
|
@@ -279,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
282
|
requirements: []
|
280
283
|
|
281
284
|
rubyforge_project: drake
|
282
|
-
rubygems_version: 1.8.
|
285
|
+
rubygems_version: 1.8.6
|
283
286
|
signing_key:
|
284
287
|
specification_version: 3
|
285
288
|
summary: A branch of Rake supporting automatic parallelizing of tasks.
|