lib/reactor/urls.rb in qpid_proton-0.17.0 vs lib/reactor/urls.rb in qpid_proton-0.18.0

- old
+ new

@@ -20,10 +20,15 @@ module Qpid::Proton::Reactor class URLs def initialize(values) - @values = [values].flatten + @values = values + if @values.is_a? Enumerable + @values = @values.map { |u| Qpid::Proton::URL.new(u) } + else + @values = [Qpid::Proton::URL.new(values)] + end @iter = @values.each end def next begin