lib/page_rankr.rb in PageRankr-2.0.4 vs lib/page_rankr.rb in PageRankr-3.0.0
- old
+ new
@@ -1,11 +1,12 @@
-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")
+require File.expand_path("../page_rankr/backlinks", __FILE__)
+require File.expand_path("../page_rankr/ranks", __FILE__)
+require File.expand_path("../page_rankr/indexes", __FILE__)
module PageRankr
+ class MethodRequired < StandardError; end
+ class DomainInvalid < StandardError; end
+
class << self
def backlinks(site, *search_engines)
Backlinks.new.lookup(Site.new(site), *search_engines)
end
alias_method :backlink, :backlinks
\ No newline at end of file