lib/nanoc/base/compilation/compiler.rb in nanoc-4.0.0a2 vs lib/nanoc/base/compilation/compiler.rb in nanoc-4.0.0b1

- old
+ new

@@ -334,12 +334,13 @@ begin compile_rep(rep) content_dependency_graph.delete_vertex(rep) rescue Nanoc::Int::Errors::UnmetDependency => e - content_dependency_graph.add_edge(e.rep, rep) - unless content_dependency_graph.vertices.include?(e.rep) - content_dependency_graph.add_vertex(e.rep) + other_rep = e.rep.unwrap rescue e.rep + content_dependency_graph.add_edge(other_rep, rep) + unless content_dependency_graph.vertices.include?(other_rep) + content_dependency_graph.add_vertex(other_rep) end end end # Check whether everything was compiled