lib/sportdb/reader.rb in sportdb-1.8.28 vs lib/sportdb/reader.rb in sportdb-1.8.29

- old
+ new

@@ -115,9 +115,12 @@ reader = RecordReader.new( include_path ) reader.read( name, race_id: race.id ) # e.g. 2013/04-gp-monaco.txt in formula1.db elsif name =~ /(?:^|\/)seasons/ # NB: ^seasons or also possible at-austria!/seasons reader = SeasonReader.new( include_path ) reader.read( name ) + elsif name =~ /(?:^|\/)assocs/ # NB: ^assocs or also possible national-teams!/assocs + reader = AssocReader.new( include_path ) + reader.read( name ) elsif match_stadiums_for_country( name ) do |country_key| country = Country.find_by_key!( country_key ) reader = GroundReader.new( include_path ) reader.read( name, country_id: country.id ) end