lib/page_rankr/ranks/google.rb in PageRankr-1.3.0 vs lib/page_rankr/ranks/google.rb in PageRankr-1.4.0

- old
+ new

@@ -1,12 +1,10 @@ require "open-uri" require File.join("page_rankr", "ranks", "google", "checksum") module PageRankr - class Ranks - class Google - attr_reader :rank - + class Ranks < Tracker + class Google < Rank def initialize(site) checksum = Checksum.generate(site) begin @rank = open(url(site, checksum)) {|io| io.read.scan(regex)[0][0].to_i} rescue \ No newline at end of file