Skip to content

Commit

Permalink
Merge pull request #469 from mbj/fix/eval-blacklist
Browse files Browse the repository at this point in the history
Correctly exclude evaled code
  • Loading branch information
mbj committed Oct 30, 2015
2 parents 4777742 + 8c3fdff commit db71d01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.8.7 2015-10-30

* Fix blackliting regexp to correctly match the String `(eval)` absolutely.

# v0.8.6. 2015-10-27

* Add mutation from `Date.parse` to more strict parsing methods #448
Expand Down
2 changes: 1 addition & 1 deletion lib/mutant/matcher/method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Method < self

# Methods within rbx kernel directory are precompiled and their source
# cannot be accessed via reading source location. Same for methods created by eval.
BLACKLIST = %r{\Akernel/|(eval)}.freeze
BLACKLIST = %r{\A(kernel/|\(eval\)\z)}.freeze

# Enumerate matches
#
Expand Down
2 changes: 1 addition & 1 deletion lib/mutant/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Mutant
# Current mutant version
VERSION = '0.8.6'.freeze
VERSION = '0.8.7'.freeze
end # Mutant

0 comments on commit db71d01

Please sign in to comment.