mutant 0.10.1 → 0.10.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab8c8abc5b46ce5f0174cd6c23fdbdf1b172cb06b712d4043b28970c8f953fd1
4
- data.tar.gz: 4dfb5d669b4f0af5314c2ad7f8313453142ae326d151011ca70850a689a2f23e
3
+ metadata.gz: 4645aa0ee3e10159d6e91c5762b1f43bd11a94e229ea2cdec29af0f15d922f92
4
+ data.tar.gz: 3c8eb88ab56bd83c1b4e26eb18ccb1c51f43875c3db5e36453661837e88b16b6
5
5
  SHA512:
6
- metadata.gz: a2757e41fdd3739127a7062c405ce6c712ed90e0039d1a0257848768e5964559180ede292c79920466c3db6c1f91b9c96ced67f2cb7f093462a7334ad8b6cbe5
7
- data.tar.gz: 844554fe5d142f9b9efa75b39def687cdadfc7d0b95e4f56e23b3722d68788f8929033cb5633c0077e86aa6b06477598c7dff12d514928299c09986cf5a98cb0
6
+ metadata.gz: 7e961ab0e43eb8208f8a9c5dc626fb3787e37f81fbf96be9f4e3da0fb2532556dcf93ed491bf29fbedc7c099c0a6ad4e81b4b32448e5615fe2fb37b1bb08dd2b
7
+ data.tar.gz: c9d2e9344bcbfdeeb7a3108cfa5b94bae2b8527fdf03ae5f4a346f2d207371c40319a79f7a44782a0d8d98003834bf22d79188e46d555d9c18f1444d7fa3149a
@@ -38,7 +38,7 @@ module Mutant
38
38
  # @return [String]
39
39
  def description
40
40
  FORMAT % {
41
- licensed: licensed.join("\n"),
41
+ licensed: licensed.to_a.join("\n"),
42
42
  subscription_name: subscription_name
43
43
  }
44
44
  end
@@ -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.to_set & actual).any?
63
+ if (licensed & actual).any?
63
64
  success
64
65
  else
65
66
  failure(licensed, actual)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Mutant
4
4
  # Current mutant version
5
- VERSION = '0.10.1'
5
+ VERSION = '0.10.4'
6
6
  end # Mutant
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.1
4
+ version: 0.10.4
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-10-29 00:00:00.000000000 Z
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)