nutils 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nutils/filters/sass.rb +9 -7
- data/lib/nutils.rb +1 -1
- metadata +4 -4
data/lib/nutils/filters/sass.rb
CHANGED
@@ -38,13 +38,15 @@ module Nutils
|
|
38
38
|
pathname = Pathname.new(filename)
|
39
39
|
item = @items.find { |i| i[:content_filename] && Pathname.new(i[:content_filename]).realpath == pathname.realpath }
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
41
|
+
unless item.nil?
|
42
|
+
# Notify
|
43
|
+
::Nanoc3::NotificationCenter.post(:visit_started, item)
|
44
|
+
::Nanoc3::NotificationCenter.post(:visit_ended, item)
|
45
|
+
|
46
|
+
# Raise unmet dependency error if item is not yet compiled
|
47
|
+
any_uncompiled_rep = item.reps.find { |r| !r.compiled? }
|
48
|
+
raise ::Nanoc3::Errors::UnmetDependency.new(any_uncompiled_rep) if any_uncompiled_rep
|
49
|
+
end
|
48
50
|
end
|
49
51
|
|
50
52
|
end
|
data/lib/nutils.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 2
|
10
|
+
version: 0.8.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Arnau Siches
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-27 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|