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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +78 -66
  3. data/README.md +117 -101
  4. data/Rakefile +8 -26
  5. data/jekyll-minibundle.gemspec +5 -11
  6. data/lib/jekyll/minibundle/asset_bundle.rb +1 -1
  7. data/lib/jekyll/minibundle/asset_file_drop.rb +1 -3
  8. data/lib/jekyll/minibundle/asset_file_registry.rb +2 -2
  9. data/lib/jekyll/minibundle/asset_tag_markup.rb +1 -1
  10. data/lib/jekyll/minibundle/bundle_file.rb +3 -0
  11. data/lib/jekyll/minibundle/development_file.rb +2 -0
  12. data/lib/jekyll/minibundle/hashes.rb +1 -3
  13. data/lib/jekyll/minibundle/stamp_file.rb +3 -0
  14. data/lib/jekyll/minibundle/variable_template.rb +3 -1
  15. data/lib/jekyll/minibundle/variable_template_registry.rb +2 -2
  16. data/lib/jekyll/minibundle/version.rb +1 -1
  17. metadata +8 -184
  18. data/test/fixture/site/_assets/scripts/app.js +0 -5
  19. data/test/fixture/site/_assets/scripts/dependency.js +0 -4
  20. data/test/fixture/site/_assets/styles/common.css +0 -2
  21. data/test/fixture/site/_assets/styles/reset.css +0 -2
  22. data/test/fixture/site/_bin/remove_comments +0 -4
  23. data/test/fixture/site/_bin/with_count +0 -15
  24. data/test/fixture/site/_config.yml +0 -3
  25. data/test/fixture/site/_layouts/default.html +0 -29
  26. data/test/fixture/site/_tmp/site.css +0 -3
  27. data/test/fixture/site/about.html +0 -4
  28. data/test/fixture/site/assets/site.css +0 -2
  29. data/test/fixture/site/index.html +0 -4
  30. data/test/integration/minibundle_development_mode_test.rb +0 -554
  31. data/test/integration/minibundle_production_mode_test.rb +0 -900
  32. data/test/integration/ministamp_development_mode_test.rb +0 -235
  33. data/test/integration/ministamp_production_mode_test.rb +0 -342
  34. data/test/integration/static_files_as_asset_sources_test.rb +0 -75
  35. data/test/support/assertions.rb +0 -26
  36. data/test/support/fixture_config.rb +0 -20
  37. data/test/support/static_file_config.rb +0 -23
  38. data/test/support/test_case.rb +0 -175
  39. data/test/unit/asset_bundle_test.rb +0 -57
  40. data/test/unit/asset_file_drop_test.rb +0 -66
  41. data/test/unit/asset_file_registry_test.rb +0 -237
  42. data/test/unit/asset_tag_markup_test.rb +0 -46
  43. data/test/unit/bundle_file_properties_test.rb +0 -108
  44. data/test/unit/bundle_file_writing_test.rb +0 -155
  45. data/test/unit/development_file_properties_test.rb +0 -97
  46. data/test/unit/development_file_writing_test.rb +0 -50
  47. data/test/unit/environment_test.rb +0 -29
  48. data/test/unit/files_test.rb +0 -61
  49. data/test/unit/hashes_test.rb +0 -43
  50. data/test/unit/jekyll_static_file_api_test.rb +0 -172
  51. data/test/unit/mini_bundle_block_test.rb +0 -125
  52. data/test/unit/mini_stamp_tag_test.rb +0 -64
  53. data/test/unit/stamp_file_properties_test.rb +0 -98
  54. data/test/unit/stamp_file_writing_test.rb +0 -130
  55. data/test/unit/variable_template_test.rb +0 -121
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 997ab9ce6b810501fe2ef0177f8982cf5cae5b7f98871ca84c160e15dd90852a
4
- data.tar.gz: eeedab2288ea816ffb94568ddc80a5a4a560e4701bb7b5a9c07875100e191338
3
+ metadata.gz: 43c8946ee8093099988cdd9ad2e48eac654de9cd940e7305912396adca22db31
4
+ data.tar.gz: e2d685924ba6b45e0e4187929d661c5d17f8e6590c27269e805ed27ec8029924
5
5
  SHA512:
6
- metadata.gz: 4cc289086a2222a0f1e67df53135143da8248a9989e8ebd02839ab10260e2090ab83198f1b1cf271a6792a566d9b2182b28e62cb89cb62a4b42597a99a10bb60
7
- data.tar.gz: 90af2278865d5be704c6d36263b9df905d61d28d28914f7584b10640770fb3af7fc129d3c798abcddda57b8d713193df17b4b22ddf9b1c70eb4ffcb0638bb29b
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
- * Increase test coverage.
24
+ - Increase test coverage.
15
25
 
16
26
  ### Changed
17
27
 
18
- * Hygienic refactorings: use frozen string literals, prefer squiggly
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
- * Drop support for Ruby MRI versions below 2.4.
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
- * Add support for separating asset destination path from the generated
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
- * Treat `ministamp` tag's argument as YAML, resulting either in String
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
- * Escape the URLs generated by `ministamp` tag and `minibundle` block.
40
- * Quote paths in error messages more consistently.
41
- * Show better error messages in various situations when asset source
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
- * Compatibility: conform to Jekyll 3.4.2's StaticFile public API.
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
- * Show bundle destination path in bundling log message.
59
+ - Show bundle destination path in bundling log message.
50
60
 
51
61
  ### Fixed
52
62
 
53
- * Remove unnecessary '.' path component from asset destination path.
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
- * Related to above: Don't let Jekyll's watch mode (auto-regeneration)
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
- * Compatibility: conform to Jekyll 3.3's StaticFile public API.
93
+ - Compatibility: conform to Jekyll 3.3's StaticFile public API.
83
94
 
84
95
  ### Fixed
85
96
 
86
- * Fix the file permissions of `minibundle` block's output file to
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
- * Allow attributes without values. Useful for `async` attribute, for
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
- * Ensure attribute value conversion to string.
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
- * Fix Jekyll version requirement check to be more reliable.
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
- * Remove unused asset cache entries and temporary files when Jekyll
121
+ - Remove unused asset cache entries and temporary files when Jekyll
111
122
  rebuilds the site.
112
- * Document a known caveat: the plugin doesn't work with Jekyll's
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
- * Drop support for Jekyll versions below 3.
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
- * Log the last 2000 bytes of minifier's STDOUT output if the minifier
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
- * Allow prepending base URL for the destination path of `minibundle`
136
+ - Allow prepending base URL for the destination path of `minibundle`
126
137
  block.
127
138
 
128
139
  ### Removed
129
140
 
130
- * Drop Ruby MRI 1.9 support because Jekyll 3 does not support it.
141
+ - Drop Ruby MRI 1.9 support because Jekyll 3 does not support it.
131
142
 
132
143
  ### Fixed
133
144
 
134
- * Fix issues in asset reloading in Jekyll's watch (auto-regeneration)
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
- * Improve future compatibility with Jekyll. Minibundle has classes
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
- * Small refactorings and test improvements.
155
+ - Small refactorings and test improvements.
145
156
 
146
157
  ## [v1.5.0] - 2014-07-27
147
158
 
148
159
  ### Added
149
160
 
150
- * Support minifier command specification in `_config.yml` and inside
161
+ - Support minifier command specification in `_config.yml` and inside
151
162
  `minibundle` block. Issue #4 by Phillip Smith (@phillipadsmith).
152
- * Support enabling development mode from `_config.yml`.
153
- * Add argument validation to `minibundle` block and `ministamp` tag.
154
- * Document how to load the gem with Jekyll's `gems` config setting.
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
- * Handle compatibility issues with safe_yaml and logger flexibly. This
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
- * Use SafeYAML to load user input from `minibundle` block for
178
+ - Use SafeYAML to load user input from `minibundle` block for
168
179
  consistent behavior with Jekyll and for security.
169
- * Clean log messages: show relative paths when bundling assets.
180
+ - Clean log messages: show relative paths when bundling assets.
170
181
 
171
182
  ### Fixed
172
183
 
173
- * Add missing implementations of `relative_path` and `to_liquid`
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
- * Fix Ruby deprecation warnings (use `File.exist?` instead of
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
- * Conserve memory when calculating fingerprint for an asset.
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
- * Loosen version constraints for development gem dependencies.
194
- * Clarify documentation.
195
- * Minor internal state handling improvements.
196
- * Clarify tests, increase test coverage.
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
- * Do not leak read pipe file descriptor upon minifier command failure.
201
- * Fix some Ruby coding style issues.
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
- * Separate tags produced by `minibundle` in development mode with
218
+ - Separate tags produced by `minibundle` in development mode with
208
219
  newlines.
209
- * Clarify tests, increase coverage.
220
+ - Clarify tests, increase coverage.
210
221
 
211
222
  ### Fixed
212
223
 
213
- * Ensure touching asset source triggers destination write. This was an
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
- * Add missing files to gem package.
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
- * Fix bug causing exception to be thrown when `ministamp` or
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
- * Upgrade development dependencies.
249
+ - Upgrade development dependencies.
239
250
 
240
251
  ### Fixed
241
252
 
242
- * Disallow handling asset source files that are already static files
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
- * If Jekyll's logger is available, use it for nice output when bundling.
252
- * Upgrade development dependencies.
253
- * Simplify `BundleFile` class implementation.
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
- * `ministamp` tag omits fingerprint in development mode.
270
+ - `ministamp` tag omits fingerprint in development mode.
260
271
 
261
272
  ### Changed
262
273
 
263
- * Clarify documentation.
264
- * Comply with (Gemnasium) conventions for changelogs. Pull Request #1
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
- * Don't bundle assets when nonrelated files change.
270
- * Don't bundle assets twice upon startup.
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
- * Add development mode, where `minibundle` block will copy each asset
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
- * Clarify documentation.
282
- * Increase test coverage.
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
- * Add semicolons between each JavaScript asset in bundling.
289
- * Show error in page output if asset bundling command failed.
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
- * Escape the values of custom attributes given in `minibundle` block.
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
- * Add `ministamp` tag and `minibundle` block for Jekyll.
300
- * First release.
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/v3.0.0...HEAD
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