Merge pull request #747 from mbj/bump/to-ruby-2.3

Change to Ruby Ruby >=2.3
This commit is contained in:
Markus Schirp 2018-09-12 14:33:35 +00:00 committed by GitHub
commit 633cf6a18b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
363 changed files with 448 additions and 95 deletions

View file

@ -4,4 +4,4 @@ AllCops:
- 'test_app/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
TargetRubyVersion: 2.2
TargetRubyVersion: 2.3

View file

@ -1,3 +1,8 @@
# v0.8.17 2018-09-12
* Drop support for Ruby < 2.3
* Use frozen string literals globally
# v0.8.16 2018-08-03
* Support for rspec-3.x

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
source 'https://rubygems.org'
gemspec name: 'mutant'

View file

@ -1,7 +1,7 @@
PATH
remote: .
specs:
mutant (0.8.14)
mutant (0.8.16)
abstract_type (~> 0.0.7)
adamantium (~> 0.2.0)
anima (~> 0.3.0)
@ -17,9 +17,9 @@ PATH
procto (~> 0.0.2)
regexp_parser (~> 0.4.9)
unparser (~> 0.2.5)
mutant-rspec (0.8.14)
mutant (~> 0.8.14)
rspec-core (>= 3.4.0, < 3.8.0)
mutant-rspec (0.8.16)
mutant (~> 0.8.16)
rspec-core (>= 3.4.0, < 4.0.0)
GEM
remote: https://rubygems.org/
@ -105,7 +105,7 @@ GEM
codeclimate-engine-rb (~> 0.4.0)
parser (>= 2.4.0.0, < 2.5)
rainbow (~> 2.0)
regexp_parser (0.4.9)
regexp_parser (0.4.13)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
@ -139,13 +139,13 @@ GEM
simplecov-html (0.10.1)
thread_safe (0.3.6)
unicode-display_width (1.3.0)
unparser (0.2.6)
unparser (0.2.8)
abstract_type (~> 0.0.7)
adamantium (~> 0.2.0)
concord (~> 0.1.5)
diff-lcs (~> 1.3)
equalizer (~> 0.0.9)
parser (>= 2.3.1.2, < 2.5)
parser (>= 2.3.1.2, < 2.6)
procto (~> 0.0.2)
virtus (1.0.5)
axiom-types (~> 0.1)
@ -166,4 +166,4 @@ DEPENDENCIES
mutant!
BUNDLED WITH
1.15.4
1.16.4

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'devtools'
Devtools.init_rake_tasks

View file

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
trap('INT') do |status|
effective_status = status ? status + 128 : 128

View file

@ -1,3 +1,3 @@
---
threshold: 16
total_score: 1316
total_score: 1318

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'abstract_type'
require 'adamantium'
require 'anima'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# A minimal actor implementation
module Actor

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module Actor
# Actor root environment

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module Actor
# Unbound mailbox

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module Actor
# Receiver side of an actor

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module Actor

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# AST helpers
module AST

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Node meta information mixin

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Node meta information mixin

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Node meta information mixin

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Node meta information mixin

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Node meta information mixin

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Node meta information mixin

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Node meta information mixin

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Module for node predicates

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Singleton nodes

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Regexp source mapper

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp
@ -99,7 +100,7 @@ module Mutant
#
# @return [String]
def interval_text
interval = [min, max].map { |num| num if num > 0 }.uniq
interval = [min, max].map { |num| num if num.positive? }.uniq
"{#{interval.join(',')}}"
end
end # ASTToExpression

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
module Regexp

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Mixin for node sexp syntax

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module AST
# Groups of node types

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Commandline parser / runner
class CLI

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Class to colorize strings
class Color

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Standalone configuration of a mutant execution.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# An abstract context where mutations can be applied to.
class Context

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Class to create diffs from source code
class Diff
@ -17,7 +18,7 @@ module Mutant
def diff
return if diffs.empty?
minimized_hunk.diff(:unified) << NEWLINE
minimized_hunk.diff(:unified) + NEWLINE
end
memoize :diff
@ -68,7 +69,7 @@ module Mutant
# @return [Array<Diff::LCS::Hunk>]
def hunks
diffs.map do |diff|
::Diff::LCS::Hunk.new(old, new, diff, max_length, 0)
::Diff::LCS::Hunk.new(old.map(&:dup), new, diff, max_length, 0)
end
end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Abstract base class for mutant environments
class Env

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Env
# Bootstrap environment

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Abstract base class for match expression

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Expression

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Expression

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Expression
# Abstract base class for expressions matching namespaces

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Expression
class Parser

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Abstract base class mutant test framework integrations

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'rspec/core'
module Mutant

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Isolation
include AbstractType

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Isolation
# Isolation via the fork(2) systemcall.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Module providing isolation
class Isolation

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Base class for code loaders
class Loader

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Abstract matcher to find subjects to mutate
class Matcher

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Matcher chaining results of other matchers together

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Subject matcher configuration

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Matcher filter

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Abstract base class for method matchers

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
class Method

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
class Method

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Abstract base class for matcher that returns method subjects from scope

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Matcher for specific namespace

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# A null matcher, that does not match any subjects

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Matcher expanding Mutant::Scope objects into method matches

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Matcher
# Matcher returning subjects already known at its creation time

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Namespace for mutant metadata
module Meta

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module Meta
class Example

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module Meta
class Example

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
module Meta
class Example

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Represent a mutated node with its subject
class Mutation

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Generator for mutations
class Mutator

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
# Generator for mutations
@ -124,7 +125,7 @@ module Mutant
# @return [nil]
# otherwise
def parent_node
parent.node if parent
parent&.node
end
# Parent type
@ -135,7 +136,7 @@ module Mutant
# @return [nil]
# otherwise
def parent_type
parent_node.type if parent_node
parent_node&.type
end
# Test if the node is the left of an or_asgn or op_asgn

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Mutant
class Mutator
class Node

Some files were not shown because too many files have changed in this diff Show more