public
Fork of elliottcable/rdie
Description: Ruby gaming system, for D&D and the like
Homepage: http://rdie.yreality.net/
Clone URL: git://github.com/foca/rdie.git
Be good to thy Rakefile and thou shalt be rewarded. rcov:open doesn't run 
automatically on aok (for those of you not working on a Mac)
foca (author)
Tue Apr 08 05:58:43 -0700 2008
commit  d902aeead33e9f8a12294673d0b46a0eed39a0c9
tree    c3e0856236b3f125d6da0e89580b6a5fc57b3518
parent  72e7970042f502be74a328ba2fbf61329f84d7e4
...
34
35
36
37
38
39
40
 
 
 
 
 
 
 
 
 
 
 
 
41
42
43
44
45
 
46
...
34
35
36
 
 
 
 
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 
52
53
54
0
@@ -34,11 +34,19 @@ Spec::Rake::SpecTask.new('rcov') do |t|
0
   t.rcov = true
0
   t.rcov_dir = :meta / :coverage
0
 end
0
-task(:open_rcov) { system 'open "meta/coverage/index.html"' }
0
-RCov::VerifyTask.new(:verify_rcov) do |t|
0
- t.threshold = 100
0
- t.index_html = 'meta/coverage/index.html'
0
+
0
+namespace :rcov do
0
+ desc "Fail unless rcov covers 100% of the code"
0
+ RCov::VerifyTask.new(:verify) do |t|
0
+ t.threshold = 100
0
+ t.index_html = 'meta/coverage/index.html'
0
+ end
0
+
0
+ desc "Open a browser window with the coverage report (Mac only)"
0
+ task :open do
0
+ system 'open "meta/coverage/index.html"'
0
+ end
0
 end
0
 
0
 desc 'Check everything over before commiting'
0
-task :aok => [:rcov, :open_rcov, :verify_rcov]
0
\ No newline at end of file
0
+task :aok => [:rcov, :"rcov:verify"]
0
\ No newline at end of file

Comments

    No one has commented yet.