<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>TODO</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,4 @@
 coverage/*
 pkg/*
+rdoc/*
+</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,38 +1,56 @@
-# -*- ruby -*-
-
-require &quot;rake&quot;
-require &quot;rake/clean&quot;
-require &quot;rake/gempackagetask&quot;
-require 'rake/rdoctask'
-require &quot;spec&quot;
+require 'rubygems'
+require 'rake/gempackagetask'
+require 'rubygems/specification'
+require 'date'
 require &quot;spec/rake/spectask&quot;
+require 'rake/rdoctask'
 
-DIR = File.dirname(__FILE__)
-NAME = 'randexp'
-SUMMARY =&lt;&lt;-EOS
-Library for generating random strings.
-EOS
+PROJECT_NAME = &quot;randexp&quot;
+GEM = &quot;randexp&quot;
 GEM_VERSION = &quot;0.1.0&quot;
+AUTHOR = &quot;Ben Burkert&quot;
+EMAIL = &quot;ben@benburkert.com&quot;
+HOMEPAGE = &quot;http://github.com/benburkert/randexp&quot;
+TITLE = &quot;Randexp Gem&quot;
+SUMMARY = &quot;Library for generating random strings.&quot;
+FILES = %w(LICENSE README README Rakefile TODO CHANGELOG) + Dir.glob(&quot;{lib,spec}/**/*&quot;)
+RDOC_FILES = %w(LICENSE README README Rakefile TODO CHANGELOG) + Dir.glob(&quot;lib/**/*&quot;)
+
+RUBYFORGE_USER = &quot;benburkert&quot;
 
 spec = Gem::Specification.new do |s|
-  s.name = &quot;randexp&quot;
-  s.version = &quot;0.1.0&quot;
-  s.date = &quot;2008-07-08&quot;
-  s.summary = &quot;Library for generating random strings&quot;
-  s.email = &quot;ben@benburkert.com&quot;
-  s.homepage = &quot;http://github.com/benburkert/randexp&quot;
-  s.description = &quot;randexp makes it easy to generate random string from most regular expressions.&quot;
+  s.name = GEM
+  s.version = GEM_VERSION
+  s.platform = Gem::Platform::RUBY
   s.has_rdoc = true
-  s.authors = [&quot;Ben Burkert&quot;]
-  s.files       = [&quot;Rakefile&quot;, &quot;CHANGELOG&quot;, &quot;LICENSE&quot;, &quot;README&quot;, &quot;lib/randexp.rb&quot;, &quot;lib/randgen.rb&quot;, &quot;lib/core_ext.rb&quot;, &quot;lib/dictionary.rb&quot;, &quot;lib/core_ext/array.rb&quot;, &quot;lib/core_ext/integer.rb&quot;, &quot;lib/core_ext/range.rb&quot;, &quot;lib/core_ext/regexp.rb&quot;, &quot;lib/randexp/parser.rb&quot;, &quot;lib/randexp/reducer.rb&quot;]
-  s.test_files  = [&quot;spec/regression/regexp_spec.rb&quot;, &quot;spec/unit/core_ext/regexp_spec.rb&quot;, &quot;spec/unit/randexp/parser_spec.rb&quot;, &quot;spec/unit/randexp/reducer_spec.rb&quot;, &quot;spec/unit/randexp_spec.rb&quot;, &quot;spec/unit/randgen_spec.rb&quot;, &quot;spec/spec_helper.rb&quot;]
-  s.rdoc_options = [&quot;--main&quot;, &quot;README&quot;]
-  s.extra_rdoc_files = [&quot;CHANGELOG&quot;, &quot;README&quot;]
-  s.require_path = &quot;lib&quot;
+  s.extra_rdoc_files = [&quot;README&quot;, &quot;LICENSE&quot;, 'TODO']
+  s.summary = SUMMARY
+  s.description = s.summary
+  s.author = AUTHOR
+  s.email = EMAIL
+  s.homepage = HOMEPAGE
+
+  s.require_path = 'lib'
+  s.autorequire = GEM
+  s.files = FILES
 end
 
 Rake::GemPackageTask.new(spec) do |package|
   package.gem_spec = spec
+  package.need_zip = true
+  package.need_tar = true
+end
+
+desc &quot;install the gem locally&quot;
+task :install =&gt; [:package] do
+  sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
+end
+
+desc &quot;create a gemspec file&quot;
+task :make_spec do
+  File.open(&quot;#{GEM}.gemspec&quot;, &quot;w&quot;) do |file|
+    file.puts spec.to_ruby
+  end
 end
 
 ##############################################################################
@@ -59,4 +77,35 @@ Spec::Rake::SpecTask.new(&quot;specs:regression&quot;) do |t|
   t.rcov_opts &lt;&lt; '--output coverage/integration'
 end
 
-task :specs =&gt; ['specs:unit', 'specs:regression']
\ No newline at end of file
+task :specs =&gt; ['specs:unit', 'specs:regression']
+
+##############################################################################
+# Documentation
+##############################################################################
+task :doc =&gt; &quot;doc:rerdoc&quot;
+namespace :doc do
+
+  Rake::RDocTask.new do |rdoc|
+    rdoc.rdoc_files.add(RDOC_FILES)
+    rdoc.main = 'README'
+    rdoc.title = TITLE
+    rdoc.rdoc_dir = &quot;rdoc&quot;
+    rdoc.options &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source'
+  end
+
+  desc &quot;rdoc to rubyforge&quot;
+  task :rubyforge =&gt; :doc do
+    sh %{chmod -R 755 rdoc}
+    sh %{/usr/bin/scp -r -p rdoc/* #{RUBYFORGE_USER}@rubyforge.org:/var/www/gforge-projects/#{PROJECT_NAME}/#{GEM}}
+  end
+end
+
+##############################################################################
+# release
+##############################################################################
+task :release do
+  sh %{rubyforge add_release #{PROJECT_NAME} #{GEM} &quot;#{GEM_VERSION}&quot; pkg/#{GEM}-#{GEM_VERSION}.gem}
+  %w[zip tgz].each do |ext|
+    sh %{rubyforge add_file #{PROJECT_NAME} #{GEM} &quot;#{GEM_VERSION}&quot; pkg/#{GEM}-#{GEM_VERSION}.#{ext}}
+  end
+end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,28 @@
 Gem::Specification.new do |s|
-  s.name = &quot;randexp&quot;
+  s.name = %q{randexp}
   s.version = &quot;0.1.0&quot;
-  s.date = &quot;2008-07-08&quot;
-  s.summary = &quot;Library for generating random strings&quot;
-  s.email = &quot;ben@benburkert.com&quot;
-  s.homepage = &quot;http://github.com/benburkert/randexp&quot;
-  s.description = &quot;randexp makes it easy to generate random string from most regular expressions.&quot;
-  s.has_rdoc = true
+
+  s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Ben Burkert&quot;]
-  s.files       = [&quot;Rakefile&quot;, &quot;CHANGELOG&quot;, &quot;LICENSE&quot;, &quot;README&quot;, &quot;lib/randexp.rb&quot;, &quot;lib/randgen.rb&quot;, &quot;lib/core_ext.rb&quot;, &quot;lib/dictionary.rb&quot;, &quot;lib/core_ext/array.rb&quot;, &quot;lib/core_ext/integer.rb&quot;, &quot;lib/core_ext/range.rb&quot;, &quot;lib/core_ext/regexp.rb&quot;, &quot;lib/randexp/parser.rb&quot;, &quot;lib/randexp/reducer.rb&quot;]
-  s.test_files  = [&quot;spec/regression/regexp_spec.rb&quot;, &quot;spec/unit/core_ext/regexp_spec.rb&quot;, &quot;spec/unit/randexp/parser_spec.rb&quot;, &quot;spec/unit/randexp/reducer_spec.rb&quot;, &quot;spec/unit/randexp_spec.rb&quot;, &quot;spec/unit/randgen_spec.rb&quot;, &quot;spec/spec_helper.rb&quot;]
-  s.rdoc_options = [&quot;--main&quot;, &quot;README&quot;]
-  s.extra_rdoc_files = [&quot;CHANGELOG&quot;, &quot;README&quot;]
-  s.require_path = &quot;lib&quot;
-end
\ No newline at end of file
+  s.autorequire = %q{randexp}
+  s.date = %q{2008-07-18}
+  s.description = %q{Library for generating random strings.}
+  s.email = %q{ben@benburkert.com}
+  s.extra_rdoc_files = [&quot;README&quot;, &quot;LICENSE&quot;, &quot;TODO&quot;]
+  s.files = [&quot;LICENSE&quot;, &quot;README&quot;, &quot;Rakefile&quot;, &quot;TODO&quot;, &quot;CHANGELOG&quot;, &quot;lib/core_ext&quot;, &quot;lib/core_ext/array.rb&quot;, &quot;lib/core_ext/integer.rb&quot;, &quot;lib/core_ext/range.rb&quot;, &quot;lib/core_ext/regexp.rb&quot;, &quot;lib/core_ext.rb&quot;, &quot;lib/dictionary.rb&quot;, &quot;lib/randexp&quot;, &quot;lib/randexp/parser.rb&quot;, &quot;lib/randexp/reducer.rb&quot;, &quot;lib/randexp.rb&quot;, &quot;lib/randgen.rb&quot;]
+  s.has_rdoc = true
+  s.homepage = %q{http://github.com/benburkert/randexp}
+  s.require_paths = [&quot;lib&quot;]
+  s.rubygems_version = %q{1.2.0}
+  s.summary = %q{Library for generating random strings.}
+
+  if s.respond_to? :specification_version then
+    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+    s.specification_version = 2
+
+    if current_version &gt;= 3 then
+    else
+    end
+  else
+  end
+end</diff>
      <filename>randexp.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fda539ae89850bcb378847b1ed5198b1304d6533</id>
    </parent>
  </parents>
  <author>
    <name>Ben Burkert</name>
    <email>ben@benburkert.com</email>
  </author>
  <url>http://github.com/benburkert/randexp/commit/4bbcbe884e47797a94bb3fde4dcd64ad7f1f769e</url>
  <id>4bbcbe884e47797a94bb3fde4dcd64ad7f1f769e</id>
  <committed-date>2008-07-18T08:19:24-07:00</committed-date>
  <authored-date>2008-07-18T08:19:24-07:00</authored-date>
  <message>Added TODO file.  Updated Rakefile for the Rubyforge release</message>
  <tree>012ab2b7e882ee4f6f4b8e7c16d3b39b6b08ac43</tree>
  <committer>
    <name>Ben Burkert</name>
    <email>ben@benburkert.com</email>
  </committer>
</commit>
