<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/fixtures/src/script_with_comments.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+* Add a :strip_comments option to Secretary that is passed through to its Preprocessor. [#12 state:resolved]
+
+
+*1.0.2* (February 24, 2009)
+
 * Update the sprockets-rails installation instructions to use `script/plugin`. [#7 state:resolved]
 
 * Fix Secretary#source_last_modified not to raise an exception when one of the preprocessor's source files has been moved or deleted. (Jonathan Goldman) [#10 state:resolved]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,11 @@
 module Sprockets
   class Secretary
     DEFAULT_OPTIONS = {
-      :root         =&gt; &quot;.&quot;,
-      :load_path    =&gt; [],
-      :source_files =&gt; [],
-      :expand_paths =&gt; true
+      :root           =&gt; &quot;.&quot;,
+      :load_path      =&gt; [],
+      :source_files   =&gt; [],
+      :expand_paths   =&gt; true,
+      :strip_comments =&gt; true
     }
 
     attr_reader :environment, :preprocessor
@@ -16,7 +17,7 @@ module Sprockets
     def reset!(options = @options)
       @options = DEFAULT_OPTIONS.merge(options)
       @environment  = Sprockets::Environment.new(@options[:root])
-      @preprocessor = Sprockets::Preprocessor.new(@environment)
+      @preprocessor = Sprockets::Preprocessor.new(@environment, :strip_comments =&gt; @options[:strip_comments])
 
       add_load_locations(@options[:load_path])
       add_source_files(@options[:source_files])</diff>
      <filename>lib/sprockets/secretary.rb</filename>
    </modified>
    <modified>
      <diff>@@ -76,6 +76,12 @@ class SecretaryTest &lt; Test::Unit::TestCase
     end
   end
   
+  def test_secretary_passes_strip_comments_option_through_to_preprocessor
+    secretary = Sprockets::Secretary.new(:root =&gt; FIXTURES_PATH, :strip_comments =&gt; false)
+    secretary.add_source_file(&quot;src/script_with_comments.js&quot;)
+    assert_equal content_of_fixture(&quot;src/script_with_comments.js&quot;), secretary.concatenation.to_s
+  end
+  
   protected
     def paths_relative_to(root, *paths)
       paths.map { |path| File.join(root, path) }</diff>
      <filename>test/test_secretary.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a09372eda1328080c361a5a616dd673814d461b4</id>
    </parent>
  </parents>
  <author>
    <name>Sam Stephenson</name>
    <email>sam@37signals.com</email>
  </author>
  <url>http://github.com/sstephenson/sprockets/commit/8860b7f54d08dd4861bea1ca5de223555ad4b2c1</url>
  <id>8860b7f54d08dd4861bea1ca5de223555ad4b2c1</id>
  <committed-date>2009-03-01T17:06:28-08:00</committed-date>
  <authored-date>2009-03-01T17:06:28-08:00</authored-date>
  <message>Add a :strip_comments option to Secretary that is passed through to its Preprocessor. [#12 state:resolved]</message>
  <tree>b4b530736fc0cd4767327e8aa7891186db8b5c36</tree>
  <committer>
    <name>Sam Stephenson</name>
    <email>sam@37signals.com</email>
  </committer>
</commit>
