minitest-bang 1.1.0.beta → 1.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest/bang.rb +6 -1
- data/lib/minitest/dsl.rb +10 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b45d74f628aff67b7741cd5994baec2bf01c766
|
4
|
+
data.tar.gz: e1bc0d0a81d586a4d13e6a8dc436baa562b33eab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0392905de693aa291e40c0100b9fc7af74dd4a2bdbff5ec9104a85e9b759bdfc296807045e272501046b3b8c8286f5f16514c176ba08ea5827fef0745ca672de
|
7
|
+
data.tar.gz: 491f2c68cd6d2173e322b776843527081eaa58b5eaa7993bd8f67c2a399ef31ed86ffa5d5baf3a56141478bee13a029d2bc285ff0750486faa1c24b07ea46c7d
|
data/lib/minitest/bang.rb
CHANGED
data/lib/minitest/dsl.rb
CHANGED
@@ -9,21 +9,26 @@ module Minitest
|
|
9
9
|
bangs << name
|
10
10
|
end
|
11
11
|
|
12
|
+
def bangs
|
13
|
+
@bangs ||= Set.new
|
14
|
+
end
|
15
|
+
|
12
16
|
def all_bangs
|
13
17
|
return Set.new if @before_ran
|
14
18
|
bangs + bangs_from_parent_scope
|
15
19
|
end
|
16
20
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
@bangs ||= Set.new
|
21
|
+
def bangs_from_parent_scope
|
22
|
+
return Set.new unless defined? self.superclass.all_bangs
|
23
|
+
self.superclass.all_bangs
|
21
24
|
end
|
22
25
|
|
26
|
+
private
|
27
|
+
|
23
28
|
def before_with_bangs(_type=nil, &block)
|
24
29
|
@before_ran = true
|
25
30
|
|
26
|
-
before_bangs = Set.new(bangs
|
31
|
+
before_bangs = Set.new(bangs)
|
27
32
|
bangs.clear
|
28
33
|
after_bangs = bangs
|
29
34
|
|
@@ -39,9 +44,5 @@ module Minitest
|
|
39
44
|
alias_method :before_without_bangs, :before
|
40
45
|
alias_method :before, :before_with_bangs
|
41
46
|
|
42
|
-
def bangs_from_parent_scope
|
43
|
-
return Set.new unless defined? self.superclass.all_bangs
|
44
|
-
self.superclass.all_bangs
|
45
|
-
end
|
46
47
|
end
|
47
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-bang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Stevens
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-06-
|
13
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|