zer0-image-generator 0.2.0 → 0.2.2

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: 457a89445d3f5c45786f984e760c4e06962a139e13031a6a6fa17aa085e8c11e
4
- data.tar.gz: 988f30701ab41c3688b4118009cc606c4cd6f16917282482d95efb90b74993fb
3
+ metadata.gz: fa19b12882a78f0dc868ca031b657d0500635ef08617f30a309640d0977e1db2
4
+ data.tar.gz: 64534f19ed7e404810f15e1326bd5db3e82e3eacc8160b9ddc86ca59c5cc6d29
5
5
  SHA512:
6
- metadata.gz: 1f7d14a76291532c39d4b9d690ad30f97eb2910894ca1fa445028ef0e7adffacb0733366083b9c7802750e268a92ea69545b1c516e2afe62946011b6dba28bfe
7
- data.tar.gz: 70b791ea4fef77a46eecc6a6cf7d3c26e058109294b49a6fcedec3f6f45aa46e9797ff378ad046f4e777a6c5c39a583ee58c1945b72c557d4bcc02211eabcf71
6
+ metadata.gz: d2ea741174826fdb479b5a53fee673e5b8cc0b43bd0209cf5329bc1391db9f70420d58c3cc81f4bb40cce075e435ee5877b2e6ccef31ba820f1e41e943c5a085
7
+ data.tar.gz: 0060573caeca1124dd219b1ea070bde2f7401135a6423d686dbe2504f5fc93e220bbfe8fa47143e7b7419c3f5ac13e6b28bb093b3714f90cabef6d195b855792
data/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.2] - 2026-07-14
9
+
10
+ ### Fixed
11
+
12
+ - `jekyll preview-images` CLI flags were silently dropped: Mercenary keys the
13
+ options hash by the symbol given to `c.option`, but the argv translator
14
+ looked up the string form — so `--dry-run`, `--list-missing`,
15
+ `--provider`, etc. never reached the engine. Added a Ruby unit test for the
16
+ translation and a CI assertion that `--dry-run` writes nothing.
17
+
18
+ ## [0.2.1] - 2026-07-13
19
+
20
+ ### Fixed
21
+
22
+ - `--file` on `source:` sites now accepts repo-root-relative paths
23
+ (`pages/_notes/x.md`) as well as source-relative ones (`_notes/x.md`).
24
+
8
25
  ## [0.2.0] - 2026-07-13
9
26
 
10
27
  ### Added
@@ -72,7 +72,9 @@ module Zer0ImageGenerator
72
72
 
73
73
  def build_argv(options)
74
74
  SWITCHES.each_with_object([]) do |(flag, merc), argv|
75
- value = options[merc.first.to_s]
75
+ # Mercenary keys the options hash by the symbol given to c.option.
76
+ value = options[merc.first]
77
+ value = options[merc.first.to_s] if value.nil?
76
78
  next if value.nil? || value == false
77
79
 
78
80
  if BOOLEANS.include?(flag)
@@ -2217,7 +2217,11 @@ class Runner:
2217
2217
  if settings.file:
2218
2218
  target = Path(settings.file)
2219
2219
  if not target.is_absolute():
2220
+ # Source-relative first; then cwd-relative, so repo-root paths
2221
+ # like pages/_notes/x.md still work on `source:` sites.
2220
2222
  target = self.root / settings.file
2223
+ if not target.is_file() and (Path.cwd() / settings.file).is_file():
2224
+ target = Path.cwd() / settings.file
2221
2225
  if not target.is_file():
2222
2226
  error_exit(f"File not found: {settings.file}")
2223
2227
  self.process_file(target)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zer0ImageGenerator
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zer0-image-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amr Abdel
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-07-14 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: jekyll
@@ -60,7 +59,6 @@ metadata:
60
59
  changelog_uri: https://github.com/bamr87/zer0-image-generator/blob/main/CHANGELOG.md
61
60
  bug_tracker_uri: https://github.com/bamr87/zer0-image-generator/issues
62
61
  rubygems_mfa_required: 'true'
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -76,8 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
74
  version: '0'
77
75
  requirements:
78
76
  - Python 3.9+ with PyYAML (python3 -m pip install pyyaml)
79
- rubygems_version: 3.0.3.1
80
- signing_key:
77
+ rubygems_version: 4.0.11
81
78
  specification_version: 4
82
79
  summary: AI preview/social images for any Jekyll site — Claude directs and reviews,
83
80
  an image model renders.