Skip to content

Commit

Permalink
Add a new configuration property to disable sass warnings: disable_wa…
Browse files Browse the repository at this point in the history
…rnings
  • Loading branch information
chriseppstein committed Nov 15, 2010
1 parent 412468d commit 8e2b5f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions doc-src/content/tutorials/configuration-reference.markdown
Expand Up @@ -202,6 +202,13 @@ command line will override the corresponding settings in your configuration file
approach.
</td>
</tr>
<tr>
<td style="vertical-align:top;"><code>disable_warnings</code> </td>
<td style="vertical-align:top;">Boolean </td>
<td style="vertical-align:top;">
Set this to true to silence deprecation warnings.
</td>
</tr>
<tr>
<td style="vertical-align:top;"><code>sass_options</code> </td>
<td style="vertical-align:top;">Hash </td>
Expand Down
4 changes: 2 additions & 2 deletions lib/compass/commands/update_project.rb
Expand Up @@ -47,10 +47,10 @@ def dry_run?

def new_compiler_instance(additional_options = {})
compiler_opts = Compass.sass_engine_options
compiler_opts.merge!(:quiet => options[:quiet],
:force => options[:force],
compiler_opts.merge!(:force => options[:force],
:sass_files => explicit_sass_files,
:dry_run => options[:dry_run])
compiler_opts[:quiet] = options[:quiet] if options[:quiet]
compiler_opts.merge!(additional_options)
Compass::Compiler.new(working_path,
Compass.configuration.sass_path,
Expand Down
3 changes: 2 additions & 1 deletion lib/compass/configuration.rb
Expand Up @@ -36,7 +36,8 @@ def self.attributes_for_directory(dir_name, http_dir_name = dir_name)
:asset_cache_buster,
:line_comments,
:color_output,
:preferred_syntax
:preferred_syntax,
:disable_warnings
].flatten

end
Expand Down
1 change: 1 addition & 0 deletions lib/compass/configuration/adapters.rb
Expand Up @@ -46,6 +46,7 @@ def to_sass_engine_options
engine_opts[:line_comments] = line_comments
engine_opts[:cache] = cache
engine_opts[:cache_location] = cache_path
engine_opts[:quiet] = disable_warnings if disable_warnings
engine_opts.merge!(sass_options || {})
end

Expand Down

0 comments on commit 8e2b5f4

Please sign in to comment.