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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 1.4.2
4
+
5
+ * Fixed bug where sites not tracked by google were returning nil instead of -1.
6
+
7
+ ## Version 1.4.1
8
+
9
+ * Broken
10
+
3
11
  ## Version 1.4.0
4
12
 
5
13
  * Made it easier to get at the list of supported trackers.
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.0"
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.0
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
- @rank = open(url(site, checksum)) {|io| io.read.scan(regex)[0][0].to_i}
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
@@ -0,0 +1,3 @@
1
+ $:.unshift "./lib/"
2
+ require 'page_rankr'
3
+ PageRankr.ranks("www.hoptoad.com")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 0
9
- version: 1.4.0
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: []