lib/sportdb/updater.rb in sportdb-1.8.7 vs lib/sportdb/updater.rb in sportdb-1.8.8

- old
+ new

@@ -107,14 +107,16 @@ text = text.force_encoding( Encoding::UTF_8 ) logger.debug "text.encoding.name (after): #{text.encoding.name}" puts " importing/reading source..." - reader= Reader.new( '/tmp' ) # passing dummy include_path (not needed for reading from string) - + # passing dummy include_path (not needed for reading from string) + # fix: use/add proper api for reading from string e.g. read and read_file ?? etc. + reader= GameReader.new( '/tmp' ) + ## todo/fix: offer a version that lets us pass in event (not event.key) # no need for another event lookup - reader.load_fixtures_from_string( event.key, text ) + reader.read_fixtures_from_string( event.key, text ) end end def run \ No newline at end of file