minitest 5.4.2 → 5.4.3

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
  SHA1:
3
- metadata.gz: 5d593a2496a45c79788b7c14d3653e0bbe390723
4
- data.tar.gz: 5ff3bfb6b098f8049afa9b85d1da6d670aee4a5c
3
+ metadata.gz: 7ffce3efb7c47f1d661b779ff6046b23e71c66eb
4
+ data.tar.gz: e0216e9d085bb54c5cc467ddcee65f564a545ec3
5
5
  SHA512:
6
- metadata.gz: 5e3b0dfaf0272031514f8f7d3c41f94e0a9d5f289dad4de1f5ea8073fa36b80926b950ef95ebf563740a32e60688147e02d7b83b37953ac4fa42b6b5c1a6ce3f
7
- data.tar.gz: 9e61edb1a0d5adf522d6194acddeeafbe936081ef641b23f5b3ba0f2320246a207001f494244639a37b882ed7db3ebc1f7668b54e87605b739a0e2d005555288
6
+ metadata.gz: d8a30ec16842681b9801e3866919b3355d19ce26a49dc53a4fe26e73166a413d2f006faf7363698266ef30be303fc51eb44e8dd266877bd4cfcbada3b0c9be65
7
+ data.tar.gz: 784f79313c0fc7f06f4b7bf2012deab2c6dfeebdc6ed9fb6c1d247b83b1ceb2c58ade6faa5b3e109dd5eb580c37c803dcb59005250fcd94afef8d71008997f28
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,10 @@
1
+ === 5.4.3 / 2014-11-11
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Clarified requirements for ruby are now 1.8.7 or better.
6
+ * Force encode error output in case mal-encoded exception is raised. (jasonrclark)
7
+
1
8
  === 5.4.2 / 2014-09-26
2
9
 
3
10
  * 2 minor enhancements:
data/README.txt CHANGED
@@ -533,7 +533,7 @@ Authors... Please send me a pull request with a description of your minitest ext
533
533
 
534
534
  == REQUIREMENTS:
535
535
 
536
- * Ruby 1.8, maybe even 1.6 or lower. No magic is involved.
536
+ * Ruby 1.8.7+. No magic is involved. I hope.
537
537
 
538
538
  == INSTALL:
539
539
 
@@ -7,7 +7,8 @@ require "minitest/parallel"
7
7
  # :include: README.txt
8
8
 
9
9
  module Minitest
10
- VERSION = "5.4.2" # :nodoc:
10
+ VERSION = "5.4.3" # :nodoc:
11
+ ENCS = "".respond_to? :encoding # :nodoc:
11
12
 
12
13
  @@installed_at_exit ||= false
13
14
  @@after_run = []
@@ -563,9 +564,14 @@ module Minitest
563
564
  filtered_results = results.dup
564
565
  filtered_results.reject!(&:skipped?) unless options[:verbose]
565
566
 
566
- filtered_results.each_with_index.map do |result, i|
567
+ s = filtered_results.each_with_index.map { |result, i|
567
568
  "\n%3d) %s" % [i+1, result]
568
- end.join("\n") + "\n"
569
+ }.join("\n") + "\n"
570
+
571
+ s.force_encoding(io.external_encoding) if
572
+ ENCS and io.external_encoding and s.encoding != io.external_encoding
573
+
574
+ s
569
575
  end
570
576
 
571
577
  alias to_s aggregated_results
@@ -8,7 +8,7 @@ module Minitest
8
8
  @queue = Queue.new
9
9
  @pool = size.times.map {
10
10
  Thread.new(@queue) do |queue|
11
- Thread.current.abort_on_exception = true
11
+ Thread.current.abort_on_exception = true
12
12
  while job = queue.pop
13
13
  klass, method, reporter = job
14
14
  result = Minitest.run_one_method klass, method
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.2
4
+ version: 5.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
30
30
  VpzF30vNaJK6ZT7xlIsIlwmH
31
31
  -----END CERTIFICATE-----
32
- date: 2014-09-26 00:00:00.000000000 Z
32
+ date: 2014-11-11 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- LH������,���S0���ތk���/�����p�>��.i��o#
2
- SxPKF�������hs�����]���<��EL�#�8�&c� �"�F��͋#zHUƱ T'�0�%�do:F)5�7�)ޣDeݳ&� ��=�n���@�����ڑ� I�^<��,}�ѽE�~Q���(DZ�^�='uFp��i5d,�;Cq1g �~�(�ߥ� { C6
1
+ ��%�m��S
2
+ �����f��dJ4��eL1Ua1�&�����irEw��z4��Yl�'?ol7��Ȍ?A���e��9�arKu����C�n��1}�~��Z�:t#RZfw�`��.�� $�s6��5ؼs�!9���D�!�V����Pɜ����KHy!���rrܕ��?�Lъ�ݵ���_0 ��$��Gk�!
3
+ �k2��