summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorMarco Ceresa <ceresa@gmail.com>2010-01-19 11:42:16 +0000
committerMarco Ceresa <ceresa@gmail.com>2010-01-19 11:42:16 +0000
commit9030d410a3757558ef23ac2317f2fb82d5a1e324 (patch)
treea943e29731d8976f314a8876dec0049cf171d4f0 /Rakefile
parenta6c67904f9daf29142f3e6f989445edd1390f579 (diff)
downloadipaddress-9030d410a3757558ef23ac2317f2fb82d5a1e324.tar.gz
Added IPv6 support
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index d4f44fa..ba08997 100644
--- a/Rakefile
+++ b/Rakefile
@@ -62,4 +62,20 @@ task :console do
sh "irb -rubygems -I lib -r ipaddress.rb"
end
-
+desc "Look for TODO and FIXME tags in the code"
+task :todo do
+ def egrep(pattern)
+ Dir['**/*.rb'].each do |fn|
+ count = 0
+ open(fn) do |f|
+ while line = f.gets
+ count += 1
+ if line =~ pattern
+ puts "#{fn}:#{count}:#{line}"
+ end
+ end
+ end
+ end
+ end
+ egrep /(FIXME|TODO|TBD)/
+end