lib/rubber/util.rb in rubber-2.0.8 vs lib/rubber/util.rb in rubber-2.1.0

- old
+ new

@@ -34,10 +34,10 @@ def parse_aliases(instance_aliases) aliases = [] alias_patterns = instance_aliases.to_s.strip.split(/\s*,\s*/) alias_patterns.each do |a| if a =~ /~/ - range = a.split(/~/) + range = a.split(/\s*~\s*/) range_items = (range.first..range.last).to_a raise "Invalid range, '#{a}', sequence generated no items" if range_items.size == 0 aliases.concat(range_items) else aliases << a