lib/nanoc/base/repos/dependency_store.rb in nanoc-4.8.19 vs lib/nanoc/base/repos/dependency_store.rb in nanoc-4.9.0
- old
+ new
@@ -118,12 +118,12 @@
props = existing_props.merge(new_props)
@graph.add_edge(dst_ref, src_ref, props: props.to_h)
end
- def add_vertex_for(o)
- @refs2objs[obj2ref(o)] = o
+ def add_vertex_for(obj)
+ @refs2objs[obj2ref(obj)] = obj
end
# Empties the list of dependencies for the given object. This is necessary
# before recompiling the given object, because otherwise old dependencies
# will stick around and new dependencies will appear twice. This function
@@ -157,11 +157,11 @@
def refs2objs(refs)
refs.map { |r| ref2obj(r) }
end
- def props_for(a, b)
- props = @graph.props_for(obj2ref(a), obj2ref(b)) || {}
+ def props_for(from, to)
+ props = @graph.props_for(obj2ref(from), obj2ref(to)) || {}
if props.values.any? { |v| v }
props
else
{ raw_content: true, attributes: true, compiled_content: true, path: true }