lib/import/pftrack.rb in tracksperanto-1.1.1 vs lib/import/pftrack.rb in tracksperanto-1.2.0
- old
+ new
@@ -1,8 +1,15 @@
class Tracksperanto::Import::PFTrack < Tracksperanto::Import::Base
- def parse(file_content)
+ def self.human_name
+ "PFTrack .2dt file"
+ end
+
+ def self.distinct_file_ext
+ ".2dt"
+ end
+
+ def parse(io)
trackers = []
- io = StringIO.new(file_content)
until io.eof?
line = io.gets
next unless line
if line =~ /[AZaz]/ # Tracker with a name
\ No newline at end of file