lib/page_rankr/ranks/alexa_country.rb in PageRankr-4.4.1 vs lib/page_rankr/ranks/alexa_country.rb in PageRankr-4.6.0

- old
+ new

@@ -2,11 +2,11 @@ module PageRankr class Ranks class AlexaCountry include Rank - + def url "http://data.alexa.com/data" end def params @@ -18,18 +18,18 @@ # # For example, slocourts.net returns results for ca.gov, presumably because www.slocourts.ca.gov redirects # to slocourts.net. Clearly something is wrong with how Alexa handles this case and so in the event this # happens we treat the results as if there were no results. def xpath - "//popularity[contains(@url, '#{tracked_url}')]/../country/@rank" + "//country/@rank" end def supported_components - [:domain] + [:subdomain] end def name :ranks_alexa_country end end end -end \ No newline at end of file +end