termpix 0.3.1 → 0.3.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 +4 -4
- data/lib/termpix/protocols.rb +3 -2
- data/lib/termpix/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95d3e15e1b1d9a862d73b8613665fd576c2f246e5c26949c18e1b926404bae4b
|
|
4
|
+
data.tar.gz: d58c2201aae6c8642f587f48a74dd77695673481e3d875ae2eacd60eaa56e122
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65a7dd630c64a04cb6982077175380e3d33d4bf81727ca623cf5d576cd4d6db2feec6106445dd47bc50b070cea5e4cff3ce40f0c57d80d9039ee6e801b98e6ff
|
|
7
|
+
data.tar.gz: ff46fb6a49b7a3ed9429eeb41e491a36235e21216827bf638e81965d1225d772a851e6a06f6ee670786d6576548fa93188bac1faea57922213f9279524e7dca1
|
data/lib/termpix/protocols.rb
CHANGED
|
@@ -21,8 +21,9 @@ module Termpix
|
|
|
21
21
|
pixel_width = max_width * cell_width
|
|
22
22
|
pixel_height = max_height * cell_height
|
|
23
23
|
|
|
24
|
-
# Check if we have this image cached
|
|
25
|
-
|
|
24
|
+
# Check if we have this image cached (include mtime to detect overwrites)
|
|
25
|
+
mtime = File.mtime(image_path).to_i rescue 0
|
|
26
|
+
cache_key = "#{image_path}:#{pixel_width}x#{pixel_height}:#{mtime}"
|
|
26
27
|
image_id = @image_cache[cache_key]
|
|
27
28
|
|
|
28
29
|
unless image_id
|
data/lib/termpix/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: termpix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geir Isene
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description: 'Termpix v0.3.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
description: 'Termpix v0.3.2: Fixed Kitty cache invalidation when files are overwritten.
|
|
14
|
+
Cache key now includes file mtime. Uses Kitty graphics protocol for kitty, WezTerm,
|
|
15
|
+
and Ghostty terminals. Provides clean API for displaying images in terminal using
|
|
16
|
+
best available protocol (Kitty, Sixel, or w3m). Auto-detects terminal capabilities
|
|
17
|
+
and falls back gracefully.'
|
|
17
18
|
email: g@isene.com
|
|
18
19
|
executables: []
|
|
19
20
|
extensions: []
|