al_folio_core 1.0.8 → 1.0.9

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: e7397da7deb8e846758d474286e7c0791622138fa84e00ae6050e78a991142e8
4
- data.tar.gz: d80fe0d17deec7a309623b10e7c78b3bae3d5f6979aca16be74f02d08af6c9ef
3
+ metadata.gz: 5a890df9d8920810e72be518e297d79dd6fd9eb3633fd2e3166b9e42e2a3967d
4
+ data.tar.gz: e87ab9e0274093acffed3226700338c238e327eafefb5a47487a6c546cd9c592
5
5
  SHA512:
6
- metadata.gz: c63b680d173323550550e67c1c356e92096e9288a5b239d56400c56bea2196dd3280d1dd71fc889e6717d3d7ca9079e838a44432b59210efd24a31d0a8a612c0
7
- data.tar.gz: 336b5beb9655b168462042dcc5ea74ed11634f372339d33c8a5316a41fe83cc38c062c26a6c5ac1215e29be3d27fadacd0940c56bb9be52c8aac6e11f0ffd8b3
6
+ metadata.gz: a21e4f30ca2feebb5ac90e921cf4cd2266c1a27b165c602f8ecd1f3c9f75c108c8ff7e0583d3d9c5bade4dd166795c0621b7918aa57f2a7dcd18c89013ab29b6
7
+ data.tar.gz: e87c66bae691e362365233b5138351304392405c3ee20b696f45e4107ad0a506da685ab09e66b9e93b535edd1999dc474dfb0ef516011273fa74754ec98ec110
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.9 - 2026-05-24
4
+
5
+ - Retried interrupted `jekyll-minifier` file writes so Jupyter notebook conversion does not fail builds with transient `Errno::EINTR`.
6
+
3
7
  ## 1.0.8 - 2026-05-24
4
8
 
5
9
  - Fixed book-review inline CSS typos and contained floated cover figures within the article flow.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AlFolioCore
4
- VERSION = "1.0.8"
4
+ VERSION = "1.0.9"
5
5
  end
data/lib/al_folio_core.rb CHANGED
@@ -132,6 +132,21 @@ module AlFolioCore
132
132
  end
133
133
  end
134
134
 
135
+ module JekyllMinifierEintrRetry
136
+ def output_file(dest, content)
137
+ attempts = 0
138
+
139
+ begin
140
+ super
141
+ rescue Errno::EINTR
142
+ attempts += 1
143
+ retry if attempts < 4
144
+
145
+ raise
146
+ end
147
+ end
148
+ end
149
+
135
150
  module_function
136
151
 
137
152
  def compat_enabled?(site)
@@ -209,6 +224,16 @@ module AlFolioCore
209
224
  cache_digester.prepend(JekyllCacheBustThemeFallback)
210
225
  end
211
226
 
227
+ def patch_jekyll_minifier_for_notebook_output!
228
+ return unless defined?(Jekyll::Compressor)
229
+
230
+ [Jekyll::Document, Jekyll::Page, Jekyll::StaticFile].each do |klass|
231
+ next if klass.ancestors.include?(JekyllMinifierEintrRetry)
232
+
233
+ klass.prepend(JekyllMinifierEintrRetry)
234
+ end
235
+ end
236
+
212
237
  def jupyter_plugin_enabled?(site)
213
238
  Array(site.config["plugins"]).map(&:to_s).include?("jekyll-jupyter-notebook")
214
239
  end
@@ -247,6 +272,7 @@ end
247
272
 
248
273
  AlFolioCore.patch_jekyll_terser_for_theme_assets!
249
274
  AlFolioCore.patch_jekyll_cache_bust_for_theme_assets!
275
+ AlFolioCore.patch_jekyll_minifier_for_notebook_output!
250
276
  Liquid::Template.register_tag("details", AlFolioCore::Tags::DetailsTag)
251
277
  Liquid::Template.register_tag("file_exists", AlFolioCore::Tags::FileExistsTag)
252
278
  Liquid::Template.register_filter(AlFolioCore::Filters::HideCustomBibtex)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: al_folio_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - al-folio maintainers