rake 0.9.1 → 0.9.2
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/RRR +0 -1
- 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 +1 -1
- data/test/data/extra/Rakefile +1 -0
- data/test/test_rake_dsl.rb +20 -0
- data/test/test_rake_functional.rb +3 -3
- metadata +5 -2
data/RRR
CHANGED
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: rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.
|
5
|
+
version: 0.9.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jim Weirich
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -80,6 +80,7 @@ extra_rdoc_files:
|
|
80
80
|
- doc/release_notes/rake-0.8.7.rdoc
|
81
81
|
- doc/release_notes/rake-0.9.0.rdoc
|
82
82
|
- doc/release_notes/rake-0.9.1.rdoc
|
83
|
+
- doc/release_notes/rake-0.9.2.rdoc
|
83
84
|
files:
|
84
85
|
- .gemtest
|
85
86
|
- install.rb
|
@@ -194,6 +195,7 @@ files:
|
|
194
195
|
- test/data/default/Rakefile
|
195
196
|
- test/data/deprecated_import/Rakefile
|
196
197
|
- test/data/dryrun/Rakefile
|
198
|
+
- test/data/extra/Rakefile
|
197
199
|
- test/data/file_creation_task/Rakefile
|
198
200
|
- test/data/imports/Rakefile
|
199
201
|
- test/data/multidesc/Rakefile
|
@@ -232,6 +234,7 @@ files:
|
|
232
234
|
- doc/release_notes/rake-0.8.7.rdoc
|
233
235
|
- doc/release_notes/rake-0.9.0.rdoc
|
234
236
|
- doc/release_notes/rake-0.9.1.rdoc
|
237
|
+
- doc/release_notes/rake-0.9.2.rdoc
|
235
238
|
homepage: http://rake.rubyforge.org
|
236
239
|
licenses: []
|
237
240
|
|