lib/sportdb/reader.rb in sportdb-0.9.3 vs lib/sportdb/reader.rb in sportdb-0.9.4

- old
+ new

@@ -102,11 +102,11 @@ Prop.create!( key: "db.#{fixture_name_to_prop_key(name)}.version", value: "file.txt.#{File.mtime(path).strftime('%Y.%m.%d')}" ) end def load_fixtures_builtin( event_key, name ) # load from gem (built-in) - path = "#{SportDB.root}/db/#{name}.txt" + path = "#{SportDB.data_path}/#{name}.txt" puts "*** parsing data '#{name}' (#{path})..." reader = LineReader.new( logger, path ) @@ -115,10 +115,10 @@ Prop.create!( key: "db.#{fixture_name_to_prop_key(name)}.version", value: "sport.txt.#{SportDB::VERSION}" ) end def load_teams_builtin( name, more_values={} ) - path = "#{SportDB.root}/db/#{name}.txt" + path = "#{SportDB.data_path}/#{name}.txt" puts "*** parsing data '#{name}' (#{path})..." reader = ValuesReader.new( logger, path, more_values )