validate-website 1.8.0 → 1.8.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.
- checksums.yaml +5 -5
- data/History.md +6 -0
- data/LICENSE +1 -1
- data/README.md +29 -19
- data/Rakefile +7 -3
- data/lib/validate_website/option_parser.rb +1 -1
- data/lib/validate_website/static_link.rb +1 -0
- data/lib/validate_website/validator.rb +11 -8
- data/lib/validate_website/version.rb +1 -1
- data/man/man1/validate-website-static.1 +59 -66
- data/man/man1/validate-website.1 +60 -67
- data/test/crawler_test.rb +1 -0
- data/test/static_test.rb +1 -0
- data/test/validator_test.rb +1 -0
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b148e551f237891330dc1ebbbdb8b2c1d60217d41aac7d682293f9b85f7e3d45
|
4
|
+
data.tar.gz: '068a9f8dde45e751498d69a903d9e23b8f38a68748ef7416863b8a1c73feacec'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cba9a25bc027cf5d9a309e6077b3228b8668a8f473b89113d518ddcccca7e86a486a3059d3b74401bd5e7130a28213a4bfa02117de24918d396838d51418672
|
7
|
+
data.tar.gz: 9d99666a222c2c2dd1de6aa551c9d572d8ef68f30e13bb809924a14502032bd0698ba10ef128acb48a11571bcad8ec41234dac7eb06968e0f8c091bca97643ce
|
data/History.md
CHANGED
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2009-
|
3
|
+
Copyright (c) 2009-2018 Laurent Arnoud <laurent@spkdev.net>
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
6
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Web crawler for checking the validity of your documents
|
|
11
11
|
### Debian
|
12
12
|
|
13
13
|
~~~ console
|
14
|
-
apt install ruby-dev libxslt-dev libxml2-dev
|
14
|
+
apt install ruby-dev libxslt-dev libxml2-dev libtidy5
|
15
15
|
~~~
|
16
16
|
|
17
17
|
### RubyGems
|
@@ -35,7 +35,8 @@ Schema / DTD and not found urls (more info [doc/validate-website.adoc](https://g
|
|
35
35
|
validate-website-static checks the markup validity of your local documents with
|
36
36
|
XML Schema / DTD (more info [doc/validate-website-static.adoc](https://github.com/spk/validate-website/blob/master/doc/validate-website-static.adoc)).
|
37
37
|
|
38
|
-
HTML5 support with Validator.nu Web
|
38
|
+
HTML5 support with [libtidy5](http://www.html-tidy.org/) or [Validator.nu Web
|
39
|
+
Service](https://checker.html5.org/).
|
39
40
|
|
40
41
|
## Exit status
|
41
42
|
|
@@ -71,31 +72,27 @@ task validate: :build do
|
|
71
72
|
end
|
72
73
|
~~~
|
73
74
|
|
74
|
-
##
|
75
|
-
|
76
|
-
With standard environment:
|
77
|
-
|
78
|
-
~~~ console
|
79
|
-
bundle exec rake
|
80
|
-
~~~
|
75
|
+
## More info
|
81
76
|
|
82
|
-
|
77
|
+
### HTML5
|
83
78
|
|
84
|
-
|
85
|
-
* And Chris Kite for Anemone web-spider framework and postmodern for Spidr.
|
79
|
+
#### Tidy5
|
86
80
|
|
87
|
-
|
81
|
+
If the libtidy5 is found on your system this will be the default to validate
|
82
|
+
your html5 document. This does not depend on a tier service everything is done
|
83
|
+
locally.
|
88
84
|
|
89
|
-
|
85
|
+
#### Validator.nu web service
|
90
86
|
|
91
|
-
|
92
|
-
of your webpage is logged by a tier.
|
93
|
-
|
87
|
+
When `--html5-validator nu` option is used HTML5 support is done by using the
|
88
|
+
Validator.nu Web Service, so the content of your webpage is logged by a tier.
|
89
|
+
It's not the case for other validation because validate-website use the XML
|
90
|
+
Schema or DTD stored on the data/ directory.
|
94
91
|
|
95
92
|
Please read <http://about.validator.nu/#tos> for more info on the HTML5
|
96
93
|
validation service.
|
97
94
|
|
98
|
-
|
95
|
+
##### Use validator standalone web server locally
|
99
96
|
|
100
97
|
You can download [validator](https://github.com/validator/validator) jar and
|
101
98
|
start it with:
|
@@ -114,6 +111,19 @@ export VALIDATOR_NU_URL="http://localhost:8888/"
|
|
114
111
|
|
115
112
|
This will prevent you to be blacklisted from validator webservice.
|
116
113
|
|
114
|
+
## Tests
|
115
|
+
|
116
|
+
With standard environment:
|
117
|
+
|
118
|
+
~~~ console
|
119
|
+
bundle exec rake
|
120
|
+
~~~
|
121
|
+
|
122
|
+
## Credits
|
123
|
+
|
124
|
+
* Thanks tenderlove for Nokogiri, this tool is inspired from markup_validity.
|
125
|
+
* And Chris Kite for Anemone web-spider framework and postmodern for Spidr.
|
126
|
+
|
117
127
|
## Contributors
|
118
128
|
|
119
129
|
See [GitHub](https://github.com/spk/validate-website/graphs/contributors).
|
@@ -122,7 +132,7 @@ See [GitHub](https://github.com/spk/validate-website/graphs/contributors).
|
|
122
132
|
|
123
133
|
The MIT License
|
124
134
|
|
125
|
-
Copyright (c) 2009-
|
135
|
+
Copyright (c) 2009-2018 Laurent Arnoud <laurent@spkdev.net>
|
126
136
|
|
127
137
|
---
|
128
138
|
[](https://travis-ci.org/spk/validate-website)
|
data/Rakefile
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
require 'rake/testtask'
|
2
2
|
require 'rubocop/rake_task'
|
3
|
+
require 'asciidoctor'
|
3
4
|
|
4
|
-
task default: %i
|
5
|
+
task default: %i[test rubocop]
|
5
6
|
|
6
|
-
# install asciidoc libxml2-utils xmlto docbook-xsl docbook-xml
|
7
7
|
desc 'Update manpage from asciidoc file'
|
8
8
|
task :manpage do
|
9
|
-
|
9
|
+
Dir.glob('doc/*.adoc').each do |adoc|
|
10
|
+
Asciidoctor.convert_file adoc, to_file: true,
|
11
|
+
backend: 'manpage',
|
12
|
+
to_dir: 'man/man1'
|
13
|
+
end
|
10
14
|
end
|
11
15
|
|
12
16
|
Rake::TestTask.new do |t|
|
@@ -92,11 +92,11 @@ module ValidateWebsite
|
|
92
92
|
end
|
93
93
|
|
94
94
|
# @return [Array] contain result errors
|
95
|
-
def validate
|
96
|
-
if
|
97
|
-
self.class.xsd(@namespace).validate(xhtml_doc)
|
98
|
-
elsif document =~ /^\<!DOCTYPE html\>/i
|
95
|
+
def validate
|
96
|
+
if document =~ /^\<!DOCTYPE html\>/i
|
99
97
|
html5_validate
|
98
|
+
elsif self.class.xsd(@namespace)
|
99
|
+
self.class.xsd(@namespace).validate(xhtml_doc)
|
100
100
|
else
|
101
101
|
# dont have xsd fall back to dtd
|
102
102
|
Dir.chdir(XHTML_PATH) do
|
@@ -107,10 +107,7 @@ module ValidateWebsite
|
|
107
107
|
|
108
108
|
# http://nokogiri.org/tutorials/ensuring_well_formed_markup.html
|
109
109
|
def find_errors
|
110
|
-
|
111
|
-
Nokogiri::XML(document) { |cfg| cfg.noent.dtdload.dtdvalid }
|
112
|
-
end
|
113
|
-
@errors = validate(xhtml_doc)
|
110
|
+
@errors = validate
|
114
111
|
rescue Nokogiri::XML::SyntaxError => e
|
115
112
|
@errors << e
|
116
113
|
end
|
@@ -139,5 +136,11 @@ module ValidateWebsite
|
|
139
136
|
results = validator.validate_text(document)
|
140
137
|
errors.concat(results.errors)
|
141
138
|
end
|
139
|
+
|
140
|
+
def xhtml_doc
|
141
|
+
Dir.chdir(XHTML_PATH) do
|
142
|
+
Nokogiri::XML(document) { |cfg| cfg.noent.dtdload.dtdvalid }
|
143
|
+
end
|
144
|
+
end
|
142
145
|
end
|
143
146
|
end
|
@@ -1,130 +1,123 @@
|
|
1
1
|
'\" t
|
2
2
|
.\" Title: validate-website-static
|
3
|
-
.\" Author: [see the "
|
4
|
-
.\" Generator:
|
5
|
-
.\" Date:
|
3
|
+
.\" Author: [see the "AUTHORS" section]
|
4
|
+
.\" Generator: Asciidoctor 1.5.6.1
|
5
|
+
.\" Date: 2018-01-20
|
6
6
|
.\" Manual: \ \&
|
7
7
|
.\" Source: \ \&
|
8
8
|
.\" Language: English
|
9
9
|
.\"
|
10
|
-
.TH "VALIDATE\-WEBSITE\-
|
11
|
-
.\" -----------------------------------------------------------------
|
12
|
-
.\" * Define some portability stuff
|
13
|
-
.\" -----------------------------------------------------------------
|
14
|
-
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
15
|
-
.\" http://bugs.debian.org/507673
|
16
|
-
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
17
|
-
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
10
|
+
.TH "VALIDATE\-WEBSITE\-STATIC" "1" "2018-01-20" "\ \&" "\ \&"
|
18
11
|
.ie \n(.g .ds Aq \(aq
|
19
12
|
.el .ds Aq '
|
20
|
-
|
21
|
-
.\" * set default formatting
|
22
|
-
.\" -----------------------------------------------------------------
|
23
|
-
.\" disable hyphenation
|
13
|
+
.ss \n[.ss] 0
|
24
14
|
.nh
|
25
|
-
.\" disable justification (adjust text to left margin only)
|
26
15
|
.ad l
|
27
|
-
|
28
|
-
|
29
|
-
|
16
|
+
.de URL
|
17
|
+
\\$2 \(laURL: \\$1 \(ra\\$3
|
18
|
+
..
|
19
|
+
.if \n[.g] .mso www.tmac
|
20
|
+
.LINKSTYLE blue R < >
|
30
21
|
.SH "NAME"
|
31
|
-
validate
|
22
|
+
validate\-website\-static \- check the validity of your documents
|
32
23
|
.SH "SYNOPSIS"
|
33
24
|
.sp
|
34
|
-
\fBvalidate\-website\-static\
|
25
|
+
\fBvalidate\-website\-static\fP [\fIOPTIONS\fP]
|
35
26
|
.SH "DESCRIPTION"
|
36
27
|
.sp
|
37
|
-
validate\-website\-static check the markup validity of your local documents with
|
28
|
+
validate\-website\-static check the markup validity of your local documents with
|
29
|
+
XML Schema / DTD.
|
30
|
+
HTML5 support with Validator.nu Web Service.
|
38
31
|
.SH "OPTIONS"
|
39
|
-
.
|
40
|
-
\fB\-s\
|
32
|
+
.sp
|
33
|
+
\fB\-s\fP, \fB\-\-site\fP \fISITE\fP
|
41
34
|
.RS 4
|
42
|
-
Where static files will be hosted (Default:
|
43
|
-
http://www
|
35
|
+
Where static files will be hosted (Default: \c
|
36
|
+
.URL "http://www.example.com/" "" ")"
|
44
37
|
.RE
|
45
|
-
.
|
46
|
-
\fB\-p\
|
38
|
+
.sp
|
39
|
+
\fB\-p\fP, \fB\-\-pattern\fP \fIPATTERN\fP
|
47
40
|
.RS 4
|
48
|
-
Change filenames pattern (Default:
|
41
|
+
Change filenames pattern (Default: *\(rs*/*.html)
|
49
42
|
.RE
|
50
|
-
.
|
51
|
-
\fB\-e\
|
43
|
+
.sp
|
44
|
+
\fB\-e\fP, \fB\-\-exclude\fP \fIEXCLUDE\fP
|
52
45
|
.RS 4
|
53
|
-
Url to exclude (ex:
|
54
|
-
\fIredirect|news\fR)
|
46
|
+
Url to exclude (ex: \fIredirect|news\fP)
|
55
47
|
.RE
|
56
|
-
.
|
57
|
-
\fB\-i\
|
48
|
+
.sp
|
49
|
+
\fB\-i\fP, \fB\-\-ignore\fP \fIIGNORE\fP
|
58
50
|
.RS 4
|
59
|
-
Ignore certain validation errors (ex:
|
60
|
-
\fIautocorrect\fR)
|
51
|
+
Ignore certain validation errors (ex: \fIautocorrect\fP)
|
61
52
|
.RE
|
62
|
-
.
|
63
|
-
\fB\-m\
|
53
|
+
.sp
|
54
|
+
\fB\-m\fP, \fB\-\-[no\-]markup\fP
|
64
55
|
.RS 4
|
65
56
|
Markup validation (Default: true)
|
66
57
|
.RE
|
67
|
-
.
|
68
|
-
\fB\-\-css\-syntax\
|
58
|
+
.sp
|
59
|
+
\fB\-\-css\-syntax\fP
|
69
60
|
.RS 4
|
70
61
|
Css validation (Default: false)
|
71
62
|
.RE
|
72
|
-
.
|
73
|
-
\fB\-n\
|
63
|
+
.sp
|
64
|
+
\fB\-n\fP, \fB\-\-not\-found\fP
|
74
65
|
.RS 4
|
75
|
-
Log files not on filesystem, pwd considered as root
|
66
|
+
Log files not on filesystem, pwd considered as root « / » (Default: false)
|
76
67
|
.RE
|
77
|
-
.
|
78
|
-
\fB\-\-[no\-]color\
|
68
|
+
.sp
|
69
|
+
\fB\-\-[no\-]color\fP
|
79
70
|
.RS 4
|
80
71
|
Show colored output (Default: true)
|
81
72
|
.RE
|
82
|
-
.
|
83
|
-
\fB\-x\
|
73
|
+
.sp
|
74
|
+
\fB\-x\fP, \fB\-\-html5\-validator\fP \fIVALIDATOR\fP
|
84
75
|
.RS 4
|
85
76
|
Change default html5 validator engine (ex: tidy or nu)
|
86
77
|
.RE
|
87
|
-
.
|
88
|
-
\fB\-5\
|
78
|
+
.sp
|
79
|
+
\fB\-5\fP, \fB\-\-html5\-validator\-service\-url\fP \fIURL\fP
|
89
80
|
.RS 4
|
90
81
|
Change default html5 validator service URL for "nu" engine
|
91
82
|
.RE
|
92
|
-
.
|
93
|
-
\fB\-v\
|
83
|
+
.sp
|
84
|
+
\fB\-v\fP, \fB\-\-verbose\fP
|
94
85
|
.RS 4
|
95
|
-
Show detail of validator errors (Default: false)
|
86
|
+
Show detail of validator errors (Default: false).
|
96
87
|
.RE
|
97
|
-
.
|
98
|
-
\fB\-h\
|
88
|
+
.sp
|
89
|
+
\fB\-h\fP, \fB\-\-help\fP
|
99
90
|
.RS 4
|
100
|
-
Show help message and exit
|
91
|
+
Show help message and exit.
|
101
92
|
.RE
|
102
93
|
.SH "EXIT STATUS"
|
103
|
-
.
|
94
|
+
.sp
|
104
95
|
0
|
105
96
|
.RS 4
|
106
|
-
Markup is valid
|
97
|
+
Markup is valid.
|
107
98
|
.RE
|
108
|
-
.
|
99
|
+
.sp
|
109
100
|
64
|
110
101
|
.RS 4
|
111
|
-
Not valid markup found
|
102
|
+
Not valid markup found.
|
112
103
|
.RE
|
113
|
-
.
|
104
|
+
.sp
|
114
105
|
65
|
115
106
|
.RS 4
|
116
|
-
There are pages not found
|
107
|
+
There are pages not found.
|
117
108
|
.RE
|
118
|
-
.
|
109
|
+
.sp
|
119
110
|
66
|
120
111
|
.RS 4
|
121
|
-
There are not valid markup and pages not found
|
112
|
+
There are not valid markup and pages not found.
|
122
113
|
.RE
|
123
114
|
.SH "AUTHOR"
|
124
115
|
.sp
|
125
|
-
Laurent Arnoud
|
116
|
+
Laurent Arnoud \c
|
117
|
+
.MTO "laurent\(atspkdev.net" "Laurent Arnoud" ""
|
126
118
|
.SH "LICENSE"
|
127
119
|
.sp
|
128
120
|
The MIT License
|
129
121
|
.sp
|
130
|
-
Copyright (c) 2009\-
|
122
|
+
Copyright (c) 2009\-2018 \c
|
123
|
+
.MTO "laurent\(atspkdev.net" "Laurent Arnoud" ""
|
data/man/man1/validate-website.1
CHANGED
@@ -1,135 +1,128 @@
|
|
1
1
|
'\" t
|
2
2
|
.\" Title: validate-website
|
3
|
-
.\" Author: [see the "
|
4
|
-
.\" Generator:
|
5
|
-
.\" Date:
|
3
|
+
.\" Author: [see the "AUTHORS" section]
|
4
|
+
.\" Generator: Asciidoctor 1.5.6.1
|
5
|
+
.\" Date: 2018-01-20
|
6
6
|
.\" Manual: \ \&
|
7
7
|
.\" Source: \ \&
|
8
8
|
.\" Language: English
|
9
9
|
.\"
|
10
|
-
.TH "VALIDATE\-WEBSITE" "1" "
|
11
|
-
.\" -----------------------------------------------------------------
|
12
|
-
.\" * Define some portability stuff
|
13
|
-
.\" -----------------------------------------------------------------
|
14
|
-
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
15
|
-
.\" http://bugs.debian.org/507673
|
16
|
-
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
17
|
-
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
10
|
+
.TH "VALIDATE\-WEBSITE" "1" "2018-01-20" "\ \&" "\ \&"
|
18
11
|
.ie \n(.g .ds Aq \(aq
|
19
12
|
.el .ds Aq '
|
20
|
-
|
21
|
-
.\" * set default formatting
|
22
|
-
.\" -----------------------------------------------------------------
|
23
|
-
.\" disable hyphenation
|
13
|
+
.ss \n[.ss] 0
|
24
14
|
.nh
|
25
|
-
.\" disable justification (adjust text to left margin only)
|
26
15
|
.ad l
|
27
|
-
|
28
|
-
|
29
|
-
|
16
|
+
.de URL
|
17
|
+
\\$2 \(laURL: \\$1 \(ra\\$3
|
18
|
+
..
|
19
|
+
.if \n[.g] .mso www.tmac
|
20
|
+
.LINKSTYLE blue R < >
|
30
21
|
.SH "NAME"
|
31
|
-
validate
|
22
|
+
validate\-website \- Web crawler for checking the validity of your documents
|
32
23
|
.SH "SYNOPSIS"
|
33
24
|
.sp
|
34
|
-
\fBvalidate\-website\
|
25
|
+
\fBvalidate\-website\fP [\fIOPTIONS\fP]
|
35
26
|
.SH "DESCRIPTION"
|
36
27
|
.sp
|
37
|
-
validate\-website is a web crawler for checking the markup validity with XML
|
28
|
+
validate\-website is a web crawler for checking the markup validity with XML
|
29
|
+
Schema / DTD and not found urls.
|
30
|
+
HTML5 support with Validator.nu Web Service.
|
38
31
|
.SH "OPTIONS"
|
39
|
-
.
|
40
|
-
\fB\-s\
|
32
|
+
.sp
|
33
|
+
\fB\-s\fP, \fB\-\-site\fP \fISITE\fP
|
41
34
|
.RS 4
|
42
|
-
Website to crawl (Default:
|
43
|
-
http://localhost:3000/)
|
35
|
+
Website to crawl (Default: \c
|
36
|
+
.URL "http://localhost:3000/" "" ")"
|
44
37
|
.RE
|
45
|
-
.
|
46
|
-
\fB\-u\
|
38
|
+
.sp
|
39
|
+
\fB\-u\fP, \fB\-\-user\-agent\fP \fIUSERAGENT\fP
|
47
40
|
.RS 4
|
48
|
-
Change user agent (Default: Spidr
|
41
|
+
Change user agent (Default: Spidr.user_agent)
|
49
42
|
.RE
|
50
|
-
.
|
51
|
-
\fB\-e\
|
43
|
+
.sp
|
44
|
+
\fB\-e\fP, \fB\-\-exclude\fP \fIEXCLUDE\fP
|
52
45
|
.RS 4
|
53
|
-
Url to exclude (ex:
|
54
|
-
\fIredirect|news\fR)
|
46
|
+
Url to exclude (ex: \fIredirect|news\fP)
|
55
47
|
.RE
|
56
|
-
.
|
57
|
-
\fB\-i\
|
48
|
+
.sp
|
49
|
+
\fB\-i\fP, \fB\-\-ignore\fP \fIIGNORE\fP
|
58
50
|
.RS 4
|
59
|
-
Ignore certain validation errors (ex:
|
60
|
-
\fIautocorrect\fR)
|
51
|
+
Ignore certain validation errors (ex: \fIautocorrect\fP)
|
61
52
|
.RE
|
62
|
-
.
|
63
|
-
\fB\-c\
|
53
|
+
.sp
|
54
|
+
\fB\-c\fP, \fB\-\-cookies\fP \fICOOKIES\fP
|
64
55
|
.RS 4
|
65
56
|
Set defaults cookies
|
66
57
|
.RE
|
67
|
-
.
|
68
|
-
\fB\-m\
|
58
|
+
.sp
|
59
|
+
\fB\-m\fP, \fB\-\-[no\-]markup\fP
|
69
60
|
.RS 4
|
70
61
|
Markup validation (Default: true)
|
71
62
|
.RE
|
72
|
-
.
|
73
|
-
\fB\-\-css\-syntax\
|
63
|
+
.sp
|
64
|
+
\fB\-\-css\-syntax\fP
|
74
65
|
.RS 4
|
75
66
|
Css validation (Default: false)
|
76
67
|
.RE
|
77
|
-
.
|
78
|
-
\fB\-n\
|
68
|
+
.sp
|
69
|
+
\fB\-n\fP, \fB\-\-not\-found\fP
|
79
70
|
.RS 4
|
80
71
|
Log not found url (Default: false)
|
81
72
|
.RE
|
82
|
-
.
|
83
|
-
\fB\-\-[no\-]color\
|
73
|
+
.sp
|
74
|
+
\fB\-\-[no\-]color\fP
|
84
75
|
.RS 4
|
85
76
|
Show colored output (Default: true)
|
86
77
|
.RE
|
87
|
-
.
|
88
|
-
\fB\-x\
|
78
|
+
.sp
|
79
|
+
\fB\-x\fP, \fB\-\-html5\-validator\fP \fIVALIDATOR\fP
|
89
80
|
.RS 4
|
90
81
|
Change default html5 validator engine (ex: tidy or nu)
|
91
82
|
.RE
|
92
|
-
.
|
93
|
-
\fB\-5\
|
83
|
+
.sp
|
84
|
+
\fB\-5\fP, \fB\-\-html5\-validator\-service\-url\fP \fIURL\fP
|
94
85
|
.RS 4
|
95
86
|
Change default html5 validator service URL for "nu" engine
|
96
87
|
.RE
|
97
|
-
.
|
98
|
-
\fB\-v\
|
88
|
+
.sp
|
89
|
+
\fB\-v\fP, \fB\-\-verbose\fP
|
99
90
|
.RS 4
|
100
|
-
Show detail of validator errors (Default: false)
|
91
|
+
Show detail of validator errors (Default: false).
|
101
92
|
.RE
|
102
|
-
.
|
103
|
-
\fB\-h\
|
93
|
+
.sp
|
94
|
+
\fB\-h\fP, \fB\-\-help\fP
|
104
95
|
.RS 4
|
105
|
-
Show help message and exit
|
96
|
+
Show help message and exit.
|
106
97
|
.RE
|
107
98
|
.SH "EXIT STATUS"
|
108
|
-
.
|
99
|
+
.sp
|
109
100
|
0
|
110
101
|
.RS 4
|
111
|
-
Markup is valid and no 404 found
|
102
|
+
Markup is valid and no 404 found.
|
112
103
|
.RE
|
113
|
-
.
|
104
|
+
.sp
|
114
105
|
64
|
115
106
|
.RS 4
|
116
|
-
Not valid markup found
|
107
|
+
Not valid markup found.
|
117
108
|
.RE
|
118
|
-
.
|
109
|
+
.sp
|
119
110
|
65
|
120
111
|
.RS 4
|
121
|
-
There are pages not found
|
112
|
+
There are pages not found.
|
122
113
|
.RE
|
123
|
-
.
|
114
|
+
.sp
|
124
115
|
66
|
125
116
|
.RS 4
|
126
|
-
There are not valid markup and pages not found
|
117
|
+
There are not valid markup and pages not found.
|
127
118
|
.RE
|
128
119
|
.SH "AUTHOR"
|
129
120
|
.sp
|
130
|
-
Laurent Arnoud
|
121
|
+
Laurent Arnoud \c
|
122
|
+
.MTO "laurent\(atspkdev.net" "Laurent Arnoud" ""
|
131
123
|
.SH "LICENSE"
|
132
124
|
.sp
|
133
125
|
The MIT License
|
134
126
|
.sp
|
135
|
-
Copyright (c) 2009\-
|
127
|
+
Copyright (c) 2009\-2018 \c
|
128
|
+
.MTO "laurent\(atspkdev.net" "Laurent Arnoud" ""
|
data/test/crawler_test.rb
CHANGED
data/test/static_test.rb
CHANGED
data/test/validator_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validate-website
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent Arnoud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spidr
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '12'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '12'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: minitest
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,28 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
145
|
+
version: 0.49.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
152
|
+
version: 0.49.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: asciidoctor
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.5'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.5'
|
153
167
|
description: validate-website is a web crawler for checking the markup validity with
|
154
168
|
XML Schema / DTD and not found urls.
|
155
169
|
email: laurent@spkdev.net
|
@@ -253,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
267
|
version: '0'
|
254
268
|
requirements: []
|
255
269
|
rubyforge_project:
|
256
|
-
rubygems_version: 2.
|
270
|
+
rubygems_version: 2.7.6
|
257
271
|
signing_key:
|
258
272
|
specification_version: 4
|
259
273
|
summary: Web crawler for checking the validity of your documents
|