w3clove 0.7 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/lib/w3clove/sitemap.rb +2 -2
- data/lib/w3clove/version.rb +1 -1
- metadata +4 -3
data/README.rdoc
CHANGED
|
@@ -18,7 +18,7 @@ Pass it a starting URL to be checked, and the filename where you want your repor
|
|
|
18
18
|
|
|
19
19
|
w3clove http://ryanair.com/sitemap.xml report.html
|
|
20
20
|
|
|
21
|
-
This will validate all the internal URLs found on the starting URL, up to a maximum of
|
|
21
|
+
This will validate all the internal URLs found on the starting URL, up to a maximum of 250 URLs, and generate an HTML file with the full report.
|
|
22
22
|
|
|
23
23
|
You can pass w3clove an XML sitemap or the URL of a website; it will scrape it in search of URLs to validate.
|
|
24
24
|
|
data/lib/w3clove/sitemap.rb
CHANGED
|
@@ -16,9 +16,9 @@ module W3Clove
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
##
|
|
19
|
-
# Returns the first
|
|
19
|
+
# Returns the first 250 unique URLs from the sitemap
|
|
20
20
|
def pages
|
|
21
|
-
@pages ||= pages_in_sitemap.uniq {|p| p.url}[0..
|
|
21
|
+
@pages ||= pages_in_sitemap.uniq {|p| p.url}[0..249]
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
##
|
data/lib/w3clove/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: w3clove
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 7
|
|
9
|
-
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.7.1
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Jaime Iniesta
|
|
@@ -14,7 +15,7 @@ autorequire:
|
|
|
14
15
|
bindir: bin
|
|
15
16
|
cert_chain: []
|
|
16
17
|
|
|
17
|
-
date: 2012-06-
|
|
18
|
+
date: 2012-06-22 00:00:00 Z
|
|
18
19
|
dependencies:
|
|
19
20
|
- !ruby/object:Gem::Dependency
|
|
20
21
|
name: w3c_validators
|