zer0-image-generator 0.2.0 → 0.2.1

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: 36da81ce0baf2b37bb861a7fe2f03d62c37c667d8a0754a9cc1ee95ee6afc827
4
+ data.tar.gz: a18923ae9adf0a2b38e2dca873bfaaba9e1e1437249e68ca5b70cc7dc59c6588
5
5
  SHA512:
6
- metadata.gz: 1f7d14a76291532c39d4b9d690ad30f97eb2910894ca1fa445028ef0e7adffacb0733366083b9c7802750e268a92ea69545b1c516e2afe62946011b6dba28bfe
7
- data.tar.gz: 70b791ea4fef77a46eecc6a6cf7d3c26e058109294b49a6fcedec3f6f45aa46e9797ff378ad046f4e777a6c5c39a583ee58c1945b72c557d4bcc02211eabcf71
6
+ metadata.gz: 63b595b05dddeaf526df975f62ad5d8644b4d9e8571398a717b2207a5927a1c5f1216db0ec71aab7c00f2f7077d14e9a430b57ea1650ee882c35d7c2579c3382
7
+ data.tar.gz: dfe915ca69f2bb13a3023c63641755e96498634eb07d4779721158361e871a7433b701fa775f8ecfba358a9c4a73a2c5698c46dcacc8231968b15f1d5857df7b
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ 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.1] - 2026-07-13
9
+
10
+ ### Fixed
11
+
12
+ - `--file` on `source:` sites now accepts repo-root-relative paths
13
+ (`pages/_notes/x.md`) as well as source-relative ones (`_notes/x.md`).
14
+
8
15
  ## [0.2.0] - 2026-07-13
9
16
 
10
17
  ### Added
@@ -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.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amr Abdel