lib/import/shake_text.rb in tracksperanto-1.1.1 vs lib/import/shake_text.rb in tracksperanto-1.2.0
- old
+ new
@@ -1,11 +1,13 @@
-require 'stringio'
class Tracksperanto::Import::ShakeText < Tracksperanto::Import::Base
- def parse(track_file_content)
+ def self.human_name
+ "Shake .txt tracker file"
+ end
+
+ def parse(io)
trackers = []
- io = StringIO.new(track_file_content)
until io.eof?
line = io.gets
if line =~ /TrackName (.+)/
trackers << Tracksperanto::Tracker.new{|t| t.name = $1 }
# Toss the next following string - header
\ No newline at end of file