minitest 5.11.0b1 → 5.11.0

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: 4d31a9fcb7d45a7e535a4fbc93165ba08405b925
4
- data.tar.gz: 3b62db8a5bfa1b7d232bd76d3254510c3d839c4c
3
+ metadata.gz: 715f3317d00a75f840668207642ed04f6bba9891
4
+ data.tar.gz: 5afd442e33b93f31916d28010a0b03deb00c055f
5
5
  SHA512:
6
- metadata.gz: ad77547e5e3721e327d6bb96c664cce839acef498c0f059df1fd36211d35644ec040e75212c8a421430ee05adb7d5525b3aefc54e480f3cb33afb6004917077f
7
- data.tar.gz: f153926171b7040a9626f029747202678e32798c2572e18bcf4f9cab5ce10e80faa074ccc3f460c56ba2027c35af0b541440e9e8a8dfce740af47211646bd2db
6
+ metadata.gz: ff4e51abc82b3a84a36c7077ecd4d317471832462a1f594cb1789a38a19e31f2f6db391e504e70926ce88b15ef7596433c3db5d3581fe7f2ccff19fe541a4ddb
7
+ data.tar.gz: 92b42e9bfd3cdc22e338f80228259763f17896b7b4ec2b586e1c233c8ceded230bf2a0c168a16077c08a2cc6a98ae73c66aa065431949c38c2a0dae51448d89e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,26 @@
1
+ === 5.11.0 / 2018-01-01
2
+
3
+ * 2 major enhancements:
4
+
5
+ * Added Minitest::Result and Minitest::Result.from(runnable).
6
+ * Changed Minitest::Test to subclass Result and refactored methods up.
7
+
8
+ * 7 minor enhancements:
9
+
10
+ * Added --no-plugins and MT_NO_PLUGINS to bypass MT plugin autoloading. Helps with bad actors installed globally.
11
+ * Added bench_performance_{logarithmic,power} for spec-style benchmarks. (rickhull)
12
+ * Added deprecation warning for Runnable#marshal_dump.
13
+ * Minitest.run_one_method now checks for instance of Result, not exact same class.
14
+ * Minitest::Test.run returns a Result version of self, not self.
15
+ * ProgressReporter#prerecord now explicitly prints klass.name. Allows for fakers.
16
+
17
+ * 4 bug fixes:
18
+
19
+ * Object.stub no longer calls the passed block if stubbed with a callable.
20
+ * Object.stub now passes blocks down to the callable result.
21
+ * Pushed Minitest::Test#time & #time_it up to Runnable.
22
+ * Test nil equality directly in assert_equal. Fixes #679. (voxik)
23
+
1
24
  === 5.11.0b1 / 2017-12-20
2
25
 
3
26
  * 2 major enhancements:
@@ -8,7 +8,7 @@ require "stringio"
8
8
  # :include: README.rdoc
9
9
 
10
10
  module Minitest
11
- VERSION = "5.11.0b1" # :nodoc:
11
+ VERSION = "5.11.0" # :nodoc:
12
12
  ENCS = "".respond_to? :encoding # :nodoc:
13
13
 
14
14
  @@installed_at_exit ||= false
@@ -377,6 +377,22 @@ module Minitest
377
377
  @@runnables
378
378
  end
379
379
 
380
+ @@marshal_dump_warned = false
381
+
382
+ def marshal_dump # :nodoc:
383
+ unless @@marshal_dump_warned then
384
+ warn ["Minitest::Test#marshal_dump is deprecated.",
385
+ "You might be violating internals. From", caller.first].join " "
386
+ @@marshal_dump_warned = true
387
+ end
388
+
389
+ [self.name, self.failures, self.assertions, self.time]
390
+ end
391
+
392
+ def marshal_load ary # :nodoc:
393
+ self.name, self.failures, self.assertions, self.time = ary
394
+ end
395
+
380
396
  def failure # :nodoc:
381
397
  self.failures.first
382
398
  end
@@ -428,6 +444,9 @@ module Minitest
428
444
  # that the test result can be marshalled.
429
445
 
430
446
  class Result < Runnable
447
+ undef_method :marshal_dump
448
+ undef_method :marshal_load
449
+
431
450
  ##
432
451
  # The class name of the test result.
433
452
 
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.11.0b1
4
+ version: 5.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
30
30
  V+HB+LYYhXWitInO/eXxDrFB
31
31
  -----END CERTIFICATE-----
32
- date: 2017-12-21 00:00:00.000000000 Z
32
+ date: 2018-01-01 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
@@ -165,9 +165,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - ">"
168
+ - - ">="
169
169
  - !ruby/object:Gem::Version
170
- version: 1.3.1
170
+ version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
173
  rubygems_version: 2.6.13
metadata.gz.sig CHANGED
Binary file