lib/duck_puncher.rb in duck_puncher-2.9.2 vs lib/duck_puncher.rb in duck_puncher-2.9.3

- old
+ new

@@ -29,10 +29,10 @@ def punch!(*names) options = names.last.is_a?(Hash) ? names.pop : {} names.each do |name| duck = Ducks[name] - log.warn %Q(Punching#{" #{options[:only]} onto"} #{name}) + log.warn %Q(Punching#{" #{options[:only]} onto" if Array(options[:only]).any?} #{name}) unless duck.punch(options) log.error %Q(Failed to punch #{name}!) end end nil