minitest 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,10 @@
1
+ === 5.0.1 / 2013-05-14
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Documented Assertions' need for @assertions to be defined by the includer.
6
+ * Only load one plugin version per name. Tries for latest.
7
+
1
8
  === 5.0.0 / 2013-05-10
2
9
 
3
10
  Oh god... here we go...
@@ -4,7 +4,7 @@ require "optparse"
4
4
  # :include: README.txt
5
5
 
6
6
  module Minitest
7
- VERSION = "5.0.0" # :nodoc:
7
+ VERSION = "5.0.1" # :nodoc:
8
8
 
9
9
  @@installed_at_exit ||= false
10
10
  @@after_run = []
@@ -68,9 +68,15 @@ module Minitest
68
68
  def self.load_plugins # :nodoc:
69
69
  return unless self.extensions.empty?
70
70
 
71
- Gem.find_files("minitest/*_plugin.rb").each do |plugin_path|
72
- require plugin_path
71
+ seen = {}
72
+
73
+ Gem.find_files("minitest/*_plugin.rb").reverse.each do |plugin_path|
73
74
  name = File.basename plugin_path, "_plugin.rb"
75
+
76
+ next if seen[name]
77
+ seen[name] = true
78
+
79
+ require plugin_path
74
80
  self.extensions << name
75
81
  end
76
82
  end
@@ -4,6 +4,12 @@ module Minitest
4
4
  ##
5
5
  # Minitest Assertions. All assertion methods accept a +msg+ which is
6
6
  # printed if the assertion fails.
7
+ #
8
+ # Protocol: Nearly everything here boils up to +assert+, which
9
+ # expects to be able to increment an instance variable named
10
+ # +assertions+. This is not provided by Assertions and must be
11
+ # provided by the thing including Assertions. See Minitest::Runnable
12
+ # for an example.
7
13
 
8
14
  module Assertions
9
15
  UNDEFINED = Object.new # :nodoc:
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 5
8
8
  - 0
9
- - 0
10
- version: 5.0.0
9
+ - 1
10
+ version: 5.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2013-05-10 00:00:00 Z
39
+ date: 2013-05-15 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
metadata.gz.sig CHANGED
Binary file