grntest 1.7.8 → 1.7.9

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: 752069b1fbd54477134ea42d54fea3097660e6189b6cb93d5934830bc9c8d0ca
4
- data.tar.gz: a1003ddfd8e94e76fbe216ecb7b66a85988aee59e55a440640f99cf20d3e6e29
3
+ metadata.gz: cc54d010d9865952353911ecc275801053b4a33027ca51f2aa24dc5ccefda73e
4
+ data.tar.gz: 0e3fc69315e00ba579d90988545ae56876077e142bb198e566cbbc533493bcd6
5
5
  SHA512:
6
- metadata.gz: 1a29d70d424e56e5b3eb042cbe6aa6b007bf59a0f7188197a9b9213e4fc2262ef8ebe5cff0f7c293223efdc6c1af3109b9f7b7af91ec57a314d3c984f53da283
7
- data.tar.gz: 2fdd8a5056c20e100710799e3c5ceeae7f51763cb2fad786c7867bd928c6dd6871b102f44cbdf928ff2a2a813475e8d6694cdbec4ebfe6c2f841f1c4531e7395
6
+ metadata.gz: 19ac681e98e4bcb909d9fe459170f08dc5dd8341bc0d7a271c37a6a0487959613a19bef3ebbf26c652fb3cccf4dad0502a86b75ca55eb4192bcb60bd93ea44f1
7
+ data.tar.gz: a00c7d255075208623c5513ea2d905a83176444903a2f6dd6d51e353f6ba7f8d377c8923756eda27a97154e7f07f58d47bb4b11d407c9c632480695599bf18fd
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.7.9: 2025-01-23
4
+
5
+ ### Improvements
6
+
7
+ * Added support for normalizing `index_column_diff` progress log.
8
+
3
9
  ## 1.7.8: 2025-01-15
4
10
 
5
11
  ### Improvements
@@ -900,10 +900,34 @@ http {
900
900
  when /\A(line \d+:\d+: syntax error), unexpected .*\z/
901
901
  $1
902
902
  else
903
- content
903
+ lines = content.each_line(chomp: true).collect do |line|
904
+ normalize_error_message_line(line)
905
+ end
906
+ lines.join("\n")
907
+ end
908
+ end
909
+
910
+ def normalize_error_message_line(line)
911
+ case line
912
+ when /\A(#\|.\| \[index-column\]\[diff\]\[progress\].+%) (.*)\z/
913
+ pre = $1
914
+ statistics = $2
915
+ "#{pre} #{normalize_index_column_diff_progress_statistics(statistics)}"
916
+ else
917
+ line
904
918
  end
905
919
  end
906
920
 
921
+ def normalize_index_column_diff_progress_statistics(statistics)
922
+ statistics.
923
+ # 0.04s -> 0.00s
924
+ gsub(/\d+\.\d+([smhd])/, "0.00\\1").
925
+ # 227137.81records/s-> 0.00records/s
926
+ gsub(/\d+\.\d+records\/s/, "0.00records/s").
927
+ # 96.23MiB-> 0.00MiB
928
+ gsub(/\d+\.\d+(B|KiB|MiB|GiB)/, "0.00\\1")
929
+ end
930
+
907
931
  def normalize_error_function(function)
908
932
  function.split("::").last
909
933
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
1
+ # Copyright (C) 2012-2025 Sutou Kouhei <kou@clear-code.com>
2
2
  #
3
3
  # This program is free software: you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.7.8"
17
+ VERSION = "1.7.9"
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.8
4
+ version: 1.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  - Haruka Yoshihara
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-15 00:00:00.000000000 Z
11
+ date: 2025-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs