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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f02b355cf61a8cfd00292a79423a428d071cbc333674c1e2324901f62bd10a38
4
- data.tar.gz: d55c9be1b6e0e2de2b0d093ec25cfc4bb462f165197db5cbae20039eee4d7d53
3
+ metadata.gz: 95d3e15e1b1d9a862d73b8613665fd576c2f246e5c26949c18e1b926404bae4b
4
+ data.tar.gz: d58c2201aae6c8642f587f48a74dd77695673481e3d875ae2eacd60eaa56e122
5
5
  SHA512:
6
- metadata.gz: 8d4d33f281c9fb9346f978dc764c3ce66f9c42b6be11c5a1cc1869f1054798ac8a3230a76450f0be66c063efda2284ad28dcfb0e9c5f34155a07a2bcfb79a19a
7
- data.tar.gz: e155d39ed7003b6c5c405a5f703d526d54c6732add1494e0a0f4eae1390660c591f257e0e44114da1aa9c3801d63979b8405a56047a7194bdafca5d9fb86130c
6
+ metadata.gz: 65a7dd630c64a04cb6982077175380e3d33d4bf81727ca623cf5d576cd4d6db2feec6106445dd47bc50b070cea5e4cff3ce40f0c57d80d9039ee6e801b98e6ff
7
+ data.tar.gz: ff46fb6a49b7a3ed9429eeb41e491a36235e21216827bf638e81965d1225d772a851e6a06f6ee670786d6576548fa93188bac1faea57922213f9279524e7dca1
@@ -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
- cache_key = "#{image_path}:#{pixel_width}x#{pixel_height}"
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
@@ -1,3 +1,3 @@
1
1
  module Termpix
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2026-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: 'Termpix v0.3.1: WezTerm support added. Uses Kitty graphics protocol
14
- for kitty, WezTerm, and Ghostty terminals. Provides clean API for displaying images
15
- in terminal using best available protocol (Kitty, Sixel, or w3m). Auto-detects terminal
16
- capabilities and falls back gracefully.'
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: []