lib/sportdb/config/league.rb in sportdb-config-0.0.1 vs lib/sportdb/config/league.rb in sportdb-config-0.1.0
- old
+ new
@@ -49,10 +49,10 @@
pp @leagues_latest
pp @leagues_history
%w(eng sco fr gr).each do |country|
- hash = LeagueReader.from_file( "#{Boot.data_dir}/leagues/#{country}.txt" )
+ hash = LeagueReader.read( "#{Boot.data_dir}/leagues/#{country}.txt" )
pp hash
hash.each do |season,league_hash|
if season == '*' ## assume latest / default season
@leagues_latest[ country ] = league_hash