test-unit 3.5.5 → 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: e09829655cd246a5ea493def950c9475a3d48afb21b2b97796e08cbb9da88a93
4
- data.tar.gz: 530f99f43549ba9e89d9de1ead6ec95d299003142fb4ce31c22bff6a695e6bb2
3
+ metadata.gz: 59ba2bbe00e50cbe8fddafde4fcab620690213d5bca53fe5e154f42f5502cd6b
4
+ data.tar.gz: 5ec10a45c78af72d40b2d7439dafef5296b75fa46d89b9f1889338d2dc224829
5
5
  SHA512:
6
- metadata.gz: 2fabe6d0279022b6fa604da838f46274f396de22880c8d7fc6ad02f7dbc814b1220548d19ee03bb48589bbbd3b7aa125ec75387e965221e1b61489a9c27f92fb
7
- data.tar.gz: 9f8cfd6da553913832c84436aea0639ec28c0800a9d02a28c24f91557207c8aa9defba4db4bc384c9c7e86138ff48331533afaed63a7da374b9a4ecd6467f9ec
6
+ metadata.gz: b638f460ef3ce8328bb51ed7e3cdf4a79bf36d864fd0ba37cbc4c5e4c43922e1847ee25c1cbb29dde6aa3f1cc38daabe760790f4c65300e4588037641dbe121f
7
+ data.tar.gz: 71827e75e9bb25f5569458d3b7fa5edb9cdf3f1693c4ac988b670a3c55cd64bade2f046c966ac76293d76d1e26422afce45bf1ccbf9346086498083e6ca915e2
data/Rakefile CHANGED
@@ -55,3 +55,14 @@ end
55
55
  task :test do
56
56
  ruby("test/run-test.rb")
57
57
  end
58
+
59
+ namespace :doc do
60
+ task :add_permalink do
61
+ news_md = File.read("doc/text/news.md")
62
+ applied_permalink = news_md.gsub(/(?<pre>\[GitHub#(?<ref>\d+)\])(?!\()/) do
63
+ "#{Regexp.last_match[:pre]}(https://github.com/test-unit/test-unit/issues/#{Regexp.last_match[:ref]})"
64
+ end
65
+
66
+ File.write("doc/text/news.md", applied_permalink)
67
+ end
68
+ end
data/doc/text/news.md CHANGED
@@ -1,11 +1,24 @@
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
+
10
+ ## 3.5.6 - 2022-12-15 {#version-3-5-6}
11
+
12
+ ### Improvements
13
+
14
+ * [UI][console]: Enabled 256 colors output on GitHub Actions by default.
15
+
3
16
  ## 3.5.5 - 2022-10-04 {#version-3-5-5}
4
17
 
5
18
  ### Fixes
6
19
 
7
20
  * Suppressed a warning.
8
- [GitHub#219][Patch by Kenichi Kamiya]
21
+ [GitHub#219](https://github.com/test-unit/test-unit/issues/219)[Patch by Kenichi Kamiya]
9
22
 
10
23
  ### Thanks
11
24
 
@@ -16,10 +29,10 @@
16
29
  ### Improvements
17
30
 
18
31
  * Don't raise an error on `Test::Unit::TestCase.clone`.
19
- [GitHub#210][Reported by David Marchaland]
32
+ [GitHub#210](https://github.com/test-unit/test-unit/issues/210)[Reported by David Marchaland]
20
33
 
21
34
  * Added support for `BigDeciaml` in `assert_in_delta` family.
22
- [GitHub#218][Patch by Kenta Murata]
35
+ [GitHub#218](https://github.com/test-unit/test-unit/issues/218)[Patch by Kenta Murata]
23
36
 
24
37
  ### Thanks
25
38
 
@@ -32,7 +45,7 @@
32
45
  ### Improvements
33
46
 
34
47
  * Made how to sub test case generation customizable.
35
- [GitHub#207][Patch by Akira Matsuda]
48
+ [GitHub#207](https://github.com/test-unit/test-unit/issues/207)[Patch by Akira Matsuda]
36
49
 
37
50
  ### Thanks
38
51
 
@@ -43,7 +56,7 @@
43
56
  ### Improvements
44
57
 
45
58
  * Required `fileutils` lazy.
46
- [GitHub#206][Patch by David Rodríguez]
59
+ [GitHub#206](https://github.com/test-unit/test-unit/issues/206)[Patch by David Rodríguez]
47
60
 
48
61
  ### Thanks
49
62
 
@@ -85,7 +98,7 @@
85
98
  ### Fixes
86
99
 
87
100
  * Suppressed a warning on Ruby 2.
88
- [GitHub#205][Patch by Kenichi Kamiya]
101
+ [GitHub#205](https://github.com/test-unit/test-unit/issues/205)[Patch by Kenichi Kamiya]
89
102
 
90
103
  ### Thanks
91
104
 
@@ -106,21 +119,21 @@
106
119
  ### Improvements
107
120
 
108
121
  * Added more metadata to gemspec.
109
- [GitHub#183][Patch by Kenichi Kamiya]
122
+ [GitHub#183](https://github.com/test-unit/test-unit/issues/183)[Patch by Kenichi Kamiya]
110
123
 
111
124
  * Removed needless files from gem.
112
- [GitHub#184][Patch by Kenichi Kamiya]
125
+ [GitHub#184](https://github.com/test-unit/test-unit/issues/184)[Patch by Kenichi Kamiya]
113
126
 
114
127
  * Updated documents.
115
- [GitHub#191][GitHub#192][GitHub#193][GitHub#199][GitHub#200]
116
- [GitHub#201][Patch by Kenichi Kamiya]
128
+ [GitHub#191](https://github.com/test-unit/test-unit/issues/191)[GitHub#192](https://github.com/test-unit/test-unit/issues/192)[GitHub#193](https://github.com/test-unit/test-unit/issues/193)[GitHub#199](https://github.com/test-unit/test-unit/issues/199)[GitHub#200](https://github.com/test-unit/test-unit/issues/200)
129
+ [GitHub#201](https://github.com/test-unit/test-unit/issues/201)[Patch by Kenichi Kamiya]
117
130
 
118
131
  * Added `assert_nothing_leaked_memory`.
119
132
 
120
133
  ### Fixes
121
134
 
122
135
  * Fixed typos in documents.
123
- [GitHub#189][GitHub#190][GitHub#195][GitHub#197][Patch by Kenichi Kamiya]
136
+ [GitHub#189](https://github.com/test-unit/test-unit/issues/189)[GitHub#190](https://github.com/test-unit/test-unit/issues/190)[GitHub#195](https://github.com/test-unit/test-unit/issues/195)[GitHub#197](https://github.com/test-unit/test-unit/issues/197)[Patch by Kenichi Kamiya]
124
137
 
125
138
  ### Thanks
126
139
 
@@ -157,7 +170,7 @@
157
170
  * Fixed a bug that `setup`/`cleanup`/`teardown` with block may be
158
171
  overwritten by another `setup`/`cleanup`/`teardown` with
159
172
  block. It's caused only with Ruby 2.6 or earlier.
160
- [GitHub#179][Reported by akira yamada]
173
+ [GitHub#179](https://github.com/test-unit/test-unit/issues/179)[Reported by akira yamada]
161
174
 
162
175
  ### Thanks
163
176
 
@@ -174,7 +187,7 @@
174
187
  ### Improvements
175
188
 
176
189
  * `assert_not_match`: Add support for `String` as pattern.
177
- [GitHub#178][Patch by David Rodríguez]
190
+ [GitHub#178](https://github.com/test-unit/test-unit/issues/178)[Patch by David Rodríguez]
178
191
 
179
192
  ### Thanks
180
193
 
@@ -192,23 +205,23 @@
192
205
  ### Improvements
193
206
 
194
207
  * Improved TruffleRuby support.
195
- [GitHub#171][Reported by Benoit Daloze]
208
+ [GitHub#171](https://github.com/test-unit/test-unit/issues/171)[Reported by Benoit Daloze]
196
209
 
197
210
  * Removed needless `to_sym`.
198
- [GitHub#177][Patch by icm7216]
211
+ [GitHub#177](https://github.com/test-unit/test-unit/issues/177)[Patch by icm7216]
199
212
 
200
213
  * `assert_raise`: Added backtrace for actual error.
201
214
 
202
215
  * Improved terminal color availability detection.
203
- [GitHub#175][Patch by nicholas a. evans]
216
+ [GitHub#175](https://github.com/test-unit/test-unit/issues/175)[Patch by nicholas a. evans]
204
217
 
205
218
  * Changed license to the new Ruby's.
206
- [GitHub#174]
219
+ [GitHub#174](https://github.com/test-unit/test-unit/issues/174)
207
220
 
208
221
  ### Fixes
209
222
 
210
223
  * Fixed a typo in `--help` output:
211
- [GitHub#176][Patch by icm7216]
224
+ [GitHub#176](https://github.com/test-unit/test-unit/issues/176)[Patch by icm7216]
212
225
 
213
226
  ### Thanks
214
227
 
@@ -230,7 +243,7 @@
230
243
  [Reported by Jun Aruga]
231
244
 
232
245
  * Updated ruby-talk mailing list information
233
- [GitHub#168][Patch by Chris Kampmeier]
246
+ [GitHub#168](https://github.com/test-unit/test-unit/issues/168)[Patch by Chris Kampmeier]
234
247
 
235
248
  ### Thanks
236
249
 
@@ -243,7 +256,7 @@
243
256
  ### Improvements
244
257
 
245
258
  * Improved code snippet showing with different default external encoding.
246
- [GitHub#166][Patch by Yuta Iwama]
259
+ [GitHub#166](https://github.com/test-unit/test-unit/issues/166)[Patch by Yuta Iwama]
247
260
 
248
261
  ### Thanks
249
262
 
@@ -254,10 +267,10 @@
254
267
  ### Improvements
255
268
 
256
269
  * Converted markup format to Markdown from RDoc.
257
- [GitHub#164][Patch by OGAWA KenIchi]
270
+ [GitHub#164](https://github.com/test-unit/test-unit/issues/164)[Patch by OGAWA KenIchi]
258
271
 
259
272
  * test: Stopped to depend on `Time#inspect` format.
260
- [GitHub#165][Reported by Benoit Daloze]
273
+ [GitHub#165](https://github.com/test-unit/test-unit/issues/165)[Reported by Benoit Daloze]
261
274
 
262
275
  ### Thanks
263
276
 
@@ -292,7 +305,7 @@
292
305
  * Added support for `Test::Unit::AssertionFailedError#user_message`
293
306
  for not only `assert_equal` and `assert_raise` but also all
294
307
  assertions.
295
- [GitHub#162][Reported by xgraffm]
308
+ [GitHub#162](https://github.com/test-unit/test-unit/issues/162)[Reported by xgraffm]
296
309
 
297
310
  ### Thanks
298
311
 
@@ -307,10 +320,10 @@
307
320
 
308
321
  * Added support for defining methods to test case class in multiple
309
322
  threads.
310
- [GitHub#159][Reported by Charles Oliver Nutter]
323
+ [GitHub#159](https://github.com/test-unit/test-unit/issues/159)[Reported by Charles Oliver Nutter]
311
324
 
312
325
  * Suppressed warnings on Ruby 2.5.
313
- [GitHub#160][Reported by Daniel Berger]
326
+ [GitHub#160](https://github.com/test-unit/test-unit/issues/160)[Reported by Daniel Berger]
314
327
 
315
328
  * Suppressed warnings on Ruby 2.7.
316
329
 
@@ -318,7 +331,7 @@
318
331
 
319
332
  * Fixed a code snippet fetch failure when source code isn't UTF-8
320
333
  and the default external encoding is set to not UTF-8.
321
- [GitHub#161][Reported by masa kunikata]
334
+ [GitHub#161](https://github.com/test-unit/test-unit/issues/161)[Reported by masa kunikata]
322
335
 
323
336
  ### Thanks
324
337
 
@@ -411,10 +424,10 @@
411
424
  ### Improvements
412
425
 
413
426
  * Added source code link to gemspec.
414
- [GitHub#157][Patch by Grey Baker]
427
+ [GitHub#157](https://github.com/test-unit/test-unit/issues/157)[Patch by Grey Baker]
415
428
 
416
429
  * Changed to use SVG image for badges in README.
417
- [GitHub#158][Patch by Olle Jonsson]
430
+ [GitHub#158](https://github.com/test-unit/test-unit/issues/158)[Patch by Olle Jonsson]
418
431
 
419
432
  * [UI][console]: Added `--reverse-output` option to output fault
420
433
  details in reverse like Ruby 2.5. It's enabled by default only for
@@ -423,7 +436,7 @@
423
436
  ### Fixes
424
437
 
425
438
  * Fixed a typo.
426
- [GitHub#156][Patch by masa kunikata]
439
+ [GitHub#156](https://github.com/test-unit/test-unit/issues/156)[Patch by masa kunikata]
427
440
 
428
441
  * [UI][console]: Fixed a bug that broken align in verbose mode.
429
442
 
@@ -440,7 +453,7 @@
440
453
  ### Improvements
441
454
 
442
455
  * Changed test file require failure to error from omission.
443
- [GitHub#154][Patch by naofumi-fujii]
456
+ [GitHub#154](https://github.com/test-unit/test-unit/issues/154)[Patch by naofumi-fujii]
444
457
 
445
458
  ### Thanks
446
459
 
@@ -451,7 +464,7 @@
451
464
  ### Improvements
452
465
 
453
466
  * Supported `--enable-frozen-string-literal` `ruby` option.
454
- [GitHub#149][Reported by Pat Allan]
467
+ [GitHub#149](https://github.com/test-unit/test-unit/issues/149)[Reported by Pat Allan]
455
468
 
456
469
  ### Thanks
457
470
 
@@ -463,39 +476,39 @@
463
476
 
464
477
  * Updated tests for Ruby 2.4. [GitHUb#136][Patch by Kazuki Tsujimoto]
465
478
 
466
- * Supported power\_assert 1.0.0. [GitHub#137][Patch by Kazuki Tsujimoto]
479
+ * Supported power\_assert 1.0.0. [GitHub#137](https://github.com/test-unit/test-unit/issues/137)[Patch by Kazuki Tsujimoto]
467
480
 
468
481
  * Added the getting started document.
469
- [GitHub#139][GitHub#141][Patch by Hiroyuki Sato]
482
+ [GitHub#139](https://github.com/test-unit/test-unit/issues/139)[GitHub#141](https://github.com/test-unit/test-unit/issues/141)[Patch by Hiroyuki Sato]
470
483
 
471
484
  * Added the document for `attribute`.
472
- [GitHub#143][Patch by Fumiaki MATSUSHIMA]
485
+ [GitHub#143](https://github.com/test-unit/test-unit/issues/143)[Patch by Fumiaki MATSUSHIMA]
473
486
 
474
- * Improved a link for GitHub. [GitHub#144][Patch by rochefort]
487
+ * Improved a link for GitHub. [GitHub#144](https://github.com/test-unit/test-unit/issues/144)[Patch by rochefort]
475
488
 
476
- * Updated `.travis.yml`. [GitHub#145][Patch by Jun Aruga]
489
+ * Updated `.travis.yml`. [GitHub#145](https://github.com/test-unit/test-unit/issues/145)[Patch by Jun Aruga]
477
490
 
478
491
  ### Fixes
479
492
 
480
- * Fixed a contributor name. [GitHub#131][Patch by Akira Matsuda]
493
+ * Fixed a contributor name. [GitHub#131](https://github.com/test-unit/test-unit/issues/131)[Patch by Akira Matsuda]
481
494
 
482
- * Fixed typos in document. [GitHub#132][Patch by Akira Matsuda]
495
+ * Fixed typos in document. [GitHub#132](https://github.com/test-unit/test-unit/issues/132)[Patch by Akira Matsuda]
483
496
 
484
- * Fixed typos in document. [GitHub#134][Patch by Yuji Yaginuma]
497
+ * Fixed typos in document. [GitHub#134](https://github.com/test-unit/test-unit/issues/134)[Patch by Yuji Yaginuma]
485
498
 
486
499
  * Fixed a bug that data label with "(" isn't supported.
487
- [GitHub#135][Reported by Kazuki Tsujimoto]
500
+ [GitHub#135](https://github.com/test-unit/test-unit/issues/135)[Reported by Kazuki Tsujimoto]
488
501
 
489
502
  * Fixed assertion message in English.
490
- [GitHub#133][Reported by Khalil Fazal]
503
+ [GitHub#133](https://github.com/test-unit/test-unit/issues/133)[Reported by Khalil Fazal]
491
504
 
492
- * Fixed a typo in typo fix. [GitHub#138][Patch by kami]
505
+ * Fixed a typo in typo fix. [GitHub#138](https://github.com/test-unit/test-unit/issues/138)[Patch by kami]
493
506
 
494
507
  * Fixed a bug that target location finder may return wrong
495
- location. [GitHub#146][Patch by Yuki Ito]
508
+ location. [GitHub#146](https://github.com/test-unit/test-unit/issues/146)[Patch by Yuki Ito]
496
509
 
497
510
  * Fixed a bug that `--no-show-detail-immediately` raises an error.
498
- [GitHub#147][Reported by MSP-Greg]
511
+ [GitHub#147](https://github.com/test-unit/test-unit/issues/147)[Reported by MSP-Greg]
499
512
 
500
513
  ### Thanks
501
514
 
@@ -526,7 +539,7 @@
526
539
  ### Fixes
527
540
 
528
541
  * Fixed a bug that `--order` isn't applied.
529
- [GitHub#129][Reported by Vít Ondruch]
542
+ [GitHub#129](https://github.com/test-unit/test-unit/issues/129)[Reported by Vít Ondruch]
530
543
 
531
544
  ### Thanks
532
545
 
@@ -537,14 +550,14 @@
537
550
  ### Improvements
538
551
 
539
552
  * Improved Travis CI configuration.
540
- [GitHub#123][Patch by Ryunosuke Sato]
553
+ [GitHub#123](https://github.com/test-unit/test-unit/issues/123)[Patch by Ryunosuke Sato]
541
554
 
542
555
  * Supported Java native exception.
543
- [GitHub#126][Reported by Bob Saveland]
556
+ [GitHub#126](https://github.com/test-unit/test-unit/issues/126)[Reported by Bob Saveland]
544
557
 
545
558
  ### Fixes
546
559
 
547
- * doc: Fixed markup. [GitHub#127][Patch by Tomohiro Hashidate]
560
+ * doc: Fixed markup. [GitHub#127](https://github.com/test-unit/test-unit/issues/127)[Patch by Tomohiro Hashidate]
548
561
 
549
562
  * Fixed a bug that `--location=LINE` may not detect a test when
550
563
  fixtures are defined before any tests:
@@ -581,7 +594,7 @@
581
594
 
582
595
  * Reported norification when data driven test doesn't have
583
596
  parameter.
584
- [GitHub#122][Reported by Satoshi "Moris" Tagomori]
597
+ [GitHub#122](https://github.com/test-unit/test-unit/issues/122)[Reported by Satoshi "Moris" Tagomori]
585
598
 
586
599
  ### Thanks
587
600
 
@@ -594,7 +607,7 @@
594
607
  ### Improvements
595
608
 
596
609
  * Supported rxvt family terminals as color available terminals.
597
- [GitHub#121][Reported by Ippei Kishida]
610
+ [GitHub#121](https://github.com/test-unit/test-unit/issues/121)[Reported by Ippei Kishida]
598
611
 
599
612
  ### Thanks
600
613
 
@@ -605,7 +618,7 @@
605
618
  ### Fixes
606
619
 
607
620
  * Fixed conflict with test-unit-power_assert.
608
- [GitHub#120][Patch by Kazuki Tsujimoto]
621
+ [GitHub#120](https://github.com/test-unit/test-unit/issues/120)[Patch by Kazuki Tsujimoto]
609
622
 
610
623
  * Fixed a bug that path in `$LOAD_PATH` may be removed.
611
624
 
@@ -634,7 +647,7 @@ It's a Ruby on Rails integration improvement release.
634
647
  ### Improvements
635
648
 
636
649
  * Filtered backtrace of power\_assert.
637
- [GitHub#114]
650
+ [GitHub#114](https://github.com/test-unit/test-unit/issues/114)
638
651
  * Improved performance to retrieve test defined location.
639
652
  * Improved performance to run fixtures in a test.
640
653
  * Supported running a test by `yield` in `setup`:
@@ -674,7 +687,7 @@ It's a Ruby on Rails integration improvement release.
674
687
 
675
688
  * Fixed a bug that test isn't ran. The test has the same name as
676
689
  data driven test that is defined in parent test case.
677
- [GitHub#115]
690
+ [GitHub#115](https://github.com/test-unit/test-unit/issues/115)
678
691
 
679
692
  ## 3.1.5 - 2015-10-09 {#version-3-1-5}
680
693
 
@@ -684,7 +697,7 @@ It's a Rack integration improvement release.
684
697
 
685
698
  * Renamed experimental top-level `run` method to `run_test` method
686
699
  because `run` is conflicted with Rack.
687
- [GitHub#32][GitHub:basecamp/pow#303] [Reported by Yevhen Viktorov]
700
+ [GitHub#32](https://github.com/test-unit/test-unit/issues/32)[GitHub:basecamp/pow#303] [Reported by Yevhen Viktorov]
688
701
 
689
702
  ### Thanks
690
703
 
@@ -696,14 +709,14 @@ It's a minor improvement release.
696
709
 
697
710
  ### Improvements
698
711
 
699
- * Updated sample code. [GitHub#109][Patch by takiy33]
700
- * Updated .travis.yml. [GitHub#110][Patch by takiy33]
712
+ * Updated sample code. [GitHub#109](https://github.com/test-unit/test-unit/issues/109)[Patch by takiy33]
713
+ * Updated .travis.yml. [GitHub#110](https://github.com/test-unit/test-unit/issues/110)[Patch by takiy33]
701
714
  * document: Added table header in how to document.
702
- [GitHub#111][Patch by takiy33]
715
+ [GitHub#111](https://github.com/test-unit/test-unit/issues/111)[Patch by takiy33]
703
716
  * Removed duplicated code.
704
- [GitHub#112][Patch by takiy33]
717
+ [GitHub#112](https://github.com/test-unit/test-unit/issues/112)[Patch by takiy33]
705
718
  * Removed needless encoding conversion in fetching code snippet.
706
- [GitHub#113][Patch by NARUSE, Yui]
719
+ [GitHub#113](https://github.com/test-unit/test-unit/issues/113)[Patch by NARUSE, Yui]
707
720
 
708
721
  ### Thanks
709
722
 
@@ -716,7 +729,7 @@ It's a bug fix release.
716
729
 
717
730
  ### Improvements
718
731
 
719
- * Removed unused `TODO` file. [GitHub#108][Patch by takiy33]
732
+ * Removed unused `TODO` file. [GitHub#108](https://github.com/test-unit/test-unit/issues/108)[Patch by takiy33]
720
733
 
721
734
  ### Fixes
722
735
 
@@ -771,7 +784,7 @@ It's a bug fix release.
771
784
 
772
785
  * Fixed a bug that `--location` detects tests not only in sub test
773
786
  case but also parent test case.
774
- [GitHub#105][Reported by wanabe]
787
+ [GitHub#105](https://github.com/test-unit/test-unit/issues/105)[Reported by wanabe]
775
788
 
776
789
  ### Thanks
777
790
 
@@ -788,18 +801,18 @@ It's a bug fix release.
788
801
  ### Fixes
789
802
 
790
803
  * Fixed a bug that priority mode can't be used on Windows.
791
- [GitHub#95][Reported by Daniel Berger]
804
+ [GitHub#95](https://github.com/test-unit/test-unit/issues/95)[Reported by Daniel Berger]
792
805
  * Fixed a homepage URL RubyGems spec.
793
- [GitHub#96][Patch by Masayoshi Takahashi]
794
- supported.) [GitHub#89][Patch by Aaron Stone]
806
+ [GitHub#96](https://github.com/test-unit/test-unit/issues/96)[Patch by Masayoshi Takahashi]
807
+ supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
795
808
  * Fixed a bug that shutdown hook isn't called when pass throw
796
809
  exception such as `Interrupt` is raised.
797
- [GitHub#98][Reported by jeremiahishere.]
810
+ [GitHub#98](https://github.com/test-unit/test-unit/issues/98)[Reported by jeremiahishere.]
798
811
  * Fixed typos in documents.
799
- [GitHub#100][Reported by scivola]
800
- [GitHub#102][GitHub#103][Patch by Masafumi Yokoyama]
812
+ [GitHub#100](https://github.com/test-unit/test-unit/issues/100)[Reported by scivola]
813
+ [GitHub#102](https://github.com/test-unit/test-unit/issues/102)[GitHub#103](https://github.com/test-unit/test-unit/issues/103)[Patch by Masafumi Yokoyama]
801
814
  * Fixed a bug that the same name test isn't executed in sub test case.
802
- [GitHub#104][Reported by wanabe]
815
+ [GitHub#104](https://github.com/test-unit/test-unit/issues/104)[Reported by wanabe]
803
816
 
804
817
  ### Thanks
805
818
 
@@ -817,9 +830,9 @@ It's a release that improves colors.
817
830
  ### Improvements
818
831
 
819
832
  * Added a work around for Ruby 1.8. (Note: Ruby 1.8 isn't
820
- supported.) [GitHub#89][Patch by Aaron Stone]
833
+ supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
821
834
  * Supported colorized output on Windows.
822
- [GitHub#90][Patch by usa]
835
+ [GitHub#90](https://github.com/test-unit/test-unit/issues/90)[Patch by usa]
823
836
  * Improved colorized output.
824
837
  http://www.a-k-r.org/d/2014-12.html#a2014_12_27_1
825
838
  [Suggested by Tanaka Akira]
@@ -839,7 +852,7 @@ It's a release that supports Ruby 2.2.0 preview2.
839
852
  * Added a link for YARD in README.
840
853
  [GitHub:test-unit.github.io#2][Reported by sunnyone]
841
854
  * Added description about "/PATTERN/" style value in auto runner usage.
842
- [GitHub#86][Suggested by sunnyone]
855
+ [GitHub#86](https://github.com/test-unit/test-unit/issues/86)[Suggested by sunnyone]
843
856
  * Supported Ruby 2.2.0 preview2 in `assert_throw` and
844
857
  `assert_nothing_thrown`.
845
858
 
@@ -847,7 +860,7 @@ It's a release that supports Ruby 2.2.0 preview2.
847
860
 
848
861
  * Fixed a bug that error report is failed when source encoding and
849
862
  locale encoding are different.
850
- [GitHub#87][Reported by scivola]
863
+ [GitHub#87](https://github.com/test-unit/test-unit/issues/87)[Reported by scivola]
851
864
 
852
865
  ### Thanks
853
866
 
@@ -862,7 +875,7 @@ It's a minor update release.
862
875
 
863
876
  * Fixed a bug that teardown blocks aren't called with sub class to
864
877
  parent class order.
865
- [GitHub#85][Reported by TOMITA Masahiro]
878
+ [GitHub#85](https://github.com/test-unit/test-unit/issues/85)[Reported by TOMITA Masahiro]
866
879
 
867
880
  ### Thanks
868
881
 
@@ -875,7 +888,7 @@ It's a minor update release.
875
888
  ### Improvements
876
889
 
877
890
  * Improved code snippet location.
878
- [GitHub#84][Patch by Yuki Kurihara]
891
+ [GitHub#84](https://github.com/test-unit/test-unit/issues/84)[Patch by Yuki Kurihara]
879
892
 
880
893
  ### Thanks
881
894
 
@@ -889,7 +902,7 @@ It's a minor update release.
889
902
 
890
903
  * Fixed a bug that startup/shutdown of parent test case isn't called
891
904
  when the test case includes one or more modules.
892
- [GitHub#83][Reported by Chadderton Odwazny]
905
+ [GitHub#83](https://github.com/test-unit/test-unit/issues/83)[Reported by Chadderton Odwazny]
893
906
 
894
907
  ### Thanks
895
908
 
@@ -903,7 +916,7 @@ It's a minor update release.
903
916
 
904
917
  * Stopped to remove JRuby and Rubinius internal backtrace entries from
905
918
  backtrace on failure/error.
906
- [GitHub#82][Patch by Charles Oliver Nutter]
919
+ [GitHub#82](https://github.com/test-unit/test-unit/issues/82)[Patch by Charles Oliver Nutter]
907
920
 
908
921
  ### Thanks
909
922
 
@@ -923,7 +936,7 @@ It's a minor update release.
923
936
  ### Fixes
924
937
 
925
938
  * Fixed markup in document.
926
- [GitHub#81][Patch by Masafumi Yokoyama]
939
+ [GitHub#81](https://github.com/test-unit/test-unit/issues/81)[Patch by Masafumi Yokoyama]
927
940
 
928
941
  ### Thanks
929
942
 
@@ -938,18 +951,18 @@ It's a minor update release.
938
951
 
939
952
  * Supported broken `==` implementation.
940
953
  `==` implementation should be fixed but it's not work of test-unit. :<
941
- [GitHub#71][Reported by Emily]
954
+ [GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Reported by Emily]
942
955
  * [UI][console]: Accepted no message failure.
943
- [GitHub#66][Reported by Brian Tatnall]
956
+ [GitHub#66](https://github.com/test-unit/test-unit/issues/66)[Reported by Brian Tatnall]
944
957
  * Updated gem description.
945
- [GitHub#74][Patch by Vít Ondruch]
958
+ [GitHub#74](https://github.com/test-unit/test-unit/issues/74)[Patch by Vít Ondruch]
946
959
  * Updated GPL text.
947
- [GitHub#78][Patch by Vít Ondruch]
960
+ [GitHub#78](https://github.com/test-unit/test-unit/issues/78)[Patch by Vít Ondruch]
948
961
 
949
962
  ### Fixes
950
963
 
951
964
  * Removed needless executable bit from README file.
952
- [GitHub#79][Patch by Vít Ondruch]
965
+ [GitHub#79](https://github.com/test-unit/test-unit/issues/79)[Patch by Vít Ondruch]
953
966
 
954
967
  ### Thanks
955
968
 
@@ -965,7 +978,7 @@ It's a minor update release.
965
978
 
966
979
  * Improved Ruby 1.8.7 support. Note that we don't support Ruby 1.8.7
967
980
  actively. We just support if its support is painless.
968
- [GitHub#71][Patch by estolfo]
981
+ [GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Patch by estolfo]
969
982
 
970
983
  ### Thanks
971
984
 
@@ -978,10 +991,10 @@ It's Power Assert supported release!
978
991
  ### Improvements
979
992
 
980
993
  * Improved Rubinius support. [Ryo Onodera]
981
- * Updated RR repository link. [GitHub#56][Patch by Kenichi Kamiya]
994
+ * Updated RR repository link. [GitHub#56](https://github.com/test-unit/test-unit/issues/56)[Patch by Kenichi Kamiya]
982
995
  * Added some minitest compatible assertions. We don't recommend
983
996
  using these assertions. They are just for migrating from minitest.
984
- [GitHub#57][Patch by Karol Bucek]
997
+ [GitHub#57](https://github.com/test-unit/test-unit/issues/57)[Patch by Karol Bucek]
985
998
  * {Test::Unit::Assertions#refute}
986
999
  * {Test::Unit::Assertions#refute_predicate}
987
1000
  * {Test::Unit::Assertions#refute_empty}
@@ -995,13 +1008,13 @@ It's Power Assert supported release!
995
1008
  * {Test::Unit::Assertions#refute_operator}
996
1009
  * Improved code readability. [Suggested by Kenichi Kamiya]
997
1010
  * Made license field in RubyGems parseable.
998
- [GitHub#60][Patch by Michael Grosser]
1011
+ [GitHub#60](https://github.com/test-unit/test-unit/issues/60)[Patch by Michael Grosser]
999
1012
  * Improved test case match feature by `--testcase` and `--ignore-testcase`
1000
1013
  options. They also checks parent class names.
1001
1014
  * Made inspected representation of Numeric objects especially
1002
- BigDecimal more readable. [GitHub#64][Reported by Byron Appelt]
1015
+ BigDecimal more readable. [GitHub#64](https://github.com/test-unit/test-unit/issues/64)[Reported by Byron Appelt]
1003
1016
  * Added badges for Traivs CI and RubyGems.
1004
- [GitHub#65][Patch by Byron Appelt]
1017
+ [GitHub#65](https://github.com/test-unit/test-unit/issues/65)[Patch by Byron Appelt]
1005
1018
  * Supported Power Assert. You can use Power Assert with
1006
1019
  {Test::Unit::Assertions#assert} with block. See method document
1007
1020
  for details. We recommend using Power Assert for predicate method
@@ -1015,10 +1028,10 @@ It's Power Assert supported release!
1015
1028
  ### Fixes
1016
1029
 
1017
1030
  * Fixed a bug that test case defined by block has wrong location.
1018
- [GitHub#58][Patch by Narihiro Nakamura]
1031
+ [GitHub#58](https://github.com/test-unit/test-unit/issues/58)[Patch by Narihiro Nakamura]
1019
1032
  * Fixed a bug that test methods defined in included modules in
1020
1033
  super-class are also collected.
1021
- [GitHub#62][GitHub#63][Patch by Karol Bucek]
1034
+ [GitHub#62](https://github.com/test-unit/test-unit/issues/62)[GitHub#63](https://github.com/test-unit/test-unit/issues/63)[Patch by Karol Bucek]
1022
1035
 
1023
1036
  ### Thanks
1024
1037
 
@@ -1036,14 +1049,14 @@ It's Ruby 2.0.0 supported release!
1036
1049
 
1037
1050
  ### Improvements
1038
1051
 
1039
- * Supported Ruby 2.0.0. [GitHub#54] [Reported by mtasaka]
1052
+ * Supported Ruby 2.0.0. [GitHub#54](https://github.com/test-unit/test-unit/issues/54) [Reported by mtasaka]
1040
1053
  * Accepted screen-256color TERM as 256 colors available environment.
1041
- [GitHub#55] [Reported by Tom Miller]
1054
+ [GitHub#55](https://github.com/test-unit/test-unit/issues/55) [Reported by Tom Miller]
1042
1055
 
1043
1056
  ### Fixes
1044
1057
 
1045
1058
  * Fixed a typo in document.
1046
- [GitHub#53] [Patch by Baptiste Fontaine]
1059
+ [GitHub#53](https://github.com/test-unit/test-unit/issues/53) [Patch by Baptiste Fontaine]
1047
1060
  * Fixed a bug in {Test::Unit::Assertions#assert_in_epsilon}. It doesn't work
1048
1061
  as expected if expected value is negative value.
1049
1062
  [Ruby Bug #8317] [Reported by Nobuhiro IMAI]
@@ -1068,7 +1081,7 @@ It's a bug fix release.
1068
1081
  ### Fixes
1069
1082
 
1070
1083
  * Fixed a bug. It is too slow to filter tests when there are many
1071
- tests. [GitHub#46]
1084
+ tests. [GitHub#46](https://github.com/test-unit/test-unit/issues/46)
1072
1085
  * Accept anonymous test suite.
1073
1086
  [GitHub:#49] [Reported by Matthew Rudy Jacobs]
1074
1087
 
@@ -1086,21 +1099,21 @@ It's a release for minitest compatibility and bug fix.
1086
1099
  * Added some assersion methods just for minitest compatibility.
1087
1100
  Added methods are assert_includes(), refute_*() and refute().
1088
1101
  If you are test-unit user, please don't use them.
1089
- [GitHub#40] [Suggested by Michael Grosser]
1102
+ [GitHub#40](https://github.com/test-unit/test-unit/issues/40) [Suggested by Michael Grosser]
1090
1103
  * Added --attribute option to select target tests by attribute.
1091
1104
  [test-unit-users-en:00098] [Suggested by Piotr Nestorow]
1092
1105
 
1093
1106
  ### Fixes
1094
1107
 
1095
1108
  * Allowed use of test for inheritance in ActionController::TestCase.
1096
- [GitHub#42] [Patch by David Rasch]
1109
+ [GitHub#42](https://github.com/test-unit/test-unit/issues/42) [Patch by David Rasch]
1097
1110
  * Ensured evaluating at_exit block in top level.
1098
1111
  In IRB context, exit() specifies irb_exit().
1099
1112
  [test-unit-users-en:00089] [Reported by Daniel Berger]
1100
1113
  * Fixed a bug that decoration style description is ignored.
1101
1114
  "decoration style description" are using description method
1102
1115
  above "def test_name" or with Symbol specifying test_name.
1103
- [GitHub#45] [Reported by Piotr Nestorow]
1116
+ [GitHub#45](https://github.com/test-unit/test-unit/issues/45) [Reported by Piotr Nestorow]
1104
1117
 
1105
1118
  ### Thanks
1106
1119
 
@@ -1118,10 +1131,10 @@ feature to `context` in shoulda-context and RSpec.
1118
1131
  ### Improvements
1119
1132
 
1120
1133
  * Cleaned up tests.
1121
- [GitHub#34] [Patch by Michael Grosser]
1134
+ [GitHub#34](https://github.com/test-unit/test-unit/issues/34) [Patch by Michael Grosser]
1122
1135
  * Added missing background color for 8 color environment.
1123
1136
  * Added workaround for NetBeans.
1124
- [GitHub#38] [Reported by Marc Cooper]
1137
+ [GitHub#38](https://github.com/test-unit/test-unit/issues/38) [Reported by Marc Cooper]
1125
1138
  * Added `--location` command line option that selects target tests
1126
1139
  by test defined location.
1127
1140
  * Created sub test suite for each subclassed test case.
@@ -1131,7 +1144,7 @@ feature to `context` in shoulda-context and RSpec.
1131
1144
  [Good hook name is suggested by kdmsnr]
1132
1145
  * Improved code snippet target on failure. Test method is always used
1133
1146
  for code snippet target.
1134
- [GitHub#39] [Suggested by Michael Grosser]
1147
+ [GitHub#39](https://github.com/test-unit/test-unit/issues/39) [Suggested by Michael Grosser]
1135
1148
  * Added {Test::Unit::TestCase.sub_test_case} that creates sub test case.
1136
1149
  The sub test case name isn't limited Ruby's constant name rule. You can
1137
1150
  specify the sub test case name in free form.
@@ -1149,16 +1162,16 @@ It's a bug fix release.
1149
1162
  ### Improvements
1150
1163
 
1151
1164
  * Supported installing from GitHub.
1152
- [GitHub#29] [Suggested by Michael Grosser]
1165
+ [GitHub#29](https://github.com/test-unit/test-unit/issues/29) [Suggested by Michael Grosser]
1153
1166
  * Supported ActiveSupport::TestCase.
1154
- [GitHub#30] [Reported by Michael Grosser]
1167
+ [GitHub#30](https://github.com/test-unit/test-unit/issues/30) [Reported by Michael Grosser]
1155
1168
  * [ui][console] Improved multiline falut message display.
1156
1169
 
1157
1170
  ### Fixes
1158
1171
 
1159
1172
  * [ui][console] Fixed a bug that expected and actual values are
1160
1173
  empty.
1161
- [GitHub#31][GitHub#33]
1174
+ [GitHub#31](https://github.com/test-unit/test-unit/issues/31)[GitHub#33](https://github.com/test-unit/test-unit/issues/33)
1162
1175
  [Reported by Kendall Buchanan][Reported by Mathieu Martin]
1163
1176
  [Hinted by Michael Grosser]
1164
1177
  * Fixed a bug that .gemspec can't be loaded on LANG=C.
@@ -1179,7 +1192,7 @@ It's a bug fix release.
1179
1192
 
1180
1193
  * Fixed a backward incompatibility of `TestUnitMediator#run_suite`
1181
1194
  introduced in 2.4.9.
1182
- [GitHub#28] [Reported by Vladislav Rassokhin]
1195
+ [GitHub#28](https://github.com/test-unit/test-unit/issues/28) [Reported by Vladislav Rassokhin]
1183
1196
 
1184
1197
  ### Thanks
1185
1198
 
@@ -1200,7 +1213,7 @@ It's a bug fix release.
1200
1213
  * Supported showing ASCII-8BIT diff in failure message.
1201
1214
  * [ui][console] Supported `ENV["TERM"] == "xterm-256color"` as color
1202
1215
  available terminal.
1203
- [GitHub#26] [Reported by Michael Grosser]
1216
+ [GitHub#26](https://github.com/test-unit/test-unit/issues/26) [Reported by Michael Grosser]
1204
1217
  * [ui][console] Supported "-256color" suffix `ENV["TERM"]` terminal
1205
1218
  as 256 color supported terminal.
1206
1219
 
@@ -1211,7 +1224,7 @@ It's a bug fix release.
1211
1224
  says.
1212
1225
  [RubyForge#29554] [Reported by Bob Saveland]
1213
1226
  * Added missing `require "test/unit/diff"`.
1214
- [GitHub#25] [Reported by Stephan Kulow]
1227
+ [GitHub#25](https://github.com/test-unit/test-unit/issues/25) [Reported by Stephan Kulow]
1215
1228
 
1216
1229
  ### Thanks
1217
1230
 
@@ -126,6 +126,7 @@ module Test
126
126
  guess_available_colors_from_vte_version_env ||
127
127
  guess_available_colors_from_colorterm_env ||
128
128
  guess_available_colors_from_term_env ||
129
+ guess_available_colors_from_github_actions_env ||
129
130
  8
130
131
  end
131
132
 
@@ -157,13 +158,21 @@ module Test
157
158
  def guess_available_colors_from_term_env
158
159
  case ENV["TERM"]
159
160
  when /[+-]direct/
160
- 2**24
161
+ 2 ** 24
161
162
  when TERM_256
162
163
  256
163
164
  else
164
165
  nil
165
166
  end
166
167
  end
168
+
169
+ def guess_available_colors_from_github_actions_env
170
+ if ENV["GITHUB_ACTIONS"] == "true"
171
+ 2 ** 24
172
+ else
173
+ nil
174
+ end
175
+ end
167
176
  end
168
177
 
169
178
  def initialize(scheme_spec)
@@ -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
@@ -524,6 +526,7 @@ module Test
524
526
  /x
525
527
 
526
528
  def guess_color_availability
529
+ return true if ENV["GITHUB_ACTIONS"] == "true"
527
530
  return false unless @output.tty?
528
531
  return true if windows? and ruby_2_0_or_later?
529
532
  case ENV["TERM"]
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.5.5"
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.5
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-10-04 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