Use abstract_type gem from rubygems

This commit is contained in:
Markus Schirp 2012-11-26 11:30:00 +01:00
parent 6c47342bca
commit 98d5b6562c
13 changed files with 13 additions and 13 deletions

View file

@ -1,7 +1,7 @@
module Mutant
# An abstract context where mutations can be appied to.
class Context
include Adamantium::Flat, AbstractClass
include Adamantium::Flat, AbstractType
# Return root ast node
#

View file

@ -2,7 +2,7 @@ module Mutant
class Context
# Scope context for mutation (Class or Module)
class Scope < self
include Adamantium::Flat, AbstractClass, Equalizer.new(:scope, :source_path)
include Adamantium::Flat, AbstractType, Equalizer.new(:scope, :source_path)
# Class context for mutation
class Class < self

View file

@ -1,7 +1,7 @@
module Mutant
# Abstract base class for mutant killers
class Killer
include Adamantium::Flat, AbstractClass
include Adamantium::Flat, AbstractType
# Test for kill failure
#

View file

@ -1,7 +1,7 @@
module Mutant
# Base class for code loaders
class Loader
include AbstractClass
include AbstractType
extend MethodObject
private

View file

@ -1,7 +1,7 @@
module Mutant
# Abstract matcher to find ASTs to mutate
class Matcher
include Adamantium::Flat, Enumerable, AbstractClass
include Adamantium::Flat, Enumerable, AbstractType
extend DescendantsTracker
# Enumerate subjects

View file

@ -2,7 +2,7 @@ module Mutant
class Matcher
# Abstract base class for matcher that returns subjects extracted from scope methods
class ScopeMethods < self
include AbstractClass
include AbstractType
# Return scope
#

View file

@ -2,7 +2,7 @@ module Mutant
class Mutation
# Abstract filter for mutations
class Filter
include Adamantium::Flat, AbstractClass
include Adamantium::Flat, AbstractType
extend DescendantsTracker
# Check for match

View file

@ -1,7 +1,7 @@
module Mutant
# Generator for mutations
class Mutator
include Adamantium::Flat, AbstractClass
include Adamantium::Flat, AbstractType
# Enumerate mutations on node
#

View file

@ -2,7 +2,7 @@ module Mutant
class Mutator
# Abstract mutator for literal AST nodes
class Literal < self
include AbstractClass
include AbstractType
private

View file

@ -3,7 +3,7 @@ module Mutant
class Literal
# Abstract literal range mutator
class Range < self
include AbstractClass
include AbstractType
private

View file

@ -1,7 +1,7 @@
module Mutant
# Abstract reporter
class Reporter
include Adamantium::Flat, AbstractClass
include Adamantium::Flat, AbstractType
# Report subject
#

View file

@ -1,6 +1,6 @@
module Mutant
class Strategy
include AbstractClass
include AbstractType
# Kill mutation
#

View file

@ -21,6 +21,6 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('backports', '~> 2.6')
gem.add_runtime_dependency('adamantium', '~> 0.0.3')
gem.add_runtime_dependency('equalizer', '~> 0.0.1')
gem.add_runtime_dependency('abstract_class', '~> 0.0.1')
gem.add_runtime_dependency('abstract_type', '~> 0.0.2')
gem.add_runtime_dependency('diff-lcs', '~> 1.1.3')
end