# File lib/gem2rpm/helpers.rb, line 45 def self.check_str_on_conditions(str, conditions) conditions.any? do |condition| condition.is_a?(Regexp) ? condition.match(str) : condition == str end end