haml-edge 2.3.176 → 2.3.177

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.176
1
+ 2.3.177
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.176
1
+ 2.3.177
data/lib/sass/files.rb CHANGED
@@ -79,7 +79,15 @@ If you really need #{filename}.css, import it explicitly.
79
79
  END
80
80
  return filename + '.css'
81
81
  end
82
- raise SyntaxError.new("File to import not found or unreadable: #{original_filename}.")
82
+
83
+ message = "File to import not found or unreadable: #{original_filename}.\n"
84
+ if load_paths.size == 1
85
+ message << "Load path: #{load_paths.first}"
86
+ else
87
+ message << "Load paths:\n " << load_paths.join("\n ")
88
+ end
89
+
90
+ raise SyntaxError.new(message)
83
91
  end
84
92
 
85
93
  private
data/lib/sass/plugin.rb CHANGED
@@ -396,8 +396,13 @@ module Sass
396
396
 
397
397
  def dependency_updated?(css_mtime)
398
398
  lambda do |dep|
399
- File.mtime(dep) > css_mtime ||
400
- dependencies(dep).any?(&dependency_updated?(css_mtime))
399
+ begin
400
+ File.mtime(dep) > css_mtime ||
401
+ dependencies(dep).any?(&dependency_updated?(css_mtime))
402
+ rescue Sass::SyntaxError
403
+ # If there's an error finding depenencies, default to recompiling.
404
+ true
405
+ end
401
406
  end
402
407
  end
403
408
 
@@ -57,7 +57,12 @@ MSG
57
57
  "a," => "Rules can\'t end in commas.",
58
58
  "a,\n!b = 1" => ["Rules can\'t end in commas.", 1],
59
59
  "!a = b\n :c d\n" => "Illegal nesting: Nothing may be nested beneath variable declarations.",
60
- "@import foo.sass" => "File to import not found or unreadable: foo.sass.",
60
+ "@import foo.sass" => <<MSG,
61
+ File to import not found or unreadable: foo.sass.
62
+ Load paths:
63
+ test/sass
64
+ .
65
+ MSG
61
66
  "@import templates/basic\n foo" => "Illegal nesting: Nothing may be nested beneath import directives.",
62
67
  "foo\n @import templates/basic" => "Import directives may only be used at the root of a document.",
63
68
  "foo\n @import #{File.dirname(__FILE__)}/templates/basic" => "Import directives may only be used at the root of a document.",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.176
4
+ version: 2.3.177
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum