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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e890e0acc47538871b9e73d58195cbd4053e31248c4c39311a8bc336c9ad0b4e
4
- data.tar.gz: c91b5c97748691e26cc58d4684d98210e7217a837be678651ffab7c0eab53b72
3
+ metadata.gz: a01259d29dbebf9ef8f098c9d86f4542719c9e7721ba6f8a31458ace1748216c
4
+ data.tar.gz: 55905c7acc0e83133241e54d68242d5a2a59a9aa212885eea06c485094a66c57
5
5
  SHA512:
6
- metadata.gz: 45f3b3a1cf5ada87815c1f3fdc11579886d81d15f5a5e251622b2269ba11b0de458ef6f9cead23b2bdd8d28b3096dca730720af0652ea4cb8625fe7fa3998e26
7
- data.tar.gz: '04685027eebb901d700ada489621b84a1f128399d4ea3f3a51cd275baebb61d50b3ed6b1e55299feea248e5775da158ca55d9b47c9f1cd55940c8bf560476403'
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
@@ -2,5 +2,5 @@ module Cline
2
2
  # @!group Public API
3
3
 
4
4
  # Gem version
5
- VERSION = '2.1.0'
5
+ VERSION = '2.1.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cline-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan