From 98d5b6562c9012fdb89f5a065f2984520fbf1152 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Mon, 26 Nov 2012 11:30:00 +0100 Subject: [PATCH] Use abstract_type gem from rubygems --- lib/mutant/context.rb | 2 +- lib/mutant/context/scope.rb | 2 +- lib/mutant/killer.rb | 2 +- lib/mutant/loader.rb | 2 +- lib/mutant/matcher.rb | 2 +- lib/mutant/matcher/scope_methods.rb | 2 +- lib/mutant/mutation/filter.rb | 2 +- lib/mutant/mutator.rb | 2 +- lib/mutant/mutator/literal.rb | 2 +- lib/mutant/mutator/literal/range.rb | 2 +- lib/mutant/reporter.rb | 2 +- lib/mutant/strategy.rb | 2 +- mutant.gemspec | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/mutant/context.rb b/lib/mutant/context.rb index e8f097e0..144b6a4c 100644 --- a/lib/mutant/context.rb +++ b/lib/mutant/context.rb @@ -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 # diff --git a/lib/mutant/context/scope.rb b/lib/mutant/context/scope.rb index 0275e8e3..4971dd4b 100644 --- a/lib/mutant/context/scope.rb +++ b/lib/mutant/context/scope.rb @@ -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 diff --git a/lib/mutant/killer.rb b/lib/mutant/killer.rb index c424573d..60e2ba25 100644 --- a/lib/mutant/killer.rb +++ b/lib/mutant/killer.rb @@ -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 # diff --git a/lib/mutant/loader.rb b/lib/mutant/loader.rb index dc72bea5..74128db3 100644 --- a/lib/mutant/loader.rb +++ b/lib/mutant/loader.rb @@ -1,7 +1,7 @@ module Mutant # Base class for code loaders class Loader - include AbstractClass + include AbstractType extend MethodObject private diff --git a/lib/mutant/matcher.rb b/lib/mutant/matcher.rb index d16ce44f..a4cd7aca 100644 --- a/lib/mutant/matcher.rb +++ b/lib/mutant/matcher.rb @@ -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 diff --git a/lib/mutant/matcher/scope_methods.rb b/lib/mutant/matcher/scope_methods.rb index 6a98dbfe..97fcfb05 100644 --- a/lib/mutant/matcher/scope_methods.rb +++ b/lib/mutant/matcher/scope_methods.rb @@ -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 # diff --git a/lib/mutant/mutation/filter.rb b/lib/mutant/mutation/filter.rb index 6bb20147..115e8a09 100644 --- a/lib/mutant/mutation/filter.rb +++ b/lib/mutant/mutation/filter.rb @@ -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 diff --git a/lib/mutant/mutator.rb b/lib/mutant/mutator.rb index 259a4c5e..57f14501 100644 --- a/lib/mutant/mutator.rb +++ b/lib/mutant/mutator.rb @@ -1,7 +1,7 @@ module Mutant # Generator for mutations class Mutator - include Adamantium::Flat, AbstractClass + include Adamantium::Flat, AbstractType # Enumerate mutations on node # diff --git a/lib/mutant/mutator/literal.rb b/lib/mutant/mutator/literal.rb index 21553ace..e756b49b 100644 --- a/lib/mutant/mutator/literal.rb +++ b/lib/mutant/mutator/literal.rb @@ -2,7 +2,7 @@ module Mutant class Mutator # Abstract mutator for literal AST nodes class Literal < self - include AbstractClass + include AbstractType private diff --git a/lib/mutant/mutator/literal/range.rb b/lib/mutant/mutator/literal/range.rb index f608db32..b4bb3f15 100644 --- a/lib/mutant/mutator/literal/range.rb +++ b/lib/mutant/mutator/literal/range.rb @@ -3,7 +3,7 @@ module Mutant class Literal # Abstract literal range mutator class Range < self - include AbstractClass + include AbstractType private diff --git a/lib/mutant/reporter.rb b/lib/mutant/reporter.rb index f6e58beb..38049d45 100644 --- a/lib/mutant/reporter.rb +++ b/lib/mutant/reporter.rb @@ -1,7 +1,7 @@ module Mutant # Abstract reporter class Reporter - include Adamantium::Flat, AbstractClass + include Adamantium::Flat, AbstractType # Report subject # diff --git a/lib/mutant/strategy.rb b/lib/mutant/strategy.rb index df4c598b..432c32be 100644 --- a/lib/mutant/strategy.rb +++ b/lib/mutant/strategy.rb @@ -1,6 +1,6 @@ module Mutant class Strategy - include AbstractClass + include AbstractType # Kill mutation # diff --git a/mutant.gemspec b/mutant.gemspec index 05d256ae..4fcd88f6 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -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