lib/revs-utils.rb in revs-utils-1.0.20 vs lib/revs-utils.rb in revs-utils-1.0.21

- old
+ new

@@ -116,10 +116,13 @@ result3=false end sources << row[get_manifest_section(REGISTER)['sourceid']] end result4 = (sources.uniq.size == sources.size) - puts "sourceIDs are not all unique" unless result4 + unless result4 + puts "sourceIDs are not all unique" + puts sources.uniq.map { | e | [sources.count(e), e] }.select { | c, _ | c > 1 }.sort.reverse.map { | c, e | "#{e}: #{c}" } # show all non-unique sourceIDs and their frequency + end return (result1 && result2 && result3 && result4) end # looks at certain metadata fields in manifest to confirm validity (such as dates and formats)