PageRankr 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 2.0.4
4
+ * Fix google page rank url
5
+
3
6
  ## Version 2.0.3
4
7
  * Fix Compete scraper
5
8
 
data/README.md CHANGED
@@ -172,7 +172,8 @@ Then, just make sure you require the class and PageRankr and whenever you call P
172
172
  * [Iteration Labs, LLC](https://github.com/iterationlabs) - Compete rank tracker and domain indexes.
173
173
  * [Marc Seeger](http://www.marc-seeger.de) ([Acquia](http://www.acquia.com)) - Ignore invalid ranks that Alexa returns for incorrect sites.
174
174
  * [Rémy Coutable](https://github.com/rymai) - Update public_suffix_service gem
175
- * [Jonathan Rudenberg])(https://github.com/titanous) - Fix compete scraper
175
+ * [Jonathan Rudenberg](https://github.com/titanous) - Fix compete scraper
176
+ * [Chris Corbyn](https://github.com/d11wtq) - Fix google page rank url
176
177
 
177
178
  ## Shout Out
178
179
  Gotta give credit where credits due!
@@ -5,11 +5,11 @@ module PageRankr
5
5
  class Ranks
6
6
  class Google
7
7
  include Rank
8
-
8
+
9
9
  def initialize(site)
10
10
  @site = site
11
11
  @checksum = Checksum.generate(@site.to_s)
12
-
12
+
13
13
  request.on_complete do |response|
14
14
  @rank = if response.body =~ regex
15
15
  clean($1)
@@ -18,15 +18,15 @@ module PageRankr
18
18
  end
19
19
  end
20
20
  end
21
-
21
+
22
22
  def regex
23
23
  /Rank_\d+:\d+:(\d+)/
24
24
  end
25
25
 
26
26
  def request
27
- @request ||= Typhoeus::Request.new("http://toolbarqueries.google.com/search",
27
+ @request ||= Typhoeus::Request.new("http://toolbarqueries.google.com/tbr",
28
28
  :params => {:client => "navclient-auto", :ch => @checksum, :features => "Rank", :q => "info:#{@site.to_s}"})
29
29
  end
30
30
  end
31
31
  end
32
- end
32
+ end
@@ -1,3 +1,3 @@
1
1
  module PageRankr
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
@@ -97,7 +97,7 @@
97
97
  - !ruby/struct:VCR::HTTPInteraction
98
98
  request: !ruby/struct:VCR::Request
99
99
  method: :get
100
- uri: http://toolbarqueries.google.com:80/search?ch=63624986523&client=navclient-auto&features=Rank&q=info%3Aplease-dont-register-a-site-that-breaks-this-test.com
100
+ uri: http://toolbarqueries.google.com:80/tbr?ch=63624986523&client=navclient-auto&features=Rank&q=info%3Aplease-dont-register-a-site-that-breaks-this-test.com
101
101
  body:
102
102
  headers:
103
103
  response: !ruby/struct:VCR::Response
@@ -68,7 +68,7 @@
68
68
  - !ruby/struct:VCR::HTTPInteraction
69
69
  request: !ruby/struct:VCR::Request
70
70
  method: :get
71
- uri: http://toolbarqueries.google.com:80/search?ch=6340563836&client=navclient-auto&features=Rank&q=info%3Awww.google.com
71
+ uri: http://toolbarqueries.google.com:80/tbr?ch=6340563836&client=navclient-auto&features=Rank&q=info%3Awww.google.com
72
72
  body:
73
73
  headers:
74
74
  response: !ruby/struct:VCR::Response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PageRankr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-20 00:00:00.000000000Z
12
+ date: 2011-10-07 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70182140368480 !ruby/object:Gem::Requirement
16
+ requirement: &2153542220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70182140368480
24
+ version_requirements: *2153542220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70182140367940 !ruby/object:Gem::Requirement
27
+ requirement: &2153541640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.1.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70182140367940
35
+ version_requirements: *2153541640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70182140367440 !ruby/object:Gem::Requirement
38
+ requirement: &2153541140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70182140367440
46
+ version_requirements: *2153541140
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: fuubar
49
- requirement: &70182140366980 !ruby/object:Gem::Requirement
49
+ requirement: &2153540660 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.0.1
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70182140366980
57
+ version_requirements: *2153540660
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: vcr
60
- requirement: &70182140366600 !ruby/object:Gem::Requirement
60
+ requirement: &2153540280 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70182140366600
68
+ version_requirements: *2153540280
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
- requirement: &70182140366060 !ruby/object:Gem::Requirement
71
+ requirement: &2153539740 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.4.1
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70182140366060
79
+ version_requirements: *2153539740
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: json
82
- requirement: &70182140365560 !ruby/object:Gem::Requirement
82
+ requirement: &2153539220 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.4.6
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70182140365560
90
+ version_requirements: *2153539220
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: public_suffix_service
93
- requirement: &70182140365100 !ruby/object:Gem::Requirement
93
+ requirement: &2153538720 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 0.9.0
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70182140365100
101
+ version_requirements: *2153538720
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: typhoeus
104
- requirement: &70182140364640 !ruby/object:Gem::Requirement
104
+ requirement: &2153538240 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: 0.2.1
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70182140364640
112
+ version_requirements: *2153538240
113
113
  description: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and
114
114
  index counts.
115
115
  email:
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: 1.3.6
178
178
  requirements: []
179
179
  rubyforge_project:
180
- rubygems_version: 1.8.6
180
+ rubygems_version: 1.8.10
181
181
  signing_key:
182
182
  specification_version: 3
183
183
  summary: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and index