lib/revs-utils.rb in revs-utils-2.1.1 vs lib/revs-utils.rb in revs-utils-2.1.2

- old
+ new

@@ -94,10 +94,15 @@ total_score += (location_score * location_weight) return ((total_score/total_weights)*100).ceil end - + + # tells you if have a blank value or an array that has just blank values + def blank_value?(value) + value.class == Array ? !value.delete_if(&:blank?).any? : value.blank? + end + def revs_known_formats get_manifest_section(FORMATS) end def get_manifest_section(section)