PageRankr 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/.travis.yml +0 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile +2 -1
- data/lib/page_rankr/site.rb +4 -4
- data/lib/page_rankr/version.rb +1 -1
- data/spec/edge_cases_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml +171 -65
- data/spec/fixtures/vcr_cassettes/failure_backlinks.yml +1534 -633
- data/spec/fixtures/vcr_cassettes/failure_indexes.yml +1578 -607
- data/spec/fixtures/vcr_cassettes/failure_ranks.yml +666 -620
- data/spec/fixtures/vcr_cassettes/success_backlinks.yml +2401 -201
- data/spec/fixtures/vcr_cassettes/success_indexes.yml +2125 -135
- data/spec/fixtures/vcr_cassettes/success_ranks.yml +858 -747
- data/spec/page_rankr_spec.rb +7 -7
- metadata +96 -160
data/spec/page_rankr_spec.rb
CHANGED
@@ -23,7 +23,7 @@ describe PageRankr do
|
|
23
23
|
describe "#ranks", :focus => true do
|
24
24
|
describe "success" do
|
25
25
|
subject do
|
26
|
-
VCR.use_cassette(:success_ranks) do
|
26
|
+
VCR.use_cassette(:success_ranks, :record => :new_episodes) do
|
27
27
|
PageRankr.ranks("http://www.google.com")
|
28
28
|
end
|
29
29
|
end
|
@@ -41,7 +41,7 @@ describe PageRankr do
|
|
41
41
|
|
42
42
|
describe "failure" do
|
43
43
|
subject do
|
44
|
-
VCR.use_cassette(:failure_ranks) do
|
44
|
+
VCR.use_cassette(:failure_ranks, :record => :new_episodes) do
|
45
45
|
PageRankr.ranks("http://please-dont-register-a-site-that-breaks-this-test.com")
|
46
46
|
end
|
47
47
|
end
|
@@ -70,7 +70,7 @@ describe PageRankr do
|
|
70
70
|
describe "#backlinks" do
|
71
71
|
describe "success" do
|
72
72
|
subject do
|
73
|
-
VCR.use_cassette(:success_backlinks) do
|
73
|
+
VCR.use_cassette(:success_backlinks, :record => :new_episodes) do
|
74
74
|
PageRankr.backlinks("http://www.google.com")
|
75
75
|
end
|
76
76
|
end
|
@@ -86,7 +86,7 @@ describe PageRankr do
|
|
86
86
|
|
87
87
|
describe "failure" do
|
88
88
|
subject do
|
89
|
-
VCR.use_cassette(:failure_backlinks) do
|
89
|
+
VCR.use_cassette(:failure_backlinks, :record => :new_episodes) do
|
90
90
|
PageRankr.backlinks("http://please-dont-register-a-site-that-breaks-this-test.com")
|
91
91
|
end
|
92
92
|
end
|
@@ -111,7 +111,7 @@ describe PageRankr do
|
|
111
111
|
describe "#indexes" do
|
112
112
|
describe "success" do
|
113
113
|
subject do
|
114
|
-
VCR.use_cassette(:success_indexes) do
|
114
|
+
VCR.use_cassette(:success_indexes, :record => :new_episodes) do
|
115
115
|
PageRankr.indexes("http://www.google.com")
|
116
116
|
end
|
117
117
|
end
|
@@ -127,7 +127,7 @@ describe PageRankr do
|
|
127
127
|
|
128
128
|
describe "failure" do
|
129
129
|
subject do
|
130
|
-
VCR.use_cassette(:failure_indexes) do
|
130
|
+
VCR.use_cassette(:failure_indexes, :record => :new_episodes) do
|
131
131
|
PageRankr.indexes("http://please-dont-register-a-site-that-breaks-this-test.com")
|
132
132
|
end
|
133
133
|
end
|
@@ -144,7 +144,7 @@ describe PageRankr do
|
|
144
144
|
|
145
145
|
describe "::Site" do
|
146
146
|
[nil, '', 'batman.thedarkknight'].each do |value|
|
147
|
-
it "should raise an exception when given #{value}" do
|
147
|
+
it "should raise an exception when given #{value.inspect}" do
|
148
148
|
expect{PageRankr::Site(value)}.should raise_error(PageRankr::DomainInvalid)
|
149
149
|
end
|
150
150
|
end
|
metadata
CHANGED
@@ -1,188 +1,134 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: PageRankr
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.1.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 3.1.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Allen Madsen
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-04-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rake
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70172803542120 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :development
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rspec
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *70172803542120
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec
|
27
|
+
requirement: &70172803541560 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
hash: 23
|
43
|
-
segments:
|
44
|
-
- 2
|
45
|
-
- 6
|
46
|
-
- 0
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
47
32
|
version: 2.6.0
|
48
33
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: bundler
|
52
34
|
prerelease: false
|
53
|
-
|
35
|
+
version_requirements: *70172803541560
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bundler
|
38
|
+
requirement: &70172803540980 !ruby/object:Gem::Requirement
|
54
39
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
hash: 23
|
59
|
-
segments:
|
60
|
-
- 1
|
61
|
-
- 0
|
62
|
-
- 0
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
63
43
|
version: 1.0.0
|
64
44
|
type: :development
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: fuubar
|
68
45
|
prerelease: false
|
69
|
-
|
46
|
+
version_requirements: *70172803540980
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: fuubar
|
49
|
+
requirement: &70172803540520 !ruby/object:Gem::Requirement
|
70
50
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
hash: 29
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
- 0
|
78
|
-
- 1
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
79
54
|
version: 0.0.1
|
80
55
|
type: :development
|
81
|
-
version_requirements: *id004
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: vcr
|
84
56
|
prerelease: false
|
85
|
-
|
57
|
+
version_requirements: *70172803540520
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: vcr
|
60
|
+
requirement: &70172803540140 !ruby/object:Gem::Requirement
|
86
61
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
segments:
|
92
|
-
- 0
|
93
|
-
version: "0"
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
94
66
|
type: :development
|
95
|
-
version_requirements: *id005
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: nokogiri
|
98
67
|
prerelease: false
|
99
|
-
|
68
|
+
version_requirements: *70172803540140
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: &70172803539460 !ruby/object:Gem::Requirement
|
100
72
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
hash: 5
|
105
|
-
segments:
|
106
|
-
- 1
|
107
|
-
- 4
|
108
|
-
- 1
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
109
76
|
version: 1.4.1
|
110
77
|
type: :runtime
|
111
|
-
version_requirements: *id006
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: json
|
114
78
|
prerelease: false
|
115
|
-
|
79
|
+
version_requirements: *70172803539460
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: json
|
82
|
+
requirement: &70172803538400 !ruby/object:Gem::Requirement
|
116
83
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
hash: 11
|
121
|
-
segments:
|
122
|
-
- 1
|
123
|
-
- 4
|
124
|
-
- 6
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
125
87
|
version: 1.4.6
|
126
88
|
type: :runtime
|
127
|
-
version_requirements: *id007
|
128
|
-
- !ruby/object:Gem::Dependency
|
129
|
-
name: public_suffix
|
130
89
|
prerelease: false
|
131
|
-
|
90
|
+
version_requirements: *70172803538400
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: public_suffix
|
93
|
+
requirement: &70172803537020 !ruby/object:Gem::Requirement
|
132
94
|
none: false
|
133
|
-
requirements:
|
134
|
-
- -
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
hash: 59
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
- 9
|
140
|
-
- 0
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
141
98
|
version: 0.9.0
|
142
99
|
type: :runtime
|
143
|
-
version_requirements: *id008
|
144
|
-
- !ruby/object:Gem::Dependency
|
145
|
-
name: typhoeus
|
146
100
|
prerelease: false
|
147
|
-
|
101
|
+
version_requirements: *70172803537020
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: typhoeus
|
104
|
+
requirement: &70172803535880 !ruby/object:Gem::Requirement
|
148
105
|
none: false
|
149
|
-
requirements:
|
150
|
-
- -
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
hash: 21
|
153
|
-
segments:
|
154
|
-
- 0
|
155
|
-
- 2
|
156
|
-
- 1
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
157
109
|
version: 0.2.1
|
158
110
|
type: :runtime
|
159
|
-
version_requirements: *id009
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: jsonpath
|
162
111
|
prerelease: false
|
163
|
-
|
112
|
+
version_requirements: *70172803535880
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: jsonpath
|
115
|
+
requirement: &70172803534900 !ruby/object:Gem::Requirement
|
164
116
|
none: false
|
165
|
-
requirements:
|
166
|
-
- -
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
hash: 11
|
169
|
-
segments:
|
170
|
-
- 0
|
171
|
-
- 4
|
172
|
-
- 2
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
173
120
|
version: 0.4.2
|
174
121
|
type: :runtime
|
175
|
-
|
176
|
-
|
177
|
-
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *70172803534900
|
124
|
+
description: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and
|
125
|
+
index counts.
|
126
|
+
email:
|
178
127
|
- blatyo@gmail.com
|
179
128
|
executables: []
|
180
|
-
|
181
129
|
extensions: []
|
182
|
-
|
183
130
|
extra_rdoc_files: []
|
184
|
-
|
185
|
-
files:
|
131
|
+
files:
|
186
132
|
- .gitignore
|
187
133
|
- .rvmrc
|
188
134
|
- .travis.yml
|
@@ -229,40 +175,30 @@ files:
|
|
229
175
|
- spec/spec_helper.rb
|
230
176
|
homepage: http://github.com/blatyo/page_rankr
|
231
177
|
licenses: []
|
232
|
-
|
233
178
|
post_install_message:
|
234
179
|
rdoc_options: []
|
235
|
-
|
236
|
-
require_paths:
|
180
|
+
require_paths:
|
237
181
|
- lib
|
238
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
239
183
|
none: false
|
240
|
-
requirements:
|
241
|
-
- -
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
|
244
|
-
|
245
|
-
- 0
|
246
|
-
version: "0"
|
247
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
189
|
none: false
|
249
|
-
requirements:
|
250
|
-
- -
|
251
|
-
- !ruby/object:Gem::Version
|
252
|
-
hash: 23
|
253
|
-
segments:
|
254
|
-
- 1
|
255
|
-
- 3
|
256
|
-
- 6
|
190
|
+
requirements:
|
191
|
+
- - ! '>='
|
192
|
+
- !ruby/object:Gem::Version
|
257
193
|
version: 1.3.6
|
258
194
|
requirements: []
|
259
|
-
|
260
195
|
rubyforge_project:
|
261
|
-
rubygems_version: 1.8.
|
196
|
+
rubygems_version: 1.8.17
|
262
197
|
signing_key:
|
263
198
|
specification_version: 3
|
264
|
-
summary: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and index
|
265
|
-
|
199
|
+
summary: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and index
|
200
|
+
counts.
|
201
|
+
test_files:
|
266
202
|
- spec/edge_cases_spec.rb
|
267
203
|
- spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml
|
268
204
|
- spec/fixtures/vcr_cassettes/failure_backlinks.yml
|