diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 733b3eed..4b8d40fc 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -8,6 +8,7 @@ Bug fixes: * The line-height in the compass reset should have been 1 and not 1em. * Fixed the reference in the rails initializer to the compass configuration file. * Use the correct error formatting function based on what sass version is installed. +* Boolean properties like line_comments can now be set to false in configuration files 0.10.0.pre1 (November 29, 2009) -------------------------------- diff --git a/lib/compass/configuration/adapters.rb b/lib/compass/configuration/adapters.rb index d15c0079..a43b7f5c 100644 --- a/lib/compass/configuration/adapters.rb +++ b/lib/compass/configuration/adapters.rb @@ -18,7 +18,7 @@ module Compass end plugin_opts = {:template_location => locations} plugin_opts[:style] = output_style if output_style - plugin_opts[:line_comments] = line_comments if environment + plugin_opts[:line_comments] = line_comments plugin_opts.merge!(sass_options || {}) plugin_opts end @@ -41,7 +41,7 @@ module Compass def to_sass_engine_options engine_opts = {:load_paths => sass_load_paths} engine_opts[:style] = output_style if output_style - engine_opts[:line_comments] = line_comments if environment + engine_opts[:line_comments] = line_comments engine_opts.merge!(sass_options || {}) end diff --git a/lib/compass/configuration/serialization.rb b/lib/compass/configuration/serialization.rb index 82484724..c4c1fb27 100644 --- a/lib/compass/configuration/serialization.rb +++ b/lib/compass/configuration/serialization.rb @@ -37,7 +37,7 @@ module Compass eval(contents, bind, filename) ATTRIBUTES.each do |prop| value = eval(prop.to_s, bind) rescue nil - self.send("#{prop}=", value) if value + self.send("#{prop}=", value) unless value.nil? end if @added_import_paths self.additional_import_paths ||= []