lib/sass/exec/sass_scss.rb in sass-3.4.10 vs lib/sass/exec/sass_scss.rb in sass-3.4.11

- old
+ new

@@ -40,10 +40,11 @@ if !@options[:update] && !@options[:watch] && @args.first && colon_path?(@args.first) if @args.size == 1 @args = split_colon_path(@args.first) else + @fake_update = true @options[:update] = true end end load_compass if @options[:compass] return interactive if @options[:interactive] @@ -310,9 +311,19 @@ end end dirs, files = @args.map {|name| split_colon_path(name)}. partition {|i, _| File.directory? i} + + if @fake_update && !dirs.empty? + # Issue 1602. + Sass::Util.sass_warn <<WARNING.strip +DEPRECATION WARNING: Compiling directories without --update or --watch is +deprecated and won't work in future versions of Sass. Instead use: + #{@default_syntax} --update #{@args} +WARNING + end + files.map! do |from, to| to ||= from.gsub(/\.[^.]*?$/, '.css') sourcemap = Sass::Util.sourcemap_name(to) if @options[:sourcemap] [from, to, sourcemap] end