mutant 0.3.0.beta3 → 0.3.0.beta4
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.
- checksums.yaml +4 -4
- data/lib/mutant/matcher/namespace.rb +22 -0
- data/mutant.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 266262896da3866b48b440ae556a6510a15b351a
|
4
|
+
data.tar.gz: e646685cea23129d46ead4f476940c4b37f27d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11e1b5542cc90aa0333a47908a1dee8fe04a6c2ef49df2da4c140a6a273af7e13c868fb81a9f1a1866133b4308a4fe6bc672619a58fec895d948d95485ec8abb
|
7
|
+
data.tar.gz: 7982b06a5e1276a0f64f04bda3009bc986e0b59dcbe94f032251d6a0944d13115d70a35b198e540f458274d5a13fe968c02b7207ad0783212d36b8f59b888f2c
|
@@ -52,6 +52,24 @@ module Mutant
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
# Test for bogus class
|
56
|
+
#
|
57
|
+
# FIXME: Remove this hack once bogus is fixed!
|
58
|
+
#
|
59
|
+
# @param [Object] object
|
60
|
+
#
|
61
|
+
# @return [true]
|
62
|
+
# if is a bogous class
|
63
|
+
#
|
64
|
+
# @return [false]
|
65
|
+
# otherwise
|
66
|
+
#
|
67
|
+
# @api private
|
68
|
+
#
|
69
|
+
def self.bogous?(object)
|
70
|
+
defined?(Bogus::Fake) && object == Bogus::Fake
|
71
|
+
end
|
72
|
+
|
55
73
|
# Yield scope if name matches pattern
|
56
74
|
#
|
57
75
|
# @param [Module,Class] scope
|
@@ -61,6 +79,10 @@ module Mutant
|
|
61
79
|
# @api private
|
62
80
|
#
|
63
81
|
def emit_scope(scope)
|
82
|
+
return if self.class.bogous?(scope)
|
83
|
+
name = scope.name
|
84
|
+
# FIXME Fix nokogiri!
|
85
|
+
return unless name.kind_of?(String)
|
64
86
|
if pattern =~ scope.name
|
65
87
|
yield scope
|
66
88
|
end
|
data/mutant.gemspec
CHANGED