lib/mappers/base_mapper.rb in trafficbroker-mandy-0.1.9 vs lib/mappers/base_mapper.rb in trafficbroker-mandy-0.2
- old
+ new
@@ -9,10 +9,10 @@
end
end
def execute
@input.each_line do |line|
- key, value = line.split(KEY_VALUE_SEPERATOR)
+ key, value = line.split(KEY_VALUE_SEPERATOR, 2)
key, value = nil, key if value.nil?
value.chomp!
mapper(key, value)
end
end
\ No newline at end of file