test-unit 3.5.5 → 3.5.6

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: 76204c43946c95b92e409e9c59e020ca48d320d2b822af282501fbdaebe168b9
4
+ data.tar.gz: 179f9510fdde6181202a061baff981b84c06c6b255026757659f95f1c8d6695d
5
5
  SHA512:
6
- metadata.gz: 2fabe6d0279022b6fa604da838f46274f396de22880c8d7fc6ad02f7dbc814b1220548d19ee03bb48589bbbd3b7aa125ec75387e965221e1b61489a9c27f92fb
7
- data.tar.gz: 9f8cfd6da553913832c84436aea0639ec28c0800a9d02a28c24f91557207c8aa9defba4db4bc384c9c7e86138ff48331533afaed63a7da374b9a4ecd6467f9ec
6
+ metadata.gz: fa93c81087b59e439aee294d98b0854127b3d9117729b9d9bcaf8e0f7672fbbab3fbf4a69b6b4902c5c44cc9d367ea10a3cdca9f27062875ca1c169c53efc3a8
7
+ data.tar.gz: f2e46b643c095e2a5538b984e5aa0082bfd98afd591b28a8e86cb3a261048a970783dd0c59e8b471e383087444e64f6dfe457a88402eef8318e7a369c3d4e25b
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,17 @@
1
1
  # News
2
2
 
3
+ ## 3.5.6 - 2022-12-15 {#version-3-5-6}
4
+
5
+ ### Improvements
6
+
7
+ * Enabled 256 colors output on GitHub Actions by default.
8
+
3
9
  ## 3.5.5 - 2022-10-04 {#version-3-5-5}
4
10
 
5
11
  ### Fixes
6
12
 
7
13
  * Suppressed a warning.
8
- [GitHub#219][Patch by Kenichi Kamiya]
14
+ [GitHub#219](https://github.com/test-unit/test-unit/issues/219)[Patch by Kenichi Kamiya]
9
15
 
10
16
  ### Thanks
11
17
 
@@ -16,10 +22,10 @@
16
22
  ### Improvements
17
23
 
18
24
  * Don't raise an error on `Test::Unit::TestCase.clone`.
19
- [GitHub#210][Reported by David Marchaland]
25
+ [GitHub#210](https://github.com/test-unit/test-unit/issues/210)[Reported by David Marchaland]
20
26
 
21
27
  * Added support for `BigDeciaml` in `assert_in_delta` family.
22
- [GitHub#218][Patch by Kenta Murata]
28
+ [GitHub#218](https://github.com/test-unit/test-unit/issues/218)[Patch by Kenta Murata]
23
29
 
24
30
  ### Thanks
25
31
 
@@ -32,7 +38,7 @@
32
38
  ### Improvements
33
39
 
34
40
  * Made how to sub test case generation customizable.
35
- [GitHub#207][Patch by Akira Matsuda]
41
+ [GitHub#207](https://github.com/test-unit/test-unit/issues/207)[Patch by Akira Matsuda]
36
42
 
37
43
  ### Thanks
38
44
 
@@ -43,7 +49,7 @@
43
49
  ### Improvements
44
50
 
45
51
  * Required `fileutils` lazy.
46
- [GitHub#206][Patch by David Rodríguez]
52
+ [GitHub#206](https://github.com/test-unit/test-unit/issues/206)[Patch by David Rodríguez]
47
53
 
48
54
  ### Thanks
49
55
 
@@ -85,7 +91,7 @@
85
91
  ### Fixes
86
92
 
87
93
  * Suppressed a warning on Ruby 2.
88
- [GitHub#205][Patch by Kenichi Kamiya]
94
+ [GitHub#205](https://github.com/test-unit/test-unit/issues/205)[Patch by Kenichi Kamiya]
89
95
 
90
96
  ### Thanks
91
97
 
@@ -106,21 +112,21 @@
106
112
  ### Improvements
107
113
 
108
114
  * Added more metadata to gemspec.
109
- [GitHub#183][Patch by Kenichi Kamiya]
115
+ [GitHub#183](https://github.com/test-unit/test-unit/issues/183)[Patch by Kenichi Kamiya]
110
116
 
111
117
  * Removed needless files from gem.
112
- [GitHub#184][Patch by Kenichi Kamiya]
118
+ [GitHub#184](https://github.com/test-unit/test-unit/issues/184)[Patch by Kenichi Kamiya]
113
119
 
114
120
  * Updated documents.
115
- [GitHub#191][GitHub#192][GitHub#193][GitHub#199][GitHub#200]
116
- [GitHub#201][Patch by Kenichi Kamiya]
121
+ [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)
122
+ [GitHub#201](https://github.com/test-unit/test-unit/issues/201)[Patch by Kenichi Kamiya]
117
123
 
118
124
  * Added `assert_nothing_leaked_memory`.
119
125
 
120
126
  ### Fixes
121
127
 
122
128
  * Fixed typos in documents.
123
- [GitHub#189][GitHub#190][GitHub#195][GitHub#197][Patch by Kenichi Kamiya]
129
+ [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
130
 
125
131
  ### Thanks
126
132
 
@@ -157,7 +163,7 @@
157
163
  * Fixed a bug that `setup`/`cleanup`/`teardown` with block may be
158
164
  overwritten by another `setup`/`cleanup`/`teardown` with
159
165
  block. It's caused only with Ruby 2.6 or earlier.
160
- [GitHub#179][Reported by akira yamada]
166
+ [GitHub#179](https://github.com/test-unit/test-unit/issues/179)[Reported by akira yamada]
161
167
 
162
168
  ### Thanks
163
169
 
@@ -174,7 +180,7 @@
174
180
  ### Improvements
175
181
 
176
182
  * `assert_not_match`: Add support for `String` as pattern.
177
- [GitHub#178][Patch by David Rodríguez]
183
+ [GitHub#178](https://github.com/test-unit/test-unit/issues/178)[Patch by David Rodríguez]
178
184
 
179
185
  ### Thanks
180
186
 
@@ -192,23 +198,23 @@
192
198
  ### Improvements
193
199
 
194
200
  * Improved TruffleRuby support.
195
- [GitHub#171][Reported by Benoit Daloze]
201
+ [GitHub#171](https://github.com/test-unit/test-unit/issues/171)[Reported by Benoit Daloze]
196
202
 
197
203
  * Removed needless `to_sym`.
198
- [GitHub#177][Patch by icm7216]
204
+ [GitHub#177](https://github.com/test-unit/test-unit/issues/177)[Patch by icm7216]
199
205
 
200
206
  * `assert_raise`: Added backtrace for actual error.
201
207
 
202
208
  * Improved terminal color availability detection.
203
- [GitHub#175][Patch by nicholas a. evans]
209
+ [GitHub#175](https://github.com/test-unit/test-unit/issues/175)[Patch by nicholas a. evans]
204
210
 
205
211
  * Changed license to the new Ruby's.
206
- [GitHub#174]
212
+ [GitHub#174](https://github.com/test-unit/test-unit/issues/174)
207
213
 
208
214
  ### Fixes
209
215
 
210
216
  * Fixed a typo in `--help` output:
211
- [GitHub#176][Patch by icm7216]
217
+ [GitHub#176](https://github.com/test-unit/test-unit/issues/176)[Patch by icm7216]
212
218
 
213
219
  ### Thanks
214
220
 
@@ -230,7 +236,7 @@
230
236
  [Reported by Jun Aruga]
231
237
 
232
238
  * Updated ruby-talk mailing list information
233
- [GitHub#168][Patch by Chris Kampmeier]
239
+ [GitHub#168](https://github.com/test-unit/test-unit/issues/168)[Patch by Chris Kampmeier]
234
240
 
235
241
  ### Thanks
236
242
 
@@ -243,7 +249,7 @@
243
249
  ### Improvements
244
250
 
245
251
  * Improved code snippet showing with different default external encoding.
246
- [GitHub#166][Patch by Yuta Iwama]
252
+ [GitHub#166](https://github.com/test-unit/test-unit/issues/166)[Patch by Yuta Iwama]
247
253
 
248
254
  ### Thanks
249
255
 
@@ -254,10 +260,10 @@
254
260
  ### Improvements
255
261
 
256
262
  * Converted markup format to Markdown from RDoc.
257
- [GitHub#164][Patch by OGAWA KenIchi]
263
+ [GitHub#164](https://github.com/test-unit/test-unit/issues/164)[Patch by OGAWA KenIchi]
258
264
 
259
265
  * test: Stopped to depend on `Time#inspect` format.
260
- [GitHub#165][Reported by Benoit Daloze]
266
+ [GitHub#165](https://github.com/test-unit/test-unit/issues/165)[Reported by Benoit Daloze]
261
267
 
262
268
  ### Thanks
263
269
 
@@ -292,7 +298,7 @@
292
298
  * Added support for `Test::Unit::AssertionFailedError#user_message`
293
299
  for not only `assert_equal` and `assert_raise` but also all
294
300
  assertions.
295
- [GitHub#162][Reported by xgraffm]
301
+ [GitHub#162](https://github.com/test-unit/test-unit/issues/162)[Reported by xgraffm]
296
302
 
297
303
  ### Thanks
298
304
 
@@ -307,10 +313,10 @@
307
313
 
308
314
  * Added support for defining methods to test case class in multiple
309
315
  threads.
310
- [GitHub#159][Reported by Charles Oliver Nutter]
316
+ [GitHub#159](https://github.com/test-unit/test-unit/issues/159)[Reported by Charles Oliver Nutter]
311
317
 
312
318
  * Suppressed warnings on Ruby 2.5.
313
- [GitHub#160][Reported by Daniel Berger]
319
+ [GitHub#160](https://github.com/test-unit/test-unit/issues/160)[Reported by Daniel Berger]
314
320
 
315
321
  * Suppressed warnings on Ruby 2.7.
316
322
 
@@ -318,7 +324,7 @@
318
324
 
319
325
  * Fixed a code snippet fetch failure when source code isn't UTF-8
320
326
  and the default external encoding is set to not UTF-8.
321
- [GitHub#161][Reported by masa kunikata]
327
+ [GitHub#161](https://github.com/test-unit/test-unit/issues/161)[Reported by masa kunikata]
322
328
 
323
329
  ### Thanks
324
330
 
@@ -411,10 +417,10 @@
411
417
  ### Improvements
412
418
 
413
419
  * Added source code link to gemspec.
414
- [GitHub#157][Patch by Grey Baker]
420
+ [GitHub#157](https://github.com/test-unit/test-unit/issues/157)[Patch by Grey Baker]
415
421
 
416
422
  * Changed to use SVG image for badges in README.
417
- [GitHub#158][Patch by Olle Jonsson]
423
+ [GitHub#158](https://github.com/test-unit/test-unit/issues/158)[Patch by Olle Jonsson]
418
424
 
419
425
  * [UI][console]: Added `--reverse-output` option to output fault
420
426
  details in reverse like Ruby 2.5. It's enabled by default only for
@@ -423,7 +429,7 @@
423
429
  ### Fixes
424
430
 
425
431
  * Fixed a typo.
426
- [GitHub#156][Patch by masa kunikata]
432
+ [GitHub#156](https://github.com/test-unit/test-unit/issues/156)[Patch by masa kunikata]
427
433
 
428
434
  * [UI][console]: Fixed a bug that broken align in verbose mode.
429
435
 
@@ -440,7 +446,7 @@
440
446
  ### Improvements
441
447
 
442
448
  * Changed test file require failure to error from omission.
443
- [GitHub#154][Patch by naofumi-fujii]
449
+ [GitHub#154](https://github.com/test-unit/test-unit/issues/154)[Patch by naofumi-fujii]
444
450
 
445
451
  ### Thanks
446
452
 
@@ -451,7 +457,7 @@
451
457
  ### Improvements
452
458
 
453
459
  * Supported `--enable-frozen-string-literal` `ruby` option.
454
- [GitHub#149][Reported by Pat Allan]
460
+ [GitHub#149](https://github.com/test-unit/test-unit/issues/149)[Reported by Pat Allan]
455
461
 
456
462
  ### Thanks
457
463
 
@@ -463,39 +469,39 @@
463
469
 
464
470
  * Updated tests for Ruby 2.4. [GitHUb#136][Patch by Kazuki Tsujimoto]
465
471
 
466
- * Supported power\_assert 1.0.0. [GitHub#137][Patch by Kazuki Tsujimoto]
472
+ * Supported power\_assert 1.0.0. [GitHub#137](https://github.com/test-unit/test-unit/issues/137)[Patch by Kazuki Tsujimoto]
467
473
 
468
474
  * Added the getting started document.
469
- [GitHub#139][GitHub#141][Patch by Hiroyuki Sato]
475
+ [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
476
 
471
477
  * Added the document for `attribute`.
472
- [GitHub#143][Patch by Fumiaki MATSUSHIMA]
478
+ [GitHub#143](https://github.com/test-unit/test-unit/issues/143)[Patch by Fumiaki MATSUSHIMA]
473
479
 
474
- * Improved a link for GitHub. [GitHub#144][Patch by rochefort]
480
+ * Improved a link for GitHub. [GitHub#144](https://github.com/test-unit/test-unit/issues/144)[Patch by rochefort]
475
481
 
476
- * Updated `.travis.yml`. [GitHub#145][Patch by Jun Aruga]
482
+ * Updated `.travis.yml`. [GitHub#145](https://github.com/test-unit/test-unit/issues/145)[Patch by Jun Aruga]
477
483
 
478
484
  ### Fixes
479
485
 
480
- * Fixed a contributor name. [GitHub#131][Patch by Akira Matsuda]
486
+ * Fixed a contributor name. [GitHub#131](https://github.com/test-unit/test-unit/issues/131)[Patch by Akira Matsuda]
481
487
 
482
- * Fixed typos in document. [GitHub#132][Patch by Akira Matsuda]
488
+ * Fixed typos in document. [GitHub#132](https://github.com/test-unit/test-unit/issues/132)[Patch by Akira Matsuda]
483
489
 
484
- * Fixed typos in document. [GitHub#134][Patch by Yuji Yaginuma]
490
+ * Fixed typos in document. [GitHub#134](https://github.com/test-unit/test-unit/issues/134)[Patch by Yuji Yaginuma]
485
491
 
486
492
  * Fixed a bug that data label with "(" isn't supported.
487
- [GitHub#135][Reported by Kazuki Tsujimoto]
493
+ [GitHub#135](https://github.com/test-unit/test-unit/issues/135)[Reported by Kazuki Tsujimoto]
488
494
 
489
495
  * Fixed assertion message in English.
490
- [GitHub#133][Reported by Khalil Fazal]
496
+ [GitHub#133](https://github.com/test-unit/test-unit/issues/133)[Reported by Khalil Fazal]
491
497
 
492
- * Fixed a typo in typo fix. [GitHub#138][Patch by kami]
498
+ * Fixed a typo in typo fix. [GitHub#138](https://github.com/test-unit/test-unit/issues/138)[Patch by kami]
493
499
 
494
500
  * Fixed a bug that target location finder may return wrong
495
- location. [GitHub#146][Patch by Yuki Ito]
501
+ location. [GitHub#146](https://github.com/test-unit/test-unit/issues/146)[Patch by Yuki Ito]
496
502
 
497
503
  * Fixed a bug that `--no-show-detail-immediately` raises an error.
498
- [GitHub#147][Reported by MSP-Greg]
504
+ [GitHub#147](https://github.com/test-unit/test-unit/issues/147)[Reported by MSP-Greg]
499
505
 
500
506
  ### Thanks
501
507
 
@@ -526,7 +532,7 @@
526
532
  ### Fixes
527
533
 
528
534
  * Fixed a bug that `--order` isn't applied.
529
- [GitHub#129][Reported by Vít Ondruch]
535
+ [GitHub#129](https://github.com/test-unit/test-unit/issues/129)[Reported by Vít Ondruch]
530
536
 
531
537
  ### Thanks
532
538
 
@@ -537,14 +543,14 @@
537
543
  ### Improvements
538
544
 
539
545
  * Improved Travis CI configuration.
540
- [GitHub#123][Patch by Ryunosuke Sato]
546
+ [GitHub#123](https://github.com/test-unit/test-unit/issues/123)[Patch by Ryunosuke Sato]
541
547
 
542
548
  * Supported Java native exception.
543
- [GitHub#126][Reported by Bob Saveland]
549
+ [GitHub#126](https://github.com/test-unit/test-unit/issues/126)[Reported by Bob Saveland]
544
550
 
545
551
  ### Fixes
546
552
 
547
- * doc: Fixed markup. [GitHub#127][Patch by Tomohiro Hashidate]
553
+ * doc: Fixed markup. [GitHub#127](https://github.com/test-unit/test-unit/issues/127)[Patch by Tomohiro Hashidate]
548
554
 
549
555
  * Fixed a bug that `--location=LINE` may not detect a test when
550
556
  fixtures are defined before any tests:
@@ -581,7 +587,7 @@
581
587
 
582
588
  * Reported norification when data driven test doesn't have
583
589
  parameter.
584
- [GitHub#122][Reported by Satoshi "Moris" Tagomori]
590
+ [GitHub#122](https://github.com/test-unit/test-unit/issues/122)[Reported by Satoshi "Moris" Tagomori]
585
591
 
586
592
  ### Thanks
587
593
 
@@ -594,7 +600,7 @@
594
600
  ### Improvements
595
601
 
596
602
  * Supported rxvt family terminals as color available terminals.
597
- [GitHub#121][Reported by Ippei Kishida]
603
+ [GitHub#121](https://github.com/test-unit/test-unit/issues/121)[Reported by Ippei Kishida]
598
604
 
599
605
  ### Thanks
600
606
 
@@ -605,7 +611,7 @@
605
611
  ### Fixes
606
612
 
607
613
  * Fixed conflict with test-unit-power_assert.
608
- [GitHub#120][Patch by Kazuki Tsujimoto]
614
+ [GitHub#120](https://github.com/test-unit/test-unit/issues/120)[Patch by Kazuki Tsujimoto]
609
615
 
610
616
  * Fixed a bug that path in `$LOAD_PATH` may be removed.
611
617
 
@@ -634,7 +640,7 @@ It's a Ruby on Rails integration improvement release.
634
640
  ### Improvements
635
641
 
636
642
  * Filtered backtrace of power\_assert.
637
- [GitHub#114]
643
+ [GitHub#114](https://github.com/test-unit/test-unit/issues/114)
638
644
  * Improved performance to retrieve test defined location.
639
645
  * Improved performance to run fixtures in a test.
640
646
  * Supported running a test by `yield` in `setup`:
@@ -674,7 +680,7 @@ It's a Ruby on Rails integration improvement release.
674
680
 
675
681
  * Fixed a bug that test isn't ran. The test has the same name as
676
682
  data driven test that is defined in parent test case.
677
- [GitHub#115]
683
+ [GitHub#115](https://github.com/test-unit/test-unit/issues/115)
678
684
 
679
685
  ## 3.1.5 - 2015-10-09 {#version-3-1-5}
680
686
 
@@ -684,7 +690,7 @@ It's a Rack integration improvement release.
684
690
 
685
691
  * Renamed experimental top-level `run` method to `run_test` method
686
692
  because `run` is conflicted with Rack.
687
- [GitHub#32][GitHub:basecamp/pow#303] [Reported by Yevhen Viktorov]
693
+ [GitHub#32](https://github.com/test-unit/test-unit/issues/32)[GitHub:basecamp/pow#303] [Reported by Yevhen Viktorov]
688
694
 
689
695
  ### Thanks
690
696
 
@@ -696,14 +702,14 @@ It's a minor improvement release.
696
702
 
697
703
  ### Improvements
698
704
 
699
- * Updated sample code. [GitHub#109][Patch by takiy33]
700
- * Updated .travis.yml. [GitHub#110][Patch by takiy33]
705
+ * Updated sample code. [GitHub#109](https://github.com/test-unit/test-unit/issues/109)[Patch by takiy33]
706
+ * Updated .travis.yml. [GitHub#110](https://github.com/test-unit/test-unit/issues/110)[Patch by takiy33]
701
707
  * document: Added table header in how to document.
702
- [GitHub#111][Patch by takiy33]
708
+ [GitHub#111](https://github.com/test-unit/test-unit/issues/111)[Patch by takiy33]
703
709
  * Removed duplicated code.
704
- [GitHub#112][Patch by takiy33]
710
+ [GitHub#112](https://github.com/test-unit/test-unit/issues/112)[Patch by takiy33]
705
711
  * Removed needless encoding conversion in fetching code snippet.
706
- [GitHub#113][Patch by NARUSE, Yui]
712
+ [GitHub#113](https://github.com/test-unit/test-unit/issues/113)[Patch by NARUSE, Yui]
707
713
 
708
714
  ### Thanks
709
715
 
@@ -716,7 +722,7 @@ It's a bug fix release.
716
722
 
717
723
  ### Improvements
718
724
 
719
- * Removed unused `TODO` file. [GitHub#108][Patch by takiy33]
725
+ * Removed unused `TODO` file. [GitHub#108](https://github.com/test-unit/test-unit/issues/108)[Patch by takiy33]
720
726
 
721
727
  ### Fixes
722
728
 
@@ -771,7 +777,7 @@ It's a bug fix release.
771
777
 
772
778
  * Fixed a bug that `--location` detects tests not only in sub test
773
779
  case but also parent test case.
774
- [GitHub#105][Reported by wanabe]
780
+ [GitHub#105](https://github.com/test-unit/test-unit/issues/105)[Reported by wanabe]
775
781
 
776
782
  ### Thanks
777
783
 
@@ -788,18 +794,18 @@ It's a bug fix release.
788
794
  ### Fixes
789
795
 
790
796
  * Fixed a bug that priority mode can't be used on Windows.
791
- [GitHub#95][Reported by Daniel Berger]
797
+ [GitHub#95](https://github.com/test-unit/test-unit/issues/95)[Reported by Daniel Berger]
792
798
  * Fixed a homepage URL RubyGems spec.
793
- [GitHub#96][Patch by Masayoshi Takahashi]
794
- supported.) [GitHub#89][Patch by Aaron Stone]
799
+ [GitHub#96](https://github.com/test-unit/test-unit/issues/96)[Patch by Masayoshi Takahashi]
800
+ supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
795
801
  * Fixed a bug that shutdown hook isn't called when pass throw
796
802
  exception such as `Interrupt` is raised.
797
- [GitHub#98][Reported by jeremiahishere.]
803
+ [GitHub#98](https://github.com/test-unit/test-unit/issues/98)[Reported by jeremiahishere.]
798
804
  * Fixed typos in documents.
799
- [GitHub#100][Reported by scivola]
800
- [GitHub#102][GitHub#103][Patch by Masafumi Yokoyama]
805
+ [GitHub#100](https://github.com/test-unit/test-unit/issues/100)[Reported by scivola]
806
+ [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
807
  * Fixed a bug that the same name test isn't executed in sub test case.
802
- [GitHub#104][Reported by wanabe]
808
+ [GitHub#104](https://github.com/test-unit/test-unit/issues/104)[Reported by wanabe]
803
809
 
804
810
  ### Thanks
805
811
 
@@ -817,9 +823,9 @@ It's a release that improves colors.
817
823
  ### Improvements
818
824
 
819
825
  * Added a work around for Ruby 1.8. (Note: Ruby 1.8 isn't
820
- supported.) [GitHub#89][Patch by Aaron Stone]
826
+ supported.) [GitHub#89](https://github.com/test-unit/test-unit/issues/89)[Patch by Aaron Stone]
821
827
  * Supported colorized output on Windows.
822
- [GitHub#90][Patch by usa]
828
+ [GitHub#90](https://github.com/test-unit/test-unit/issues/90)[Patch by usa]
823
829
  * Improved colorized output.
824
830
  http://www.a-k-r.org/d/2014-12.html#a2014_12_27_1
825
831
  [Suggested by Tanaka Akira]
@@ -839,7 +845,7 @@ It's a release that supports Ruby 2.2.0 preview2.
839
845
  * Added a link for YARD in README.
840
846
  [GitHub:test-unit.github.io#2][Reported by sunnyone]
841
847
  * Added description about "/PATTERN/" style value in auto runner usage.
842
- [GitHub#86][Suggested by sunnyone]
848
+ [GitHub#86](https://github.com/test-unit/test-unit/issues/86)[Suggested by sunnyone]
843
849
  * Supported Ruby 2.2.0 preview2 in `assert_throw` and
844
850
  `assert_nothing_thrown`.
845
851
 
@@ -847,7 +853,7 @@ It's a release that supports Ruby 2.2.0 preview2.
847
853
 
848
854
  * Fixed a bug that error report is failed when source encoding and
849
855
  locale encoding are different.
850
- [GitHub#87][Reported by scivola]
856
+ [GitHub#87](https://github.com/test-unit/test-unit/issues/87)[Reported by scivola]
851
857
 
852
858
  ### Thanks
853
859
 
@@ -862,7 +868,7 @@ It's a minor update release.
862
868
 
863
869
  * Fixed a bug that teardown blocks aren't called with sub class to
864
870
  parent class order.
865
- [GitHub#85][Reported by TOMITA Masahiro]
871
+ [GitHub#85](https://github.com/test-unit/test-unit/issues/85)[Reported by TOMITA Masahiro]
866
872
 
867
873
  ### Thanks
868
874
 
@@ -875,7 +881,7 @@ It's a minor update release.
875
881
  ### Improvements
876
882
 
877
883
  * Improved code snippet location.
878
- [GitHub#84][Patch by Yuki Kurihara]
884
+ [GitHub#84](https://github.com/test-unit/test-unit/issues/84)[Patch by Yuki Kurihara]
879
885
 
880
886
  ### Thanks
881
887
 
@@ -889,7 +895,7 @@ It's a minor update release.
889
895
 
890
896
  * Fixed a bug that startup/shutdown of parent test case isn't called
891
897
  when the test case includes one or more modules.
892
- [GitHub#83][Reported by Chadderton Odwazny]
898
+ [GitHub#83](https://github.com/test-unit/test-unit/issues/83)[Reported by Chadderton Odwazny]
893
899
 
894
900
  ### Thanks
895
901
 
@@ -903,7 +909,7 @@ It's a minor update release.
903
909
 
904
910
  * Stopped to remove JRuby and Rubinius internal backtrace entries from
905
911
  backtrace on failure/error.
906
- [GitHub#82][Patch by Charles Oliver Nutter]
912
+ [GitHub#82](https://github.com/test-unit/test-unit/issues/82)[Patch by Charles Oliver Nutter]
907
913
 
908
914
  ### Thanks
909
915
 
@@ -923,7 +929,7 @@ It's a minor update release.
923
929
  ### Fixes
924
930
 
925
931
  * Fixed markup in document.
926
- [GitHub#81][Patch by Masafumi Yokoyama]
932
+ [GitHub#81](https://github.com/test-unit/test-unit/issues/81)[Patch by Masafumi Yokoyama]
927
933
 
928
934
  ### Thanks
929
935
 
@@ -938,18 +944,18 @@ It's a minor update release.
938
944
 
939
945
  * Supported broken `==` implementation.
940
946
  `==` implementation should be fixed but it's not work of test-unit. :<
941
- [GitHub#71][Reported by Emily]
947
+ [GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Reported by Emily]
942
948
  * [UI][console]: Accepted no message failure.
943
- [GitHub#66][Reported by Brian Tatnall]
949
+ [GitHub#66](https://github.com/test-unit/test-unit/issues/66)[Reported by Brian Tatnall]
944
950
  * Updated gem description.
945
- [GitHub#74][Patch by Vít Ondruch]
951
+ [GitHub#74](https://github.com/test-unit/test-unit/issues/74)[Patch by Vít Ondruch]
946
952
  * Updated GPL text.
947
- [GitHub#78][Patch by Vít Ondruch]
953
+ [GitHub#78](https://github.com/test-unit/test-unit/issues/78)[Patch by Vít Ondruch]
948
954
 
949
955
  ### Fixes
950
956
 
951
957
  * Removed needless executable bit from README file.
952
- [GitHub#79][Patch by Vít Ondruch]
958
+ [GitHub#79](https://github.com/test-unit/test-unit/issues/79)[Patch by Vít Ondruch]
953
959
 
954
960
  ### Thanks
955
961
 
@@ -965,7 +971,7 @@ It's a minor update release.
965
971
 
966
972
  * Improved Ruby 1.8.7 support. Note that we don't support Ruby 1.8.7
967
973
  actively. We just support if its support is painless.
968
- [GitHub#71][Patch by estolfo]
974
+ [GitHub#71](https://github.com/test-unit/test-unit/issues/71)[Patch by estolfo]
969
975
 
970
976
  ### Thanks
971
977
 
@@ -978,10 +984,10 @@ It's Power Assert supported release!
978
984
  ### Improvements
979
985
 
980
986
  * Improved Rubinius support. [Ryo Onodera]
981
- * Updated RR repository link. [GitHub#56][Patch by Kenichi Kamiya]
987
+ * Updated RR repository link. [GitHub#56](https://github.com/test-unit/test-unit/issues/56)[Patch by Kenichi Kamiya]
982
988
  * Added some minitest compatible assertions. We don't recommend
983
989
  using these assertions. They are just for migrating from minitest.
984
- [GitHub#57][Patch by Karol Bucek]
990
+ [GitHub#57](https://github.com/test-unit/test-unit/issues/57)[Patch by Karol Bucek]
985
991
  * {Test::Unit::Assertions#refute}
986
992
  * {Test::Unit::Assertions#refute_predicate}
987
993
  * {Test::Unit::Assertions#refute_empty}
@@ -995,13 +1001,13 @@ It's Power Assert supported release!
995
1001
  * {Test::Unit::Assertions#refute_operator}
996
1002
  * Improved code readability. [Suggested by Kenichi Kamiya]
997
1003
  * Made license field in RubyGems parseable.
998
- [GitHub#60][Patch by Michael Grosser]
1004
+ [GitHub#60](https://github.com/test-unit/test-unit/issues/60)[Patch by Michael Grosser]
999
1005
  * Improved test case match feature by `--testcase` and `--ignore-testcase`
1000
1006
  options. They also checks parent class names.
1001
1007
  * Made inspected representation of Numeric objects especially
1002
- BigDecimal more readable. [GitHub#64][Reported by Byron Appelt]
1008
+ BigDecimal more readable. [GitHub#64](https://github.com/test-unit/test-unit/issues/64)[Reported by Byron Appelt]
1003
1009
  * Added badges for Traivs CI and RubyGems.
1004
- [GitHub#65][Patch by Byron Appelt]
1010
+ [GitHub#65](https://github.com/test-unit/test-unit/issues/65)[Patch by Byron Appelt]
1005
1011
  * Supported Power Assert. You can use Power Assert with
1006
1012
  {Test::Unit::Assertions#assert} with block. See method document
1007
1013
  for details. We recommend using Power Assert for predicate method
@@ -1015,10 +1021,10 @@ It's Power Assert supported release!
1015
1021
  ### Fixes
1016
1022
 
1017
1023
  * Fixed a bug that test case defined by block has wrong location.
1018
- [GitHub#58][Patch by Narihiro Nakamura]
1024
+ [GitHub#58](https://github.com/test-unit/test-unit/issues/58)[Patch by Narihiro Nakamura]
1019
1025
  * Fixed a bug that test methods defined in included modules in
1020
1026
  super-class are also collected.
1021
- [GitHub#62][GitHub#63][Patch by Karol Bucek]
1027
+ [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
1028
 
1023
1029
  ### Thanks
1024
1030
 
@@ -1036,14 +1042,14 @@ It's Ruby 2.0.0 supported release!
1036
1042
 
1037
1043
  ### Improvements
1038
1044
 
1039
- * Supported Ruby 2.0.0. [GitHub#54] [Reported by mtasaka]
1045
+ * Supported Ruby 2.0.0. [GitHub#54](https://github.com/test-unit/test-unit/issues/54) [Reported by mtasaka]
1040
1046
  * Accepted screen-256color TERM as 256 colors available environment.
1041
- [GitHub#55] [Reported by Tom Miller]
1047
+ [GitHub#55](https://github.com/test-unit/test-unit/issues/55) [Reported by Tom Miller]
1042
1048
 
1043
1049
  ### Fixes
1044
1050
 
1045
1051
  * Fixed a typo in document.
1046
- [GitHub#53] [Patch by Baptiste Fontaine]
1052
+ [GitHub#53](https://github.com/test-unit/test-unit/issues/53) [Patch by Baptiste Fontaine]
1047
1053
  * Fixed a bug in {Test::Unit::Assertions#assert_in_epsilon}. It doesn't work
1048
1054
  as expected if expected value is negative value.
1049
1055
  [Ruby Bug #8317] [Reported by Nobuhiro IMAI]
@@ -1068,7 +1074,7 @@ It's a bug fix release.
1068
1074
  ### Fixes
1069
1075
 
1070
1076
  * Fixed a bug. It is too slow to filter tests when there are many
1071
- tests. [GitHub#46]
1077
+ tests. [GitHub#46](https://github.com/test-unit/test-unit/issues/46)
1072
1078
  * Accept anonymous test suite.
1073
1079
  [GitHub:#49] [Reported by Matthew Rudy Jacobs]
1074
1080
 
@@ -1086,21 +1092,21 @@ It's a release for minitest compatibility and bug fix.
1086
1092
  * Added some assersion methods just for minitest compatibility.
1087
1093
  Added methods are assert_includes(), refute_*() and refute().
1088
1094
  If you are test-unit user, please don't use them.
1089
- [GitHub#40] [Suggested by Michael Grosser]
1095
+ [GitHub#40](https://github.com/test-unit/test-unit/issues/40) [Suggested by Michael Grosser]
1090
1096
  * Added --attribute option to select target tests by attribute.
1091
1097
  [test-unit-users-en:00098] [Suggested by Piotr Nestorow]
1092
1098
 
1093
1099
  ### Fixes
1094
1100
 
1095
1101
  * Allowed use of test for inheritance in ActionController::TestCase.
1096
- [GitHub#42] [Patch by David Rasch]
1102
+ [GitHub#42](https://github.com/test-unit/test-unit/issues/42) [Patch by David Rasch]
1097
1103
  * Ensured evaluating at_exit block in top level.
1098
1104
  In IRB context, exit() specifies irb_exit().
1099
1105
  [test-unit-users-en:00089] [Reported by Daniel Berger]
1100
1106
  * Fixed a bug that decoration style description is ignored.
1101
1107
  "decoration style description" are using description method
1102
1108
  above "def test_name" or with Symbol specifying test_name.
1103
- [GitHub#45] [Reported by Piotr Nestorow]
1109
+ [GitHub#45](https://github.com/test-unit/test-unit/issues/45) [Reported by Piotr Nestorow]
1104
1110
 
1105
1111
  ### Thanks
1106
1112
 
@@ -1118,10 +1124,10 @@ feature to `context` in shoulda-context and RSpec.
1118
1124
  ### Improvements
1119
1125
 
1120
1126
  * Cleaned up tests.
1121
- [GitHub#34] [Patch by Michael Grosser]
1127
+ [GitHub#34](https://github.com/test-unit/test-unit/issues/34) [Patch by Michael Grosser]
1122
1128
  * Added missing background color for 8 color environment.
1123
1129
  * Added workaround for NetBeans.
1124
- [GitHub#38] [Reported by Marc Cooper]
1130
+ [GitHub#38](https://github.com/test-unit/test-unit/issues/38) [Reported by Marc Cooper]
1125
1131
  * Added `--location` command line option that selects target tests
1126
1132
  by test defined location.
1127
1133
  * Created sub test suite for each subclassed test case.
@@ -1131,7 +1137,7 @@ feature to `context` in shoulda-context and RSpec.
1131
1137
  [Good hook name is suggested by kdmsnr]
1132
1138
  * Improved code snippet target on failure. Test method is always used
1133
1139
  for code snippet target.
1134
- [GitHub#39] [Suggested by Michael Grosser]
1140
+ [GitHub#39](https://github.com/test-unit/test-unit/issues/39) [Suggested by Michael Grosser]
1135
1141
  * Added {Test::Unit::TestCase.sub_test_case} that creates sub test case.
1136
1142
  The sub test case name isn't limited Ruby's constant name rule. You can
1137
1143
  specify the sub test case name in free form.
@@ -1149,16 +1155,16 @@ It's a bug fix release.
1149
1155
  ### Improvements
1150
1156
 
1151
1157
  * Supported installing from GitHub.
1152
- [GitHub#29] [Suggested by Michael Grosser]
1158
+ [GitHub#29](https://github.com/test-unit/test-unit/issues/29) [Suggested by Michael Grosser]
1153
1159
  * Supported ActiveSupport::TestCase.
1154
- [GitHub#30] [Reported by Michael Grosser]
1160
+ [GitHub#30](https://github.com/test-unit/test-unit/issues/30) [Reported by Michael Grosser]
1155
1161
  * [ui][console] Improved multiline falut message display.
1156
1162
 
1157
1163
  ### Fixes
1158
1164
 
1159
1165
  * [ui][console] Fixed a bug that expected and actual values are
1160
1166
  empty.
1161
- [GitHub#31][GitHub#33]
1167
+ [GitHub#31](https://github.com/test-unit/test-unit/issues/31)[GitHub#33](https://github.com/test-unit/test-unit/issues/33)
1162
1168
  [Reported by Kendall Buchanan][Reported by Mathieu Martin]
1163
1169
  [Hinted by Michael Grosser]
1164
1170
  * Fixed a bug that .gemspec can't be loaded on LANG=C.
@@ -1179,7 +1185,7 @@ It's a bug fix release.
1179
1185
 
1180
1186
  * Fixed a backward incompatibility of `TestUnitMediator#run_suite`
1181
1187
  introduced in 2.4.9.
1182
- [GitHub#28] [Reported by Vladislav Rassokhin]
1188
+ [GitHub#28](https://github.com/test-unit/test-unit/issues/28) [Reported by Vladislav Rassokhin]
1183
1189
 
1184
1190
  ### Thanks
1185
1191
 
@@ -1200,7 +1206,7 @@ It's a bug fix release.
1200
1206
  * Supported showing ASCII-8BIT diff in failure message.
1201
1207
  * [ui][console] Supported `ENV["TERM"] == "xterm-256color"` as color
1202
1208
  available terminal.
1203
- [GitHub#26] [Reported by Michael Grosser]
1209
+ [GitHub#26](https://github.com/test-unit/test-unit/issues/26) [Reported by Michael Grosser]
1204
1210
  * [ui][console] Supported "-256color" suffix `ENV["TERM"]` terminal
1205
1211
  as 256 color supported terminal.
1206
1212
 
@@ -1211,7 +1217,7 @@ It's a bug fix release.
1211
1217
  says.
1212
1218
  [RubyForge#29554] [Reported by Bob Saveland]
1213
1219
  * Added missing `require "test/unit/diff"`.
1214
- [GitHub#25] [Reported by Stephan Kulow]
1220
+ [GitHub#25](https://github.com/test-unit/test-unit/issues/25) [Reported by Stephan Kulow]
1215
1221
 
1216
1222
  ### Thanks
1217
1223
 
@@ -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)
@@ -524,6 +524,7 @@ module Test
524
524
  /x
525
525
 
526
526
  def guess_color_availability
527
+ return true if ENV["GITHUB_ACTIONS"] == "true"
527
528
  return false unless @output.tty?
528
529
  return true if windows? and ruby_2_0_or_later?
529
530
  case ENV["TERM"]
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.5.5"
3
+ VERSION = "3.5.6"
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.6
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-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert