PageRankr 1.4.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/PageRankr.gemspec +3 -2
- data/VERSION +1 -1
- data/lib/page_rankr/ranks/google.rb +2 -2
- data/run.rb +3 -0
- metadata +3 -2
data/CHANGELOG.md
CHANGED
data/PageRankr.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{PageRankr}
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Allen Madsen"]
|
@@ -39,7 +39,8 @@ Gem::Specification.new do |s|
|
|
39
39
|
"lib/page_rankr/ranks/google.rb",
|
40
40
|
"lib/page_rankr/ranks/google/checksum.rb",
|
41
41
|
"lib/page_rankr/ranks/rank.rb",
|
42
|
-
"lib/page_rankr/tracker.rb"
|
42
|
+
"lib/page_rankr/tracker.rb",
|
43
|
+
"run.rb"
|
43
44
|
]
|
44
45
|
s.homepage = %q{http://github.com/blatyo/page_rankr}
|
45
46
|
s.rdoc_options = ["--charset=UTF-8"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.2
|
@@ -6,8 +6,8 @@ module PageRankr
|
|
6
6
|
class Google < Rank
|
7
7
|
def initialize(site)
|
8
8
|
checksum = Checksum.generate(site)
|
9
|
-
begin
|
10
|
-
|
9
|
+
@rank = begin
|
10
|
+
open(url(site, checksum)) {|io| io.read.scan(regex)[0][0].to_i}
|
11
11
|
rescue
|
12
12
|
-1
|
13
13
|
end
|
data/run.rb
ADDED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 1.4.
|
8
|
+
- 2
|
9
|
+
version: 1.4.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Allen Madsen
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- lib/page_rankr/ranks/google/checksum.rb
|
79
79
|
- lib/page_rankr/ranks/rank.rb
|
80
80
|
- lib/page_rankr/tracker.rb
|
81
|
+
- run.rb
|
81
82
|
has_rdoc: true
|
82
83
|
homepage: http://github.com/blatyo/page_rankr
|
83
84
|
licenses: []
|