lib/nanoc/base/repos/dependency_store.rb in nanoc-4.11.4 vs lib/nanoc/base/repos/dependency_store.rb in nanoc-4.11.5
- old
+ new
@@ -28,19 +28,19 @@
end
C_OBJ_SRC = Nanoc::Core::Item
C_OBJ_DST = C::Or[Nanoc::Core::Item, Nanoc::Core::Layout, Nanoc::Core::Configuration, Nanoc::Core::IdentifiableCollection]
- contract C_OBJ_SRC => C::ArrayOf[Nanoc::Int::Dependency]
+ contract C_OBJ_SRC => C::ArrayOf[Nanoc::Core::Dependency]
def dependencies_causing_outdatedness_of(object)
objects_causing_outdatedness_of(object).map do |other_object|
props = props_for(other_object, object)
- Nanoc::Int::Dependency.new(
+ Nanoc::Core::Dependency.new(
other_object,
object,
- Nanoc::Int::Props.new(
+ Nanoc::Core::DependencyProps.new(
raw_content: props.fetch(:raw_content, false),
attributes: props.fetch(:attributes, false),
compiled_content: props.fetch(:compiled_content, false),
path: props.fetch(:path, false),
),
@@ -112,11 +112,11 @@
add_vertex_for(dst)
src_ref = obj2ref(src)
dst_ref = obj2ref(dst)
- existing_props = Nanoc::Int::Props.new(@graph.props_for(dst_ref, src_ref) || {})
- new_props = Nanoc::Int::Props.new(raw_content: raw_content, attributes: attributes, compiled_content: compiled_content, path: path)
+ existing_props = Nanoc::Core::DependencyProps.new(@graph.props_for(dst_ref, src_ref) || {})
+ new_props = Nanoc::Core::DependencyProps.new(raw_content: raw_content, attributes: attributes, compiled_content: compiled_content, path: path)
props = existing_props.merge(new_props)
@graph.add_edge(dst_ref, src_ref, props: props.to_h)
end