lib/sportdb.rb in sportdb-1.8.25 vs lib/sportdb.rb in sportdb-1.8.26
- old
+ new
@@ -1,43 +1,32 @@
# encoding: utf-8
-
###
# NB: for local testing run like:
#
# 1.9.x: ruby -Ilib lib/sportdb.rb
-# core and stlibs
+# core and stlibs (note: get included via worlddb gem; see worlddb gem/lib)
-require 'yaml'
-require 'pp'
-require 'logger' ## todo/fix: no longer needed - replaced by logutils??
-require 'fileutils'
-require 'erb'
-
# rubygems / 3rd party libs
-require 'active_record' ## todo: add sqlite3? etc.
+require 'active_record'
require 'activerecord/utils' # check - if dependency on logutils? or props? etc let others go first
+# fix: move activerecord/utils to world db - no need to require here again
-require 'logutils'
-require 'logutils/db' # NB: explict require required for LogDb (NOT automatic)
-
-require 'textutils'
-require 'tagutils'
-
-require 'props'
-require 'props/db' # NB: explict require required for ConfDb (NOT automatic) - move to textutils/deb - why/why not??
-
require 'worlddb'
require 'persondb'
+require 'logutils/db' # NB: explict require required for LogDb (NOT automatic)
+# fix: move to world db -- no need to require here
+
+
require 'fetcher' # for fetching/downloading fixtures via HTTP/HTTPS etc.
# our own code
-require 'sportdb/version'
+require 'sportdb/version' # let version always go first
require 'sportdb/patterns'
require 'sportdb/models/forward'
require 'sportdb/models/world/city'
require 'sportdb/models/world/country'
\ No newline at end of file