git://git.eng.unimelb.edu.au
/
ruby_koans.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3fcc39
)
Restrict assert checks to .rb files.
author
Jim Weirich
<jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:41:54 +0000
(
02:41
-0500)
committer
Jim Weirich
<jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:41:54 +0000
(
02:41
-0500)
rakelib/checks.rake
patch
|
blob
|
history
diff --git
a/rakelib/checks.rake
b/rakelib/checks.rake
index
fa5aaf7
..
c1b20d7
100644
(file)
--- a/
rakelib/checks.rake
+++ b/
rakelib/checks.rake
@@
-19,7
+19,7
@@
namespace "check" do
task :asserts do
puts "Checking for asserts missing the replacement text:"
begin
- sh "egrep -n 'assert( |_)' src/about_* | egrep -v '__|_n_|project|about_assert' | egrep -v ' *#'"
+ sh "egrep -n 'assert( |_)' src/about_*
.rb
| egrep -v '__|_n_|project|about_assert' | egrep -v ' *#'"
puts
puts "Examine the above lines for missing __ replacements"
rescue RuntimeError => ex