lib/sportdb/reader.rb in sportdb-1.6.18 vs lib/sportdb/reader.rb in sportdb-1.7.0
- old
+ new
@@ -379,11 +379,11 @@
path = "#{include_path}/#{name_real_path}.txt"
logger.info "parsing data '#{name}' (#{path})..."
- SportDB.lang.lang = LangChecker.new.analyze( path )
+ SportDb.lang.lang = LangChecker.new.analyze( path )
reader = LineReader.new( path )
load_fixtures_worker( event_key, reader )
@@ -395,11 +395,11 @@
def load_records( name, more_attribs={} )
path = "#{include_path}/#{name}.txt"
logger.info "parsing data '#{name}' (#{path})..."
- ### SportDB.lang.lang = LangChecker.new.analyze( name, include_path )
+ ### SportDb.lang.lang = LangChecker.new.analyze( name, include_path )
reader = LineReader.new( path )
## for now: use all tracks (later filter/scope by event)
# @known_tracks = Track.known_tracks_table
@@ -474,11 +474,11 @@
def load_rosters( name )
path = "#{include_path}/#{name}.txt"
logger.info "parsing data '#{name}' (#{path})..."
- ### SportDB.lang.lang = LangChecker.new.analyze( name, include_path )
+ ### SportDb.lang.lang = LangChecker.new.analyze( name, include_path )
reader = LineReader.new( path )
## for now: use all tracks (later filter/scope by event)
# @known_tracks = Track.known_tracks_table
@@ -548,11 +548,11 @@
path = "#{include_path}/#{name}.txt"
logger.info "parsing data '#{name}' (#{path})..."
- ### SportDB.lang.lang = LangChecker.new.analyze( name, include_path )
+ ### SportDb.lang.lang = LangChecker.new.analyze( name, include_path )
reader = LineReader.new( path )
## for now: use all tracks (later filter/scope by event)
@known_tracks = Track.known_tracks_table
@@ -613,10 +613,10 @@
end # each lines
end # load_teams
private
- include SportDB::FixtureHelpers
+ include SportDb::FixtureHelpers
def load_fixtures_worker( event_key, reader )
## assume active activerecord connection
##