minitest-debugger 1.0.1 → 1.0.2

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
@@ -1,3 +1,9 @@
1
+ === 1.0.2 / 2013-05-29
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Switched to minitest 5!
6
+
1
7
  === 1.0.1 / 2013-04-22
2
8
 
3
9
  * 1 bug fix:
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Hoe.spec "minitest-debugger" do
11
11
 
12
12
  self.rubyforge_name = "seattlerb"
13
13
 
14
- dependency "minitest", "~> 4.0"
14
+ dependency "minitest", "~> 5.0"
15
15
  end
16
16
 
17
17
  # vim: syntax=ruby
data/example.rb CHANGED
@@ -1,7 +1,7 @@
1
- # require 'minitest/debugger'
1
+ require 'minitest/debugger' if ENV["MTDB"]
2
2
  require 'minitest/autorun'
3
3
 
4
- class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
4
+ class TestMiniTestUnitTestCase < Minitest::Test
5
5
  def good
6
6
  42
7
7
  end
@@ -19,20 +19,21 @@ end
19
19
  SCRIPT_LINES__[__FILE__] = File.readlines(__FILE__)
20
20
 
21
21
  require 'debug'
22
- require "minitest/unit"
22
+ require "minitest"
23
+ require "minitest/test"
23
24
 
24
25
  ##
25
26
  # This is a stupid simple example of how easy it is to make a minitest
26
27
  # plugin that does something useful. In this case it wraps assert so
27
28
  # that failed assertions will drop into the ruby debugger.
28
29
 
29
- module MiniTest::Debugger
30
- VERSION = "1.0.1"
30
+ module Minitest::Debugger
31
+ VERSION = "1.0.2"
31
32
 
32
33
  def assert test, msg = nil
33
34
  begin
34
35
  super
35
- rescue MiniTest::Assertion => e
36
+ rescue Minitest::Assertion => e
36
37
  warn "Assertion Failed. Dropping into debugger now:"
37
38
  DEBUGGER__.interrupt
38
39
  raise e
@@ -40,6 +41,6 @@ module MiniTest::Debugger
40
41
  end
41
42
  end
42
43
 
43
- class MiniTest::Unit::TestCase
44
- include MiniTest::Debugger
44
+ class Minitest::Test
45
+ include Minitest::Debugger
45
46
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-debugger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
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-04-23 00:00:00 Z
39
+ date: 2013-05-30 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
@@ -46,11 +46,11 @@ dependencies:
46
46
  requirements:
47
47
  - - ~>
48
48
  - !ruby/object:Gem::Version
49
- hash: 27
49
+ hash: 31
50
50
  segments:
51
- - 4
51
+ - 5
52
52
  - 0
53
- version: "4.0"
53
+ version: "5.0"
54
54
  type: :runtime
55
55
  version_requirements: *id001
56
56
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file