Rakefile in roo-0.8.5 vs Rakefile in roo-0.9.0

- old
+ new

@@ -137,6 +137,21 @@ puts "Please update your version.rb to match the release version, currently #{VERS}" exit end end +task 'stats' do + require '/home/tp/ruby-test/scriptlines' + files = FileList['lib/**/*.rb'] + puts ScriptLines.headline + sum = ScriptLines.new("TOTAL (#{files.size} file(s))") + files.each do |fn| + File.open(fn) do |file| + script_lines = ScriptLines.new(fn) + script_lines.read(file) + sum += script_lines + puts script_lines + end + end + puts sum +end