<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>addressable.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -31,6 +31,38 @@ Ruby's standard library. It more closely conforms to the relevant RFCs and
 adds support for IRIs and URI templates.
 TEXT
 
+desc &quot;generates .gemspec file&quot;
+task :gemspec do
+  spec = Gem::Specification.new do |p|
+    p.name = 'addressable'
+    p.version = PKG_VERSION
+
+    p.summary = PKG_SUMMARY
+    p.description = PKG_DESCRIPTION
+
+    p.author = 'Bob Aman'
+    p.email  = 'bob@sporkmonger.com'
+    p.homepage = 'http://github.com/mislav/addressable'
+    p.rubyforge_project = nil
+
+    p.files = FileList['Rakefile', '{bin,lib,tasks,spec}/**/*', 'README*', 'LICENSE*', 'CHANGELOG*'] &amp; `git ls-files`.split
+
+    p.executables = Dir['bin/*'].map { |f| File.basename(f) }
+
+    p.has_rdoc = true
+  end
+  
+  spec_string = spec.to_ruby
+  
+  begin
+    Thread.new { eval(&quot;$SAFE = 3\n#{spec_string}&quot;, binding) }.join 
+  rescue
+    abort &quot;unsafe gemspec: #{$!}&quot;
+  else
+    File.open(&quot;#{spec.name}.gemspec&quot;, 'w') { |file| file.write spec_string }
+  end
+end
+
 PKG_FILES = FileList[
     &quot;lib/**/*&quot;, &quot;spec/**/*&quot;, &quot;vendor/**/*&quot;,
     &quot;tasks/**/*&quot;, &quot;website/**/*&quot;,</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>741180870bea18df8bd9b8aa0d21b989450c68bd</id>
    </parent>
  </parents>
  <author>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </author>
  <url>http://github.com/sporkmonger/addressable/commit/70945464da109a25d33813aac96b038a43cb6404</url>
  <id>70945464da109a25d33813aac96b038a43cb6404</id>
  <committed-date>2009-10-31T18:26:29-07:00</committed-date>
  <authored-date>2009-09-27T08:21:59-07:00</authored-date>
  <message>gemspec for v2.1.1</message>
  <tree>24463370dedb71a35e0224e32943fa448fcf0012</tree>
  <committer>
    <name>Bob Aman</name>
    <email>bob@sporkmonger.com</email>
  </committer>
</commit>
