minitest-excludes 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.0.1 / 2012-02-22
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Fixed instance_eval for better error reporting. (headius)
6
+ * Use undef_method to wipe tests brought in via modules. (headius)
7
+
1
8
  === 1.0.0 / 2011-12-20
2
9
 
3
10
  * 1 major enhancement:
@@ -1,7 +1,7 @@
1
1
  require 'minitest/unit'
2
2
 
3
3
  module MiniTest::Unit::Excludes # :nodoc:
4
- VERSION = '1.0.0' # :nodoc:
4
+ VERSION = '1.0.1' # :nodoc:
5
5
  end
6
6
 
7
7
  ##
@@ -47,7 +47,7 @@ class MiniTest::Unit::TestCase
47
47
  return warn "Method #{self}##{name} is not defined" unless
48
48
  method_defined? name
49
49
 
50
- remove_method name
50
+ undef_method name
51
51
  end
52
52
 
53
53
  ##
@@ -58,7 +58,7 @@ class MiniTest::Unit::TestCase
58
58
  begin
59
59
  if name and not name.empty? then
60
60
  file = File.join EXCLUDE_DIR, "#{name.gsub(/::/, '/')}.rb"
61
- instance_eval File.read file if File.exist? file
61
+ instance_eval File.read(file), file if File.exist? file
62
62
  end
63
63
  true
64
64
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-excludes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.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: 2011-12-21 00:00:00 Z
39
+ date: 2012-02-22 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
@@ -76,11 +76,11 @@ dependencies:
76
76
  requirements:
77
77
  - - ~>
78
78
  - !ruby/object:Gem::Version
79
- hash: 27
79
+ hash: 25
80
80
  segments:
81
81
  - 2
82
- - 12
83
- version: "2.12"
82
+ - 13
83
+ version: "2.13"
84
84
  type: :development
85
85
  version_requirements: *id003
86
86
  description: |-
metadata.gz.sig CHANGED
Binary file