test-unit 3.5.6 → 3.5.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76204c43946c95b92e409e9c59e020ca48d320d2b822af282501fbdaebe168b9
4
- data.tar.gz: 179f9510fdde6181202a061baff981b84c06c6b255026757659f95f1c8d6695d
3
+ metadata.gz: 59ba2bbe00e50cbe8fddafde4fcab620690213d5bca53fe5e154f42f5502cd6b
4
+ data.tar.gz: 5ec10a45c78af72d40b2d7439dafef5296b75fa46d89b9f1889338d2dc224829
5
5
  SHA512:
6
- metadata.gz: fa93c81087b59e439aee294d98b0854127b3d9117729b9d9bcaf8e0f7672fbbab3fbf4a69b6b4902c5c44cc9d367ea10a3cdca9f27062875ca1c169c53efc3a8
7
- data.tar.gz: f2e46b643c095e2a5538b984e5aa0082bfd98afd591b28a8e86cb3a261048a970783dd0c59e8b471e383087444e64f6dfe457a88402eef8318e7a369c3d4e25b
6
+ metadata.gz: b638f460ef3ce8328bb51ed7e3cdf4a79bf36d864fd0ba37cbc4c5e4c43922e1847ee25c1cbb29dde6aa3f1cc38daabe760790f4c65300e4588037641dbe121f
7
+ data.tar.gz: 71827e75e9bb25f5569458d3b7fa5edb9cdf3f1693c4ac988b670a3c55cd64bade2f046c966ac76293d76d1e26422afce45bf1ccbf9346086498083e6ca915e2
data/doc/text/news.md CHANGED
@@ -1,10 +1,17 @@
1
1
  # News
2
2
 
3
+ ## 3.5.7 - 2022-12-15 {#version-3-5-7}
4
+
5
+ ### Improvements
6
+
7
+ * [UI][console]: Changed to use color escape sequence for each line
8
+ instead of each output that may consist with multiple lines.
9
+
3
10
  ## 3.5.6 - 2022-12-15 {#version-3-5-6}
4
11
 
5
12
  ### Improvements
6
13
 
7
- * Enabled 256 colors output on GitHub Actions by default.
14
+ * [UI][console]: Enabled 256 colors output on GitHub Actions by default.
8
15
 
9
16
  ## 3.5.5 - 2022-10-04 {#version-3-5-5}
10
17
 
@@ -435,12 +435,14 @@ module Test
435
435
 
436
436
  def output_single(something, color=nil, level=nil)
437
437
  return false unless output?(level)
438
- if @use_color and color
439
- something = "%s%s%s" % [color.escape_sequence,
440
- something,
441
- @reset_color.escape_sequence]
438
+ something.to_s.each_line do |line|
439
+ if @use_color and color
440
+ line = "%s%s%s" % [color.escape_sequence,
441
+ line,
442
+ @reset_color.escape_sequence]
443
+ end
444
+ @output.write(line)
442
445
  end
443
- @output.write(something)
444
446
  @output.flush
445
447
  true
446
448
  end
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.5.6"
3
+ VERSION = "3.5.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.6
4
+ version: 3.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-12-14 00:00:00.000000000 Z
12
+ date: 2022-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert