nutils 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- # Notify
42
- ::Nanoc3::NotificationCenter.post(:visit_started, item)
43
- ::Nanoc3::NotificationCenter.post(:visit_ended, item)
44
-
45
- # Raise unmet dependency error if item is not yet compiled
46
- any_uncompiled_rep = item.reps.find { |r| !r.compiled? }
47
- raise ::Nanoc3::Errors::UnmetDependency.new(any_uncompiled_rep) if any_uncompiled_rep
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
@@ -3,7 +3,7 @@
3
3
  module Nutils
4
4
 
5
5
  # The current nutils version.
6
- VERSION = '0.8.1'
6
+ VERSION = '0.8.2'
7
7
 
8
8
  end
9
9
 
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: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
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-26 00:00:00 -04:00
18
+ date: 2011-04-27 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency