<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,8 @@
+* Change the CGI output generation environment variable name to &quot;sprockets_generate_output_file&quot; and use the right path in Concatenation#save_to.
+
 * Prefer &quot;vendor/gems/sprockets/lib&quot; to &quot;vendor/sprockets/lib&quot; when looking for an externaled Sprockets checkout in nph-sprockets.cgi.
 
+
 *1.0.0* (February 17, 2009)
 
 * Initial public release.</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@
 # script will search its directory and parent directories for a YAML file named
 # &quot;config/sprockets.yml&quot; in order to load configuration information.
 #
-# If you set the environment variable &quot;sprockets.generate_output_file&quot; to 
+# If you set the environment variable &quot;sprockets_generate_output_file&quot; to 
 # &quot;true&quot; the concatenation will be cached to disk. Use it in conjunction with 
 # URL rewriting to cache your Sprockets output on the first request.
 #
@@ -59,7 +59,7 @@
 # All requests to /sprockets.js will transparently proxy /nph-sprockets.cgi if
 # mysite/public/sprockets.js does not exist. In production, you can add
 #
-#     SetEnv sprockets.generate_output_file true
+#     SetEnv sprockets_generate_output_file true
 #
 # to your Apache configuration and mysites/public/sprockets.js will be cached
 # on the first request to /sprockets.js.
@@ -90,7 +90,7 @@ ensure
 end
 
 def generate_output_file?
-  (ENV[&quot;REDIRECT_sprockets.generate_output_file&quot;] || ENV[&quot;sprockets.generate_output_file&quot;]) =~ /true/i
+  (ENV[&quot;REDIRECT_sprockets_generate_output_file&quot;] || ENV[&quot;sprockets_generate_output_file&quot;]) =~ /true/i
 end
 
 configuration_file = search_upwards_for(&quot;config/sprockets.yml&quot;)
@@ -119,7 +119,7 @@ begin
     :source_files =&gt; configuration[:source_files]
   )
   
-  secretary.concatenation.save_to(configuration[:output_file]) if generate_output_file?
+  secretary.concatenation.save_to(File.join(sprockets_root, configuration[:output_file])) if generate_output_file?
   respond_with(:content =&gt; secretary.concatenation.to_s, :type =&gt; &quot;text/javascript&quot;)
   
 rescue Exception =&gt; e</diff>
      <filename>ext/nph-sprockets.cgi</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6ff59fc55c3b3ab223117cbd4276bb3b22c25c99</id>
    </parent>
  </parents>
  <author>
    <name>Sam Stephenson</name>
    <email>sam@37signals.com</email>
  </author>
  <url>http://github.com/sstephenson/sprockets/commit/9a89c253de497d9b84a665909044092262d782dd</url>
  <id>9a89c253de497d9b84a665909044092262d782dd</id>
  <committed-date>2009-02-18T10:29:19-08:00</committed-date>
  <authored-date>2009-02-18T10:29:19-08:00</authored-date>
  <message>Change the CGI output generation environment variable name to &quot;sprockets_generate_output_file&quot; and use the right path in Concatenation#save_to.</message>
  <tree>043e55ddfd48ac7b71479a00f4435abd04c9d2c8</tree>
  <committer>
    <name>Sam Stephenson</name>
    <email>sam@37signals.com</email>
  </committer>
</commit>
