diff options
author | Marco Ceresa <ceresa@gmail.com> | 2010-01-19 11:42:16 +0000 |
---|---|---|
committer | Marco Ceresa <ceresa@gmail.com> | 2010-01-19 11:42:16 +0000 |
commit | 9030d410a3757558ef23ac2317f2fb82d5a1e324 (patch) | |
tree | a943e29731d8976f314a8876dec0049cf171d4f0 /Rakefile | |
parent | a6c67904f9daf29142f3e6f989445edd1390f579 (diff) | |
download | ipaddress-9030d410a3757558ef23ac2317f2fb82d5a1e324.tar.gz |
Added IPv6 support
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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 |