Use readlines interface in shipment reader
This commit is contained in:
parent
74fc3284bf
commit
9c54ba52f6
@ -17,7 +17,7 @@ module PlanetExpressExpress
|
|||||||
current_month = 0
|
current_month = 0
|
||||||
current_year = 0
|
current_year = 0
|
||||||
|
|
||||||
io.lines.each do |line|
|
io.each_line do |line|
|
||||||
shipment = parse(line)
|
shipment = parse(line)
|
||||||
|
|
||||||
if shipment[:date].year != current_year || shipment[:date].month != current_month
|
if shipment[:date].year != current_year || shipment[:date].month != current_month
|
||||||
|
Loading…
Reference in New Issue
Block a user