<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 require 'rake'
 require 'spec/rake/spectask'
+require 'rake/rdoctask'
 
 task :default =&gt; :spec
 
@@ -19,6 +20,17 @@ desc &quot;Run all specs&quot;
 task :spec =&gt; [:spec_unit, :spec_functional] do
 end
 
+desc 'Generate documentation'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+  rdoc.rdoc_dir = 'rdoc'
+  rdoc.title    = 'Couch Potato'
+  rdoc.options &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source'
+  rdoc.rdoc_files.include('README.md')
+  rdoc.rdoc_files.include('lib/couch_potato.rb')
+  rdoc.rdoc_files.include('lib/couch_potato/**/*.rb')
+end
+
+
 begin
   require 'jeweler'
   Jeweler::Tasks.new do |s|</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,6 @@ module CouchPotato
   module View
     # a view for custom map/reduce functions that still returns model instances
     # example: view :my_custom_view, :map =&gt; &quot;function(doc) { emit(doc._id, null); }&quot;, :include_docs =&gt; true, :type =&gt; :custom, :reduce =&gt; nil
-    
     class CustomViewSpec &lt; BaseViewSpec
       def map_function
         options[:map]</diff>
      <filename>lib/couch_potato/view/custom_view_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,10 @@
 module CouchPotato
-  # a view for custom map/reduce functions that returns the raw data fromcouchdb
-  # example: view :my_custom_view, :map =&gt; &quot;function(doc) { emit(doc._id, null); }&quot;, :type =&gt; :raw, :reduce =&gt; nil
-  # optionally you can pass in a results filter which you can use to process the raw couchdb results before returning them
-  # example: view :my_custom_view, :map =&gt; &quot;function(doc) { emit(doc._id, null); }&quot;, :type =&gt; :raw, :results_filter =&gt; lambda{|results| results['rows].map{|row| row['value']}}
   module View
+    # a view for custom map/reduce functions that returns the raw data fromcouchdb
+    # example: view :my_custom_view, :map =&gt; &quot;function(doc) { emit(doc._id, null); }&quot;, :type =&gt; :raw, :reduce =&gt; nil
+    # optionally you can pass in a results filter which you can use to process the raw couchdb results before returning them
+    # example: view :my_custom_view, :map =&gt; &quot;function(doc) { emit(doc._id, null); }&quot;, :type =&gt; :raw, :results_filter =&gt; lambda{|results| results['rows].map{|row| row['value']}}
+    
     class RawViewSpec &lt; BaseViewSpec
       def map_function
         options[:map]</diff>
      <filename>lib/couch_potato/view/raw_view_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c533ee5349943b8b428ecb5c69c4f10920de7bba</id>
    </parent>
  </parents>
  <author>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </author>
  <url>http://github.com/langalex/couch_potato/commit/324e8f92305654ce1fe75eb2f81c7cc8f77296d2</url>
  <id>324e8f92305654ce1fe75eb2f81c7cc8f77296d2</id>
  <committed-date>2009-05-13T15:35:28-07:00</committed-date>
  <authored-date>2009-05-13T15:35:28-07:00</authored-date>
  <message>added rdoc task, shoved around comments to show in rdocs</message>
  <tree>374abc2b3cb992edbbc678edbd1f73a266eb6385</tree>
  <committer>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </committer>
</commit>
