validate-website 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2d3196fa0c3271fa922d6435a995279a40099389
4
- data.tar.gz: c78180f6adf88588d048082a6431f9061f20f0be
2
+ SHA256:
3
+ metadata.gz: b148e551f237891330dc1ebbbdb8b2c1d60217d41aac7d682293f9b85f7e3d45
4
+ data.tar.gz: '068a9f8dde45e751498d69a903d9e23b8f38a68748ef7416863b8a1c73feacec'
5
5
  SHA512:
6
- metadata.gz: 415f9b8ce3a4579747b22a9b5fddfd3948f1af9b3136529ddfd33c39afcd87099f065c7e40563235881307453b7802035da57ba07c0e87b8c4423289f57839ed
7
- data.tar.gz: 15cd19df7a2de8f764685a21e61f77160f52a9573b294639168b9d7844d712d7eab0ab432d579057045143acfb41512c97d2eea3e880d944eac159ede82fec70
6
+ metadata.gz: 8cba9a25bc027cf5d9a309e6077b3228b8668a8f473b89113d518ddcccca7e86a486a3059d3b74401bd5e7130a28213a4bfa02117de24918d396838d51418672
7
+ data.tar.gz: 9d99666a222c2c2dd1de6aa551c9d572d8ef68f30e13bb809924a14502032bd0698ba10ef128acb48a11571bcad8ec41234dac7eb06968e0f8c091bca97643ce
data/History.md CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ v1.8.1 / 2018-03-25
3
+ ===================
4
+
5
+ * Change document to local dtd only when needed
6
+ * Switch to asciidoctor to generate manpage
7
+
2
8
  v1.8.0 / 2017-08-24
3
9
  ===================
4
10
 
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2009-2017 Laurent Arnoud <laurent@spkdev.net>
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 Service.
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
- ## Tests
75
-
76
- With standard environment:
77
-
78
- ~~~ console
79
- bundle exec rake
80
- ~~~
75
+ ## More info
81
76
 
82
- ## Credits
77
+ ### HTML5
83
78
 
84
- * Thanks tenderlove for Nokogiri, this tool is inspired from markup_validity.
85
- * And Chris Kite for Anemone web-spider framework and postmodern for Spidr.
79
+ #### Tidy5
86
80
 
87
- ## More info
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
- ### HTML5 validator web service
85
+ #### Validator.nu web service
90
86
 
91
- The HTML5 support is done by using the Validator.nu Web Service, so the content
92
- of your webpage is logged by a tier. It's not the case for other validation
93
- because validate-website use the XML Schema or DTD stored on the data/ directory.
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
- ### Use validator standalone web server locally
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-2017 Laurent Arnoud <laurent@spkdev.net>
135
+ Copyright (c) 2009-2018 Laurent Arnoud <laurent@spkdev.net>
126
136
 
127
137
  ---
128
138
  [![Build](https://img.shields.io/travis-ci/spk/validate-website.svg)](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(test rubocop)
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
- system('find doc/ -type f -exec a2x -d manpage -f manpage -D man/man1 {} \;')
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|
@@ -3,7 +3,7 @@ require 'slop'
3
3
  module ValidateWebsite
4
4
  # Internal class for parse command line args
5
5
  class Parser
6
- VALID_TYPES = %i(crawl static).freeze
6
+ VALID_TYPES = %i[crawl static].freeze
7
7
 
8
8
  DEFAULT_OPTIONS = {
9
9
  site: 'http://localhost/',
@@ -3,6 +3,7 @@ require 'validate_website/utils'
3
3
  require 'validate_website/static'
4
4
  require 'spidr'
5
5
 
6
+ # rubocop:disable Metrics/BlockLength
6
7
  StaticLink = Struct.new(:link, :site) do
7
8
  def link_uri
8
9
  @link_uri = URI.parse(URI.encode(link))
@@ -92,11 +92,11 @@ module ValidateWebsite
92
92
  end
93
93
 
94
94
  # @return [Array] contain result errors
95
- def validate(xhtml_doc)
96
- if self.class.xsd(@namespace)
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
- xhtml_doc = Dir.chdir(XHTML_PATH) do
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version file for ValidateWebsite
4
4
  module ValidateWebsite
5
- VERSION = '1.8.0'.freeze
5
+ VERSION = '1.8.1'.freeze
6
6
  end
@@ -1,130 +1,123 @@
1
1
  '\" t
2
2
  .\" Title: validate-website-static
3
- .\" Author: [see the "AUTHOR" section]
4
- .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
5
- .\" Date: 06/20/2017
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\-S" "1" "06/20/2017" "\ \&" "\ \&"
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
- .\" * MAIN CONTENT STARTS HERE *
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-website-static \- check the validity of your documents
22
+ validate\-website\-static \- check the validity of your documents
32
23
  .SH "SYNOPSIS"
33
24
  .sp
34
- \fBvalidate\-website\-static\fR [\fIOPTIONS\fR]
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 XML Schema / DTD\&. HTML5 support with Validator\&.nu Web Service\&.
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
- .PP
40
- \fB\-s\fR, \fB\-\-site\fR \fISITE\fR
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\&.example\&.com/)
35
+ Where static files will be hosted (Default: \c
36
+ .URL "http://www.example.com/" "" ")"
44
37
  .RE
45
- .PP
46
- \fB\-p\fR, \fB\-\-pattern\fR \fIPATTERN\fR
38
+ .sp
39
+ \fB\-p\fP, \fB\-\-pattern\fP \fIPATTERN\fP
47
40
  .RS 4
48
- Change filenames pattern (Default: **/*\&.html)
41
+ Change filenames pattern (Default: *\(rs*/*.html)
49
42
  .RE
50
- .PP
51
- \fB\-e\fR, \fB\-\-exclude\fR \fIEXCLUDE\fR
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
- .PP
57
- \fB\-i\fR, \fB\-\-ignore\fR \fIIGNORE\fR
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
- .PP
63
- \fB\-m\fR, \fB\-\-[no\-]markup\fR
53
+ .sp
54
+ \fB\-m\fP, \fB\-\-[no\-]markup\fP
64
55
  .RS 4
65
56
  Markup validation (Default: true)
66
57
  .RE
67
- .PP
68
- \fB\-\-css\-syntax\fR
58
+ .sp
59
+ \fB\-\-css\-syntax\fP
69
60
  .RS 4
70
61
  Css validation (Default: false)
71
62
  .RE
72
- .PP
73
- \fB\-n\fR, \fB\-\-not\-found\fR
63
+ .sp
64
+ \fB\-n\fP, \fB\-\-not\-found\fP
74
65
  .RS 4
75
- Log files not on filesystem, pwd considered as root \(Fo / \(Fc (Default: false)
66
+ Log files not on filesystem, pwd considered as root « / » (Default: false)
76
67
  .RE
77
- .PP
78
- \fB\-\-[no\-]color\fR
68
+ .sp
69
+ \fB\-\-[no\-]color\fP
79
70
  .RS 4
80
71
  Show colored output (Default: true)
81
72
  .RE
82
- .PP
83
- \fB\-x\fR, \fB\-\-html5\-validator\fR \fIVALIDATOR\fR
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
- .PP
88
- \fB\-5\fR, \fB\-\-html5\-validator\-service\-url\fR \fIURL\fR
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
- .PP
93
- \fB\-v\fR, \fB\-\-verbose\fR
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
- .PP
98
- \fB\-h\fR, \fB\-\-help\fR
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
- .PP
94
+ .sp
104
95
  0
105
96
  .RS 4
106
- Markup is valid\&.
97
+ Markup is valid.
107
98
  .RE
108
- .PP
99
+ .sp
109
100
  64
110
101
  .RS 4
111
- Not valid markup found\&.
102
+ Not valid markup found.
112
103
  .RE
113
- .PP
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
- .PP
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 <laurent@spkdev\&.net>
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\-2017 Laurent Arnoud <laurent@spkdev\&.net>
122
+ Copyright (c) 2009\-2018 \c
123
+ .MTO "laurent\(atspkdev.net" "Laurent Arnoud" ""
@@ -1,135 +1,128 @@
1
1
  '\" t
2
2
  .\" Title: validate-website
3
- .\" Author: [see the "AUTHOR" section]
4
- .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
5
- .\" Date: 06/20/2017
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" "06/20/2017" "\ \&" "\ \&"
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
- .\" * MAIN CONTENT STARTS HERE *
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-website \- Web crawler for checking the validity of your documents
22
+ validate\-website \- Web crawler for checking the validity of your documents
32
23
  .SH "SYNOPSIS"
33
24
  .sp
34
- \fBvalidate\-website\fR [\fIOPTIONS\fR]
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 Schema / DTD and not found urls\&. HTML5 support with Validator\&.nu Web Service\&.
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
- .PP
40
- \fB\-s\fR, \fB\-\-site\fR \fISITE\fR
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
- .PP
46
- \fB\-u\fR, \fB\-\-user\-agent\fR \fIUSERAGENT\fR
38
+ .sp
39
+ \fB\-u\fP, \fB\-\-user\-agent\fP \fIUSERAGENT\fP
47
40
  .RS 4
48
- Change user agent (Default: Spidr\&.user_agent)
41
+ Change user agent (Default: Spidr.user_agent)
49
42
  .RE
50
- .PP
51
- \fB\-e\fR, \fB\-\-exclude\fR \fIEXCLUDE\fR
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
- .PP
57
- \fB\-i\fR, \fB\-\-ignore\fR \fIIGNORE\fR
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
- .PP
63
- \fB\-c\fR, \fB\-\-cookies\fR \fICOOKIES\fR
53
+ .sp
54
+ \fB\-c\fP, \fB\-\-cookies\fP \fICOOKIES\fP
64
55
  .RS 4
65
56
  Set defaults cookies
66
57
  .RE
67
- .PP
68
- \fB\-m\fR, \fB\-\-[no\-]markup\fR
58
+ .sp
59
+ \fB\-m\fP, \fB\-\-[no\-]markup\fP
69
60
  .RS 4
70
61
  Markup validation (Default: true)
71
62
  .RE
72
- .PP
73
- \fB\-\-css\-syntax\fR
63
+ .sp
64
+ \fB\-\-css\-syntax\fP
74
65
  .RS 4
75
66
  Css validation (Default: false)
76
67
  .RE
77
- .PP
78
- \fB\-n\fR, \fB\-\-not\-found\fR
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
- .PP
83
- \fB\-\-[no\-]color\fR
73
+ .sp
74
+ \fB\-\-[no\-]color\fP
84
75
  .RS 4
85
76
  Show colored output (Default: true)
86
77
  .RE
87
- .PP
88
- \fB\-x\fR, \fB\-\-html5\-validator\fR \fIVALIDATOR\fR
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
- .PP
93
- \fB\-5\fR, \fB\-\-html5\-validator\-service\-url\fR \fIURL\fR
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
- .PP
98
- \fB\-v\fR, \fB\-\-verbose\fR
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
- .PP
103
- \fB\-h\fR, \fB\-\-help\fR
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
- .PP
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
- .PP
104
+ .sp
114
105
  64
115
106
  .RS 4
116
- Not valid markup found\&.
107
+ Not valid markup found.
117
108
  .RE
118
- .PP
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
- .PP
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 <laurent@spkdev\&.net>
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\-2017 Laurent Arnoud <laurent@spkdev\&.net>
127
+ Copyright (c) 2009\-2018 \c
128
+ .MTO "laurent\(atspkdev.net" "Laurent Arnoud" ""
@@ -1,5 +1,6 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
+ # rubocop:disable Metrics/BlockLength
3
4
  describe ValidateWebsite::Crawl do
4
5
  before do
5
6
  WebMock.reset!
@@ -1,5 +1,6 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
+ # rubocop:disable Metrics/BlockLength
3
4
  describe ValidateWebsite::Static do
4
5
  before do
5
6
  _out, _err = capture_io do
@@ -1,5 +1,6 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
+ # rubocop:disable Metrics/BlockLength
3
4
  describe ValidateWebsite::Validator do
4
5
  let(:subject) { ValidateWebsite::Validator }
5
6
 
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.0
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: 2017-08-24 00:00:00.000000000 Z
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: '11'
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: '11'
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.43.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.43.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.5.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