lib/import/shake_text.rb in tracksperanto-1.8.4 vs lib/import/shake_text.rb in tracksperanto-1.9.0
- old
+ new
@@ -5,11 +5,10 @@
"Shake .txt tracker file"
end
def parse(io)
trackers = []
- until io.eof?
- line = io.gets
+ io.each do | line |
if line =~ /TrackName (.+)/
trackers << Tracksperanto::Tracker.new{|t| t.name = $1 }
# Toss the next following string - header
io.gets
else
\ No newline at end of file