jekyll-minibundle 3.0.0 → 4.0.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 +4 -4
- data/CHANGELOG.md +78 -66
- data/README.md +117 -101
- data/Rakefile +8 -26
- data/jekyll-minibundle.gemspec +5 -11
- data/lib/jekyll/minibundle/asset_bundle.rb +1 -1
- data/lib/jekyll/minibundle/asset_file_drop.rb +1 -3
- data/lib/jekyll/minibundle/asset_file_registry.rb +2 -2
- data/lib/jekyll/minibundle/asset_tag_markup.rb +1 -1
- data/lib/jekyll/minibundle/bundle_file.rb +3 -0
- data/lib/jekyll/minibundle/development_file.rb +2 -0
- data/lib/jekyll/minibundle/hashes.rb +1 -3
- data/lib/jekyll/minibundle/stamp_file.rb +3 -0
- data/lib/jekyll/minibundle/variable_template.rb +3 -1
- data/lib/jekyll/minibundle/variable_template_registry.rb +2 -2
- data/lib/jekyll/minibundle/version.rb +1 -1
- metadata +8 -184
- data/test/fixture/site/_assets/scripts/app.js +0 -5
- data/test/fixture/site/_assets/scripts/dependency.js +0 -4
- data/test/fixture/site/_assets/styles/common.css +0 -2
- data/test/fixture/site/_assets/styles/reset.css +0 -2
- data/test/fixture/site/_bin/remove_comments +0 -4
- data/test/fixture/site/_bin/with_count +0 -15
- data/test/fixture/site/_config.yml +0 -3
- data/test/fixture/site/_layouts/default.html +0 -29
- data/test/fixture/site/_tmp/site.css +0 -3
- data/test/fixture/site/about.html +0 -4
- data/test/fixture/site/assets/site.css +0 -2
- data/test/fixture/site/index.html +0 -4
- data/test/integration/minibundle_development_mode_test.rb +0 -554
- data/test/integration/minibundle_production_mode_test.rb +0 -900
- data/test/integration/ministamp_development_mode_test.rb +0 -235
- data/test/integration/ministamp_production_mode_test.rb +0 -342
- data/test/integration/static_files_as_asset_sources_test.rb +0 -75
- data/test/support/assertions.rb +0 -26
- data/test/support/fixture_config.rb +0 -20
- data/test/support/static_file_config.rb +0 -23
- data/test/support/test_case.rb +0 -175
- data/test/unit/asset_bundle_test.rb +0 -57
- data/test/unit/asset_file_drop_test.rb +0 -66
- data/test/unit/asset_file_registry_test.rb +0 -237
- data/test/unit/asset_tag_markup_test.rb +0 -46
- data/test/unit/bundle_file_properties_test.rb +0 -108
- data/test/unit/bundle_file_writing_test.rb +0 -155
- data/test/unit/development_file_properties_test.rb +0 -97
- data/test/unit/development_file_writing_test.rb +0 -50
- data/test/unit/environment_test.rb +0 -29
- data/test/unit/files_test.rb +0 -61
- data/test/unit/hashes_test.rb +0 -43
- data/test/unit/jekyll_static_file_api_test.rb +0 -172
- data/test/unit/mini_bundle_block_test.rb +0 -125
- data/test/unit/mini_stamp_tag_test.rb +0 -64
- data/test/unit/stamp_file_properties_test.rb +0 -98
- data/test/unit/stamp_file_writing_test.rb +0 -130
- data/test/unit/variable_template_test.rb +0 -121
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43c8946ee8093099988cdd9ad2e48eac654de9cd940e7305912396adca22db31
|
|
4
|
+
data.tar.gz: e2d685924ba6b45e0e4187929d661c5d17f8e6590c27269e805ed27ec8029924
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1824925799a99f2bcb8ecfed9fbba4a2719ce7e731eaa09e0f7fdcbda54d65aed2515d0d0f1b0fdef6fa89b42daba0ceb8af7e3e9ed7003a06b817bcdf9bce73
|
|
7
|
+
data.tar.gz: 9fb02b9ef3bd186311d9fc6f4057989bc7df33289c6f0c349687f5413bd53ba32fc2dde86eb5740d39fb6ec1e573ff27bd26bb29dddeb5e19b939bd3a24216bb
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ This project adheres to [Semantic Versioning].
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [v4.0.0] - 2026-07-27
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Small refactorings
|
|
12
|
+
|
|
13
|
+
### Removed
|
|
14
|
+
|
|
15
|
+
- Drop support for CRuby versions below 2.7.
|
|
16
|
+
|
|
7
17
|
## [v3.0.0] - 2020-09-06
|
|
8
18
|
|
|
9
19
|
No functional changes, only minor refactorings since v2.2.0. Dropping
|
|
@@ -11,46 +21,46 @@ support for Ruby MRI < 2.4 causes major version bump.
|
|
|
11
21
|
|
|
12
22
|
### Added
|
|
13
23
|
|
|
14
|
-
|
|
24
|
+
- Increase test coverage.
|
|
15
25
|
|
|
16
26
|
### Changed
|
|
17
27
|
|
|
18
|
-
|
|
28
|
+
- Hygienic refactorings: use frozen string literals, prefer squiggly
|
|
19
29
|
heredocs over non-squiggly ones, adhere to the RuboCop linter.
|
|
20
30
|
|
|
21
31
|
### Removed
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
- Drop support for Ruby MRI versions below 2.4.
|
|
24
34
|
|
|
25
35
|
## [v2.2.0] - 2017-03-10
|
|
26
36
|
|
|
27
37
|
### Added
|
|
28
38
|
|
|
29
|
-
|
|
39
|
+
- Add support for separating asset destination path from the generated
|
|
30
40
|
asset URL. See `render_basename_only` option of `ministamp` tag and
|
|
31
41
|
`destination_baseurl` option of `minibundle` block.
|
|
32
42
|
|
|
33
43
|
### Changed
|
|
34
44
|
|
|
35
|
-
|
|
45
|
+
- Treat `ministamp` tag's argument as YAML, resulting either in String
|
|
36
46
|
or Hash type of argument after YAML parsing. If argument is of Hash
|
|
37
47
|
type, render values with Liquid-like templating support, allowing
|
|
38
48
|
rendering Liquid variables. This change is backwards compatible.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
- Escape the URLs generated by `ministamp` tag and `minibundle` block.
|
|
50
|
+
- Quote paths in error messages more consistently.
|
|
51
|
+
- Show better error messages in various situations when asset source
|
|
42
52
|
file does not exist.
|
|
43
|
-
|
|
53
|
+
- Compatibility: conform to Jekyll 3.4.2's StaticFile public API.
|
|
44
54
|
|
|
45
55
|
## [v2.1.2] - 2017-02-28
|
|
46
56
|
|
|
47
57
|
### Added
|
|
48
58
|
|
|
49
|
-
|
|
59
|
+
- Show bundle destination path in bundling log message.
|
|
50
60
|
|
|
51
61
|
### Fixed
|
|
52
62
|
|
|
53
|
-
|
|
63
|
+
- Remove unnecessary '.' path component from asset destination path.
|
|
54
64
|
This manifested when the asset destination had no subdirectory.
|
|
55
65
|
Affects `ministamp` tag and `minibundle` block.
|
|
56
66
|
|
|
@@ -71,7 +81,8 @@ support for Ruby MRI < 2.4 causes major version bump.
|
|
|
71
81
|
```
|
|
72
82
|
<link href="/site-6a204bd89f3c8348afd5c77c717a097a.css" rel="stylesheet">
|
|
73
83
|
```
|
|
74
|
-
|
|
84
|
+
|
|
85
|
+
- Related to above: Don't let Jekyll's watch mode (auto-regeneration)
|
|
75
86
|
remove asset from generated site directory when asset destination path
|
|
76
87
|
has no subdirectory.
|
|
77
88
|
|
|
@@ -79,109 +90,109 @@ support for Ruby MRI < 2.4 causes major version bump.
|
|
|
79
90
|
|
|
80
91
|
### Changed
|
|
81
92
|
|
|
82
|
-
|
|
93
|
+
- Compatibility: conform to Jekyll 3.3's StaticFile public API.
|
|
83
94
|
|
|
84
95
|
### Fixed
|
|
85
96
|
|
|
86
|
-
|
|
97
|
+
- Fix the file permissions of `minibundle` block's output file to
|
|
87
98
|
respect umask setting. Bug report from Alfonse Surigao.
|
|
88
99
|
|
|
89
100
|
## [v2.1.0] - 2016-05-04
|
|
90
101
|
|
|
91
102
|
### Changed
|
|
92
103
|
|
|
93
|
-
|
|
104
|
+
- Allow attributes without values. Useful for `async` attribute, for
|
|
94
105
|
example. Pull Request #7 by Sam (@codewisdom).
|
|
95
106
|
|
|
96
107
|
### Fixed
|
|
97
108
|
|
|
98
|
-
|
|
109
|
+
- Ensure attribute value conversion to string.
|
|
99
110
|
|
|
100
111
|
## [v2.0.1] - 2016-04-06
|
|
101
112
|
|
|
102
113
|
### Fixed
|
|
103
114
|
|
|
104
|
-
|
|
115
|
+
- Fix Jekyll version requirement check to be more reliable.
|
|
105
116
|
|
|
106
117
|
## [v2.0.0] - 2016-04-01
|
|
107
118
|
|
|
108
119
|
### Changed
|
|
109
120
|
|
|
110
|
-
|
|
121
|
+
- Remove unused asset cache entries and temporary files when Jekyll
|
|
111
122
|
rebuilds the site.
|
|
112
|
-
|
|
123
|
+
- Document a known caveat: the plugin doesn't work with Jekyll's
|
|
113
124
|
incremental rebuild feature.
|
|
114
125
|
|
|
115
126
|
### Removed
|
|
116
127
|
|
|
117
|
-
|
|
128
|
+
- Drop support for Jekyll versions below 3.
|
|
118
129
|
|
|
119
130
|
## [v1.6.0] - 2016-03-26
|
|
120
131
|
|
|
121
132
|
### Changed
|
|
122
133
|
|
|
123
|
-
|
|
134
|
+
- Log the last 2000 bytes of minifier's STDOUT output if the minifier
|
|
124
135
|
command fails. Pull Request #6 by Martin Nordholts (@Enselic).
|
|
125
|
-
|
|
136
|
+
- Allow prepending base URL for the destination path of `minibundle`
|
|
126
137
|
block.
|
|
127
138
|
|
|
128
139
|
### Removed
|
|
129
140
|
|
|
130
|
-
|
|
141
|
+
- Drop Ruby MRI 1.9 support because Jekyll 3 does not support it.
|
|
131
142
|
|
|
132
143
|
### Fixed
|
|
133
144
|
|
|
134
|
-
|
|
145
|
+
- Fix issues in asset reloading in Jekyll's watch (auto-regeneration)
|
|
135
146
|
mode, doing bundling and asset fingerprinting again.
|
|
136
147
|
|
|
137
148
|
## [v1.5.1] - 2015-01-29
|
|
138
149
|
|
|
139
150
|
### Changed
|
|
140
151
|
|
|
141
|
-
|
|
152
|
+
- Improve future compatibility with Jekyll. Minibundle has classes
|
|
142
153
|
adhering to `Jekyll::StaticFile` interface, and some method
|
|
143
154
|
implementations of the interface were missing.
|
|
144
|
-
|
|
155
|
+
- Small refactorings and test improvements.
|
|
145
156
|
|
|
146
157
|
## [v1.5.0] - 2014-07-27
|
|
147
158
|
|
|
148
159
|
### Added
|
|
149
160
|
|
|
150
|
-
|
|
161
|
+
- Support minifier command specification in `_config.yml` and inside
|
|
151
162
|
`minibundle` block. Issue #4 by Phillip Smith (@phillipadsmith).
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
163
|
+
- Support enabling development mode from `_config.yml`.
|
|
164
|
+
- Add argument validation to `minibundle` block and `ministamp` tag.
|
|
165
|
+
- Document how to load the gem with Jekyll's `gems` config setting.
|
|
155
166
|
|
|
156
167
|
## [v1.4.6] - 2014-05-10
|
|
157
168
|
|
|
158
169
|
### Changed
|
|
159
170
|
|
|
160
|
-
|
|
171
|
+
- Handle compatibility issues with safe_yaml and logger flexibly. This
|
|
161
172
|
should allow using the plugin with Jekyll 1.0 and 2.0.
|
|
162
173
|
|
|
163
174
|
## [v1.4.5] - 2014-05-10
|
|
164
175
|
|
|
165
176
|
### Changed
|
|
166
177
|
|
|
167
|
-
|
|
178
|
+
- Use SafeYAML to load user input from `minibundle` block for
|
|
168
179
|
consistent behavior with Jekyll and for security.
|
|
169
|
-
|
|
180
|
+
- Clean log messages: show relative paths when bundling assets.
|
|
170
181
|
|
|
171
182
|
### Fixed
|
|
172
183
|
|
|
173
|
-
|
|
184
|
+
- Add missing implementations of `relative_path` and `to_liquid`
|
|
174
185
|
methods from Jekyll's StaticFile API (introduced in Jekyll v1.5.0),
|
|
175
186
|
allowing Minibundle to behave better with other Jekyll
|
|
176
187
|
plugins. Issue #3 by Michael Rose (@mmistakes).
|
|
177
|
-
|
|
188
|
+
- Fix Ruby deprecation warnings (use `File.exist?` instead of
|
|
178
189
|
`File.exists?`).
|
|
179
190
|
|
|
180
191
|
## [v1.4.4] - 2014-01-16
|
|
181
192
|
|
|
182
193
|
### Changed
|
|
183
194
|
|
|
184
|
-
|
|
195
|
+
- Conserve memory when calculating fingerprint for an asset.
|
|
185
196
|
Previously, we read the whole asset file into memory and then
|
|
186
197
|
calculated the MD5 digest. This is bad for big assets. Now, we read
|
|
187
198
|
the file in chunks.
|
|
@@ -190,27 +201,27 @@ support for Ruby MRI < 2.4 causes major version bump.
|
|
|
190
201
|
|
|
191
202
|
### Changed
|
|
192
203
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
204
|
+
- Loosen version constraints for development gem dependencies.
|
|
205
|
+
- Clarify documentation.
|
|
206
|
+
- Minor internal state handling improvements.
|
|
207
|
+
- Clarify tests, increase test coverage.
|
|
197
208
|
|
|
198
209
|
### Fixed
|
|
199
210
|
|
|
200
|
-
|
|
201
|
-
|
|
211
|
+
- Do not leak read pipe file descriptor upon minifier command failure.
|
|
212
|
+
- Fix some Ruby coding style issues.
|
|
202
213
|
|
|
203
214
|
## [v1.4.2] - 2013-12-28
|
|
204
215
|
|
|
205
216
|
### Changed
|
|
206
217
|
|
|
207
|
-
|
|
218
|
+
- Separate tags produced by `minibundle` in development mode with
|
|
208
219
|
newlines.
|
|
209
|
-
|
|
220
|
+
- Clarify tests, increase coverage.
|
|
210
221
|
|
|
211
222
|
### Fixed
|
|
212
223
|
|
|
213
|
-
|
|
224
|
+
- Ensure touching asset source triggers destination write. This was an
|
|
214
225
|
unintentional edge case earlier. Now the behavior of touching the
|
|
215
226
|
asset source is consistent with when changing the contents of the
|
|
216
227
|
source.
|
|
@@ -219,13 +230,13 @@ support for Ruby MRI < 2.4 causes major version bump.
|
|
|
219
230
|
|
|
220
231
|
### Fixed
|
|
221
232
|
|
|
222
|
-
|
|
233
|
+
- Add missing files to gem package.
|
|
223
234
|
|
|
224
235
|
## [v1.4.0] - 2013-12-27
|
|
225
236
|
|
|
226
237
|
### Fixed
|
|
227
238
|
|
|
228
|
-
|
|
239
|
+
- Fix bug causing exception to be thrown when `ministamp` or
|
|
229
240
|
`minibundle` is called twice with same asset source argument. Allow
|
|
230
241
|
handling asset source files that are already static files in Jekyll
|
|
231
242
|
(remove the restriction introduced in 1.3.0). Issue #2 by Austin
|
|
@@ -235,11 +246,11 @@ support for Ruby MRI < 2.4 causes major version bump.
|
|
|
235
246
|
|
|
236
247
|
### Changed
|
|
237
248
|
|
|
238
|
-
|
|
249
|
+
- Upgrade development dependencies.
|
|
239
250
|
|
|
240
251
|
### Fixed
|
|
241
252
|
|
|
242
|
-
|
|
253
|
+
- Disallow handling asset source files that are already static files
|
|
243
254
|
in Jekyll. Otherwise, we would potentially get to inconsistencies in
|
|
244
255
|
Jekyll's watch mode. See "Jekyll static file restriction" in
|
|
245
256
|
README.md. Issue #2 by Austin Grigg (@agrigg).
|
|
@@ -248,59 +259,60 @@ support for Ruby MRI < 2.4 causes major version bump.
|
|
|
248
259
|
|
|
249
260
|
### Changed
|
|
250
261
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
262
|
+
- If Jekyll's logger is available, use it for nice output when bundling.
|
|
263
|
+
- Upgrade development dependencies.
|
|
264
|
+
- Simplify `BundleFile` class implementation.
|
|
254
265
|
|
|
255
266
|
## [v1.1.0] - 2013-02-27
|
|
256
267
|
|
|
257
268
|
### Added
|
|
258
269
|
|
|
259
|
-
|
|
270
|
+
- `ministamp` tag omits fingerprint in development mode.
|
|
260
271
|
|
|
261
272
|
### Changed
|
|
262
273
|
|
|
263
|
-
|
|
264
|
-
|
|
274
|
+
- Clarify documentation.
|
|
275
|
+
- Comply with (Gemnasium) conventions for changelogs. Pull Request #1
|
|
265
276
|
by Teemu Matilainen (@tmatilai).
|
|
266
277
|
|
|
267
278
|
### Fixed
|
|
268
279
|
|
|
269
|
-
|
|
270
|
-
|
|
280
|
+
- Don't bundle assets when nonrelated files change.
|
|
281
|
+
- Don't bundle assets twice upon startup.
|
|
271
282
|
|
|
272
283
|
## [v1.0.0] - 2013-02-15
|
|
273
284
|
|
|
274
285
|
### Added
|
|
275
286
|
|
|
276
|
-
|
|
287
|
+
- Add development mode, where `minibundle` block will copy each asset
|
|
277
288
|
as-is to the destination directory.
|
|
278
289
|
|
|
279
290
|
### Changed
|
|
280
291
|
|
|
281
|
-
|
|
282
|
-
|
|
292
|
+
- Clarify documentation.
|
|
293
|
+
- Increase test coverage.
|
|
283
294
|
|
|
284
295
|
## [v0.2.0] - 2012-12-15
|
|
285
296
|
|
|
286
297
|
### Added
|
|
287
298
|
|
|
288
|
-
|
|
289
|
-
|
|
299
|
+
- Add semicolons between each JavaScript asset in bundling.
|
|
300
|
+
- Show error in page output if asset bundling command failed.
|
|
290
301
|
|
|
291
302
|
### Changed
|
|
292
303
|
|
|
293
|
-
|
|
304
|
+
- Escape the values of custom attributes given in `minibundle` block.
|
|
294
305
|
|
|
295
306
|
## [v0.1.0] - 2012-12-07
|
|
296
307
|
|
|
297
308
|
### Added
|
|
298
309
|
|
|
299
|
-
|
|
300
|
-
|
|
310
|
+
- Add `ministamp` tag and `minibundle` block for Jekyll.
|
|
311
|
+
- First release.
|
|
301
312
|
|
|
302
313
|
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
|
|
303
|
-
[Unreleased]: https://github.com/tkareine/jekyll-minibundle/compare/
|
|
314
|
+
[Unreleased]: https://github.com/tkareine/jekyll-minibundle/compare/v4.0.0...HEAD
|
|
315
|
+
[v4.0.0]: https://github.com/tkareine/jekyll-minibundle/compare/v3.0.0...v4.0.0
|
|
304
316
|
[v3.0.0]: https://github.com/tkareine/jekyll-minibundle/compare/v2.2.0...v3.0.0
|
|
305
317
|
[v2.2.0]: https://github.com/tkareine/jekyll-minibundle/compare/v2.1.2...v2.2.0
|
|
306
318
|
[v2.1.2]: https://github.com/tkareine/jekyll-minibundle/compare/v2.1.1...v2.1.2
|