mutant 0.10.1 → 0.10.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.
Potentially problematic release.
This version of mutant might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5375b029dd29a085a6c3e3ba965135c47ed4276e6419d16874eff9b5e511f7f
|
4
|
+
data.tar.gz: a63b255ed6823d547eba19718c37ba93f827d11e1f18b7c33020d4ee80d103ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da639cf0fe812ef14e9b07952f8456735b668a44e90a71793b514e41885134dd7368e17762bdbe981f3513e2fd54d70223d181c119fdbc2a579ee18b572d50f
|
7
|
+
data.tar.gz: 020a702b6b235fc9b5cef0e1d5dd6b6831cd003d34bdd4c6e92ca249cce661cf2ad4df16778ff0b8c7cc2212006c9b465ff30465ad71abe5cb6daff2ca33d6a6
|
@@ -46,6 +46,7 @@ module Mutant
|
|
46
46
|
value
|
47
47
|
.fetch('repositories')
|
48
48
|
.map(&Repository.public_method(:parse))
|
49
|
+
.to_set
|
49
50
|
)
|
50
51
|
end
|
51
52
|
|
@@ -59,7 +60,7 @@ module Mutant
|
|
59
60
|
private
|
60
61
|
|
61
62
|
def check_subscription(actual)
|
62
|
-
if (licensed
|
63
|
+
if (licensed & actual).any?
|
63
64
|
success
|
64
65
|
else
|
65
66
|
failure(licensed, actual)
|
data/lib/mutant/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abstract_type
|
@@ -342,7 +342,6 @@ files:
|
|
342
342
|
- lib/mutant/meta/example.rb
|
343
343
|
- lib/mutant/meta/example/dsl.rb
|
344
344
|
- lib/mutant/meta/example/verification.rb
|
345
|
-
- lib/mutant/minitest/coverage.rb
|
346
345
|
- lib/mutant/mutation.rb
|
347
346
|
- lib/mutant/mutator.rb
|
348
347
|
- lib/mutant/mutator/node.rb
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'minitest'
|
4
|
-
|
5
|
-
module Mutant
|
6
|
-
module Minitest
|
7
|
-
module Coverage
|
8
|
-
# Setup coverage declaration for current class
|
9
|
-
#
|
10
|
-
# @param [String]
|
11
|
-
#
|
12
|
-
# @example
|
13
|
-
#
|
14
|
-
# class MyTest < MiniTest::Test
|
15
|
-
# cover 'MyCode*'
|
16
|
-
#
|
17
|
-
# def test_some_stuff
|
18
|
-
# end
|
19
|
-
# end
|
20
|
-
#
|
21
|
-
# @api public
|
22
|
-
def cover(expression)
|
23
|
-
@cover_expressions = Set.new unless defined?(@cover_expressions)
|
24
|
-
|
25
|
-
@cover_expressions << expression
|
26
|
-
end
|
27
|
-
|
28
|
-
# Effective coverage expression
|
29
|
-
#
|
30
|
-
# @return [Set<String>]
|
31
|
-
#
|
32
|
-
# @api private
|
33
|
-
def resolve_cover_expressions
|
34
|
-
return @cover_expressions if defined?(@cover_expressions)
|
35
|
-
|
36
|
-
try_superclass_cover_expressions
|
37
|
-
end
|
38
|
-
|
39
|
-
private
|
40
|
-
|
41
|
-
def try_superclass_cover_expressions
|
42
|
-
return if superclass.equal?(::Minitest::Runnable)
|
43
|
-
|
44
|
-
superclass.resolve_cover_expressions
|
45
|
-
end
|
46
|
-
|
47
|
-
end # Coverage
|
48
|
-
end # Minitest
|
49
|
-
end # Mutant
|
50
|
-
|
51
|
-
Minitest::Test.extend(Mutant::Minitest::Coverage)
|