mutant-rspec 0.10.16 → 0.10.21

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: 1139b7c19650cb4df9acc7c4d32eb6d369f9d50634a3b60d63e4c0379d02cd31
4
- data.tar.gz: 0a36202c602e779e68904a5470d1c61b13558dcef828a4e31fdbf4fda17f3b74
3
+ metadata.gz: c28f14dfb63b0ccc1c29806744e6d381022633cea012daa8483b1fa8d9f2bfe9
4
+ data.tar.gz: 96f75fefbc269a63e5e6002d3070ae3f297997ec6ac85555bb263e2025a381a8
5
5
  SHA512:
6
- metadata.gz: c67cbb53e0ba6fd081a17bd765a7a5810c99334607e3605a5fafd89afe17a2dfd84ea86ace2711d14875014d9b412c687c876b192427bef97e9e3c7ef11a9670
7
- data.tar.gz: 109244c3c3c556fa84a6137230560e5517997e8bce1a7a452f40b1c617e59ba0465cba274bee75b77ba48de6da2156d2b16a9db51373bc734c8a3ea7d7cd84e9
6
+ metadata.gz: e253cbd04c341afdb0e2088b70a02bd944cc4bea97b83deee25cddf8fa999692ef05ca524b39433c4fa88b02fa94f14d82956f83f5e55094d0304621a6d193a1
7
+ data.tar.gz: 4343b9f7f48e746aee973bd7855d354d31aaa4fe160aa58fc9709e8be9a03af10f8e7d9a6bfa4c12a0d07f15e118c790d3cbe8ca230c4a1b9ac8ff56b52eb7d6
@@ -23,7 +23,6 @@ module Mutant
23
23
 
24
24
  ALL_EXPRESSION = Expression::Namespace::Recursive.new(scope_name: nil)
25
25
  EXPRESSION_CANDIDATE = /\A([^ ]+)(?: )?/.freeze
26
- LOCATION_DELIMITER = ':'
27
26
  EXIT_SUCCESS = 0
28
27
  CLI_OPTIONS = IceNine.deep_freeze(%w[spec --fail-fast])
29
28
  TEST_ID_FORMAT = 'rspec:%<index>d:%<location>s/%<description>s'
@@ -54,14 +53,13 @@ module Mutant
54
53
  #
55
54
  # @return [Result::Test]
56
55
  def call(tests)
57
- examples = tests.map(&all_tests_index.method(:fetch))
58
- filter_examples(&examples.method(:include?))
56
+ examples = tests.map(&all_tests_index)
57
+ filter_examples(&examples.public_method(:include?))
59
58
  start = timer.now
60
59
  passed = @runner.run_specs(@world.ordered_example_groups).equal?(EXIT_SUCCESS)
61
60
  Result::Test.new(
62
61
  passed: passed,
63
- runtime: timer.now - start,
64
- tests: tests
62
+ runtime: timer.now - start
65
63
  )
66
64
  end
67
65
 
@@ -112,7 +110,7 @@ module Mutant
112
110
  end
113
111
 
114
112
  def parse_expression(input, &default)
115
- expression_parser.apply(input).from_right(&default)
113
+ expression_parser.call(input).from_right(&default)
116
114
  end
117
115
 
118
116
  def all_examples
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.16
4
+ version: 0.10.21
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-12-08 00:00:00.000000000 Z
11
+ date: 2020-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mutant
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.10.16
19
+ version: 0.10.21
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.10.16
26
+ version: 0.10.21
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement