mutant 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mutant/cli/command.rb +1 -0
- data/lib/mutant/meta/example/dsl.rb +1 -1
- data/lib/mutant/mutator/node/arguments.rb +1 -1
- data/lib/mutant/util.rb +2 -10
- data/lib/mutant/version.rb +1 -1
- metadata +22 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 194425636c792af4e0f27e527c67143e46ef221de12e15e4c57496062f10b5d4
|
4
|
+
data.tar.gz: '0807d3f33fd12acb3103fc1ba5f00dae6526446082d4680e0012b91be79c3c66'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b6426d65c10e3592399fdef9a04c4551035814b4dfd1747269df5de1b4a44c044d6e3f75505720dbdd13b4a6a2f0f5f05c8a1dfbf6131a10dfcd6acb0ea7724
|
7
|
+
data.tar.gz: ccb5d44ef9bb9fb1d19a4ed9779f417adc91d1e3fe07dbaa9d52f24781591c0fcc779cccb231468b64f3e067dae76cef0648ecc590899f82629abb9f5ee504b9
|
data/lib/mutant/cli/command.rb
CHANGED
@@ -60,7 +60,7 @@ module Mutant
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def emit_procarg0_removal
|
63
|
-
return unless children.one? && n_procarg0?(
|
63
|
+
return unless children.one? && n_procarg0?(procarg0 = Mutant::Util.one(children))
|
64
64
|
|
65
65
|
arguments = procarg0.children
|
66
66
|
emit_type(*arguments) if arguments.count > 1
|
data/lib/mutant/util.rb
CHANGED
@@ -3,21 +3,13 @@
|
|
3
3
|
module Mutant
|
4
4
|
# Utility methods
|
5
5
|
module Util
|
6
|
-
# Error raised by `Util.one` if size is less than zero or greater than one
|
7
|
-
SizeError = Class.new(IndexError)
|
8
|
-
|
9
6
|
# Return only element in array if it contains exactly one member
|
10
7
|
#
|
11
8
|
# @param array [Array]
|
12
9
|
#
|
13
10
|
# @return [Object] first entry
|
14
11
|
def self.one(array)
|
15
|
-
|
16
|
-
in [value]
|
17
|
-
value
|
18
|
-
else
|
19
|
-
fail SizeError, "expected size to be exactly 1 but size was #{array.size}"
|
20
|
-
end
|
12
|
+
Unparser::Util.one(array)
|
21
13
|
end
|
22
14
|
|
23
15
|
# Return only element in array if it contains max one member
|
@@ -34,7 +26,7 @@ module Mutant
|
|
34
26
|
in [value]
|
35
27
|
value
|
36
28
|
else
|
37
|
-
fail SizeError, "expected size to be max 1 but size was #{array.size}"
|
29
|
+
fail Unparser::Util::SizeError, "expected size to be max 1 but size was #{array.size}"
|
38
30
|
end
|
39
31
|
end
|
40
32
|
end # Util
|
data/lib/mutant/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-
|
11
|
+
date: 2025-06-19 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: diff-lcs
|
@@ -23,6 +24,20 @@ dependencies:
|
|
23
24
|
- - "~>"
|
24
25
|
- !ruby/object:Gem::Version
|
25
26
|
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: irb
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.15.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.15.2
|
26
41
|
- !ruby/object:Gem::Dependency
|
27
42
|
name: parser
|
28
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,14 +86,14 @@ dependencies:
|
|
71
86
|
requirements:
|
72
87
|
- - "~>"
|
73
88
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
89
|
+
version: 0.8.0
|
75
90
|
type: :runtime
|
76
91
|
prerelease: false
|
77
92
|
version_requirements: !ruby/object:Gem::Requirement
|
78
93
|
requirements:
|
79
94
|
- - "~>"
|
80
95
|
- !ruby/object:Gem::Version
|
81
|
-
version: 0.
|
96
|
+
version: 0.8.0
|
82
97
|
- !ruby/object:Gem::Dependency
|
83
98
|
name: rspec
|
84
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -346,6 +361,7 @@ licenses:
|
|
346
361
|
metadata:
|
347
362
|
rubygems_mfa_required: 'true'
|
348
363
|
source_code_uri: https://github.com/mbj/mutant
|
364
|
+
post_install_message:
|
349
365
|
rdoc_options: []
|
350
366
|
require_paths:
|
351
367
|
- lib
|
@@ -360,7 +376,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
360
376
|
- !ruby/object:Gem::Version
|
361
377
|
version: '0'
|
362
378
|
requirements: []
|
363
|
-
rubygems_version: 3.
|
379
|
+
rubygems_version: 3.5.22
|
380
|
+
signing_key:
|
364
381
|
specification_version: 4
|
365
382
|
summary: ''
|
366
383
|
test_files: []
|