<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,12 +7,12 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      This is a controller generator
+      Generates a new controller.
     DESC
     
-    option :testing_framework, :desc =&gt; 'Specify which testing framework to use (spec, test_unit)'
+    option :testing_framework, :desc =&gt; 'Testing framework to use (one of: spec, test_unit)'
     
-    first_argument :name, :required =&gt; true
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;controller name&quot;
     
     invoke :helper
     
@@ -66,4 +66,4 @@ module Merb::Generators
   
   add :controller, ControllerGenerator
   
-end
\ No newline at end of file
+end</diff>
      <filename>merb-gen/lib/merb-gen/controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      Generates a freezer
+      Generates Merb freezer scripts.
     DESC
     
     template :freezer, 'script/frozen_merb', 'script/frozen_merb'
@@ -16,4 +16,4 @@ module Merb::Generators
   
   add :freezer, FreezerGenerator
   
-end
\ No newline at end of file
+end</diff>
      <filename>merb-gen/lib/merb-gen/freezer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,12 +7,12 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      This is a controller generator
+      Generates a new helper.
     DESC
     
-    option :testing_framework, :desc =&gt; 'Specify which testing framework to use (spec, test_unit)'
+    option :testing_framework, :desc =&gt; 'Testing framework to use (one of: spec, test_unit)'
     
-    first_argument :name, :required =&gt; true
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;helper name&quot;
     
     template :helper do
       source('app/helpers/%file_name%_helper.rb')
@@ -50,4 +50,4 @@ module Merb::Generators
   
   add :helper, HelperGenerator
   
-end
\ No newline at end of file
+end</diff>
      <filename>merb-gen/lib/merb-gen/helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,16 +6,16 @@ module Merb::Generators
       File.join(super, 'merb')
     end
     
-    option :testing_framework, :default =&gt; :rspec, :desc =&gt; 'Specify which testing framework to use (spec, test_unit)'
-    option :orm, :default =&gt; :none, :desc =&gt; 'Specify which Object-Relation Mapper to use (none, activerecord, datamapper, sequel)'
-    option :flat, :as =&gt; :boolean
-    option :very_flat, :as =&gt; :boolean
+    option :testing_framework, :default =&gt; :rspec, :desc =&gt; 'Testing framework to use (one of: spec, test_unit)'
+    option :orm, :default =&gt; :none, :desc =&gt; 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel)'
+    option :flat, :as =&gt; :boolean, :desc =&gt; &quot;Generate a flat application: one file + configs + templates directory.&quot;
+    option :very_flat, :as =&gt; :boolean, :desc =&gt; &quot;Generate a very flat, Sinatra-like one file application.&quot;
     
     desc &lt;&lt;-DESC
       This generates a full merb application
     DESC
     
-    first_argument :name, :required =&gt; true
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;Application name&quot;
     
     invoke :app_full, :flat =&gt; nil, :very_flat =&gt; nil
     invoke :app_flat, :flat =&gt; true</diff>
      <filename>merb-gen/lib/merb-gen/merb.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,10 +7,12 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      This generates a flat merb application
+      This generates a flat merb application: all code but config files and
+      templates fits in one application. This is something in between Sinatra
+      and &quot;regular&quot; Merb application.
     DESC
     
-    first_argument :name, :required =&gt; true
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;Application name&quot;
     
     glob!
 </diff>
      <filename>merb-gen/lib/merb-gen/merb_flat.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,16 +6,19 @@ module Merb::Generators
       File.join(super, 'merb')
     end
     
-    option :testing_framework, :default =&gt; :rspec, :desc =&gt; 'Specify which testing framework to use (spec, test_unit)'
-    option :orm, :default =&gt; :none, :desc =&gt; 'Specify which Object-Relation Mapper to use (none, activerecord, datamapper, sequel)'
+    option :testing_framework, :default =&gt; :rspec, 
+                               :desc =&gt; 'Testing framework to use (one of: spec, test_unit).'                               
+    option :orm, :default =&gt; :none, 
+                 :desc =&gt; 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel).'
     
     desc &lt;&lt;-DESC
-      This generates a full merb application
+      This generates a Merb application with Ruby on Rails like structure.
+      Generator lets you configure your ORM and testing framework of choice.
     DESC
     
     glob!
     
-    first_argument :name, :required =&gt; true
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;Application name&quot;
     
     def app_name
       self.name.snake_case</diff>
      <filename>merb-gen/lib/merb-gen/merb_full.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,16 +6,16 @@ module Merb::Generators
       File.join(super, 'merb_plugin')
     end
     
-    option :testing_framework, :default =&gt; :rspec, :desc =&gt; 'Specify which testing framework to use (spec, test_unit)'
-    option :orm, :default =&gt; :none, :desc =&gt; 'Specify which Object-Relation Mapper to use (none, activerecord, datamapper, sequel)'
+    option :testing_framework, :default =&gt; :rspec, :desc =&gt; 'Testing framework to use (one of: spec, test_unit)'
+    option :orm, :default =&gt; :none, :desc =&gt; 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel)'
     
     desc &lt;&lt;-DESC
-      This generates a plugin for merb
+      Merb plugin generator: lets you kick start your Merb plugin.
     DESC
     
     glob!
     
-    first_argument :name, :required =&gt; true
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;Plugin name&quot;
     
     def base_name
       self.name.snake_case</diff>
      <filename>merb-gen/lib/merb-gen/merb_plugin.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,10 +7,11 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      This generates a very flat merb application
+      This generates a very flat merb application: the whole application
+      fits in one file, very much like Sinatra or Camping.
     DESC
     
-    first_argument :name, :required =&gt; true
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;Application name&quot;
     
     template :application do
       source('application.rbt')</diff>
      <filename>merb-gen/lib/merb-gen/merb_very_flat.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,8 +10,8 @@ module Merb::Generators
       This is a migration generator
     DESC
     
-    option :orm, :desc =&gt; 'Specify which Object-Relation Mapper to use (none, activerecord, datamapper, sequel)'
-    option :model, :as =&gt; :boolean, :desc =&gt; 'Set this option to generate a migration which creates a table for the provided model'
+    option :orm, :desc =&gt; 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel)'
+    option :model, :as =&gt; :boolean, :desc =&gt; 'Specify this option to generate a migration which creates a table for the provided model'
     
     first_argument :name, :required =&gt; true
     second_argument :attributes, :as =&gt; :hash, :default =&gt; {}</diff>
      <filename>merb-gen/lib/merb-gen/migration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,14 +7,15 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      This is a model generator
+      Generates a new model. You can specify an ORM different from what the rest
+      of the application uses.
     DESC
     
-    option :testing_framework, :desc =&gt; 'Specify which testing framework to use (spec, test_unit)'
-    option :orm, :desc =&gt; 'Specify which Object-Relation Mapper to use (none, activerecord, datamapper, sequel)'
+    option :testing_framework, :desc =&gt; 'Testing framework to use (one of: spec, test_unit)'
+    option :orm, :desc =&gt; 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel)'
     
-    first_argument :name, :required =&gt; true
-    second_argument :attributes, :as =&gt; :hash, :default =&gt; {}
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;model name&quot;
+    second_argument :attributes, :as =&gt; :hash, :default =&gt; {}, :desc =&gt; &quot;space separated model properties in form of name:type. Example: state:string&quot;
     
     invoke :migration do |generator|
       generator.new(destination_root, options.merge(:model =&gt; true), name, attributes)
@@ -63,4 +64,4 @@ module Merb::Generators
   
   add :model, ModelGenerator
   
-end
\ No newline at end of file
+end</diff>
      <filename>merb-gen/lib/merb-gen/model.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,11 +3,11 @@ module Merb::Generators
   class ResourceGenerator &lt; ComponentGenerator
     
     desc &lt;&lt;-DESC
-      This is a resource generator
+      Generates a new resource.
     DESC
     
-    first_argument :name, :required =&gt; true
-    second_argument :attributes, :as =&gt; :hash
+    first_argument :name, :required =&gt; true, :desc =&gt; &quot;resource name&quot;
+    second_argument :attributes, :as =&gt; :hash, :default =&gt; {}, :desc =&gt; &quot;space separated resource model properties in form of name:type. Example: state:string&quot;
     
     invoke :model do |generator|
       generator.new(destination_root, options, model_name, attributes)
@@ -29,4 +29,4 @@ module Merb::Generators
   
   add :resource, ResourceGenerator
   
-end
\ No newline at end of file
+end</diff>
      <filename>merb-gen/lib/merb-gen/resource.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,14 +7,17 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      This is a resource controller generator
+      Generates a new resource controller.
     DESC
     
-    option :testing_framework, :desc =&gt; 'Specify which testing framework to use (spec, test_unit)'
-    option :orm, :desc =&gt; 'Specify which Object-Relation Mapper to use (none, activerecord, datamapper, sequel)'
+    option :testing_framework, :desc =&gt; 'Testing framework to use (one of: spec, test_unit)'
+    option :orm, :desc =&gt; 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel)'
     
-    first_argument :name, :required =&gt; true
-    second_argument :attributes, :as =&gt; :hash, :default =&gt; {}
+    first_argument :name, :required =&gt; true,
+                          :desc     =&gt; &quot;model name&quot;
+    second_argument :attributes, :as      =&gt; :hash,
+                                 :default =&gt; {},
+                                 :desc    =&gt; &quot;space separated resource model properties in form of name:type. Example: state:string&quot;
     
     invoke :helper do |generator|
       generator.new(destination_root, options, name)
@@ -85,4 +88,4 @@ module Merb::Generators
   
   add :resource_controller, ResourceControllerGenerator
   
-end
\ No newline at end of file
+end</diff>
      <filename>merb-gen/lib/merb-gen/resource_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,10 +7,10 @@ module Merb::Generators
     end
     
     desc &lt;&lt;-DESC
-      This is a migration generator
+      Generates a new session migration.
     DESC
     
-    option :orm, :desc =&gt; 'Specify which Object-Relation Mapper to use (none, activerecord, datamapper, sequel)'
+    option :orm, :desc =&gt; 'Object-Relation Mapper to use (one of: none, activerecord, datamapper, sequel)'
     
     template :session_migration_activerecord, :orm =&gt; :activerecord do
       source('activerecord/schema/migrations/%version%_sessions.rb')</diff>
      <filename>merb-gen/lib/merb-gen/session_migration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,11 @@
 # run very flat apps with merb -I &lt;app file&gt;.
 
+Merb::Config.use { |c|
+  c[:framework]           = { :public =&gt; [Merb.root / &quot;public&quot;, nil] },
+  c[:session_store]       = 'none',
+  c[:exception_details]   = true
+}
+
 Merb::Router.prepare do |r|
   r.match('/').to(:controller =&gt; '&lt;%= app_name %&gt;', :action =&gt;'index')
 end
@@ -8,10 +14,4 @@ class &lt;%= class_name %&gt; &lt; Merb::Controller
   def index
     &quot;hi&quot;
   end
-end
-
-Merb::Config.use { |c|
-  c[:framework]           = { :public =&gt; [Merb.root / &quot;public&quot;, nil] },
-  c[:session_store]       = 'none',
-  c[:exception_details]   = true
-}
+end
\ No newline at end of file</diff>
      <filename>merb-gen/templates/application/merb_very_flat/application.rbt</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,11 @@
 &lt;% with_modules(controller_modules) do -%&gt;
 class &lt;%= controller_class_name %&gt; &lt; Application
-  
+
+  # ...and remember, everything returned from an action
+  # goes to the client...
   def index
     render
   end
   
 end
-&lt;% end -%&gt;
\ No newline at end of file
+&lt;% end -%&gt;</diff>
      <filename>merb-gen/templates/component/controller/app/controllers/%file_name%.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,2 @@
 class &lt;%= class_name %&gt; &lt; ActiveRecord::Base
-end
\ No newline at end of file
+end</diff>
      <filename>merb-gen/templates/component/model/activerecord/app/models/%file_name%.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a6ee8184dc18e8407f2ad4135c22e6567474377e</id>
    </parent>
  </parents>
  <author>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </author>
  <url>http://github.com/wycats/merb-more/commit/e3a64cb3f2e0448c75e1211e39162f2e42361219</url>
  <id>e3a64cb3f2e0448c75e1211e39162f2e42361219</id>
  <committed-date>2008-07-21T05:29:42-07:00</committed-date>
  <authored-date>2008-07-21T05:29:42-07:00</authored-date>
  <message>Make generators more explicit: add descriptions to options and notes to templates.</message>
  <tree>22457985f59df91e28c34c08726f8a98bfc1950f</tree>
  <committer>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </committer>
</commit>
