lib/nanoc/base/compilation/dependency_tracker.rb in nanoc-3.6.7 vs lib/nanoc/base/compilation/dependency_tracker.rb in nanoc-3.6.8
- old
+ new
@@ -53,11 +53,11 @@
# Register start of visits
Nanoc::NotificationCenter.on(:visit_started, self) do |obj|
if !@stack.empty?
Nanoc::NotificationCenter.post(:dependency_created, @stack.last, obj)
- self.record_dependency(@stack.last, obj)
+ record_dependency(@stack.last, obj)
end
@stack.push(obj)
end
# Register end of visits
@@ -70,11 +70,11 @@
#
# @return [void]
def stop
# Sanity check
if !@stack.empty?
- raise "Internal inconsistency: dependency tracker stack not empty at end of compilation"
+ raise 'Internal inconsistency: dependency tracker stack not empty at end of compilation'
end
# Unregister
Nanoc::NotificationCenter.remove(:visit_started, self)
Nanoc::NotificationCenter.remove(:visit_ended, self)
@@ -157,15 +157,15 @@
@graph.delete_edges_to(object)
end
# @deprecated Use {#store} instead
def store_graph
- self.store
+ store
end
# @deprecated Use {#load} instead
def load_graph
- self.load
+ load
end
# @see Nanoc::Store#unload
def unload
@graph = Nanoc::DirectedGraph.new([ nil ] + @objects)