From a68bd19cccdfa7d62a3fa46b1eb8190d12a25885 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Tue, 1 Jun 2010 14:13:46 -0700 Subject: [PATCH] [Sass] Suggest using --in-place when converting sass2 to sass3. --- doc-src/SASS_CHANGELOG.md | 5 +++++ lib/haml/exec.rb | 2 ++ 2 files changed, 7 insertions(+) diff --git a/doc-src/SASS_CHANGELOG.md b/doc-src/SASS_CHANGELOG.md index f14466b9..1a1077eb 100644 --- a/doc-src/SASS_CHANGELOG.md +++ b/doc-src/SASS_CHANGELOG.md @@ -3,6 +3,11 @@ * Table of contents {:toc} +## 3.0.9 (Unreleased) + +* When using `sass-convert --from sass2 --to sass --recursive`, + suggest the use of `--in-place` as well. + ## 3.0.8 [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.8). diff --git a/lib/haml/exec.rb b/lib/haml/exec.rb index c4a31ddf..8686c248 100644 --- a/lib/haml/exec.rb +++ b/lib/haml/exec.rb @@ -710,6 +710,8 @@ END end @options[:output] ||= @options[:input] + from = @options[:from] + from = :sass if from == :sass2 if @options[:to] == @options[:from] && !@options[:in_place] fmt = @options[:from] raise "Error: converting from #{fmt} to #{fmt} without --in-place"