cline-rb 2.1.0 → 2.1.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/cline/logs.rb +7 -1
- data/lib/cline/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a01259d29dbebf9ef8f098c9d86f4542719c9e7721ba6f8a31458ace1748216c
|
|
4
|
+
data.tar.gz: 55905c7acc0e83133241e54d68242d5a2a59a9aa212885eea06c485094a66c57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7471d4867c48f307b11fe7218db73ff8e1cdd61e1510a18db21bc2aedfe4fcb55f5632971d9ecc5b86c2b6426fd506488c9255e6abcb7b977deff584ddf39f23
|
|
7
|
+
data.tar.gz: fe6f2921cfa9128d7aafb96d1f3c82ef06dde9eba649097d174bc41e93911dcd0910e3b5c95f35c27a7b0e5da4468193b237510b5ba2e8b34feff93226226541
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [v2.1.1](https://github.com/Muriel-Salvan/cline-rb/compare/v2.1.0...v2.1.1) (2026-10-28 09:57:49)
|
|
2
|
+
|
|
3
|
+
## Global changes
|
|
4
|
+
### Patches
|
|
5
|
+
|
|
6
|
+
* [fix(cline): refresh log cache after block-based monitoring](https://github.com/Muriel-Salvan/cline-rb/commit/bd3d05bbf783a8ccefd70e38d24f2204ddacfa7e)
|
|
7
|
+
|
|
8
|
+
## Changes for cline
|
|
9
|
+
### Patches
|
|
10
|
+
|
|
11
|
+
* [fix(cline): refresh log cache after block-based monitoring](https://github.com/Muriel-Salvan/cline-rb/commit/bd3d05bbf783a8ccefd70e38d24f2204ddacfa7e)
|
|
12
|
+
|
|
1
13
|
# [v2.1.0](https://github.com/Muriel-Salvan/cline-rb/compare/v2.0.0...v2.1.0) (2026-10-27 11:46:14)
|
|
2
14
|
|
|
3
15
|
## Global changes
|
data/lib/cline/logs.rb
CHANGED
|
@@ -62,7 +62,7 @@ module Cline
|
|
|
62
62
|
def monitor(on_log:, from: nil, monitoring_interval_secs: 1, &)
|
|
63
63
|
# Keep the last log line that we have read
|
|
64
64
|
last_log = from
|
|
65
|
-
Logs.monitor_file_changes(
|
|
65
|
+
monitor = Logs.monitor_file_changes(
|
|
66
66
|
file,
|
|
67
67
|
on_change: proc do |_mtime|
|
|
68
68
|
refresh!
|
|
@@ -78,6 +78,12 @@ module Cline
|
|
|
78
78
|
monitoring_interval_secs:,
|
|
79
79
|
&
|
|
80
80
|
)
|
|
81
|
+
# When monitoring is driven by a block, FileMonitor#start has already
|
|
82
|
+
# called #stop at the end of the block's execution. Invalidate the
|
|
83
|
+
# in-memory cache so that the next call to #logs reads from disk instead
|
|
84
|
+
# of a stale snapshot frozen during monitoring.
|
|
85
|
+
refresh! if block_given?
|
|
86
|
+
monitor
|
|
81
87
|
end
|
|
82
88
|
|
|
83
89
|
# Clear the cache in case the log file has changed
|
data/lib/cline/version.rb
CHANGED