lib/sass/exec/sass_scss.rb in sass-3.4.20 vs lib/sass/exec/sass_scss.rb in sass-3.4.21
- old
+ new
@@ -297,20 +297,22 @@
class << Sass::Plugin.compiler
# We have to use a class var to make this visible to #watched_file? and
# #watched_paths.
# rubocop:disable ClassVars
@@working_directory = Sass::Util.realpath('.').to_s
- # rubocop:ensable ClassVars
+ # rubocop:enable ClassVars
+ # rubocop:disable NestedMethodDefinition
def watched_file?(file)
super(file) ||
(file =~ /\.s[ac]ss$/ && file.start_with?(@@working_directory + File::SEPARATOR))
end
def watched_paths
@watched_paths ||= super + [@@working_directory]
end
+ # rubocop:enable NestedMethodDefinition
end
dirs, files = @args.map {|name| split_colon_path(name)}.
partition {|i, _| File.directory? i}
@@ -409,10 +411,11 @@
if @options[:sourcemap] != :none && @options[:sourcemap_filename]
relative_sourcemap_path = Sass::Util.relative_path_from(
@options[:sourcemap_filename], Sass::Util.pathname(@options[:output_filename]).dirname)
rendered, mapping = engine.render_with_sourcemap(relative_sourcemap_path.to_s)
write_output(rendered, output)
- write_output(mapping.to_json(
+ write_output(
+ mapping.to_json(
:type => @options[:sourcemap],
:css_path => @options[:output_filename],
:sourcemap_path => @options[:sourcemap_filename]) + "\n",
@options[:sourcemap_filename])
else