nanoc-checking-checks-vnu 1.1.0 → 1.2.0

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
  SHA256:
3
- metadata.gz: 5945aafcec71b3eae3b4c7a3bd0be035aeabba2ad17d0397309cd1314731aa8e
4
- data.tar.gz: 8448cdb649c767482e4ed4c885c51dd892f641463b9f7baa58aa6792414fc7b8
3
+ metadata.gz: ab798cdcabf1d553a760127aae68cf506db1b9dde12be2abc50f4d525af35bf0
4
+ data.tar.gz: 141c77ad19ee21d152e5b4cdacff83f60707853e46ecd12f459466fb3eea1621
5
5
  SHA512:
6
- metadata.gz: d0897f849e3d59edd64ae978eb179bb385a399acdcbf4710a6090843f1cc3ec0d2f995d2d0d0f521a83af7984ed5b375a94faa9b8e3d02465bc834ca48b9d560
7
- data.tar.gz: b0298b0f361aa36189ac5d0dd844a9597c72479af60e57c1529ce73e7d3f0789c272dccb07c9585f26faa822e9b38eaa4eed6d36b885e20071c594b68453a3a1
6
+ metadata.gz: 6f4dc1a39d75209d2eb73d325d7955272b49e2c2fd5b6080be5980eeba77802ea4622ac11ad01c66c77618b04c2d4ae1ce0790633050bf843d2c7a7df0735207
7
+ data.tar.gz: b1f97d40c2a72fd29c0f4ac307c4b33f62e4c357db6cc7dd4928ad47e0b60ace1df13e06e1f74c60687ea01c3ece736a10fbf5b9632dd148499a414057b90e4e
data/README.md CHANGED
@@ -38,6 +38,7 @@ Then execute:
38
38
 
39
39
  You can automatically run this check at deploy time by adding `vnu` to
40
40
  [the `checking` section of `nanoc.yaml`][nanoc-check-deploy].
41
+
41
42
  By default, CSS and SVG files are validated in addition to HTML files.
42
43
  This can be changed by configuring the check in `nanoc.yaml`:
43
44
 
@@ -48,6 +49,15 @@ checks:
48
49
  also_check_svg: no
49
50
  ```
50
51
 
52
+ You can further disable particular errors by passing a value for the
53
+ `--filterpattern` option, which takes a regex matching the whole message:
54
+
55
+ ```yaml
56
+ checks:
57
+ vnu:
58
+ filterpattern: '.*color-mix.*'
59
+ ```
60
+
51
61
  [nanoc-check-deploy]: https://nanoc.ws/doc/testing/#running-checks-before-deploying
52
62
 
53
63
  ## Contributing
@@ -13,6 +13,11 @@ module Nanoc
13
13
  if vnu_config.fetch(:also_check_svg, true)
14
14
  args << '--also-check-svg'
15
15
  end
16
+ filterpattern = vnu_config.fetch(:filterpattern, nil)
17
+ if filterpattern
18
+ args << '--filterpattern'
19
+ args << filterpattern
20
+ end
16
21
  args << @config.output_dir
17
22
 
18
23
  output = JSON.load(IO.popen(args, err: [:child, :out], &:read))
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "nanoc-checking-checks-vnu"
3
- spec.version = "1.1.0"
3
+ spec.version = "1.2.0"
4
4
  spec.authors = ["Roger Que"]
5
5
  spec.email = ["git@alerante.net"]
6
6
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-checking-checks-vnu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Que
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-03-09 00:00:00.000000000 Z
10
+ date: 2025-01-10 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: nanoc-checking
@@ -24,7 +23,6 @@ dependencies:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
25
  version: 1.0.0
27
- description:
28
26
  email:
29
27
  - git@alerante.net
30
28
  executables: []
@@ -44,7 +42,6 @@ licenses:
44
42
  metadata:
45
43
  homepage_uri: https://github.com/query/nanoc-checking-checks-vnu
46
44
  source_code_uri: https://github.com/query/nanoc-checking-checks-vnu
47
- post_install_message:
48
45
  rdoc_options: []
49
46
  require_paths:
50
47
  - lib
@@ -59,8 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
56
  - !ruby/object:Gem::Version
60
57
  version: '0'
61
58
  requirements: []
62
- rubygems_version: 3.4.6
63
- signing_key:
59
+ rubygems_version: 3.6.2
64
60
  specification_version: 4
65
61
  summary: A nanoc check for validating HTML, CSS, and SVG files with the v.Nu validator.
66
62
  test_files: []