jekyll-minify 1.1.4 → 1.1.6

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: 20c211cf280108580c6a0170d6851b397736f4bcc79ad43572885a4a40849914
4
- data.tar.gz: 760c5b816c0f7c5f246fc0431e95642c4172004379c517ce0b06183822087388
3
+ metadata.gz: 54325d0362b0885bd72860ee0ead6d036e59d4ad47c3c00ce804ef2b7aeacc27
4
+ data.tar.gz: 563c1fa1a094a967fd1c47ff975ccbcde581bd35eca131ca6af99fb93d6acf20
5
5
  SHA512:
6
- metadata.gz: 63a4e674b2c0289bf595695bd3f2fc3ae55a8dd03de61f620cc626e82485c9870d7983eca3cfe20633c026de25648d11f639ef834ce4eb29990bb678437281a8
7
- data.tar.gz: d3787eadae5a3852d2b3fbcd0f5d9fc7713ce7202f35d8d45a06e65f9a31fe194fff385633443ffb72bf9fe55b4c8747cc45dcfd38ff13ccd2de53555cd8aaf8
6
+ metadata.gz: 50b3e6363ae9ffb636d4364698989e9f764f5d4466d1945f0bdf56445dccf37d62788199349ed4fdb01c2ecd1146245be28991d2a890b69862fc169b35acbb47
7
+ data.tar.gz: 0566f097397fdaec7134ac312f16fdd950e83d067a7a40163d416fd73ba341403bc6175e51f1213db8c193dd5196fba136886fc278dac5ce66e644cd4a15b43d
data/README.md CHANGED
@@ -9,4 +9,4 @@ For complete documentation, configuration options, and examples, visit the [docu
9
9
 
10
10
  ## License
11
11
 
12
- MIT License - see LICENSE file for details.
12
+ MIT License - see [LICENSE](LICENSE) file for details.
@@ -6,6 +6,6 @@ module Jekyll
6
6
  # Regenerated alongside the gemspec on every `make jekyll-minify.gemspec`
7
7
  # run (locally or in CI), so it always matches spec.version in the built
8
8
  # gem. Any hand edit is overwritten on the next run.
9
- VERSION = '1.1.4'
9
+ VERSION = '1.1.6'
10
10
  end
11
11
  end
data/lib/jekyll-minify.rb CHANGED
@@ -49,7 +49,7 @@
49
49
  # minify_css: false # disable CSS minification
50
50
  # minify_js: false # disable JS minification
51
51
  #
52
- # Defaults to all 7 minify-html options enabled. YAML string keys are automatically
52
+ # Defaults to all 8 minify-html options enabled. YAML string keys are automatically
53
53
  # converted to symbols for the minify-html gem.
54
54
  #
55
55
  # === W3C HTML Validation Compatibility ===
@@ -59,6 +59,12 @@
59
59
  # containing special characters, preventing unquoting issues with attributes like:
60
60
  # prefix="og: https://ogp.me/ns#"
61
61
  #
62
+ # It also sets `keep_input_type_text_attr` so `<input type="text">` survives
63
+ # minification. Dropping it is valid HTML (browsers default to type=text), but
64
+ # html-validate's `no-implicit-input-type` rule flags the omission as an error,
65
+ # so stripping it here would reintroduce a validation failure the source
66
+ # template deliberately avoids by writing the attribute explicitly.
67
+ #
62
68
  # === CSS/JavaScript Minification Note ===
63
69
  #
64
70
  # The minify-html Ruby gem only exposes HTML minification through its public API.
@@ -109,7 +115,8 @@ module Jekyll
109
115
  minify_js: true,
110
116
  remove_bangs: true,
111
117
  remove_processing_instructions: true,
112
- ensure_spec_compliant_unquoted_attribute_values: true
118
+ ensure_spec_compliant_unquoted_attribute_values: true,
119
+ keep_input_type_text_attr: true
113
120
  }.freeze
114
121
 
115
122
  # Asset types processed by the minifier, in order.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-minify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain Reguera Delgado
@@ -85,6 +85,20 @@ dependencies:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
87
  version: '3.13'
88
+ - !ruby/object:Gem::Dependency
89
+ name: rspec_junit_formatter
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.6'
95
+ type: :development
96
+ prerelease: false
97
+ version_requirements: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '0.6'
88
102
  - !ruby/object:Gem::Dependency
89
103
  name: simplecov
90
104
  requirement: !ruby/object:Gem::Requirement