<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,8 @@
-=== 0.0.1 / 2008-11-14
+=== 0.0.2 / 2008-11-27
+
+* Supports downloading projects from SVN or gems
 
-* 1 major enhancement
+=== 0.0.1 / 2008-11-14
 
-  * Birthday!
+* Birthday!
 </diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 require 'fileutils'
 
 module Bludgeon
-  VERSION = '0.0.1'
+  VERSION = '0.0.2'
   DOWNLOAD_LOCATION = '/tmp/bludgeon-project'
-  # LINES_PER_PAGE = 50  # TODO: calculate based on font-size
+  LINES_PER_PAGE = 50  # TODO: calculate based on font-size
   BLUDGEON_PAGES = 500 # TODO: is this accurate?
 
   def self.calculate(*args)
@@ -26,7 +26,7 @@ module Bludgeon
       @name = args.pop || extract_name(@url)
       @type = if url =~ /^git:\/\// or url =~ /\.git$/
                 :git
-              elsif url =~ /^svn:\/\// or url =~ /^http:\/\//
+              elsif url =~ /^svn/ or url =~ /^http:\/\//
                 :svn
               else
                 :gem
@@ -35,14 +35,17 @@ module Bludgeon
 
     attr_reader :name, :url, :pages, :type
 
-    # TODO: wrap long lines? (look into the &quot;pr&quot; unix tool; may be able to do this)
     def calculate
-      @pages = 0
-      last_file = ''
-      `find #{DOWNLOAD_LOCATION} -type f | xargs pr | egrep &quot;Page [0-9]+$&quot;`.split(&quot;\n&quot;).each do |line|
-        time, file, page = line.split(/\s+/)
-      end
-      @pages = page_counts.map{ |c| c[/Page (\d+)$/, 1].to_i }.inject(0){ |sum, x| sum + x }
+      # TODO: switch over to using pr
+#       last_file = ''
+#       `find #{DOWNLOAD_LOCATION} -type f | xargs pr | egrep &quot;Page [0-9]+$&quot;`.split(&quot;\n&quot;).each do |line|
+#         time, file, page = line.split(/\s+/)
+#       end
+#       @pages = page_counts.map{ |c| c[/Page (\d+)$/, 1].to_i }.inject(0){ |sum, x| sum + x }
+
+      line_counts = `find #{DOWNLOAD_LOCATION} -type f | xargs wc -l`.split &quot;\n&quot;
+      @lines = line_counts.pop.to_i # last line is total
+      @pages = @lines / LINES_PER_PAGE
     end
 
     def bludgeon?</diff>
      <filename>lib/bludgeon.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cdb44e9545c70d4b9f336d59dd3ef8ebd1665ebf</id>
    </parent>
  </parents>
  <author>
    <name>Phil Hagelberg</name>
    <email>technomancy@gmail.com</email>
  </author>
  <url>http://github.com/technomancy/bludgeon/commit/9918e7f487a4a1d06d7a0af3ebaa383e34270ff5</url>
  <id>9918e7f487a4a1d06d7a0af3ebaa383e34270ff5</id>
  <committed-date>2008-11-27T09:52:32-08:00</committed-date>
  <authored-date>2008-11-27T09:52:32-08:00</authored-date>
  <message>Fix SVN support; don't use &quot;pr&quot; yet. Release version 0.2</message>
  <tree>500099c136799618fecf873c2a14f8a5579b346f</tree>
  <committer>
    <name>Phil Hagelberg</name>
    <email>technomancy@gmail.com</email>
  </committer>
</commit>
