lib/saber/tracker.rb in saber-1.1.1 vs lib/saber/tracker.rb in saber-1.2.0
- old
+ new
@@ -10,19 +10,23 @@
# bib = Tracker["bib"]
# bib.login
# bib.upload("Hello.epub.torrent")
#
module Tracker
- autoload :Base, "saber/tracker/base"
- autoload :What, "saber/tracker/what"
- autoload :BIB, "saber/tracker/bib"
-
@@trackers = {}
mattr_reader :trackers
class << self
def [](name)
+ require "saber/tracker/#{name}"
+
trackers[name]
end
end
end
end
+
+require "saber/tracker/base"
+require "saber/tracker/what"
+require "saber/tracker/bib"
+require "saber/tracker/stp"
+