Bump morpher dependency

This commit is contained in:
Markus Schirp 2014-03-09 00:00:46 +00:00
parent 5f2965f88c
commit a284b79067
6 changed files with 15 additions and 9 deletions

View file

@ -1,3 +1,9 @@
# v0.5.4 2014-03-08
Changes:
* Morpher dependency bump
# v0.5.3 2014-03-05
Changes:

View file

@ -1,3 +1,3 @@
---
threshold: 18
total_score: 789
total_score: 794

View file

@ -112,7 +112,7 @@ module Mutant
#
def subject_selector
if @subject_selectors.any?
Morpher::Evaluator::Predicate::Or.new(@subject_selectors)
Morpher::Evaluator::Predicate::Boolean::Or.new(@subject_selectors)
end
end
@ -128,7 +128,7 @@ module Mutant
#
def predicate
if subject_selector && subject_rejector
Morpher::Evaluator::Predicate::And.new([
Morpher::Evaluator::Predicate::Boolean::And.new([
subject_selector,
Morpher::Evaluator::Predicate::Negation.new(subject_rejector)
])
@ -149,11 +149,11 @@ module Mutant
#
def subject_rejector
rejectors = @subject_ignores.flat_map(&:to_a).map do |subject|
Morpher.evaluator(s(:eql, s(:attribute, :identification), s(:static, subject.identification)))
Morpher.compile(s(:eql, s(:attribute, :identification), s(:static, subject.identification)))
end
if rejectors.any?
Morpher::Evaluator::Predicate::Or.new(rejectors)
Morpher::Evaluator::Predicate::Boolean::Or.new(rejectors)
end
end
end
@ -315,7 +315,7 @@ module Mutant
@builder.add_subject_ignore(Classifier.run(@cache, pattern))
end
opts.on('--code CODE', 'Scope execution to subjects with CODE') do |code|
@builder.add_subject_selector(Morpher.evaluator(s(:eql, s(:attribute, :code), s(:static, code))))
@builder.add_subject_selector(Morpher.compile(s(:eql, s(:attribute, :code), s(:static, code))))
end
end

View file

@ -2,5 +2,5 @@
module Mutant
# The current mutant version
VERSION = '0.5.3'.freeze
VERSION = '0.5.4'.freeze
end # Mutant

View file

@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 1.9.3'
gem.add_runtime_dependency('parser', '~> 2.1.6')
gem.add_runtime_dependency('morpher', '~> 0.0.1')
gem.add_runtime_dependency('morpher', '~> 0.1.0')
gem.add_runtime_dependency('procto', '~> 0.0.2')
gem.add_runtime_dependency('abstract_type', '~> 0.0.7')
gem.add_runtime_dependency('unparser', '~> 0.1.8')

View file

@ -129,7 +129,7 @@ describe Mutant::CLI, '.new' do
cache,
TestApp::Literal, TestApp::Literal.instance_method(:float)
)
predicate = Morpher.evaluator(
predicate = Morpher.compile(
s(:or,
s(:eql,
s(:attribute, :code),