<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-Copyright (c) 2008 Borja Mart&#237;n &lt;borjam@dagi3d.net&gt;
+Copyright (c) 2008-2009 Borja Mart&#237;n S&#225;nchez de Vivar &lt;borjam@dagi3d.net&gt;
 
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the</diff>
      <filename>MIT-LICENSE</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,19 @@
 
 ActsAsFlyingSaucer is a Ruby On Rails plugin that allows to save xhtml documents into pdf files using the Flying Saucer java library.
 
-= Usage:
+= Install
+
+Grab the last version from Github:
+
+  ./script/plugin/install git://github.com/dagi3d/acts_as_flying_saucer.git
+
+
+= Requirements
+
+JDK 1.5.x or 1.6.x
+It was tested under Mac OS X Leopard but it should work on any operating system with a compatible Java Virtual Machine
+
+= Usage
 
 Just call the acts_as_flying_saucer method inside the controller you want to enable to generate pdf documents.
 Then you can call the render_pdf method. It accepts the same options as ActionController::Base#render plus the following ones:
@@ -15,7 +27,9 @@ Then you can call the render_pdf method. It accepts the same options as ActionCo
     def create
       render_pdf :template =&gt; 'foo/pdf_template.hml.erb'
     end
-  end
+  end 
+  
+Easy as pie
   
 = Configuration
 
@@ -24,7 +38,7 @@ These are the default settings which can be overwriten in your enviroment config
   ActsAsFlyingSaucer::Config.options = {
     :java_bin =&gt; &quot;java&quot;,          # java binary
     :classpath_separator =&gt; ':',  # classpath separator. unixes system use ':' and windows ';'
-    :tmp_path =&gt; &quot;/tmp&quot;,          # path to store the temporary files
+    :tmp_path =&gt; &quot;/tmp&quot;,          # path where temporary files will be stored
   }
 
 = Roadmap
@@ -33,4 +47,4 @@ These are the default settings which can be overwriten in your enviroment config
 
 
 
-Copyright (c) 2008 Borja Mart&#237;n &lt;borjam@dagi3d.net&gt; - http://dagi3d.net, released under the MIT license
+Copyright (c) 2008-2009 Borja Mart&#237;n S&#225;nchez de Vivar &lt;borjam@dagi3d.net&gt; - http://dagi3d.net, released under the MIT license</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -54,6 +54,17 @@ module ActsAsFlyingSaucer
       })
 
       ActsAsFlyingSaucer::Xhtml2Pdf.write_pdf(generate_options)
+      
+      # sending the file to the client
+      if options.has_key?(:send_file)
+        
+        send_file_options = {
+          :filename =&gt; File.basename(output_file),
+          :x_sendfile =&gt; true,
+        }.merge(options[:send_file])
+        
+        send_file(output_file, send_file_options)
+      end
     end
 
   end</diff>
      <filename>lib/acts_as_flying_saucer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ class FooController &lt; ActionController::Base
   acts_as_flying_saucer
   
   def show
-    render_pdf :template =&gt; 'foo'
+    render_pdf :template =&gt; 'foo', :pdf_file =&gt; &quot;/Users/dagi3d/Desktop/foo.pdf&quot;
   end
   
 end</diff>
      <filename>test/acts_as_flying_saucer_test.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>README</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>5ed5220491b53f5ab3d2275e47e362edad7b3c93</id>
    </parent>
  </parents>
  <author>
    <name>dagi3d</name>
    <email>borjam@dagi3d.net</email>
  </author>
  <url>http://github.com/dagi3d/acts_as_flying_saucer/commit/2c961620335e6434cb4bed33fa2ca8f6b90dcaf6</url>
  <id>2c961620335e6434cb4bed33fa2ca8f6b90dcaf6</id>
  <committed-date>2008-12-06T07:57:44-08:00</committed-date>
  <authored-date>2008-12-06T07:57:44-08:00</authored-date>
  <message>added the send_file feature</message>
  <tree>1b24ece7c3d29e2a7b20d22109befcb6f1eee3a9</tree>
  <committer>
    <name>dagi3d</name>
    <email>borjam@dagi3d.net</email>
  </committer>
</commit>
