<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,4 +11,3 @@
  * Releasing
   * Open hasmygembuiltyet.org
  * enable runcoderun by default
- * Add --summary option to generator</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -27,6 +27,10 @@ class JewelerOpts &lt; Hash
       o.on('--create-repo', 'create the repository on GitHub') do
         self[:create_repo] = true
       end
+
+      o.on('--summary [SUMMARY]', 'specify the summary of the project') do |summary|
+        self[:summary] = summary
+      end
       
       o.on_tail('-h', '--help', 'display this help and exit') do
         puts o</diff>
      <filename>bin/jeweler</filename>
    </modified>
    <modified>
      <diff>@@ -21,8 +21,9 @@ class Jeweler
   end    
 
   class Generator    
-    attr_accessor :target_dir, :user_name, :user_email,
-                  :github_repo_name, :github_remote, :github_url, :github_username, :github_token,
+    attr_accessor :target_dir, :user_name, :user_email, :summary,
+                  :github_repo_name, :github_remote, :github_url, 
+                  :github_username, :github_token,
                   :lib_dir, :constant_name, :file_name_prefix, :config, :test_style,
                   :repo, :should_create_repo
 
@@ -43,6 +44,7 @@ class Jeweler
       self.constant_name = self.github_repo_name.split(/[-_]/).collect{|each| each.capitalize }.join
       self.file_name_prefix = self.github_repo_name.gsub('-', '_')
       self.should_create_repo = options[:create_repo]
+      self.summary = options[:summary] || 'TODO'
     end
 
     def run</diff>
      <filename>lib/jeweler/generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ begin
   require 'jeweler'
   Jeweler::Tasks.new do |s|
     s.name = &quot;&lt;%= github_repo_name %&gt;&quot;
-    s.summary = &quot;TODO&quot;
+    s.summary = %Q{&lt;%= summary %&gt;}
     s.email = &quot;&lt;%= user_email %&gt;&quot;
     s.homepage = &quot;&lt;%= github_url %&gt;&quot;
     s.description = &quot;TODO&quot;</diff>
      <filename>lib/jeweler/templates/Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,6 @@
 require File.dirname(__FILE__) + '/test_helper'
 
-class JewelerTest &lt; Test::Unit::TestCase
-
+class JewelerGeneratorTest &lt; Test::Unit::TestCase
   def self.should_create_directory(directory)
     should &quot;create #{directory} directory&quot; do
       assert File.exists?(File.join(@tmp_dir, directory))
@@ -75,6 +74,10 @@ class JewelerTest &lt; Test::Unit::TestCase
         assert_match 's.email = &quot;bar@example.com&quot;', @content
       end
 
+      should &quot;include the summary in the gem&quot; do
+        assert_match %Q{s.summary = %Q{zomg, so good}}, @content
+      end
+
       should &quot;include the github repo's url as the gem's url&quot; do
         assert_match 's.homepage = &quot;http://github.com/technicalpickles/the-perfect-gem&quot;', @content
       end
@@ -122,7 +125,7 @@ class JewelerTest &lt; Test::Unit::TestCase
 
       context &quot;for generating technicalpickles's the-perfect-gem repo in 'tmp'&quot; do
         setup do
-          @generator = Jeweler::Generator.new('the-perfect-gem', :directory =&gt; @tmp_dir)
+          @generator = Jeweler::Generator.new('the-perfect-gem', :directory =&gt; @tmp_dir, :summary =&gt; 'zomg, so good')
         end
 
         should &quot;use tmp for target directory&quot; do</diff>
      <filename>test/jeweler_generator_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>76e57683c90c5317ed5110413db7d241b597a1e3</id>
    </parent>
  </parents>
  <author>
    <name>Josh Nichols</name>
    <email>josh@technicalpickles.com</email>
  </author>
  <url>http://github.com/grempe/jeweler/commit/9ff22c9b34e0e6c2906a9288a933f9036642621f</url>
  <id>9ff22c9b34e0e6c2906a9288a933f9036642621f</id>
  <committed-date>2009-01-16T13:04:12-08:00</committed-date>
  <authored-date>2009-01-16T13:04:12-08:00</authored-date>
  <message>Added --summary option to generator.</message>
  <tree>225a7799438a00ed05e449ac07bc03be907735c2</tree>
  <committer>
    <name>Josh Nichols</name>
    <email>josh@technicalpickles.com</email>
  </committer>
</commit>
