<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>sinatra.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,4 @@
 doc
-pkg
 *.log
 .DS_Store
-Manifest
-x.rb
\ No newline at end of file
+/dist</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,46 @@
-require 'rubygems'
-require 'echoe'
+require 'rake/clean'
 
 task :default =&gt; :test
 
-Echoe.new(&quot;sinatra&quot;) do |p|
-  p.author = &quot;Blake Mizerany&quot;
-  p.summary = &quot;Classy web-development dressed in a DSL&quot;
-  p.url = &quot;http://www.sinatrarb.com&quot;
-  p.docs_host = &quot;sinatrarb.com:/var/www/blakemizerany.com/public/docs/&quot;
-  p.dependencies = [&quot;mongrel &gt;=1.0.1&quot;]
-  p.install_message = &quot;*** Be sure to checkout the site for helpful tips!  sinatrarb.com ***&quot;
-  p.include_rakefile = true
+# SPECS ===============================================================
+
+desc 'Run specs with story style output'
+task :spec do
+  sh 'specrb --specdox -Ilib:test test/*_test.rb'
+end
+
+desc 'Run specs with unit test style output'
+task :test =&gt; FileList['test/*_test.rb'] do |t|
+  suite = t.prerequisites.map{|f| &quot;-r#{f.chomp('.rb')}&quot;}.join(' ')
+  sh &quot;ruby -Ilib:test #{suite} -e ''&quot;, :verbose =&gt; false
+end
+
+# PACKAGING ============================================================
+
+def spec
+  @spec ||=
+    eval(File.read('sinatra.gemspec'))
+end
+
+def package(ext='')
+  &quot;dist/sinatra-#{spec.version}&quot; + ext
+end
+
+desc 'Build packages'
+task :package =&gt; %w[.gem .tar.gz].map {|e| package(e)}
+
+desc 'Build and install as local gem'
+task :install =&gt; package('.gem') do
+  sh &quot;gem install #{package('.gem')}&quot;
+end
+
+directory 'dist/'
+
+file package('.gem') =&gt; %w[dist/ sinatra.gemspec] + spec.files do |f|
+  sh &quot;gem build sinatra.gemspec&quot;
+  mv File.basename(f.name), f.name
+end
+
+file package('.tar.gz') =&gt; %w[dist/] + spec.files do |f|
+  sh &quot;git archive --format=tar HEAD | gzip &gt; #{f.name}&quot;
 end</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Manifest</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>ba135840a953203dc6ab85e9dea9a90087a970bb</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </author>
  <url>http://github.com/rtomayko/sinatra/commit/e31941dd92570810f78401f5004d56191abf7699</url>
  <id>e31941dd92570810f78401f5004d56191abf7699</id>
  <committed-date>2008-08-31T02:12:25-07:00</committed-date>
  <authored-date>2008-08-31T00:49:22-07:00</authored-date>
  <message>add .gemspec; remove echoe</message>
  <tree>28b63d3098c110101b57e90f57419fbaf4fcd957</tree>
  <committer>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </committer>
</commit>
