minitest 5.5.0 → 5.5.1

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: fc08f3db9fc3efdaa4788d9a849a880c78cb1925
4
- data.tar.gz: 08497412368dfdf01dacb30d4a0fcd84923fa86c
3
+ metadata.gz: 71d62e9fd6a176451296c021e8e03f9f6e1cd30a
4
+ data.tar.gz: 45c4772118f1edd8f574d85cffc5827116b62f35
5
5
  SHA512:
6
- metadata.gz: d7423a34cc0132cc993499538a3a3cbce7e759f048512b1400d22f840437fa8822f9d64a68e9f8b923a2c487c7b85d2980178714e15201d1d01fb8789ae42f1f
7
- data.tar.gz: 35b604f7c5454082008a7fc4af2154de2f22dd6ab071968e4f1bdd001bd392634b1afca043d110ad2f9376a798fe3b77f84a89e76d3bb169ce09d9d6533fa34f
6
+ metadata.gz: 6b90e0a01a98ae2134536b0a9079bc5cc2c5f106bdf6c536cc5f84f8ad16cd1963f2e28cf0922d1089d757dea16bc9ae0881f100a07d7d201e651e1957499af0
7
+ data.tar.gz: 4ef102bf6a4123bea77619773a106a193c21755eaaba7237a0db923cc26e0b0f6aabe4844d86bf8ec98c7b97c225ab68e797705d2de8939542bb09a0f39d448f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 5.5.1 / 2015-01-09
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed doco problems. (zzak)
6
+
1
7
  === 5.5.0 / 2014-12-12
2
8
 
3
9
  * 1 minor enhancement:
@@ -7,7 +7,7 @@ require "minitest/parallel"
7
7
  # :include: README.txt
8
8
 
9
9
  module Minitest
10
- VERSION = "5.5.0" # :nodoc:
10
+ VERSION = "5.5.1" # :nodoc:
11
11
  ENCS = "".respond_to? :encoding # :nodoc:
12
12
 
13
13
  @@installed_at_exit ||= false
@@ -291,6 +291,12 @@ module Minitest
291
291
  end
292
292
  end
293
293
 
294
+ ##
295
+ # Runs a single method and has the reporter record the result.
296
+ # This was considered internal API but is factored out of run so
297
+ # that subclasses can specialize the running of an individual
298
+ # test. See Minitest::ParallelTest::ClassMethods for an example.
299
+
294
300
  def self.run_one_method klass, method_name, reporter
295
301
  reporter.record Minitest.run_one_method(klass, method_name)
296
302
  end
@@ -308,7 +314,7 @@ module Minitest
308
314
  on_signal "INFO", handler, &block
309
315
  end
310
316
 
311
- SIGNALS = Signal.list
317
+ SIGNALS = Signal.list # :nodoc:
312
318
 
313
319
  def self.on_signal name, action # :nodoc:
314
320
  supported = SIGNALS[name]
@@ -145,7 +145,7 @@ module Minitest
145
145
  assert obj.empty?, msg
146
146
  end
147
147
 
148
- E = ""
148
+ E = "" # :nodoc:
149
149
 
150
150
  ##
151
151
  # Fails unless <tt>exp == act</tt> printing the difference between
@@ -402,17 +402,17 @@ module Minitest
402
402
  def capture_io
403
403
  _synchronize do
404
404
  begin
405
- captured_stdout, captured_stderr = StringIO.new, StringIO.new
405
+ captured_stdout, captured_stderr = StringIO.new, StringIO.new
406
406
 
407
- orig_stdout, orig_stderr = $stdout, $stderr
408
- $stdout, $stderr = captured_stdout, captured_stderr
407
+ orig_stdout, orig_stderr = $stdout, $stderr
408
+ $stdout, $stderr = captured_stdout, captured_stderr
409
409
 
410
- yield
410
+ yield
411
411
 
412
- return captured_stdout.string, captured_stderr.string
413
- ensure
414
- $stdout = orig_stdout
415
- $stderr = orig_stderr
412
+ return captured_stdout.string, captured_stderr.string
413
+ ensure
414
+ $stdout = orig_stdout
415
+ $stderr = orig_stderr
416
416
  end
417
417
  end
418
418
  end
@@ -343,6 +343,9 @@ module Minitest
343
343
  end
344
344
 
345
345
  module Minitest
346
+ ##
347
+ # The spec version of Minitest::Benchmark.
348
+
346
349
  class BenchSpec < Benchmark
347
350
  extend Minitest::Spec::DSL
348
351
 
@@ -1,8 +1,19 @@
1
1
  module Minitest
2
2
  module Parallel
3
+
4
+ ##
5
+ # The engine used to run multiple tests in parallel.
6
+
3
7
  class Executor
8
+
9
+ ##
10
+ # The size of the pool of workers.
11
+
4
12
  attr_reader :size
5
13
 
14
+ ##
15
+ # Create a parallel test executor of with +size+ workers.
16
+
6
17
  def initialize size
7
18
  @size = size
8
19
  @queue = Queue.new
@@ -18,8 +29,16 @@ module Minitest
18
29
  }
19
30
  end
20
31
 
32
+ ##
33
+ # Add a job to the queue
34
+
21
35
  def << work; @queue << work; end
22
36
 
37
+ ##
38
+ # Shuts down the pool of workers by signalling them to quit and
39
+ # waiting for them all to finish what they're currently working
40
+ # on.
41
+
23
42
  def shutdown
24
43
  size.times { @queue << nil }
25
44
  @pool.each(&:join)
@@ -27,13 +46,13 @@ module Minitest
27
46
  end
28
47
 
29
48
  module Test
30
- def _synchronize; Test.io_lock.synchronize { yield }; end
49
+ def _synchronize; Test.io_lock.synchronize { yield }; end # :nodoc:
31
50
 
32
51
  module ClassMethods
33
- def run_one_method klass, method_name, reporter
52
+ def run_one_method klass, method_name, reporter # :nodoc:
34
53
  Minitest.parallel_executor << [klass, method_name, reporter]
35
54
  end
36
- def test_order; :parallel; end
55
+ def test_order; :parallel; end # :nodoc:
37
56
  end
38
57
  end
39
58
  end
@@ -14,7 +14,7 @@ module Minitest
14
14
  PASSTHROUGH_EXCEPTIONS = [NoMemoryError, SignalException, # :nodoc:
15
15
  Interrupt, SystemExit]
16
16
 
17
- class << self; attr_accessor :io_lock; end
17
+ class << self; attr_accessor :io_lock; end # :nodoc:
18
18
  self.io_lock = Mutex.new
19
19
 
20
20
  ##
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.5.0
4
+ version: 5.5.1
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-12-12 00:00:00.000000000 Z
32
+ date: 2015-01-10 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 @@
1
- ��mCoC�������4M����A� e���2a^`NE�������z�/�M4qA�����y�%g�l����(8])H
2
- ���?vX_�o���M�8��_tpe|�5E4R,r�� �_2P��iR ܦ��<}��px��:�Y�:ħm DgB��aƲ,�ǥ|��=�|��%�Isd^X�3�r^JV>8)�p� \��C_�?��8�[� Wr���G�������p�[߷ 5�mC�9 �\���%�z�j
1
+ jCG1]��k8݃@*�Z��x751��Ͱ~�he�u�qp�ڢ]�E%db�_��E[p�;��`�|��Kd����*��S��ء�c�2B�y0fډ�nA."4 A�{Z���p[טSi) `B�?2t����x]��U��x��Ԏ������|�nD%2W����.S,-���Ay,4��6%Ye����'���`��S�.N:��;a=�"]5���[́���ݴ^�y��C���lKUs*�'5/lʙ}