net-connector 0.16.0 → 0.16.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: 2a856fe47717bf2c4a52253eb7040e638001a5e4fbb780c73121de841bf10cfb
4
- data.tar.gz: 2465d4ad5839cfd66755276ac93ffa42ba1c663566ca259908ad18826ee68df9
3
+ metadata.gz: 8afbc2a37dcb0b9b96be6fd1af171201cb5315803452632f4af2be0db4d5a297
4
+ data.tar.gz: f11815c48829959e83e89b2bfd37956c4ee9c8eded44c92c200445292fe458c0
5
5
  SHA512:
6
- metadata.gz: da0967943641ebb2dced998fccdf816d6b9ac5f061134c463b4a21c51d1071d0ff9262247435a05d99102517e20a5587db432f81be761bd25d9071becccfd216
7
- data.tar.gz: c59656941ef560f45f0f164bee6f0a8f9ae16dacb08fcb75ec88d4db651d091c2a1cc14cc88206930d130d3dce97a563b0a1e34562179cc0a733dbfb897a6328
6
+ metadata.gz: 4de68d2427f07acaca0820aac064faeabad7d73a4be81e3286566affb3300a84511955a1f5b721751a488b38651cafe0226a2daecd1bed54d8521f7967b0bd48
7
+ data.tar.gz: c5d55197568da8f3a7945dd44697ad79d840ca7416408c57b9d605f1e2afb772d0a634eff72102e364e81fee6fdbb526a020300fa8085ac2018b58866cf96b96
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 未发布
4
4
 
5
+ ## 0.16.1 - 2026-10-21
6
+
7
+ - 普通命令输出的错误诊断跳过不需要的颜色和回车替换,减少大正文扫描;保留彩色错误、重绘历史及 UTF-8 诊断边界,并补充可比较源码版本的离线基准。
8
+
5
9
  ## 0.16.0 - 2026-10-20
6
10
 
7
11
  - 将共享资源预算迁至 `Net::Connector::Resources`,接口辅助对象统一为 `Interfaces::Name/Blocks/Description`;调用方及加载路径同步迁移。
@@ -34,7 +34,9 @@ module Net
34
34
  return if command_errors.empty?
35
35
 
36
36
  # 样式不改变诊断历史;先拼回被颜色拆开的词,再保留重绘之前的失败。
37
- raw = output.gsub(/\e\[[0-9;:]*m/, "").gsub(/\r(?!\n)/, "\n")
37
+ raw = output
38
+ raw = raw.gsub(/\e\[[0-9;:]*m/, "") if raw.include?("\e")
39
+ raw = raw.gsub(/\r(?!\n)/, "\n") if raw.include?("\r")
38
40
  diagnostic_line(raw) || (diagnostic_line(Terminal::Renderer.render(output)) if output.match?(/[\e\b]/))
39
41
  end
40
42
 
@@ -3,6 +3,6 @@
3
3
  module Net
4
4
  module Connector
5
5
  # gemspec、CLI 与发布工具共用此版本,运行时读取不触发设备依赖加载。
6
- VERSION = "0.16.0"
6
+ VERSION = "0.16.1"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - net-connector contributors
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-10-20 00:00:00.000000000 Z
10
+ date: 2026-10-21 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: expect-pty