lib/page_rankr.rb in PageRankr-1.7.1 vs lib/page_rankr.rb in PageRankr-2.0.0

- old
+ new

@@ -1,33 +1,34 @@ require File.join(File.dirname(__FILE__), "page_rankr", "tracker") require File.join(File.dirname(__FILE__), "page_rankr", "backlinks") require File.join(File.dirname(__FILE__), "page_rankr", "ranks") require File.join(File.dirname(__FILE__), "page_rankr", "indexes") +require File.join(File.dirname(__FILE__), "page_rankr", "site") module PageRankr class << self def backlinks(site, *search_engines) - Backlinks.new.lookup site, *search_engines + Backlinks.new.lookup(Site.new(site), *search_engines) end alias_method :backlink, :backlinks + + def backlink_trackers + Backlinks.new.backlink_trackers + end def ranks(site, *rank_trackers) - Ranks.new.lookup site, *rank_trackers + Ranks.new.lookup(Site.new(site), *rank_trackers) end alias_method :rank, :ranks - def indexes(site, *index_trackers) - Indexes.new.lookup site, *index_trackers - end - alias_method :index, :indexes - def rank_trackers Ranks.new.rank_trackers end - def backlink_trackers - Backlinks.new.backlink_trackers + def indexes(site, *index_trackers) + Indexes.new.lookup(Site.new(site), *index_trackers) end + alias_method :index, :indexes def index_trackers Indexes.new.index_trackers end end \ No newline at end of file