min_html 0.18.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 976a849823090ce6aa8e7d2f448562ab300701fe95bb21f56c770c02a903a0d7
4
+ data.tar.gz: e1ea6b30ddfc6334be3f11414974a95f97797a099167bf340525574739bfe68e
5
+ SHA512:
6
+ metadata.gz: f95eea2b2d9ed46611ca75d173e2b54e064f43b68a47919da944af174988ce83772bd21c29a7c7551bf8fd3343ffdc65abcd4f5e59bdd989eeacd28ad4265a09
7
+ data.tar.gz: 4dcb1b9eceb08c8c33646d406736e694f48ba7ac9a7acdc6faa13a0ac9496a5fe2b5b4dcb7d0e573679417254963fad912abc66aea98ea9f590746bf90aebaab
data/README.md ADDED
@@ -0,0 +1,511 @@
1
+ <h1>
2
+ min-html
3
+ <img width="24" src="./icon/cli.png">
4
+ <img width="24" src="./icon/deno.png">
5
+ <img width="24" src="./icon/java.png">
6
+ <img width="24" src="./icon/nodejs.png">
7
+ <img width="24" src="./icon/python.png">
8
+ <img width="24" src="./icon/ruby.png">
9
+ <img width="24" src="./icon/rust.png">
10
+ <img width="24" src="./icon/wasm.png">
11
+ </h1>
12
+
13
+ A Rust HTML minifier meticulously optimised for speed and effectiveness, with bindings for other languages.
14
+
15
+ - Advanced minification strategy beats other minifiers in effectiveness while still being much faster.
16
+ - Handles [invalid HTML](./notes/Parsing.md) and [templating syntax](#templating-syntax).
17
+ - Uses [oxc](https://github.com/oxc-project/oxc) and [lightningcss](https://github.com/parcel-bundler/lightningcss) for super fast JS and CSS minification.
18
+
19
+ View the [changelog](./CHANGELOG.md) to see the latest updates.
20
+
21
+ ## Performance
22
+
23
+ Comparison with [html-minifier-next](https://github.com/j9t/html-minifier-next) and [minimize](https://github.com/Swaagie/minimize), run on the top web pages. [See the breakdown here.](./bench)
24
+
25
+ <img width="400" alt="Chart showing speed of HTML minifiers" src="./bench/graphs/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="./bench/graphs/average-sizes.png">
26
+
27
+ The [onepass](https://github.com/QQSHI13/min-html/tree/master/min-html-onepass) variant is even more optimised for speed. See its [README](https://github.com/QQSHI13/min-html/tree/master/min-html-onepass) for more details.
28
+
29
+ ## Compatibility and usage
30
+
31
+ <details>
32
+ <summary><img width="24" src="./icon/cli.png"> <strong>CLI</strong></summary>
33
+
34
+ The CLI is called [minhtml](./minhtml).
35
+ Precompiled binaries are available for Linux (ARM64 and x64), macOS (ARM64 and x64), and Windows (x64).
36
+ You can download them in the GitHub release.
37
+
38
+ If you have Cargo installed, you can also build and install from source: `cargo install minhtml-cli`.
39
+
40
+ ### Use
41
+
42
+ Use the `--help` argument for more details.
43
+
44
+ ```bash
45
+ minhtml --output /path/to/output.min.html --keep-closing-tags --minify-css /path/to/src.html
46
+ ```
47
+
48
+ To quickly parallel process a batch of files in place:
49
+
50
+ ```bash
51
+ minhtml --keep-closing-tags --minify-css /path/to/**/*.html
52
+ ```
53
+
54
+ </details>
55
+
56
+ <details>
57
+ <summary><img width="24" src="./icon/rust.png"> <strong>Rust</strong></summary>
58
+
59
+ ### Get
60
+
61
+ ```toml
62
+ [dependencies]
63
+ min-html = "0.18.1"
64
+ ```
65
+
66
+ ### Use
67
+
68
+ Check out the [docs](https://docs.rs/min-html) for API and usage examples.
69
+
70
+ </details>
71
+
72
+ <details>
73
+ <summary><img width="24" src="./icon/deno.png"> <strong>Deno</strong></summary>
74
+
75
+ - Package: [@minhtml/deno](https://jsr.io/@minhtml/deno/)
76
+ - Binding: [WASM](https://webassembly.org/)
77
+ - Platforms: All
78
+
79
+ ### Get
80
+
81
+ Add the JSR package:
82
+
83
+ ```
84
+ deno add jsr:@minhtml/deno
85
+ ```
86
+
87
+ ### Use
88
+
89
+ ```ts
90
+ import init, {minify} from "@minhtml/deno";
91
+
92
+ const encoder = new TextEncoder();
93
+ const decoder = new TextDecoder();
94
+
95
+ await init();
96
+
97
+ const minified = decoder.decode(minify(encoder.encode("<p> Hello, world! </p>"), { keep_spaces_between_attributes: true, keep_comments: true }));
98
+ ```
99
+
100
+ All [`Cfg` fields](https://docs.rs/min-html/latest/min_html/struct.Cfg.html) are available as snake_case properties on the object provided as the second argument; if any are not set, they default to `false`.
101
+
102
+ </details>
103
+
104
+ <details>
105
+ <summary><img width="24" src="./icon/nodejs.png"> <strong>Node.js</strong></summary>
106
+
107
+ - Package: [@minhtml/node](https://www.npmjs.com/package/@minhtml/node)
108
+ - Binding: [Neon](https://github.com/neon-bindings/neon)
109
+ - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Node.js 10.0.0 and higher
110
+
111
+ ### Get
112
+
113
+ Using npm:
114
+
115
+ ```bash
116
+ npm i @minhtml/node
117
+ ```
118
+
119
+ Using Yarn:
120
+
121
+ ```bash
122
+ yarn add @minhtml/node
123
+ ```
124
+
125
+ ### Use
126
+
127
+ TypeScript definitions are available.
128
+
129
+ ```ts
130
+ import { Buffer } from "node:buffer";
131
+ import minifyHtml from "@minhtml/node";
132
+ // Or `const minifyHtml = require("@minhtml/node")` if not using TS/ESM.
133
+
134
+ const minified = minifyHtml.minify(Buffer.from("<p> Hello, world! </p>"), { keep_spaces_between_attributes: true, keep_comments: true });
135
+ ```
136
+
137
+ All [`Cfg` fields](https://docs.rs/min-html/latest/min_html/struct.Cfg.html) are available as snake_case properties on the object provided as the second argument; if any are not set, they default to `false`.
138
+
139
+ </details>
140
+
141
+ <details>
142
+ <summary><img width="24" src="./icon/java.png"> <strong>Java</strong></summary>
143
+
144
+ - Package: [com.qqshi13.minhtml](https://search.maven.org/artifact/com.qqshi13.minhtml/min-html)
145
+ - Binding: [JNI](https://github.com/jni-rs/jni-rs)
146
+ - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Java 8 and higher
147
+
148
+ ### Get
149
+
150
+ Add as a Maven dependency:
151
+
152
+ ```xml
153
+ <dependency>
154
+ <groupId>com.qqshi13.minhtml</groupId>
155
+ <artifactId>min-html</artifactId>
156
+ <version>0.18.2</version>
157
+ </dependency>
158
+ ```
159
+
160
+ ### Use
161
+
162
+ ```java
163
+ import com.qqshi13.minhtml.Configuration;
164
+ import com.qqshi13.minhtml.MinifyHtml;
165
+
166
+ Configuration cfg = new Configuration.Builder()
167
+ .setKeepHtmlAndHeadOpeningTags(true)
168
+ .setMinifyCss(true)
169
+ .build();
170
+
171
+ String minified = MinifyHtml.minify("<p> Hello, world! </p>", cfg);
172
+ ```
173
+
174
+ All [`Cfg` fields](https://docs.rs/min-html/latest/min_html/struct.Cfg.html) are available as camelCase setter methods on the `Builder`; if any are not set, they default to `false`.
175
+
176
+ </details>
177
+
178
+ <details>
179
+ <summary><img width="24" src="./icon/python.png"> <strong>Python</strong></summary>
180
+
181
+ - Package: [min-html](https://pypi.org/project/min-html)
182
+ - Binding: [PyO3](https://github.com/PyO3/pyo3)
183
+ - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Python 3.8 to 3.14
184
+
185
+ ### Get
186
+
187
+ Add the PyPI project as a dependency and install it using `pip` or `pipenv`.
188
+
189
+ ### Use
190
+
191
+ ```python
192
+ import min_html
193
+
194
+ minified = min_html.minify("<p> Hello, world! </p>", minify_js=True, remove_processing_instructions=True)
195
+ ```
196
+
197
+ All [`Cfg` fields](https://docs.rs/min-html/latest/min_html/struct.Cfg.html) are available as Python keyword arguments; if any are omitted, they default to `False`.
198
+
199
+ </details>
200
+
201
+ <details>
202
+ <summary><img width="24" src="./icon/ruby.png"> <strong>Ruby</strong></summary>
203
+
204
+ - Package: [min_html](https://rubygems.org/gems/min_html)
205
+ - Binding: [rb-sys](https://github.com/oxidize-rb/rb-sys) and [magnus](https://github.com/matsadler/magnus)
206
+ - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Ruby 3.2 to 3.4
207
+
208
+ ### Get
209
+
210
+ Add the library as a dependency to `Gemfile` or `*.gemspec`.
211
+
212
+ ### Use
213
+
214
+ ```ruby
215
+ require 'min_html'
216
+
217
+ print min_html("<p> Hello, world! </p>", { :keep_spaces_between_attributes => true, :minify_js => true })
218
+ ```
219
+
220
+ All [`Cfg` fields](https://docs.rs/min-html/latest/min_html/struct.Cfg.html) are available; if any are omitted, they default to `false`.
221
+
222
+ </details>
223
+
224
+ <details>
225
+ <summary><img width="24" src="./icon/wasm.png"> <strong>WASM</strong></summary>
226
+
227
+ - Package: [@minhtml/wasm](https://npmjs.org/package/@minhtml/wasm)
228
+ - Binding: [WASM](https://webassembly.org/)
229
+ - Platforms: All
230
+
231
+ A bundler may be required to use the WebAssembly module, see [this](https://rustwasm.github.io/wasm-bindgen/reference/deployment.html#bundlers) for more details.
232
+
233
+ ### Use
234
+
235
+ ```ts
236
+ import init, {minify} from "@minhtml/wasm";
237
+
238
+ const encoder = new TextEncoder();
239
+ const decoder = new TextDecoder();
240
+
241
+ await init();
242
+
243
+ const minified = decoder.decode(minify(encoder.encode("<p> Hello, world! </p>"), { keep_spaces_between_attributes: true, keep_comments: true }));
244
+ ```
245
+
246
+ All [`Cfg` fields](https://docs.rs/min-html/latest/min_html/struct.Cfg.html) are available as snake_case properties on the object provided as the second argument; if any are not set, they default to `false`.
247
+
248
+ </details>
249
+
250
+ ## Templating syntax
251
+
252
+ min-html can parse and preserve `{{`/`{%`/`{#` and `<%` syntax in the source code, which allows minification of many HTML templates written for most engines like Pebble, Mustache, Django, Go, Jinja, Twix, Nunjucks, Handlebars, Sailfish, JSP, EJS, and ERB. Look for the `preserve_*_template_syntax` Cfg options.
253
+
254
+ PHP blocks (`<?php` or `<?=`) also happen to be processing instructions, which are preserved by default.
255
+
256
+ Note that in all of these syntax, the parsing is "dumb": it will simply look for the next subsequence of characters that match the closing delimiter. This may cause issues if nesting or string literals appear inside these blocks, but this should be rare.
257
+
258
+ ## Minification
259
+
260
+ ### Spec compliance
261
+
262
+ WHATWG is the current HTML standard and [obsoletes all previous standards](https://www.w3.org/html/). WHATWG lists suggested validators [here](https://whatwg.org/validator/).
263
+
264
+ To minify even further, it's possible to enable options that may output HTML that doesn't fully pass validation, but is still interpreted and rendered correctly according to the [WHATWG parsing specification](https://html.spec.whatwg.org/multipage/parsing.html), which major browser engines (Firefox, Chrome, Safari) implement. Refer to these options:
265
+
266
+ - `allow_noncompliant_unquoted_attribute_values`
267
+ - `allow_optimal_entities`
268
+ - `allow_removing_spaces_between_attributes`
269
+ - `minify_doctype`
270
+
271
+ In Rust, `Cfg::enable_possibly_noncompliant` can enable all of these at once.
272
+
273
+ ### Whitespace
274
+
275
+ min-html has advanced context-aware whitespace minification that does things such as:
276
+
277
+ - Leave whitespace untouched in `pre` and `code`, which are whitespace sensitive.
278
+ - Trim and collapse whitespace in content tags, as whitespace is collapsed anyway when rendered.
279
+ - Remove whitespace in layout tags, which allows the use of inline layouts while keeping formatted code.
280
+
281
+ #### Methods
282
+
283
+ There are three whitespace minification methods. When processing text content, min-html chooses which ones to use depending on the containing element.
284
+
285
+ <details>
286
+ <summary><strong>Collapse whitespace</strong></summary>
287
+
288
+ > **Applies to:** any element except [whitespace sensitive](./min-html-common/src/spec/tag/whitespace.rs) elements.
289
+
290
+ Reduce a sequence of whitespace characters in text nodes to a single space (U+0020).
291
+
292
+ <table><thead><tr><th>Before<th>After<tbody><tr><td>
293
+
294
+ ```html
295
+ <p>↵
296
+ ··The·quick·brown·fox↵
297
+ ··jumps·over·the·lazy↵
298
+ ··dog.↵
299
+ </p>
300
+ ```
301
+
302
+ <td>
303
+
304
+ ```html
305
+ <p>·The·quick·brown·fox·jumps·over·the·lazy·dog.·</p>
306
+ ```
307
+
308
+ </table>
309
+ </details>
310
+
311
+ <details>
312
+ <summary><strong>Destroy whole whitespace</strong></summary>
313
+
314
+ > **Applies to:** any element except [whitespace sensitive](./min-html-common/src/spec/tag/whitespace.rs), [content](src/spec/tag/whitespace.rs), [content-first](./min-html-common/src/spec/tag/whitespace.rs), and [formatting](./min-html-common/src/spec/tag/whitespace.rs) elements.
315
+
316
+ Remove any text nodes between tags that only consist of whitespace characters.
317
+
318
+ <table><thead><tr><th>Before<th>After<tbody><tr><td>
319
+
320
+ ```html
321
+ <ul>↵
322
+ ··<li>A</li>↵
323
+ ··<li>B</li>↵
324
+ ··<li>C</li>↵
325
+ </ul>
326
+ ```
327
+
328
+ <td>
329
+
330
+ ```html
331
+ <ul>↵
332
+ ··<li>A</li><li>B</li><li>C</li>↵
333
+ </ul>
334
+ ```
335
+
336
+ </table>
337
+ </details>
338
+
339
+ <details>
340
+ <summary><strong>Trim whitespace</strong></summary>
341
+
342
+ > **Applies to:** any element except [whitespace sensitive](./min-html-common/src/spec/tag/whitespace.rs) and [formatting](./min-html-common/src/spec/tag/whitespace.rs) elements.
343
+
344
+ Remove any leading/trailing whitespace from any leading/trailing text nodes of a tag.
345
+
346
+ <table><thead><tr><th>Before<th>After<tbody><tr><td>
347
+
348
+ ```html
349
+ <p>↵
350
+ ··Hey,·I·<em>just</em>·found↵
351
+ ··out·about·this·<strong>cool</strong>·website!↵
352
+ ··<sup>[1]</sup>↵
353
+ </p>
354
+ ```
355
+
356
+ <td>
357
+
358
+ ```html
359
+ <p>Hey,·I·<em>just</em>·found↵
360
+ ··out·about·this·<strong>cool</strong>·website!↵
361
+ ··<sup>[1]</sup></p>
362
+ ```
363
+
364
+ </table>
365
+ </details>
366
+
367
+ #### Element types
368
+
369
+ min-html assumes HTML and SVG elements are used in specific ways, based on standards and best practices. By making these assumptions, it can apply optimal whitespace minification strategies. If these assumptions do not hold, consider adjusting the HTML source or turning off whitespace minification.
370
+
371
+ |Group|Elements|Expected children|
372
+ |---|---|---|
373
+ |Formatting|`a`, `strong`, [and others](./min-html-common/src/spec/tag/whitespace.rs)|Formatting elements, text.|
374
+ |Content|`h1`, `p`, [and others](./min-html-common/src/spec/tag/whitespace.rs)|Formatting elements, text.|
375
+ |Layout|`div`, `ul`, [and others](./min-html-common/src/spec/tag/whitespace.rs)|Layout elements, content elements.|
376
+ |Content-first|`label`, `li`, [and others](./min-html-common/src/spec/tag/whitespace.rs)|Like content but could be layout with only one child.|
377
+
378
+ <details>
379
+ <summary><strong>Formatting elements</strong></summary>
380
+
381
+ > Whitespace is collapsed.
382
+
383
+ Formatting elements are usually inline elements that wrap around part of some text in a content element, so its whitespace isn't trimmed as they're probably part of the content.
384
+
385
+ </details>
386
+
387
+ <details>
388
+ <summary><strong>Content elements</strong></summary>
389
+
390
+ > Whitespace is trimmed and collapsed.
391
+
392
+ Content elements usually represent a contiguous and complete unit of content such as a paragraph. As such, whitespace is significant but sequences of them are most likely due to formatting.
393
+
394
+ ###### Before
395
+
396
+ ```html
397
+ <p>↵
398
+ ··Hey,·I·<em>just</em>·found↵
399
+ ··out·about·this·<strong>cool</strong>·website!↵
400
+ ··<sup>[1]</sup>↵
401
+ </p>
402
+ ```
403
+
404
+ ###### After
405
+
406
+ ```html
407
+ <p>Hey,·I·<em>just</em>·found·out·about·this·<strong>cool</strong>·website!·<sup>[1]</sup></p>
408
+ ```
409
+
410
+ </details>
411
+
412
+ <details>
413
+ <summary><strong>Layout elements</strong></summary>
414
+
415
+ > Whitespace is trimmed and collapsed. Whole whitespace is removed.
416
+
417
+ These elements should only contain other elements and no text. This makes it possible to remove whole whitespace, which is useful when using `display: inline-block` so that whitespace between elements (e.g. indentation) does not alter layout and styling.
418
+
419
+ ###### Before
420
+
421
+ ```html
422
+ <ul>↵
423
+ ··<li>A</li>↵
424
+ ··<li>B</li>↵
425
+ ··<li>C</li>↵
426
+ </ul>
427
+ ```
428
+
429
+ ###### After
430
+
431
+ ```html
432
+ <ul><li>A</li><li>B</li><li>C</li></ul>
433
+ ```
434
+
435
+ </details>
436
+
437
+ <details>
438
+ <summary><strong>Content-first elements</strong></summary>
439
+
440
+ > Whitespace is trimmed and collapsed.
441
+
442
+ These elements are usually like content elements but are occasionally used like a layout element with one child. Whole whitespace is not removed as it might contain content, but this is OK for using as layout as there is only one child and whitespace is trimmed.
443
+
444
+ ###### Before
445
+
446
+ ```html
447
+ <li>↵
448
+ ··<article>↵
449
+ ····<section></section>↵
450
+ ····<section></section>↵
451
+ ··</article>↵
452
+ </li>
453
+ ```
454
+
455
+ ###### After
456
+
457
+ ```html
458
+ <li><article><section></section><section></section></article></li>
459
+ ```
460
+
461
+ </details>
462
+
463
+ ### Tags
464
+
465
+ [Optional opening and closing tags](https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission) are removed.
466
+
467
+ ### Attributes
468
+
469
+ Any entities in attribute values are decoded, and then the shortest representation of the value is calculated and used:
470
+
471
+ - Double quoted, with any `"` encoded.
472
+ - Single quoted, with any `'` encoded.
473
+ - Unquoted, with `"`/`'` first character (if applicable), any `>`, and any whitespace encoded.
474
+
475
+ Attributes have their whitespace (after any decoding) trimmed and collapsed when possible.
476
+
477
+ Boolean attribute values are removed.
478
+ Some other attributes are completely removed if their value is empty or the default value after any processing.
479
+
480
+ `type` attributes on `script` tags with a value equaling a [JavaScript MIME type](https://mimesniff.spec.whatwg.org/#javascript-mime-type) are removed.
481
+
482
+ If an attribute value is empty after any processing, everything but the name is completely removed (i.e. no `=`), as an empty attribute is implicitly [the same](https://html.spec.whatwg.org/multipage/syntax.html#attributes-2) as an attribute with an empty string value.
483
+
484
+ Spaces are removed between attributes when possible.
485
+
486
+ ### Entities
487
+
488
+ Entities are decoded if they're valid and shorter or equal in length when decoded. UTF-8 sequences that have a shorter entity representation are encoded.
489
+
490
+ 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).
491
+
492
+ Encoding is avoided when possible; for example, `<` are only encoded in content if they are followed by a valid tag name character.
493
+ If necessary, the shortest entity representation is chosen.
494
+
495
+ ### Comments
496
+
497
+ Comments are removed.
498
+
499
+ ### Ignored
500
+
501
+ Bangs, [processing instructions](https://en.wikipedia.org/wiki/Processing_Instruction), and empty elements are not removed as it is assumed there is a special reason for their declaration.
502
+
503
+ ## Parsing
504
+
505
+ min-html can process any HTML, handling all possible syntax (including invalid ones) gracefully like browsers. See [Parsing.md](./notes/Parsing.md) for more details.
506
+
507
+ ## Issues and contributions
508
+
509
+ Pull requests and any contributions welcome!
510
+
511
+ If min-html did something unexpected, misunderstood some syntax, or incorrectly kept/removed some code, [raise an issue](https://github.com/QQSHI13/min-html/issues) with some relevant code that can be used to reproduce and investigate the issue.
@@ -0,0 +1,4 @@
1
+ require "mkmf"
2
+ require "rb_sys/mkmf"
3
+
4
+ create_rust_makefile("min_html/min_html")
data/lib/min_html.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ begin
4
+ /(?<ruby_version>\d+\.\d+)/ =~ RUBY_VERSION
5
+ require_relative "#{ruby_version}/min_html"
6
+ rescue LoadError
7
+ require_relative "min_html.so"
8
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: min_html
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.18.2
5
+ platform: ruby
6
+ authors:
7
+ - QQSHI13
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rb_sys
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: 0.9.39
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.9.39
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '13.0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '13.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: rake-compiler
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.2'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.2'
54
+ executables: []
55
+ extensions:
56
+ - ext/min_html/extconf.rb
57
+ extra_rdoc_files: []
58
+ files:
59
+ - README.md
60
+ - ext/min_html/extconf.rb
61
+ - lib/min_html.rb
62
+ homepage: https://github.com/QQSHI13/min-html
63
+ licenses:
64
+ - MIT
65
+ metadata: {}
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubygems_version: 3.6.7
81
+ specification_version: 4
82
+ summary: Extremely fast and smart HTML + JS + CSS minifier
83
+ test_files: []