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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99a1dc445a2a8e2fc4485a5fc03b65366c9f00ab
4
- data.tar.gz: 9bb4ca3b1255de13857a9c142b1d933dec0049ab
3
+ metadata.gz: 266262896da3866b48b440ae556a6510a15b351a
4
+ data.tar.gz: e646685cea23129d46ead4f476940c4b37f27d36
5
5
  SHA512:
6
- metadata.gz: 89768cb785f9bb73daf81720e688ae824a60b967722577c3048944f46c32b57360aa9e96ac3a48517bc889a8ee59c397248c7b90b0a401c543483e0f8f660f1a
7
- data.tar.gz: fc7fb6c821a962efa4542513c930adb6b89b96d4811946f62080f0ac79dc1e0361d5d07b5c569a1d6b5fa25e1fa91f9d5ff32833a0fa7fb3bb00c2fe0e43a7c7
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mutant'
5
- gem.version = '0.3.0.beta3'
5
+ gem.version = '0.3.0.beta4'
6
6
  gem.authors = [ 'Markus Schirp' ]
7
7
  gem.email = [ 'mbj@schirp-dso.com' ]
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.beta3
4
+ version: 0.3.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp