jimweirich-rake 0.8.4.99 → 0.8.5

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.
@@ -0,0 +1,18 @@
1
+ # comment for t1
2
+ task :t1 do
3
+ end
4
+
5
+ # no comment or task because there's a blank line
6
+
7
+ task :t2 do
8
+ end
9
+
10
+ desc "override comment for t3"
11
+ # this is not the description
12
+ multitask :t3 do
13
+ end
14
+
15
+ # this is not the description
16
+ desc "override comment for t4"
17
+ file :t4 do
18
+ end
@@ -299,8 +299,37 @@ class FunctionalTest < Test::Unit::TestCase
299
299
  end
300
300
  end
301
301
 
302
+ def test_comment_before_task_acts_like_desc
303
+ Dir.chdir("test/data/comments") { rake("-T")}
304
+ assert_match("comment for t1", @out)
305
+ end
306
+
307
+ def test_comment_separated_from_task_by_blank_line_is_not_picked_up
308
+ Dir.chdir("test/data/comments") { rake("-T")}
309
+ assert_not_match("t2", @out)
310
+ end
311
+
312
+ def test_comment_after_desc_is_ignored
313
+ Dir.chdir("test/data/comments") { rake("-T")}
314
+ assert_match("override comment for t3", @out)
315
+ end
316
+
317
+ def test_comment_before_desc_is_ignored
318
+ Dir.chdir("test/data/comments") { rake("-T")}
319
+ assert_match("override comment for t4", @out)
320
+ end
321
+
322
+ def test_correct_number_of_tasks_reported
323
+ Dir.chdir("test/data/comments") { rake("-T")}
324
+ assert_equal(3, @out.grep(/t\d/).size)
325
+ end
326
+
302
327
  private
303
328
 
329
+ def assert_not_match(pattern, string, comment="'#{pattern}' was found (incorrectly) in '#{string}.inspect")
330
+ assert_nil Regexp.new(pattern).match(string), comment
331
+ end
332
+
304
333
  def remove_chaining_files
305
334
  %w(play.scpt play.app base).each do |fn|
306
335
  FileUtils.rm_f File.join("test/data/chains", fn)
@@ -117,7 +117,7 @@ class TestFileUtils < Test::Unit::TestCase
117
117
  def test_fileutils_methods_dont_leak
118
118
  obj = Object.new
119
119
  assert_exception(NoMethodError) { obj.copy } # from FileUtils
120
- assert_exception(NoMethodError) { obj.ruby } # from RubyFileUtils
120
+ assert_exception(NoMethodError) { obj.ruby "-v" } # from RubyFileUtils
121
121
  end
122
122
 
123
123
  def test_sh
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jimweirich-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4.99
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-21 21:00:00 -07:00
12
+ date: 2009-05-10 21:00:00 -07:00
13
13
  default_executable: rake
14
14
  dependencies: []
15
15
 
@@ -43,6 +43,7 @@ extra_rdoc_files:
43
43
  - doc/release_notes/rake-0.8.2.rdoc
44
44
  - doc/release_notes/rake-0.8.3.rdoc
45
45
  - doc/release_notes/rake-0.8.4.rdoc
46
+ - doc/release_notes/rake-0.8.5.rdoc
46
47
  files:
47
48
  - install.rb
48
49
  - CHANGES
@@ -52,21 +53,44 @@ files:
52
53
  - TODO
53
54
  - bin/rake
54
55
  - lib/rake/alt_system.rb
56
+ - lib/rake/application.rb
55
57
  - lib/rake/classic_namespace.rb
56
58
  - lib/rake/clean.rb
59
+ - lib/rake/cloneable.rb
57
60
  - lib/rake/contrib/compositepublisher.rb
58
61
  - lib/rake/contrib/ftptools.rb
59
62
  - lib/rake/contrib/publisher.rb
60
63
  - lib/rake/contrib/rubyforgepublisher.rb
61
64
  - lib/rake/contrib/sshpublisher.rb
62
65
  - lib/rake/contrib/sys.rb
66
+ - lib/rake/default_loader.rb
67
+ - lib/rake/dsl.rb
68
+ - lib/rake/early_time.rb
69
+ - lib/rake/ext/module.rb
70
+ - lib/rake/ext/string.rb
71
+ - lib/rake/ext/time.rb
72
+ - lib/rake/file_creation_task.rb
73
+ - lib/rake/file_list.rb
74
+ - lib/rake/file_task.rb
75
+ - lib/rake/file_utils.rb
63
76
  - lib/rake/gempackagetask.rb
77
+ - lib/rake/invocation_chain.rb
64
78
  - lib/rake/loaders/makefile.rb
79
+ - lib/rake/multi_task.rb
80
+ - lib/rake/name_space.rb
65
81
  - lib/rake/packagetask.rb
82
+ - lib/rake/psuedo_status.rb
83
+ - lib/rake/rake_file_utils.rb
84
+ - lib/rake/rake_module.rb
66
85
  - lib/rake/rake_test_loader.rb
67
86
  - lib/rake/rdoctask.rb
68
87
  - lib/rake/ruby182_test_unit_fix.rb
88
+ - lib/rake/rule_recursion_overflow_error.rb
69
89
  - lib/rake/runtest.rb
90
+ - lib/rake/task.rb
91
+ - lib/rake/task_argument_error.rb
92
+ - lib/rake/task_arguments.rb
93
+ - lib/rake/task_manager.rb
70
94
  - lib/rake/tasklib.rb
71
95
  - lib/rake/testtask.rb
72
96
  - lib/rake/win32.rb
@@ -116,6 +140,7 @@ files:
116
140
  - test/data/imports/deps.mf
117
141
  - test/data/sample.mf
118
142
  - test/data/chains/Rakefile
143
+ - test/data/comments/Rakefile
119
144
  - test/data/default/Rakefile
120
145
  - test/data/dryrun/Rakefile
121
146
  - test/data/file_creation_task/Rakefile
@@ -153,6 +178,7 @@ files:
153
178
  - doc/release_notes/rake-0.8.2.rdoc
154
179
  - doc/release_notes/rake-0.8.3.rdoc
155
180
  - doc/release_notes/rake-0.8.4.rdoc
181
+ - doc/release_notes/rake-0.8.5.rdoc
156
182
  has_rdoc: true
157
183
  homepage: http://rake.rubyforge.org
158
184
  post_install_message:
@@ -163,9 +189,6 @@ rdoc_options:
163
189
  - README
164
190
  - --title
165
191
  - Rake -- Ruby Make
166
- - -SHN
167
- - -f
168
- - darkfish
169
192
  require_paths:
170
193
  - lib
171
194
  required_ruby_version: !ruby/object:Gem::Requirement