metainspector 1.15.2 → 1.15.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ module MetaInspector
|
|
39
39
|
# Returns the parsed document title, from the content of the <title> tag.
|
40
40
|
# This is not the same as the meta_title tag
|
41
41
|
def title
|
42
|
-
@title ||= parsed_document.css('title').
|
42
|
+
@title ||= parsed_document.css('title').inner_text rescue nil
|
43
43
|
end
|
44
44
|
|
45
45
|
# A description getter that first checks for a meta description and if not present will
|
@@ -18,7 +18,7 @@ Via: 1.1 varnish
|
|
18
18
|
<head>
|
19
19
|
<meta charset=utf-8>
|
20
20
|
<link rel="alternate" type="application/rss+xml" title="PageRankAlert.com blog" href="http://feeds.feedburner.com/PageRankAlert" />
|
21
|
-
<title>PageRankAlert.com :: Track your PageRank changes</title>
|
21
|
+
<title>PageRankAlert.com :: Track your PageRank changes & receive alerts</title>
|
22
22
|
<meta name="description" content="Track your PageRank(TM) changes and receive alerts by email" />
|
23
23
|
<meta name="keywords" content="pagerank, seo, optimization, google" />
|
24
24
|
<meta name="robots" content="all,follow" />
|
data/spec/metainspector_spec.rb
CHANGED
@@ -37,7 +37,7 @@ describe MetaInspector do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
describe 'Doing a basic scrape' do
|
40
|
-
EXPECTED_TITLE = 'PageRankAlert.com :: Track your PageRank changes'
|
40
|
+
EXPECTED_TITLE = 'PageRankAlert.com :: Track your PageRank changes & receive alerts'
|
41
41
|
|
42
42
|
before(:each) do
|
43
43
|
@m = MetaInspector.new('http://pagerankalert.com')
|
@@ -389,7 +389,7 @@ describe MetaInspector do
|
|
389
389
|
@m = MetaInspector.new('http://pagerankalert.com')
|
390
390
|
@m.to_hash.should == {
|
391
391
|
"url" =>"http://pagerankalert.com/",
|
392
|
-
"title" =>"PageRankAlert.com :: Track your PageRank changes",
|
392
|
+
"title" =>"PageRankAlert.com :: Track your PageRank changes & receive alerts",
|
393
393
|
"links" => ["http://pagerankalert.com/",
|
394
394
|
"http://pagerankalert.com/es?language=es",
|
395
395
|
"http://pagerankalert.com/users/sign_up",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metainspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -204,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
204
|
version: '0'
|
205
205
|
segments:
|
206
206
|
- 0
|
207
|
-
hash:
|
207
|
+
hash: 2034097177309150262
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
209
|
none: false
|
210
210
|
requirements:
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
version: '0'
|
214
214
|
segments:
|
215
215
|
- 0
|
216
|
-
hash:
|
216
|
+
hash: 2034097177309150262
|
217
217
|
requirements: []
|
218
218
|
rubyforge_project:
|
219
219
|
rubygems_version: 1.8.25
|