w3clove 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/w3clove/version.rb +1 -1
- data/spec/samples/international.response +8 -0
- data/spec/sitemap_spec.rb +7 -1
- data/w3clove.gemspec +1 -1
- metadata +7 -7
data/lib/w3clove/version.rb
CHANGED
@@ -17,5 +17,13 @@ Via: 1.1 varnish
|
|
17
17
|
<a href="http://example.com/international">index</a>
|
18
18
|
<a href="http://example.com/romanée">Romanée</a>
|
19
19
|
<a href="http://example.com/españa">España</a>
|
20
|
+
<a href="/romanée-2">Romanée 2</a>
|
21
|
+
<a href="/españa-2">España 2</a>
|
22
|
+
<a href="/españa-2#anchor1">Anchor 1, should be ignored</a>
|
23
|
+
<a href="/españa-2#anchor2">Anchor 2, should be ignored</a>
|
24
|
+
<a href="/search?q=españa">Search España</a>
|
25
|
+
<a href="/españa-3#top">España 3 at top</a>
|
26
|
+
<a href="/search?q=camión#memé">Search Camión at Memé</a>
|
27
|
+
<a href="white space">White space</a>
|
20
28
|
</body>
|
21
29
|
</html>
|
data/spec/sitemap_spec.rb
CHANGED
@@ -106,10 +106,16 @@ describe W3Clove::Sitemap do
|
|
106
106
|
end
|
107
107
|
|
108
108
|
it "should not crash when URLs have international characters" do
|
109
|
-
@sitemap_international.pages.length.should ==
|
109
|
+
@sitemap_international.pages.length.should == 9
|
110
110
|
@sitemap_international.pages[0].url.should == 'http://example.com/international'
|
111
111
|
@sitemap_international.pages[1].url.should == 'http://example.com/romanée'
|
112
112
|
@sitemap_international.pages[2].url.should == 'http://example.com/españa'
|
113
|
+
@sitemap_international.pages[3].url.should == 'http://example.com/roman%C3%A9e-2'
|
114
|
+
@sitemap_international.pages[4].url.should == 'http://example.com/espa%C3%B1a-2'
|
115
|
+
@sitemap_international.pages[5].url.should == 'http://example.com/search?q=espa%C3%B1a'
|
116
|
+
@sitemap_international.pages[6].url.should == 'http://example.com/espa%C3%B1a-3'
|
117
|
+
@sitemap_international.pages[7].url.should == 'http://example.com/search?q=cami%C3%B3n'
|
118
|
+
@sitemap_international.pages[8].url.should == 'http://example.com/white%20space'
|
113
119
|
end
|
114
120
|
|
115
121
|
context "protocol-relative links" do
|
data/w3clove.gemspec
CHANGED
@@ -18,7 +18,7 @@ and outputs a detailed report with all errors and warnings}
|
|
18
18
|
|
19
19
|
gem.add_dependency 'w3c_validators', '~> 1.2'
|
20
20
|
gem.add_dependency 'nokogiri', '~> 1.5.3'
|
21
|
-
gem.add_dependency 'metainspector', '1.9.
|
21
|
+
gem.add_dependency 'metainspector', '1.9.9'
|
22
22
|
|
23
23
|
gem.add_development_dependency 'rspec', '~> 2.5.0'
|
24
24
|
gem.add_development_dependency 'mocha', '~> 0.11.4'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: w3clove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 8
|
10
|
+
version: 0.7.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jaime Iniesta
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-08-
|
18
|
+
date: 2012-08-13 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: w3c_validators
|
@@ -56,12 +56,12 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - "="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
59
|
+
hash: 33
|
60
60
|
segments:
|
61
61
|
- 1
|
62
62
|
- 9
|
63
|
-
-
|
64
|
-
version: 1.9.
|
63
|
+
- 9
|
64
|
+
version: 1.9.9
|
65
65
|
type: :runtime
|
66
66
|
version_requirements: *id003
|
67
67
|
- !ruby/object:Gem::Dependency
|