htmlbeautifier 1.4.1 → 1.4.2

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
2
  SHA256:
3
- metadata.gz: 4ad32fe5c137d828c711e50642ff3b00af14e3b8cdf18105506c1149de2c6cde
4
- data.tar.gz: d42bcce139d8a3e9a96f73735fbb068044f1f43c8d9951c89cd642bf4e996bef
3
+ metadata.gz: bd09d146c5469cdbf95c8d49a0e9b9a32d765d210a2b4c443a9d0845ab56affd
4
+ data.tar.gz: c7746bcdc9b4952257db38632bed91ba40302cb85a946db3d609f511bb815a68
5
5
  SHA512:
6
- metadata.gz: 89dc1309a74d24da1f91ec626e3a0291918c9e0ef64370d10893ee30c961bcb788efa2bc99fbdb89af96d643cf418333b6b5b6eb3ec3e54dfb164398d0cdf0b5
7
- data.tar.gz: accce8738133c66d40ddcbdc21aee322f7b68e2d9bcca81102fbecc680a5a3b021d8911587e31e0a1963f3cae166e2f436a76800feebde59da411d96cb5fe628
6
+ metadata.gz: ebbb7b47f269a6a7a508372a65f9eb58b38d87aa2d986e3fb834d8c247503f0eafe651d9002d4b0e18f4de95dcd59bf056a633d10948a090b959e86f013cd79e
7
+ data.tar.gz: 833b04c89b02eb0228442cfbf921201d4597bf9a1d994f346faf3333a0721935f68884ce6311f5b27ebad9aac79056500917f0c524119cf99f70d6b509b805fd
data/bin/htmlbeautifier CHANGED
@@ -101,12 +101,9 @@ if ARGV.any?
101
101
  end
102
102
  end
103
103
  unless failures.empty?
104
- relative_paths = failures.map { |path|
105
- Pathname.new(path).relative_path_from Dir.pwd
106
- }
107
104
  $stderr.puts [
108
105
  "Lint failed - files would be modified:",
109
- *relative_paths
106
+ *failures
110
107
  ].join("\n")
111
108
  exit 1
112
109
  end
@@ -10,10 +10,11 @@ module HtmlBeautifier
10
10
  link | meta | param | source | track | wbr
11
11
  )}mix
12
12
  HTML_BLOCK_ELEMENTS = %r{(?:
13
- address | article | aside | audio | blockquote | canvas | dd | dir | div |
14
- dl | dt | fieldset | figcaption | figure | footer | form | h1 | h2 | h3 |
15
- h4 | h5 | h6 | header | hr | li | menu | noframes | noscript | ol | p |
16
- pre | section | table | tbody | td | tfoot | th | thead | tr | ul | video
13
+ address | article | aside | audio | blockquote | canvas | dd | details |
14
+ dir | div | dl | dt | fieldset | figcaption | figure | footer | form |
15
+ h1 | h2 | h3 | h4 | h5 | h6 | header | hr | li | menu | noframes |
16
+ noscript | ol | p | pre | section | table | tbody | td | tfoot | th |
17
+ thead | tr | ul | video
17
18
  )}mix
18
19
 
19
20
  MAPPINGS = [
@@ -4,7 +4,7 @@ module HtmlBeautifier # :nodoc:
4
4
  module VERSION # :nodoc:
5
5
  MAJOR = 1
6
6
  MINOR = 4
7
- TINY = 1
7
+ TINY = 2
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY].join(".")
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmlbeautifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-05 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake