minitest-debugger 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/Rakefile +1 -1
- data/example.rb +2 -2
- data/lib/minitest/debugger.rb +7 -6
- metadata +7 -7
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/Rakefile
CHANGED
data/example.rb
CHANGED
data/lib/minitest/debugger.rb
CHANGED
@@ -19,20 +19,21 @@ end
|
|
19
19
|
SCRIPT_LINES__[__FILE__] = File.readlines(__FILE__)
|
20
20
|
|
21
21
|
require 'debug'
|
22
|
-
require "minitest
|
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
|
30
|
-
VERSION = "1.0.
|
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
|
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
|
44
|
-
include
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
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-
|
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:
|
49
|
+
hash: 31
|
50
50
|
segments:
|
51
|
-
-
|
51
|
+
- 5
|
52
52
|
- 0
|
53
|
-
version: "
|
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
|