validate-website 1.5.3 → 1.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c65e3f9388f034ec69209330e67dc5e9632fa823
4
- data.tar.gz: 25359a6ab01c83a3efb2c37ee70eebfa113934a5
3
+ metadata.gz: 7ce92af1794347a53d3457739733edba7763f9a0
4
+ data.tar.gz: a4850cedb8fc6a991c9981118b86a11280dad0d5
5
5
  SHA512:
6
- metadata.gz: d2f71b8f527d92e028c003229b00db082af5db0a3ae687dc6f9cb317f0d266257c75a99a197990d8bd4256bce438a8122ddeba4dba4330df191ace341573cc75
7
- data.tar.gz: a130c9cc8853e06a105ca4f3f26f2081442bbf8612a5a378825b8728dab13fabb5cb72a495aea7e2379d334b1c1d9af87cf2b8a0e4d0594282c1b449f2bd81e5
6
+ metadata.gz: 1d28c35631c3f448710baae72d8b9b61f12cbebde3daed930e84c60f0b0810455f2a692a1a68d208c45e3c8ef2bd2bcf3d433905650617f77a2504efa0f1b7c4
7
+ data.tar.gz: c8e4b9d468359c3ef724c37543625a0169b18fd4a5c59dcfbfac02dc097c08dfa0b1ac2167526b97905ad8c34822fd6a91a11a2e66c4ed3cc520fe5f4424e30c
@@ -0,0 +1,387 @@
1
+
2
+ v1.5.4 / 2015-12-08
3
+ ==================
4
+
5
+ * Fix URI must be ascii only error
6
+
7
+ v1.5.3 / 2015-11-08
8
+ ==================
9
+
10
+ * Fix test_files on gemspec
11
+ * Use File.expand_path for jruby
12
+ * Update minitest and webmock
13
+ * Capture output on spec
14
+ * Move jruby-9.0.0.0 to allow failures
15
+ * Added jruby-9.0.0.0 to travis
16
+ * Options hash is mandatory on ValidateWebsite::Core
17
+ * Added rubocop on default rake task
18
+ * Remove unnecessary spacing
19
+ * Rakefile: add --display-style-guide option to rubocop
20
+
21
+ v1.5.0 / 2015-07-27
22
+ ===================
23
+
24
+ * Bump to 1.5.0
25
+ * Added license badge
26
+ * Document --css-syntax option
27
+ * Fix --pattern option only string
28
+ * Extract CSS methods to Utils class
29
+ * Added css_syntax option checking css errors
30
+ * Call method only on :not_found enabled
31
+ * Rename spec to test
32
+ * Add inch documentation badge
33
+ * Use Crass gem to extract urls
34
+ * Update README
35
+ * Only display cop on task
36
+ * Fix rubocop build and add custom task
37
+
38
+ v1.1.0 / 2015-07-07
39
+ ===================
40
+
41
+ * Bump to 1.1.0
42
+ * Enable rubocop on travis build
43
+ * Fix default_args method has too many lines
44
+ * Fix crawl#spidr_crawler ABC size
45
+ * Fix Core#validate ABC size
46
+ * Fix Static#check_static_file ABC size
47
+ * Fix Static#crawl ABC size
48
+ * Fix check_static_not_found css urls
49
+ * Refacto check_static_not_found method
50
+ * Syntax fix: use next in Enumarator
51
+ * README: typo
52
+ * Refactor: create ValidateWebsite::{Static,Crawl} classes
53
+ * Refactor Validator
54
+ * Syntax fixes
55
+ * Syntax fixes
56
+ * Update travis
57
+ * Fix markup option
58
+ * Cleanup default options
59
+ * Better args options manage between crawl and static
60
+ * Fix jruby ignore tests
61
+ * Move on stop support Ruby 1.9
62
+ * Opps forget spec data
63
+ * Fix ignore option for static crawl and non html5
64
+ * Use slop 4.2
65
+
66
+ v1.0.5 / 2015-05-25
67
+ ===================
68
+
69
+ * Bump to 1.0.5
70
+ * Added option html5-validator-service-url
71
+ * Update paint to 1.0
72
+ * Add ruby-head to travis
73
+ * Remove docker stuff [ci skip]
74
+ * Allow customize html5 validator service url
75
+
76
+ v1.0.4 / 2015-03-10
77
+ ===================
78
+
79
+ * Bump to 1.0.4
80
+ * Fix issue #12 with excessive requests to validator.nu
81
+ * Added failing test for issue #12
82
+
83
+ v1.0.3 / 2015-02-27
84
+ ===================
85
+
86
+ * Bump to 1.0.3
87
+ * Fix static not found with anchor link (see #14)
88
+ * Added fig config
89
+ * bundle update
90
+ * travis: added 2.2.0 version
91
+
92
+ v1.0.2 / 2015-02-18
93
+ ===================
94
+
95
+ * Bump to 1.0.2
96
+ * Fix issue #13
97
+ * Added failing test for issue #13
98
+ * Bump year on LICENSE file
99
+
100
+ v1.0.1 / 2015-02-15
101
+ ===================
102
+
103
+ * Bump to 1.0.1
104
+ * Revert "Remove shebang its already handle by RubyGems"
105
+ * Fix html5 validator service url (see #11)
106
+ * Update year and manpages
107
+ * Remove shebang its already handle by RubyGems
108
+ * spec/core_spec.rb: codestyle
109
+ * Use each_with_object instead of inject
110
+ * Ignore asciidoc generated files
111
+ * Extract spidr_crawler for less complexity in crawl
112
+ * Improve jekyll sample code
113
+ * Merge pull request #10 from marocchino/improve-readme
114
+ * Improve jekyll sample code
115
+
116
+ v1.0.0 / 2014-10-18
117
+ ===================
118
+
119
+ * Bump to 1.0.0 :exclamation:
120
+ * Can set cookies from command line
121
+ * Can set cookies
122
+ * Documentation update
123
+ * Options notfound => not_found
124
+ * Can change user-agent
125
+ * Move internet connection check to private
126
+ * use next instead of return for check static links
127
+ * update screenshot
128
+ * rubocop fixes (complexity, line too long)
129
+ * remove matcher rspec (obsolete)
130
+ * fix not found on static webpage
131
+ * update linuxfr webpage and add static for tests
132
+ * Fix URI::InvalidURIError
133
+ * Fix Errno::ENOENT error
134
+ * Make tests fail for static not found
135
+ * Use slop for ARGV parsing and remove some options
136
+ * Fix not_found_error and print not founds status
137
+ * Make tests fail for check_static_not_found
138
+ * Add status line
139
+
140
+ v0.9.5 / 2014-09-23
141
+ ===================
142
+
143
+ * Bump to 0.9.5
144
+ * Change internal verbose option
145
+ * Print green dot when quiet
146
+ * Fix options parser strings
147
+ * Line is too long fix
148
+ * Coding style
149
+ * Replace class var with a class instance var
150
+ * Use next to skip iteration
151
+ * Use a guard clause instead of wrapping the code
152
+ * spec wrong validation_type
153
+ * Prefer `$ERROR_INFO` from the English library over `$!`
154
+ * Use fail instead of raise to signal exceptions
155
+ * Coding style fix
156
+
157
+ v0.9.0 / 2014-09-20
158
+ ===================
159
+
160
+ * Bump to 0.9.0
161
+ * documentation update
162
+ * README: add Jekyll static site validation task
163
+ * move crawler from anemone to spidr gem
164
+
165
+ v0.8.1 / 2014-09-18
166
+ ===================
167
+
168
+ * bump to 0.8.1
169
+ * fix require set
170
+
171
+ v0.8.0 / 2014-09-18
172
+ ===================
173
+
174
+ * gemspec: fix pessimistic dependency
175
+ * gemspec: fix open-ended deps and bump to 0.8.0
176
+ * travis: remove jruby-head
177
+ * README cleanup
178
+ * README added badges and screenshot
179
+ * spec/validator_spec.rb: cleanup
180
+ * fix jruby build use Nokogiri::HTML intead of Nokogiri::XML
181
+ * travis: cache bundler
182
+ * move http testing to webmock
183
+ * travis: added config
184
+ * use set instead of array for links
185
+ * fix: use HTML5_VALIDATOR_SERVICE
186
+ * validate_website/core: code quality crawl
187
+ * validate_website/core: code quality extract_urls_from_img_script_iframe_link
188
+ * validate_website/core: code quality internet connection
189
+ * gemspec: added pry for development
190
+ * explanatory comments for classes
191
+ * validate_website/validator: code quality
192
+ * Change color gem from rainbow to paint
193
+ * Fix html5 validator spec
194
+ * README: rubygems package dont exist anymore
195
+ * Added some comment
196
+
197
+ v0.7.9 / 2013-03-18
198
+ ===================
199
+
200
+ * Bump to v0.7.9
201
+ * html5: change host because having some timeout
202
+ * README: more readeable
203
+ * README: use markdown
204
+ * Added info about internet_connection.
205
+ * Indent fakeweb_helper.
206
+
207
+ v0.7.7 / 2012-07-23
208
+ ===================
209
+
210
+ * Bump to v0.7.7
211
+ * Update doc: Use dependency package default Ruby version
212
+ * Add ignore_errors option on validate-website-static
213
+ * Add contributors and incr year.
214
+
215
+ v0.7.6 / 2012-04-18
216
+ ===================
217
+
218
+ * Bump version to 0.7.6
219
+ * Documentation for --ignore-errors
220
+ * Merge default opts on crawl and static validator.
221
+ * Add spec for :ignore_errors option
222
+ * Add -i option for ignoring certain validation err
223
+
224
+ v0.7.5 / 2012-02-07
225
+ ===================
226
+
227
+ * Bump version to 0.7.5
228
+ * Ignore *.gem files.
229
+ * Add rspec matcher be_w3c_valid
230
+ * Get errors from http://validator.nu for HTML5
231
+ * Add encodings.
232
+ * README fixes.
233
+
234
+ v0.7.1 / 2011-12-25
235
+ ===================
236
+
237
+ * Bump version to 0.7.1
238
+ * Make test fail for issue #4
239
+ * Merge pull request #4 from nono/patch-1
240
+ * Merge pull request #5 from GunioRobot/clean
241
+ * Remove whitespace [Gun.io WhitespaceBot]
242
+ * Update lib/validate_website/core.rb
243
+ * Move to minitest
244
+ * Requirement fixes for tests
245
+ * Quiet in tests
246
+ * [Documentation] Validator for use on other application.
247
+ * Remove rubygems hooks, use bundler.
248
+
249
+ v0.7.0 / 2011-06-06
250
+ ===================
251
+
252
+ * Bump version to 0.7.0
253
+ * Check CSS files urls for static files
254
+ * Cleanup, useless body variable and not_found check
255
+ * Same options parse for static and crawl
256
+ * Document --site option for validate-website-static.
257
+ * Move to private validate extract_urls check_static_not_found
258
+ * Move crawl static logic to Core class and extract urls from img script iframe
259
+ * Opps exit status 64 already used for failure markup.
260
+ * Add --color, --no-color options.
261
+ * Rescue on missing arg or invalid options parse.
262
+
263
+ v0.6.5 / 2011-06-05
264
+ ===================
265
+
266
+ * Bump version to 0.6.5
267
+ * Add some todos.
268
+ * Update dependencies.
269
+ * Use gemspec for build validate-website gem.
270
+ * README updates.
271
+ * HTML5 support using Validator.nu Web Service.
272
+ * Merge branch 'master' of github.com:spk/validate-website
273
+ * add alias for task spec
274
+ * README fix space
275
+
276
+ v0.6.1 / 2011-04-11
277
+ ===================
278
+
279
+ * Bump version to 0.6.1
280
+ * update doc and README
281
+ * Add :markup_validation and :not_found to validate-website-static
282
+ * add contributors, it is never too late
283
+ * follow recommendation from rubygems-test
284
+ * share to data directory
285
+ * Add Gemfile (bundler)
286
+
287
+ v0.6.0 / 2010-12-26
288
+ ===================
289
+
290
+ * Bump version to 0.6.0
291
+ * Add Runner class for executables
292
+ * Add option parser and document validate-website-static
293
+ * Can pass Hash options to ValidateWebsite::Core
294
+ * Add ValidateWebsite module to avoid conflicts
295
+ * Update README requirements
296
+
297
+ v0.5.7 / 2010-12-10
298
+ ===================
299
+
300
+ * Add validate-website-static executable
301
+ * Cleanup: remove spk-html5 and use upstream anemone
302
+ * ValidateWebsite code improvement for options
303
+ * Change Validator initialize argument
304
+ * Add linuxfr html5 page (should be valid)
305
+
306
+ v0.5.3 / 2010-12-05
307
+ ===================
308
+
309
+ * Bump version to 0.5.3
310
+ * Add -q, --quiet option (Only report errors)
311
+ * Improve installation documentation for Debian users
312
+ * print note on validating website
313
+ * rename internal option :error_verbose to :validate_verbose
314
+
315
+ v0.5.2 / 2010-11-05
316
+ ===================
317
+
318
+ * Bump version to 0.5.2
319
+ * Using my fork of html5 Rubygem
320
+ * Show line for html5 parser errors
321
+
322
+ v0.5.1 / 2010-11-04
323
+ ===================
324
+
325
+ * Bump version to 0.5.1
326
+ * Fix issue with 1.9.2 and CSS url (use first instead of to_s)
327
+ * Move get_url to private access
328
+ * Better requirement and remove require 'rubygems' from spec/spec_helper.rb
329
+
330
+ v0.5.0 / 2010-11-01
331
+ ===================
332
+
333
+ * Bump version to 0.5.0
334
+ * Change exit status
335
+ * Fix html4 validation by falling back to dtd validation
336
+ * Add failing test on html4 strict
337
+ * Update documentation
338
+ * Sync options with anemone
339
+ * Improve documentation and add manpage
340
+ * Add experimental html5 support
341
+ * Show properly errors with verbose option
342
+ * Update RSpec to version 2.0 and add spec task
343
+
344
+ v0.4.1 / 2010-10-24
345
+ ===================
346
+
347
+ * Bump version to 0.4.1
348
+ * Move to_file to private access
349
+ * Pass missing options to crawl (see on github #2)
350
+ * Add Validator spec file, rename and add html test on validate_website_spec
351
+
352
+ v0.4.0 / 2010-09-14
353
+ ===================
354
+
355
+ * Bump version to 0.4.0
356
+ * add lib/xhtml/xhtml-basic11.dtd file
357
+ * lib/validator.rb: cleanup and rescue on Nokogiri::XML::SyntaxError
358
+ * Add --[no-]markup-validation option
359
+ * typo capitalize help
360
+ * added debug options for anemone, and verbose option for validator errors
361
+ * include ColorfulMessages on ValidateWebsite class
362
+
363
+ v0.3.5 / 2010-08-25
364
+ ===================
365
+
366
+ * Bump version to 0.3.5 and add spec directory to pkg files
367
+ * Add default for ValidateWebsite initialize and crawl opts
368
+ * added test on css
369
+ * added development dependency: rspec and fakeweb
370
+ * Refactor validate website and crawl url in css
371
+ * updated REAME.rdoc
372
+ * added option -c for adding cookies
373
+ * added verbose option
374
+ * lib/validate_website.rb: bug fix on bad uri case bin/validate-website: minor change, use «unless» instead of «if not»
375
+ * search 404 in img, link, script and iframe tags
376
+ * Rename README to README.rdoc
377
+ * Update readme and gem spec
378
+ * Add not_found option (thanks to François de Metz)
379
+ * exit code depend of validation result
380
+ * only try to validate html file
381
+ * fix some ruby 1.9 issue
382
+ * fix some validation issue with no dtd or xsd
383
+ * update readme
384
+ * move to anemone web-spider, and use XML Schema for validation of XHTML
385
+ * add optparse options
386
+ * create a gem
387
+ * initial commit
@@ -0,0 +1,130 @@
1
+ # validate-website
2
+
3
+ ## Description
4
+
5
+ Web crawler for checking the validity of your documents
6
+
7
+ ![validate website](https://raw.github.com/spk/validate-website/master/validate-website.png)
8
+
9
+ ## Installation
10
+
11
+ ### Debian
12
+
13
+ ~~~ console
14
+ aptitude install ruby-dev libxslt-dev libxml2-dev
15
+ ~~~
16
+
17
+ ### RubyGems
18
+
19
+ ~~~ console
20
+ gem install validate-website
21
+ ~~~
22
+
23
+ ## Synopsis
24
+
25
+ ~~~ console
26
+ validate-website [OPTIONS]
27
+ validate-website-static [OPTIONS]
28
+ ~~~
29
+
30
+ ## Description
31
+
32
+ validate-website is a web crawler for checking the markup validity with XML
33
+ Schema / DTD and not found urls (more info [doc/validate-website.adoc](https://github.com/spk/validate-website/blob/master/doc/validate-website.adoc)).
34
+
35
+ validate-website-static checks the markup validity of your local documents with
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
+
38
+ HTML5 support with Validator.nu Web Service.
39
+
40
+ ## Exit status
41
+
42
+ * 0: Markup is valid and no 404 found.
43
+ * 64: Not valid markup found.
44
+ * 65: There are pages not found.
45
+ * 66: There are not valid markup and pages not found.
46
+
47
+ ## On your application
48
+
49
+ ~~~ ruby
50
+ require 'validate_website/validator'
51
+ body = '<!DOCTYPE html><html></html>'
52
+ v = ValidateWebsite::Validator.new(Nokogiri::HTML(body), body)
53
+ v.valid? # => false
54
+ ~~~
55
+
56
+ ## Jekyll static site validation
57
+
58
+ You can add this Rake task to validate a
59
+ [jekyll](https://github.com/jekyll/jekyll) site:
60
+
61
+ ~~~ ruby
62
+ desc 'validate _site with validate website'
63
+ task validate: :build do
64
+ Dir.chdir('_site') do
65
+ sh("validate-website-static --site '<CONFIG_URL>'") do |ok, res|
66
+ unless ok
67
+ puts "validate error (status = #{res.exitstatus})"
68
+ end
69
+ end
70
+ end
71
+ end
72
+ ~~~
73
+
74
+ ## Tests
75
+
76
+ With standard environment:
77
+
78
+ ~~~ console
79
+ bundle exec rake
80
+ ~~~
81
+
82
+ ## Credits
83
+
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.
86
+
87
+ ## More info
88
+
89
+ ### HTML5 validator web service
90
+
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.
94
+
95
+ Please read <http://about.validator.nu/#tos> for more info on the HTML5
96
+ validation service.
97
+
98
+ ### Use validator standalone web server locally
99
+
100
+ You can download [validator](https://github.com/validator/validator) jar and
101
+ start it with:
102
+
103
+ ~~~
104
+ java -cp PATH_TO/vnu.jar nu.validator.servlet.Main 8888
105
+ ~~~
106
+
107
+ Then you can use validate-website option:
108
+
109
+ ~~~
110
+ --html5-validator-service-url http://localhost:8888/
111
+ ~~~
112
+
113
+ This will prevent you to be blacklisted from validator webservice.
114
+
115
+ ## Contributors
116
+
117
+ See [GitHub](https://github.com/spk/validate-website/graphs/contributors).
118
+
119
+ ## License
120
+
121
+ The MIT License
122
+
123
+ Copyright (c) 2009-2015 Laurent Arnoud <laurent@spkdev.net>
124
+
125
+ ---
126
+ [![Gem Version](https://badge.fury.io/rb/validate-website.svg)](https://rubygems.org/gems/validate-website)
127
+ [![Build Status](https://secure.travis-ci.org/spk/validate-website.svg?branch=master)](https://travis-ci.org/spk/validate-website)
128
+ [![Code Climate](http://img.shields.io/codeclimate/github/spk/validate-website.svg)](https://codeclimate.com/github/spk/validate-website)
129
+ [![Inline docs](http://inch-ci.org/github/spk/validate-website.svg?branch=master)](http://inch-ci.org/github/spk/validate-website)
130
+ [![License](https://img.shields.io/github/license/spk/validate-website.svg)](http://opensource.org/licenses/MIT)