lib/sportdb/reader_zip.rb in sportdb-models-1.15.2 vs lib/sportdb/reader_zip.rb in sportdb-models-1.16.0
- old
+ new
@@ -115,9 +115,16 @@
logger.info "parsing data in zip (event) '#{name}' (#{path})..."
EventReader.from_zip( @zip_file, path, more_attribs )
end
+ def create_event_table_reader( name, more_attribs={} )
+ path = name_to_zip_entry_path( name, '.txt' ) ## NOTE: use .txt extension
+
+ logger.info "parsing data in zip (event table) '#{name}' (#{path})..."
+ EventTableReader.from_zip( @zip_file, path, more_attribs )
+ end
+
def create_game_reader( name, more_attribs={} )
## NOTE: pass in .yml as path (that is, event config!!!!)
path = name_to_zip_entry_path( name, '.yml' ) ## NOTE: use .yml extension
logger.info "parsing data in zip (fixture) '#{name}' (#{path})..."