lib/saber/tracker/base.rb in saber-1.2.3 vs lib/saber/tracker/base.rb in saber-1.2.4

- old
+ new

@@ -4,10 +4,12 @@ module Tracker class Base DELEGATE_METHODS = [:get] def self.inherited(child) + return if [Gazelle].include?(child) + Tracker.trackers[child.name.demodulize.underscore] = child end class << self attr_reader :tracker_name @@ -26,13 +28,13 @@ # implement BASE_URL = "" LOGIN_CHECK_PATH = "" - attr_reader :agent - attr_reader :name + attr_reader :agent, :name, :options - def initialize + def initialize(options={}) + @options = options @agent = Mechanize.new end def name self.class.tracker_name