mutant 0.9.5 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +121 -0
- data/.rubocop.yml +203 -0
- data/Changelog.md +27 -0
- data/Gemfile +0 -7
- data/Gemfile.lock +30 -87
- data/Gemfile.shared +7 -0
- data/README.md +88 -27
- data/config/reek.yml +1 -0
- data/lib/mutant.rb +5 -3
- data/lib/mutant/ast.rb +0 -9
- data/lib/mutant/ast/find_metaclass_containing.rb +48 -0
- data/lib/mutant/ast/meta/send.rb +0 -6
- data/lib/mutant/bootstrap.rb +0 -36
- data/lib/mutant/cli.rb +5 -49
- data/lib/mutant/config.rb +0 -8
- data/lib/mutant/context.rb +0 -3
- data/lib/mutant/env.rb +0 -6
- data/lib/mutant/expression/method.rb +6 -6
- data/lib/mutant/expression/methods.rb +6 -6
- data/lib/mutant/expression/parser.rb +0 -6
- data/lib/mutant/integration.rb +0 -18
- data/lib/mutant/isolation/fork.rb +0 -22
- data/lib/mutant/license.rb +12 -1
- data/lib/mutant/matcher.rb +0 -14
- data/lib/mutant/matcher/config.rb +0 -11
- data/lib/mutant/matcher/method.rb +0 -31
- data/lib/mutant/matcher/method/instance.rb +0 -8
- data/lib/mutant/matcher/method/metaclass.rb +86 -0
- data/lib/mutant/matcher/method/singleton.rb +0 -25
- data/lib/mutant/matcher/methods.rb +17 -28
- data/lib/mutant/matcher/namespace.rb +0 -10
- data/lib/mutant/matcher/scope.rb +2 -4
- data/lib/mutant/meta/example/dsl.rb +0 -21
- data/lib/mutant/meta/example/verification.rb +0 -20
- data/lib/mutant/mutation.rb +0 -3
- data/lib/mutant/mutator.rb +1 -29
- data/lib/mutant/mutator/node.rb +1 -66
- data/lib/mutant/mutator/node/and_asgn.rb +0 -3
- data/lib/mutant/mutator/node/argument.rb +0 -15
- data/lib/mutant/mutator/node/arguments.rb +0 -20
- data/lib/mutant/mutator/node/begin.rb +0 -3
- data/lib/mutant/mutator/node/binary.rb +0 -23
- data/lib/mutant/mutator/node/block.rb +0 -15
- data/lib/mutant/mutator/node/break.rb +0 -3
- data/lib/mutant/mutator/node/case.rb +0 -9
- data/lib/mutant/mutator/node/class.rb +0 -3
- data/lib/mutant/mutator/node/conditional_loop.rb +0 -3
- data/lib/mutant/mutator/node/const.rb +0 -3
- data/lib/mutant/mutator/node/define.rb +0 -11
- data/lib/mutant/mutator/node/defined.rb +0 -3
- data/lib/mutant/mutator/node/dstr.rb +0 -3
- data/lib/mutant/mutator/node/dsym.rb +0 -3
- data/lib/mutant/mutator/node/generic.rb +0 -67
- data/lib/mutant/mutator/node/if.rb +0 -12
- data/lib/mutant/mutator/node/index.rb +0 -27
- data/lib/mutant/mutator/node/kwbegin.rb +0 -3
- data/lib/mutant/mutator/node/literal.rb +0 -3
- data/lib/mutant/mutator/node/literal/array.rb +0 -6
- data/lib/mutant/mutator/node/literal/boolean.rb +0 -4
- data/lib/mutant/mutator/node/literal/float.rb +0 -9
- data/lib/mutant/mutator/node/literal/hash.rb +0 -9
- data/lib/mutant/mutator/node/literal/integer.rb +0 -9
- data/lib/mutant/mutator/node/literal/nil.rb +0 -3
- data/lib/mutant/mutator/node/literal/range.rb +1 -7
- data/lib/mutant/mutator/node/literal/regex.rb +0 -6
- data/lib/mutant/mutator/node/literal/string.rb +0 -3
- data/lib/mutant/mutator/node/literal/symbol.rb +0 -3
- data/lib/mutant/mutator/node/masgn.rb +0 -3
- data/lib/mutant/mutator/node/match_current_line.rb +0 -3
- data/lib/mutant/mutator/node/mlhs.rb +0 -3
- data/lib/mutant/mutator/node/named_value/access.rb +2 -14
- data/lib/mutant/mutator/node/named_value/constant_assignment.rb +0 -9
- data/lib/mutant/mutator/node/named_value/variable_assignment.rb +0 -6
- data/lib/mutant/mutator/node/next.rb +0 -3
- data/lib/mutant/mutator/node/noop.rb +0 -3
- data/lib/mutant/mutator/node/nthref.rb +0 -3
- data/lib/mutant/mutator/node/op_asgn.rb +0 -3
- data/lib/mutant/mutator/node/or_asgn.rb +0 -3
- data/lib/mutant/mutator/node/procarg_zero.rb +0 -3
- data/lib/mutant/mutator/node/regopt.rb +0 -6
- data/lib/mutant/mutator/node/resbody.rb +0 -6
- data/lib/mutant/mutator/node/rescue.rb +2 -19
- data/lib/mutant/mutator/node/return.rb +0 -3
- data/lib/mutant/mutator/node/sclass.rb +20 -0
- data/lib/mutant/mutator/node/send.rb +2 -61
- data/lib/mutant/mutator/node/send/attribute_assignment.rb +0 -9
- data/lib/mutant/mutator/node/send/binary.rb +0 -11
- data/lib/mutant/mutator/node/send/conditional.rb +0 -3
- data/lib/mutant/mutator/node/splat.rb +0 -3
- data/lib/mutant/mutator/node/super.rb +0 -3
- data/lib/mutant/mutator/node/when.rb +0 -19
- data/lib/mutant/mutator/node/yield.rb +0 -3
- data/lib/mutant/mutator/node/zsuper.rb +0 -3
- data/lib/mutant/mutator/util/array.rb +0 -6
- data/lib/mutant/mutator/util/symbol.rb +0 -3
- data/lib/mutant/parallel.rb +0 -13
- data/lib/mutant/parallel/driver.rb +0 -10
- data/lib/mutant/parallel/worker.rb +0 -22
- data/lib/mutant/registry.rb +2 -7
- data/lib/mutant/reporter/cli.rb +0 -5
- data/lib/mutant/reporter/cli/format.rb +0 -9
- data/lib/mutant/reporter/cli/printer.rb +2 -42
- data/lib/mutant/reporter/cli/printer/env_progress.rb +0 -15
- data/lib/mutant/reporter/cli/printer/isolation_result.rb +0 -18
- data/lib/mutant/reporter/cli/printer/mutation_progress_result.rb +0 -5
- data/lib/mutant/reporter/cli/printer/mutation_result.rb +1 -22
- data/lib/mutant/reporter/cli/printer/status_progressive.rb +0 -8
- data/lib/mutant/reporter/cli/printer/subject_progress.rb +0 -9
- data/lib/mutant/repository/diff.rb +1 -13
- data/lib/mutant/repository/diff/ranges.rb +0 -11
- data/lib/mutant/result.rb +0 -3
- data/lib/mutant/runner.rb +0 -18
- data/lib/mutant/runner/sink.rb +0 -5
- data/lib/mutant/subject.rb +0 -8
- data/lib/mutant/subject/method.rb +0 -3
- data/lib/mutant/subject/method/instance.rb +40 -6
- data/lib/mutant/subject/method/metaclass.rb +30 -0
- data/lib/mutant/transform.rb +0 -92
- data/lib/mutant/version.rb +1 -1
- data/lib/mutant/warnings.rb +0 -6
- data/lib/mutant/zombifier.rb +2 -34
- data/meta/and.rb +0 -2
- data/meta/array.rb +0 -3
- data/meta/begin.rb +0 -3
- data/meta/block.rb +0 -3
- data/meta/break.rb +0 -1
- data/meta/case.rb +0 -6
- data/meta/casgn.rb +0 -3
- data/meta/cvasgn.rb +0 -1
- data/meta/def.rb +0 -7
- data/meta/ensure.rb +0 -1
- data/meta/false.rb +0 -1
- data/meta/gvasgn.rb +0 -1
- data/meta/hash.rb +0 -4
- data/meta/if.rb +0 -5
- data/meta/ivasgn.rb +0 -1
- data/meta/kwbegin.rb +0 -1
- data/meta/lvasgn.rb +0 -1
- data/meta/match_current_line.rb +0 -1
- data/meta/next.rb +0 -1
- data/meta/or.rb +0 -2
- data/meta/range.rb +26 -0
- data/meta/regexp.rb +0 -1
- data/meta/rescue.rb +0 -6
- data/meta/sclass.rb +12 -0
- data/meta/send.rb +0 -4
- data/meta/true.rb +0 -1
- data/meta/until.rb +0 -1
- data/meta/while.rb +0 -2
- data/meta/yield.rb +0 -1
- data/mutant.gemspec +8 -4
- data/mutant.sh +12 -0
- data/spec/integrations.yml +3 -1
- data/spec/spec_helper.rb +37 -22
- data/spec/unit/mutant/ast/find_metaclass_containing_spec.rb +64 -0
- data/spec/unit/mutant/expression/methods_spec.rb +7 -2
- data/spec/unit/mutant/license_spec.rb +17 -5
- data/spec/unit/mutant/matcher/method/metaclass_spec.rb +108 -0
- data/spec/unit/mutant/matcher/methods/metaclass_spec.rb +62 -0
- data/spec/unit/mutant/matcher/namespace_spec.rb +3 -1
- data/spec/unit/mutant/matcher/scope_spec.rb +11 -1
- data/spec/unit/mutant/meta/example_spec.rb +3 -3
- data/spec/unit/mutant/mutator/node_spec.rb +1 -6
- data/spec/unit/mutant/parallel/driver_spec.rb +4 -4
- data/spec/unit/mutant/parallel/worker_spec.rb +5 -5
- data/spec/unit/mutant/parallel_spec.rb +7 -7
- data/spec/unit/mutant/registry_spec.rb +52 -25
- data/spec/unit/mutant/reporter/cli/printer/env_result_spec.rb +1 -1
- data/spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb +2 -2
- data/spec/unit/mutant/reporter/cli/printer/mutation_result_spec.rb +12 -12
- data/spec/unit/mutant/reporter/cli/printer/subject_result_spec.rb +1 -1
- data/spec/unit/mutant/reporter/cli/printer_spec.rb +4 -4
- data/spec/unit/mutant/reporter/cli_spec.rb +1 -1
- data/spec/unit/mutant/subject/method/instance_spec.rb +117 -22
- data/spec/unit/mutant/subject/method/metaclass_spec.rb +63 -0
- data/test_app/Gemfile.minitest +2 -0
- data/test_app/lib/test_app.rb +5 -0
- data/test_app/lib/test_app/metaclasses.rb +108 -0
- metadata +85 -25
- data/.circleci/config.yml +0 -53
- data/config/rubocop.yml +0 -205
- data/lib/mutant/color.rb +0 -43
- data/lib/mutant/diff.rb +0 -114
- data/lib/mutant/variable.rb +0 -282
- data/spec/shared/base_behavior.rb +0 -45
- data/spec/support/test_app.rb +0 -7
- data/spec/support/warnings.yml +0 -6
- data/spec/unit/mutant/diff_spec.rb +0 -189
- data/spec/unit/mutant/variable_spec.rb +0 -618
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45484c558fad8e5115eb2b4c45712b762eb1d13f12fe7e7a29d9ec0696a16e24
|
4
|
+
data.tar.gz: 5354afd8cf7491687dfef3af68157e37cc549a0190d09bb8755c8bcf33d24051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1546be8318d6135d2834120bcc3052b879d6568560a9ec5dd056448a46cdd240fede609a4336fb5e64937526aa2db64627285c70dc45b09aa0175d6abc471749
|
7
|
+
data.tar.gz: b8705cb2eb82b286d77ea87a17af903661747cfad61d3e51fcc70b1f906bcf47b07e33305810f1d59cc4f3d2e802b5eae20e0ce4ecf37b686c2fd73e1bc41933
|
@@ -0,0 +1,121 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: push
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
base:
|
7
|
+
name: Base steps
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- name: Check Whitespace
|
12
|
+
run: git diff --check -- HEAD~1
|
13
|
+
ruby-spec:
|
14
|
+
name: Unit Specs
|
15
|
+
runs-on: ${{ matrix.os }}
|
16
|
+
timeout-minutes: 5
|
17
|
+
strategy:
|
18
|
+
fail-fast: false
|
19
|
+
matrix:
|
20
|
+
ruby: ['2.5', '2.6', '2.7']
|
21
|
+
os: [ubuntu-latest]
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v2
|
24
|
+
- uses: actions/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
- run: |
|
28
|
+
gem install bundler
|
29
|
+
bundle install
|
30
|
+
- run: bundle exec rspec spec/unit
|
31
|
+
ruby-mutant:
|
32
|
+
name: Mutation coverage
|
33
|
+
runs-on: ${{ matrix.os }}
|
34
|
+
timeout-minutes: 30
|
35
|
+
strategy:
|
36
|
+
fail-fast: false
|
37
|
+
matrix:
|
38
|
+
ruby: ['2.6', '2.7']
|
39
|
+
os: [ubuntu-latest]
|
40
|
+
steps:
|
41
|
+
- uses: actions/checkout@v2
|
42
|
+
with:
|
43
|
+
fetch-depth: 0
|
44
|
+
- uses: actions/setup-ruby@v1
|
45
|
+
with:
|
46
|
+
ruby-version: ${{ matrix.ruby }}
|
47
|
+
- run: |
|
48
|
+
gem install bundler
|
49
|
+
bundle install
|
50
|
+
- run: ./mutant.sh
|
51
|
+
ruby-integration-minitest:
|
52
|
+
name: Integration Minitest
|
53
|
+
runs-on: ${{ matrix.os }}
|
54
|
+
timeout-minutes: 5
|
55
|
+
strategy:
|
56
|
+
fail-fast: false
|
57
|
+
matrix:
|
58
|
+
ruby: ['2.5', '2.6', '2.7']
|
59
|
+
os: [ubuntu-latest]
|
60
|
+
steps:
|
61
|
+
- uses: actions/checkout@v2
|
62
|
+
- uses: actions/setup-ruby@v1
|
63
|
+
with:
|
64
|
+
ruby-version: ${{ matrix.ruby }}
|
65
|
+
- run: gem list
|
66
|
+
- run: |
|
67
|
+
gem install bundler
|
68
|
+
bundle install
|
69
|
+
- run: bundle exec rspec spec/integration -e minitest
|
70
|
+
ruby-integration-rspec:
|
71
|
+
name: Integration RSpec
|
72
|
+
runs-on: ${{ matrix.os }}
|
73
|
+
timeout-minutes: 10
|
74
|
+
strategy:
|
75
|
+
fail-fast: false
|
76
|
+
matrix:
|
77
|
+
ruby: ['2.5', '2.6', '2.7']
|
78
|
+
os: [ubuntu-latest]
|
79
|
+
steps:
|
80
|
+
- uses: actions/checkout@v2
|
81
|
+
- uses: actions/setup-ruby@v1
|
82
|
+
with:
|
83
|
+
ruby-version: ${{ matrix.ruby }}
|
84
|
+
- run: |
|
85
|
+
gem install bundler
|
86
|
+
bundle install
|
87
|
+
- run: bundle exec rspec spec/integration -e rspec
|
88
|
+
ruby-integration-generation:
|
89
|
+
name: Integration Mutation Generation
|
90
|
+
runs-on: ${{ matrix.os }}
|
91
|
+
timeout-minutes: 5
|
92
|
+
strategy:
|
93
|
+
fail-fast: false
|
94
|
+
matrix:
|
95
|
+
ruby: ['2.5', '2.6', '2.7']
|
96
|
+
os: [ubuntu-latest]
|
97
|
+
steps:
|
98
|
+
- uses: actions/checkout@v2
|
99
|
+
- uses: actions/setup-ruby@v1
|
100
|
+
with:
|
101
|
+
ruby-version: ${{ matrix.ruby }}
|
102
|
+
- run: |
|
103
|
+
gem install bundler
|
104
|
+
bundle install
|
105
|
+
- run: bundle exec rspec spec/integration -e generation
|
106
|
+
ruby-rubocop:
|
107
|
+
name: Rubocop
|
108
|
+
runs-on: ${{ matrix.os }}
|
109
|
+
timeout-minutes: 5
|
110
|
+
strategy:
|
111
|
+
fail-fast: false
|
112
|
+
matrix:
|
113
|
+
ruby: ['2.7']
|
114
|
+
os: [ubuntu-latest]
|
115
|
+
steps:
|
116
|
+
- uses: actions/checkout@v2
|
117
|
+
- uses: actions/setup-ruby@v1
|
118
|
+
with:
|
119
|
+
ruby-version: ${{ matrix.ruby }}
|
120
|
+
- run: bundle install
|
121
|
+
- run: bundle exec rubocop
|
data/.rubocop.yml
CHANGED
@@ -5,3 +5,206 @@ AllCops:
|
|
5
5
|
- 'tmp/**/*'
|
6
6
|
- 'vendor/**/*'
|
7
7
|
TargetRubyVersion: 2.5
|
8
|
+
|
9
|
+
# Avoid parameter lists longer than five parameters.
|
10
|
+
ParameterLists:
|
11
|
+
Max: 3
|
12
|
+
CountKeywordArgs: true
|
13
|
+
|
14
|
+
# Avoid more than `Max` levels of nesting.
|
15
|
+
BlockNesting:
|
16
|
+
Max: 3
|
17
|
+
|
18
|
+
# Align with the style guide.
|
19
|
+
CollectionMethods:
|
20
|
+
Enabled: true
|
21
|
+
PreferredMethods:
|
22
|
+
collect: 'map'
|
23
|
+
inject: 'reduce'
|
24
|
+
find: 'detect'
|
25
|
+
find_all: 'select'
|
26
|
+
|
27
|
+
AccessModifierIndentation:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
# Limit line length
|
31
|
+
LineLength:
|
32
|
+
Max: 120
|
33
|
+
|
34
|
+
# Disable documentation checking until a class needs to be documented once
|
35
|
+
Documentation:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
# Permit
|
39
|
+
#
|
40
|
+
# boolean_check? or fail
|
41
|
+
#
|
42
|
+
# Reject
|
43
|
+
#
|
44
|
+
# if foo or bar
|
45
|
+
# ...
|
46
|
+
# end
|
47
|
+
AndOr:
|
48
|
+
EnforcedStyle: conditionals
|
49
|
+
|
50
|
+
# Do not favor modifier if/unless usage when you have a single-line body
|
51
|
+
IfUnlessModifier:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
# Allow case equality operator (in limited use within the specs)
|
55
|
+
CaseEquality:
|
56
|
+
Enabled: false
|
57
|
+
|
58
|
+
# Constants do not always have to use SCREAMING_SNAKE_CASE
|
59
|
+
ConstantName:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
# Not all trivial readers/writers can be defined with attr_* methods
|
63
|
+
TrivialAccessors:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
# Allow empty lines around class body
|
67
|
+
EmptyLinesAroundClassBody:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
# Allow empty lines around module body
|
71
|
+
EmptyLinesAroundModuleBody:
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
# Allow empty lines around block body
|
75
|
+
EmptyLinesAroundBlockBody:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
# Allow multiple line operations to not require indentation
|
79
|
+
MultilineOperationIndentation:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
# Prefer String#% over Kernel#sprintf
|
83
|
+
FormatString:
|
84
|
+
EnforcedStyle: percent
|
85
|
+
|
86
|
+
# Use square brackets for literal Array objects
|
87
|
+
PercentLiteralDelimiters:
|
88
|
+
PreferredDelimiters:
|
89
|
+
'%': '{}'
|
90
|
+
'%i': '[]'
|
91
|
+
'%q': ()
|
92
|
+
'%Q': ()
|
93
|
+
'%r': '{}'
|
94
|
+
'%s': ()
|
95
|
+
'%w': '[]'
|
96
|
+
'%W': '[]'
|
97
|
+
'%x': ()
|
98
|
+
|
99
|
+
# Use %i[...] for arrays of symbols
|
100
|
+
SymbolArray:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
# Prefer #kind_of? over #is_a?
|
104
|
+
ClassCheck:
|
105
|
+
EnforcedStyle: kind_of?
|
106
|
+
|
107
|
+
# Do not prefer double quotes to be used when %q or %Q is more appropriate
|
108
|
+
Style/RedundantPercentQ:
|
109
|
+
Enabled: false
|
110
|
+
|
111
|
+
# Allow a maximum ABC score
|
112
|
+
Metrics/AbcSize:
|
113
|
+
Max: 21.02
|
114
|
+
|
115
|
+
Metrics/BlockLength:
|
116
|
+
Exclude:
|
117
|
+
- 'spec/**/*.rb'
|
118
|
+
- 'mutant.gemspec'
|
119
|
+
|
120
|
+
# Buggy cop, returns false positive for our code base
|
121
|
+
NonLocalExitFromIterator:
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
# To allow alignment of similar expressions we want to allow more than one
|
125
|
+
# space around operators:
|
126
|
+
#
|
127
|
+
# let(:a) { bar + something }
|
128
|
+
# let(:b) { foobar + something }
|
129
|
+
#
|
130
|
+
SpaceAroundOperators:
|
131
|
+
Enabled: false
|
132
|
+
|
133
|
+
# We use parallel assignments with great success
|
134
|
+
ParallelAssignment:
|
135
|
+
Enabled: false
|
136
|
+
|
137
|
+
# Allow additional specs
|
138
|
+
ExtraSpacing:
|
139
|
+
AllowForAlignment: true
|
140
|
+
|
141
|
+
# Buggy
|
142
|
+
FormatParameterMismatch:
|
143
|
+
Enabled: false
|
144
|
+
|
145
|
+
# Different preference
|
146
|
+
SignalException:
|
147
|
+
EnforcedStyle: semantic
|
148
|
+
|
149
|
+
# Do not use `alias`
|
150
|
+
Alias:
|
151
|
+
EnforcedStyle: prefer_alias_method
|
152
|
+
|
153
|
+
# Do not waste my horizontal or vertical space
|
154
|
+
Layout/FirstArrayElementIndentation:
|
155
|
+
Enabled: false
|
156
|
+
|
157
|
+
# Prefer
|
158
|
+
#
|
159
|
+
# some_receiver
|
160
|
+
# .foo
|
161
|
+
# .bar
|
162
|
+
# .baz
|
163
|
+
#
|
164
|
+
# Over
|
165
|
+
#
|
166
|
+
# some_receiver.foo
|
167
|
+
# .bar
|
168
|
+
# .baz
|
169
|
+
MultilineMethodCallIndentation:
|
170
|
+
EnforcedStyle: indented
|
171
|
+
|
172
|
+
# Prefer `public_send` and `__send__` over `send`
|
173
|
+
Send:
|
174
|
+
Enabled: true
|
175
|
+
|
176
|
+
Layout/HashAlignment:
|
177
|
+
EnforcedColonStyle: table
|
178
|
+
EnforcedHashRocketStyle: table
|
179
|
+
Layout/EmptyLineAfterGuardClause:
|
180
|
+
Enabled: false
|
181
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
182
|
+
Enabled: false
|
183
|
+
Lint/BooleanSymbol:
|
184
|
+
Enabled: false
|
185
|
+
Lint/InterpolationCheck:
|
186
|
+
Enabled: false
|
187
|
+
Lint/MissingCopEnableDirective:
|
188
|
+
Enabled: false
|
189
|
+
Lint/UnifiedInteger:
|
190
|
+
Enabled: false
|
191
|
+
Naming/FileName:
|
192
|
+
Enabled: false
|
193
|
+
Style/AccessModifierDeclarations:
|
194
|
+
Enabled: false
|
195
|
+
Style/CommentedKeyword:
|
196
|
+
Enabled: false
|
197
|
+
Style/MixinGrouping:
|
198
|
+
Enabled: false
|
199
|
+
Style/RaiseArgs:
|
200
|
+
Enabled: false
|
201
|
+
Style/RescueStandardError:
|
202
|
+
Enabled: false
|
203
|
+
Style/StderrPuts:
|
204
|
+
Enabled: false
|
205
|
+
# suggesting single letter variablesl bah
|
206
|
+
Naming/RescuedExceptionsVariableName:
|
207
|
+
Enabled: false
|
208
|
+
# false positive on private keywords
|
209
|
+
Layout/IndentationWidth:
|
210
|
+
Enabled: false
|
data/Changelog.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
# v0.9.10 unreleased
|
2
|
+
|
3
|
+
* Remove bounds to allow `diff-lcs 1.4.x` [#1032](https://github.com/mbj/mutant/pull/1032).
|
4
|
+
* Fix crash on endless ranges [#1026](https://github.com/mbj/mutant/pull/1026).
|
5
|
+
* Fix memoized subjects to preserve freezer option [#973](https://github.com/mbj/mutant/pull/973).
|
6
|
+
|
7
|
+
# v0.9.9 2020-09-25
|
8
|
+
|
9
|
+
+ Add support for mutating methods inside eigenclasses `class <<`. [#1009](https://github.com/mbj/mutant/pull/1009)
|
10
|
+
- Remove `<` -> `<=` and `>` -> `>=` mutations as non canonical. [#1020](https://github.com/mbj/mutant/pull/1020)
|
11
|
+
- Remove `true` -> `nil` and `false` -> `nil` mutations as non canonical. [#1018](https://github.com/mbj/mutant/pull/1018)
|
12
|
+
|
13
|
+
# v0.9.8 2020-08-02
|
14
|
+
|
15
|
+
* Change to generic catch all node mutator. This allows better cross parser version compatibility.
|
16
|
+
|
17
|
+
# v0.9.7 2020-07-22
|
18
|
+
|
19
|
+
* Bump parser dependency to 2.7.1, note this still does not support Ruby 2.7 syntax.
|
20
|
+
But it supports running bundling with that parser version.
|
21
|
+
* Nail diff-lcs to 1.3 till output difference for 1.4 can be addressed.
|
22
|
+
|
23
|
+
# v0.9.6 2020-04-20
|
24
|
+
|
25
|
+
* Dependencies upgrade, should not change user facing semantics.
|
26
|
+
* Bump license nudge to 40s
|
27
|
+
|
1
28
|
# v0.9.5 2020-02-02
|
2
29
|
|
3
30
|
* Change to 2.7 parser series.
|
data/Gemfile
CHANGED
@@ -5,10 +5,3 @@ source 'https://rubygems.org'
|
|
5
5
|
gemspec name: 'mutant'
|
6
6
|
|
7
7
|
eval_gemfile File.expand_path('Gemfile.shared', __dir__)
|
8
|
-
|
9
|
-
# Mutant itself uses an opensource license key.
|
10
|
-
# Scoped to https://github.com/mbj/mutant it'll
|
11
|
-
# not be useful elsewhere.
|
12
|
-
source 'https://oss:Px2ENN7S91OmWaD5G7MIQJi1dmtmYrEh@gem.mutant.dev' do
|
13
|
-
gem 'mutant-license'
|
14
|
-
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mutant (0.9.
|
4
|
+
mutant (0.9.10)
|
5
5
|
abstract_type (~> 0.0.7)
|
6
6
|
adamantium (~> 0.2.0)
|
7
7
|
anima (~> 0.3.1)
|
@@ -12,9 +12,10 @@ PATH
|
|
12
12
|
ice_nine (~> 0.11.1)
|
13
13
|
memoizable (~> 0.4.2)
|
14
14
|
mprelude (~> 0.1.0)
|
15
|
-
parser (~> 2.7.
|
15
|
+
parser (~> 2.7.1)
|
16
16
|
procto (~> 0.0.2)
|
17
|
-
unparser (~> 0.4.
|
17
|
+
unparser (~> 0.4.8)
|
18
|
+
variable (~> 0.0.1)
|
18
19
|
|
19
20
|
GEM
|
20
21
|
remote: https://rubygems.org/
|
@@ -28,54 +29,14 @@ GEM
|
|
28
29
|
abstract_type (~> 0.0.7)
|
29
30
|
adamantium (~> 0.2)
|
30
31
|
equalizer (~> 0.0.11)
|
31
|
-
ast (2.4.
|
32
|
-
axiom-types (0.1.1)
|
33
|
-
descendants_tracker (~> 0.0.4)
|
34
|
-
ice_nine (~> 0.11.0)
|
35
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
36
|
-
codeclimate-engine-rb (0.4.1)
|
37
|
-
virtus (~> 1.0)
|
38
|
-
coercible (1.0.0)
|
39
|
-
descendants_tracker (~> 0.0.1)
|
32
|
+
ast (2.4.1)
|
40
33
|
concord (0.1.5)
|
41
34
|
adamantium (~> 0.2.0)
|
42
35
|
equalizer (~> 0.0.9)
|
43
|
-
|
44
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
45
|
-
devtools (0.1.25)
|
46
|
-
abstract_type (~> 0.0.7)
|
47
|
-
adamantium (~> 0.2.0)
|
48
|
-
anima (~> 0.3.0)
|
49
|
-
concord (~> 0.1.5)
|
50
|
-
flay (~> 2.12.0)
|
51
|
-
flog (~> 4.6.2)
|
52
|
-
procto (~> 0.0.3)
|
53
|
-
rake (~> 12.3.0)
|
54
|
-
reek (~> 5.6.0)
|
55
|
-
rspec (~> 3.8.0)
|
56
|
-
rspec-core (~> 3.8.0)
|
57
|
-
rspec-its (~> 1.2.0)
|
58
|
-
rubocop (~> 0.79.0)
|
59
|
-
simplecov (~> 0.16.1)
|
60
|
-
yard (~> 0.9.16)
|
61
|
-
yardstick (~> 0.9.9)
|
62
|
-
diff-lcs (1.3)
|
63
|
-
docile (1.3.2)
|
36
|
+
diff-lcs (1.4.4)
|
64
37
|
equalizer (0.0.11)
|
65
|
-
erubis (2.7.0)
|
66
|
-
flay (2.12.1)
|
67
|
-
erubis (~> 2.7.0)
|
68
|
-
path_expander (~> 1.0)
|
69
|
-
ruby_parser (~> 3.0)
|
70
|
-
sexp_processor (~> 4.0)
|
71
|
-
flog (4.6.4)
|
72
|
-
path_expander (~> 1.0)
|
73
|
-
ruby_parser (~> 3.1, > 3.1.0)
|
74
|
-
sexp_processor (~> 4.8)
|
75
38
|
ice_nine (0.11.2)
|
76
39
|
jaro_winkler (1.5.4)
|
77
|
-
json (2.3.0)
|
78
|
-
kwalify (0.7.2)
|
79
40
|
memoizable (0.4.2)
|
80
41
|
thread_safe (~> 0.3, >= 0.3.1)
|
81
42
|
mprelude (0.1.0)
|
@@ -86,36 +47,27 @@ GEM
|
|
86
47
|
ice_nine (~> 0.11.1)
|
87
48
|
procto (~> 0.0.2)
|
88
49
|
mutant-license (0.1.0)
|
89
|
-
parallel (1.19.
|
90
|
-
parser (2.7.
|
91
|
-
ast (~> 2.4.
|
92
|
-
path_expander (1.1.0)
|
50
|
+
parallel (1.19.2)
|
51
|
+
parser (2.7.1.4)
|
52
|
+
ast (~> 2.4.1)
|
93
53
|
procto (0.0.3)
|
94
|
-
psych (3.1.0)
|
95
54
|
rainbow (3.0.0)
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
rspec (3.8.0)
|
104
|
-
rspec-core (~> 3.8.0)
|
105
|
-
rspec-expectations (~> 3.8.0)
|
106
|
-
rspec-mocks (~> 3.8.0)
|
107
|
-
rspec-core (3.8.2)
|
108
|
-
rspec-support (~> 3.8.0)
|
109
|
-
rspec-expectations (3.8.6)
|
55
|
+
rspec (3.9.0)
|
56
|
+
rspec-core (~> 3.9.0)
|
57
|
+
rspec-expectations (~> 3.9.0)
|
58
|
+
rspec-mocks (~> 3.9.0)
|
59
|
+
rspec-core (3.9.2)
|
60
|
+
rspec-support (~> 3.9.3)
|
61
|
+
rspec-expectations (3.9.2)
|
110
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
111
|
-
rspec-support (~> 3.
|
63
|
+
rspec-support (~> 3.9.0)
|
112
64
|
rspec-its (1.2.0)
|
113
65
|
rspec-core (>= 3.0.0)
|
114
66
|
rspec-expectations (>= 3.0.0)
|
115
|
-
rspec-mocks (3.
|
67
|
+
rspec-mocks (3.9.1)
|
116
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
117
|
-
rspec-support (~> 3.
|
118
|
-
rspec-support (3.
|
69
|
+
rspec-support (~> 3.9.0)
|
70
|
+
rspec-support (3.9.3)
|
119
71
|
rubocop (0.79.0)
|
120
72
|
jaro_winkler (~> 1.5.1)
|
121
73
|
parallel (~> 1.10)
|
@@ -124,41 +76,32 @@ GEM
|
|
124
76
|
ruby-progressbar (~> 1.7)
|
125
77
|
unicode-display_width (>= 1.4.0, < 1.7)
|
126
78
|
ruby-progressbar (1.10.1)
|
127
|
-
ruby_parser (3.14.1)
|
128
|
-
sexp_processor (~> 4.9)
|
129
|
-
sexp_processor (4.13.0)
|
130
|
-
simplecov (0.16.1)
|
131
|
-
docile (~> 1.1)
|
132
|
-
json (>= 1.8, < 3)
|
133
|
-
simplecov-html (~> 0.10.0)
|
134
|
-
simplecov-html (0.10.2)
|
135
79
|
thread_safe (0.3.6)
|
136
80
|
unicode-display_width (1.6.1)
|
137
|
-
unparser (0.4.
|
81
|
+
unparser (0.4.8)
|
138
82
|
abstract_type (~> 0.0.7)
|
139
83
|
adamantium (~> 0.2.0)
|
84
|
+
anima (~> 0.3.1)
|
140
85
|
concord (~> 0.1.5)
|
141
86
|
diff-lcs (~> 1.3)
|
142
87
|
equalizer (~> 0.0.9)
|
88
|
+
mprelude (~> 0.1.0)
|
143
89
|
parser (>= 2.6.5)
|
144
90
|
procto (~> 0.0.2)
|
145
|
-
|
146
|
-
|
147
|
-
coercible (~> 1.0)
|
148
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
149
|
-
equalizer (~> 0.0, >= 0.0.9)
|
150
|
-
yard (0.9.24)
|
151
|
-
yardstick (0.9.9)
|
152
|
-
yard (~> 0.8, >= 0.8.7.2)
|
91
|
+
variable (0.0.1)
|
92
|
+
equalizer (~> 0.0.11)
|
153
93
|
|
154
94
|
PLATFORMS
|
155
95
|
ruby
|
156
96
|
|
157
97
|
DEPENDENCIES
|
158
|
-
devtools (~> 0.1.25)
|
159
98
|
mutant!
|
160
99
|
mutant-license!
|
161
100
|
parallel (~> 1.3)
|
101
|
+
rspec (~> 3.9)
|
102
|
+
rspec-core (~> 3.9)
|
103
|
+
rspec-its (~> 1.2.0)
|
104
|
+
rubocop (~> 0.79.0)
|
162
105
|
|
163
106
|
BUNDLED WITH
|
164
|
-
1.
|
107
|
+
2.1.4
|