Skip to content
Browse files

+ Added rake task descriptions (grosser).

Removed sort task now that I have grepsort

[git-p4: depot-paths = "//src/ZenTest/dev/": change = 5986]
  • Loading branch information...
1 parent af9bbae commit 24405fc1edb730f917d4b8986b921d71e5f2a20e @zenspider zenspider committed Nov 19, 2010
Showing with 3 additions and 10 deletions.
  1. +3 −10 Rakefile
View
13 Rakefile
@@ -1,6 +1,6 @@
# -*- ruby -*-
-$: << 'lib'
+$LOAD_PATH << 'lib'
require 'rubygems'
require 'hoe'
@@ -14,10 +14,12 @@ Hoe.spec "ZenTest" do
developer 'Eric Hodel', 'drbrain@segment7.net'
end
+desc "run autotest on itself"
task :autotest do
ruby "-Ilib -w ./bin/autotest"
end
+desc "update example_dot_autotest.rb with all possible constants"
task :update do
system "p4 edit example_dot_autotest.rb"
File.open "example_dot_autotest.rb", "w" do |f|
@@ -46,14 +48,5 @@ task :update do
system "p4 diff -du example_dot_autotest.rb"
end
-task :sort do
- begin
- sh 'for f in lib/*.rb; do echo $f; grep "^ *def " $f | grep -v sort=skip > x; sort x > y; echo $f; echo; diff x y; done'
- sh 'for f in test/test_*.rb; do echo $f; grep "^ *def.test_" $f > x; sort x > y; echo $f; echo; diff x y; done'
- ensure
- sh 'rm x y'
- end
-end
-
# vim:syntax=ruby

0 comments on commit 24405fc

Please sign in to comment.
Something went wrong with that request. Please try again.