hyperbuild 0.0.34 → 0.0.39

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: 47c6fab3ce9182fd8766ded1bddf8829760255054f61245788bc4717d6127ee5
4
- data.tar.gz: 85ab01c986d9c14e96f23bcdd72e0de9f184f9b88416ad0a086d74a8b7e0318b
3
+ metadata.gz: cf76b6eba2f31e29ec7710592cc2c4fd352c7aa4e443a5628483063a9236275d
4
+ data.tar.gz: 852918eb82dc5156f6ca7a0daa39c900fd8fa3bdd71bf0f6382a7c484684401a
5
5
  SHA512:
6
- metadata.gz: 61ca7df54a0a844e98a0ad96b7b445ae12341b482f87df5fdc8e23889865cb694b203e192d64c1e460f099d47e9cdf5b75a33f86d2dbced49eb1b0c95b8c6cb7
7
- data.tar.gz: 3daf0ebfd5eb205575f8d88963d9df42468e8be527e13483ade521709fc535bbb3059a6a0e13b98c2faf01ffc38c6aa596564ea599bcb2e670cd9cbb5fbb1155
6
+ metadata.gz: 21e6b993e37b16f0e2e00176796d3a1cc6e413c93e760b38c96869b3787a725cf809e44188d7e9cc68654a700754986f93788dfbeacae9b7024fe18dbde0fa9e
7
+ data.tar.gz: 2d9eef71e0076b4a01a016cb4283c932fc61204bc8f4f89e981077076c01e7d69ed6d5607cce35a70bb19cb23c40126e20a8cf9751881bb70f1d09d856ee5beb
data/README.md CHANGED
@@ -17,7 +17,7 @@ Available as:
17
17
 
18
18
  Speed and effectiveness of Node.js version compared to [html-minfier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize). See [bench](./bench) folder for more details.
19
19
 
20
- <img width="435" alt="Chart showing speed of HTML minifiers" src="./bench/results/average-speeds.png"> <img width="435" alt="Chart showing effectiveness of HTML minifiers" src="./bench/results/average-sizes.png">
20
+ <img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.39/average-speeds.png"> <img width="435" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.39/average-sizes.png">
21
21
 
22
22
  ## Usage
23
23
 
@@ -25,9 +25,9 @@ Speed and effectiveness of Node.js version compared to [html-minfier](https://gi
25
25
 
26
26
  ##### Get
27
27
 
28
- [Windows](https://wilsonl.in/hyperbuild/bin/0.0.34-windows-x86_64.exe) |
29
- [macOS](https://wilsonl.in/hyperbuild/bin/0.0.34-macos-x86_64) |
30
- [Linux](https://wilsonl.in/hyperbuild/bin/0.0.34-linux-x86_64)
28
+ [Windows](https://wilsonl.in/hyperbuild/bin/0.0.39-windows-x86_64.exe) |
29
+ [macOS](https://wilsonl.in/hyperbuild/bin/0.0.39-macos-x86_64) |
30
+ [Linux](https://wilsonl.in/hyperbuild/bin/0.0.39-linux-x86_64)
31
31
 
32
32
  ##### Use
33
33
 
@@ -44,7 +44,7 @@ hyperbuild --src /path/to/src.html --out /path/to/output.min.html
44
44
 
45
45
  ```toml
46
46
  [dependencies]
47
- hyperbuild = "0.0.34"
47
+ hyperbuild = "0.0.39"
48
48
  ```
49
49
 
50
50
  ##### Use
@@ -105,7 +105,7 @@ Add as a Maven dependency:
105
105
  <dependency>
106
106
  <groupId>in.wilsonl.hyperbuild</groupId>
107
107
  <artifactId>hyperbuild</artifactId>
108
- <version>0.0.34</version>
108
+ <version>0.0.39</version>
109
109
  </dependency>
110
110
  ```
111
111
 
@@ -365,10 +365,10 @@ Any entities in attribute values are decoded, and then the shortest representati
365
365
  - Single quoted, with any `'` encoded.
366
366
  - Unquoted, with `"`/`'` first character (if applicable), `>` last character (if applicable), and any whitespace encoded.
367
367
 
368
- `class` attributes have their whitespace (after any decoding) trimmed and collapsed.
368
+ `class` and `d` attributes have their whitespace (after any decoding) trimmed and collapsed.
369
369
 
370
370
  [Boolean attribute](./gen/attrs.json) values are removed.
371
- [Some attributes](./gen/attrs.json) are completely removed if their value is empty or the default value after any processing.
371
+ [Some other attributes](./gen/attrs.json) are completely removed if their value is empty or the default value after any processing.
372
372
 
373
373
  `type` attributes on `script` tags with a value equaling a [JavaScript MIME type](https://mimesniff.spec.whatwg.org/#javascript-mime-type) are removed.
374
374
 
@@ -380,10 +380,12 @@ Spaces are removed between attributes if possible.
380
380
 
381
381
  Entities are decoded if valid (see relevant parsing section) and their decoded characters as UTF-8 is shorter or equal in length.
382
382
 
383
- Numeric entities that do not refer to a valid Unicode Scalar Value are decoded to U+FFFD REPLACEMENT CHARACTER.
383
+ Numeric entities that do not refer to a valid [Unicode Scalar Value](https://www.unicode.org/glossary/#unicode_scalar_value) are replaced with the [replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character).
384
384
 
385
385
  If an entity is unintentionally formed after decoding, the leading ampersand is encoded, e.g. `&&#97;&#109;&#112;;` becomes `&ampamp;`. This is done as `&amp` is equal to or shorter than all other entity representations of characters part of an entity (`[&#a-zA-Z0-9;]`), and there is no other conflicting entity name that starts with `amp`.
386
386
 
387
+ Right chevrons after any decoding in text are encoded to `&GT` if possible or `&GT;` otherwise.
388
+
387
389
  ### Comments
388
390
 
389
391
  Comments are removed.
@@ -400,7 +402,7 @@ hyperbuild simply does HTML minification, and almost does no syntax checking or
400
402
 
401
403
  For example, this means that it's not an error to have self-closing tags, declare multiple `<body>` elements, use incorrect attribute names and values, or write something like `<br>alert('');</br>`
402
404
 
403
- However, there are some syntax requirements for speed and sanity reasons.
405
+ However, there are some syntax requirements for speed and sanity.
404
406
 
405
407
  ### Tags
406
408
 
@@ -425,7 +427,7 @@ Numeric character references that do not reference a valid [Unicode Scalar Value
425
427
  Backticks (`` ` ``) are not valid quote marks and not interpreted as such.
426
428
  However, backticks are valid attribute value quotes in Internet Explorer.
427
429
 
428
- Special handling of some attributes require case sensitive names and values. For example, `CLASS` won't be recognised as an attribute to minify, and `type="Text/JavaScript"` on a `<script>` will cause the element to be parsed as a [data block](https://html.spec.whatwg.org/dev/scripting.html#data-block) instead of JavaScript code.
430
+ Special handling of some attributes require case sensitive names and values. For example, `CLASS` won't be recognised as an attribute to minify, and `type="Text/JavaScript"` on a `<script>` will not be removed.
429
431
 
430
432
  ### Script and style
431
433
 
@@ -435,6 +437,6 @@ hyperbuild does **not** handle [escaped and double-escaped](./notes/Script%20dat
435
437
 
436
438
  ## Issues and contributions
437
439
 
438
- Contributions welcome!
440
+ Pull requests and any contributions welcome!
439
441
 
440
- If hyperbuild did something unexpected, such as misunderstood some syntax, or incorrectly did/didn't do some minification, [raise an issue](https://github.com/wilsonzlin/hyperbuild/issues) with some relevant code that causes the issue.
442
+ If hyperbuild did something unexpected, misunderstood some syntax, or incorrectly kept/removed some code, [raise an issue](https://github.com/wilsonzlin/hyperbuild/issues) with some relevant code that can be used to reproduce and investigate the issue.
@@ -11,7 +11,7 @@ class HyperbuildLoader
11
11
  end
12
12
 
13
13
  def self.lib_path
14
- File.join(__dir__, [operating_system, '-x86_64-ruby', RUBY_VERSION.split('.')[0...-1].join('.')].join(''))
14
+ File.join(__dir__, [operating_system, '-ruby', RUBY_VERSION.split('.')[0...-1].join('.')].join(''))
15
15
  end
16
16
  end
17
17
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.34
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilson Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-20 00:00:00.000000000 Z
11
+ date: 2020-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle
@@ -33,6 +33,12 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - README.md
35
35
  - lib/hyperbuild.rb
36
+ - lib/linux-ruby2.5
37
+ - lib/linux-ruby2.6
38
+ - lib/linux-ruby2.7
39
+ - lib/macos-ruby2.5
40
+ - lib/macos-ruby2.6
41
+ - lib/macos-ruby2.7
36
42
  homepage: https://github.com/wilsonzlin/hyperbuild
37
43
  licenses:
38
44
  - MIT