jekyll-picture-tag-ng 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ecbda23da1dbfffd515c08c3e043b358aed63dc2aa00fb26a38278bc6d583b5
4
- data.tar.gz: df5b90707f95f61608f73c0fcb24116a9dd3bef8a74a1c90172836f3f68abca0
3
+ metadata.gz: 8e259d3e6bc42b9cf71ed0cf2a19671e70630dc5179bf638f0d12e65198f5453
4
+ data.tar.gz: 3eec5ed3f61f0ef11ddfb0fad57a74263cb580a9d0b8d7347242da8f59cec906
5
5
  SHA512:
6
- metadata.gz: 469c4de79cf10f8bafce3741be16955b1086736fa051571cda0cefe7969619b37df907e7886fa81b47014e4ef4253d3440a0a2404687b3c7072150d6a59ae7aa
7
- data.tar.gz: cf5eebe3a10469c8abf41054f9ee8f5f41e69011e7c504f6abe37f97ef8e85904b51b40acf55c6381f675636f42444fd10c83ecdbf57745e6dc48b9a4b457e92
6
+ metadata.gz: e21c2a050577813b90f09ebdd3dd03c6300c8e84f0538feeb29921616584c049e6d2d1338cb6b9a19944f7f06535927150398c56a2426cc21fc490c1cc7b280e
7
+ data.tar.gz: b16a120225b1772e33f3d722aa461c3670b25b9d01f0c4c230611e3f145cb54a8c517324777cc6e2a555e2bed1ba9e05ce4a688f4a4cf28f920c48b908c637b6
data/README.md CHANGED
@@ -32,7 +32,7 @@ plugins:
32
32
 
33
33
  ### Using with GitHub Pages
34
34
 
35
- If you're using GitHub Pages to deploy your site, you'll need to use a custom action to be able to use this plugin and install ImageMagick. You can create such GitHub action by browsing to
35
+ If you're using GitHub Pages to deploy your site, you'll need to use a custom action to be able to use this plugin and install ImageMagick/libvips. You can create such GitHub action by browsing to
36
36
 
37
37
  ```
38
38
  https://github.com/{YOUR/REPO}/new/main?filename=.github%2Fworkflows%2Fjekyll.yml&workflow_template=pages%2Fjekyll
@@ -41,10 +41,12 @@ https://github.com/{YOUR/REPO}/new/main?filename=.github%2Fworkflows%2Fjekyll.ym
41
41
  You will need to add the following lines as a step for the build job of your GitHub action (before the `jekyll build` command) :
42
42
 
43
43
  ```yaml
44
- - name: Install imagemagick
45
- run: sudo apt-get update && sudo apt-get install imagemagick
44
+ - name: Install imagemagick and libvips
45
+ run: sudo apt-get update && sudo apt-get install imagemagick libvips-tools
46
46
  ```
47
47
 
48
+ If you do not intend to use the `libvips` backend (see Configuration), you should remove `libvips-tools` from the `apt-get install` command above, as installing it takes some time (still a lot less than generating all versions with Image Magick)
49
+
48
50
  After adding the custom action to your repository, you'll need to update the repository settings on GitHub : go to the "Pages" section and change the "Source" setting from "Deploy from a branch" to "GitHub Actions".
49
51
 
50
52
  ## Usage
@@ -8,7 +8,7 @@ module Jekyll
8
8
  alias_method "old_write", "write"
9
9
 
10
10
  def write
11
- if config["picture_tag_ng"]["parallel"]
11
+ if conf_parallel
12
12
  Jekyll.logger.info "Writing files in parallel"
13
13
  Jekyll::Commands::Doctor.conflicting_urls(self)
14
14
  each_site_file do |item|
@@ -50,7 +50,11 @@ module Jekyll
50
50
  end
51
51
 
52
52
  def n_threads
53
- config["picture_tag_ng"]["threads"] || 8
53
+ config.dig "picture_tag_ng", "threads" || 8
54
+ end
55
+
56
+ def conf_parallel
57
+ config.dig "picture_tag_ng", "parallel" || false
54
58
  end
55
59
 
56
60
  def reset_thread_pool
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module PictureTag
5
- VERSION = "0.6.0"
5
+ VERSION = "0.6.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-picture-tag-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pcouy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-02 00:00:00.000000000 Z
11
+ date: 2023-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -87,7 +87,7 @@ metadata:
87
87
  homepage_uri: https://pierre-couy.dev/projects/jekyll-picture-tag-ng.html
88
88
  documentation_uri: https://pierre-couy.dev/projects/jekyll-picture-tag-ng.html
89
89
  source_code_uri: https://github.com/pcouy/jekyll-picture-tag-ng
90
- post_install_message:
90
+ post_install_message:
91
91
  rdoc_options: []
92
92
  require_paths:
93
93
  - lib
@@ -102,8 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.3.25
106
- signing_key:
105
+ rubygems_version: 3.4.10
106
+ signing_key:
107
107
  specification_version: 4
108
108
  summary: Replace the default Kramdown rendering of pictures to use auto-generated
109
109
  alternatives