lib/solve/graph.rb in solve-3.1.1 vs lib/solve/graph.rb in solve-4.0.0

- old
+ new

@@ -65,11 +65,11 @@ # @return [Boolean] def ==(other) return false unless other.is_a?(Graph) return false unless artifacts.size == other.artifacts.size - self_artifacts = self.artifacts + self_artifacts = artifacts other_artifacts = other.artifacts self_dependencies = self_artifacts.inject([]) do |list, artifact| list << artifact.dependencies end.flatten @@ -77,11 +77,11 @@ other_dependencies = other_artifacts.inject([]) do |list, artifact| list << artifact.dependencies end.flatten self_dependencies.size == other_dependencies.size && - self_artifacts.all? { |artifact| other_artifacts.include?(artifact) } && - self_dependencies.all? { |dependency| other_dependencies.include?(dependency) } + self_artifacts.all? { |artifact| other_artifacts.include?(artifact) } && + self_dependencies.all? { |dependency| other_dependencies.include?(dependency) } end alias_method :eql?, :== end end