mutant-rspec 0.9.4 → 0.9.14

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: 45d0c1bf4541002b710abce2e5eb1759750818db3e37ed365f376ee9a6568534
4
- data.tar.gz: d83ee342a1ee9b46fd17c06f1903f9934dad04ec0a0247d8a79e21700b286a6d
3
+ metadata.gz: afd89618e8536bb350d41eca46d04bd6c4bfaf7bc7de58a2811d8496463cec44
4
+ data.tar.gz: a1b1f8dfbb3ebc9c60782d00a1deaec4fa04a86baf096d12f12f3c0e0418c477
5
5
  SHA512:
6
- metadata.gz: c3545b5d50bdc0d412e7d242a51ad65f8c390f5a2094d44ab5b19b9b8b49adf1247b1056a1b5ccf2c43b8d764df234f4f829e8c7bb1f23b600fe893db567d896
7
- data.tar.gz: 2fea8aa7704e8f0653b5e0da51819382b6096cf54b756d896fad03c53591f179d72ef8bc21d65fa4dfb9c5a852592f3de68e20ef08721e34ab176818078010d9
6
+ metadata.gz: f0855c110c116572c35af3324d11bfe7eedc87806c7a5808fa85c4df2faad6953c82d1bda444a149dc4ba037afe1bf7ca4d5afaecec620e13ea2d26adb85d522
7
+ data.tar.gz: d4a88d11785184976a34fc021f0bc31e72db728f87672f199a8e7aa732ac8c012f8069136d9f4704eb2c14cf168d0d62fd5e27ad73b94cbf41920a40a91b4f62
data/LICENSE CHANGED
@@ -116,7 +116,7 @@ the net income of Schirp DSO LTD).
116
116
 
117
117
  6. Support, Maintenance and Services. Subject to the terms and conditions of
118
118
  this Agreement, as set forth in your invoice, and as set forth on the Mutant
119
- support page (https://github.com/mbj/mutant/wiki/Commercial-Support),
119
+ support page (https://github.com/mbj/mutant/blob/master/docs/commercial-support.md)
120
120
  support and maintenance services may be included with the purchase of your
121
121
  license subscription.
122
122
 
@@ -55,7 +55,7 @@ module Mutant
55
55
  #
56
56
  # @return [Result::Test]
57
57
  #
58
- # rubocop:disable MethodLength
58
+ # rubocop:disable Metrics/MethodLength
59
59
  def call(tests)
60
60
  examples = tests.map(&all_tests_index.method(:fetch))
61
61
  filter_examples(&examples.method(:include?))
@@ -80,9 +80,6 @@ module Mutant
80
80
 
81
81
  private
82
82
 
83
- # Index of available tests
84
- #
85
- # @return [Hash<Test, RSpec::Core::Example]
86
83
  def all_tests_index
87
84
  all_examples.each_with_index.each_with_object({}) do |(example, example_index), index|
88
85
  index[parse_example(example, example_index)] = example
@@ -90,12 +87,6 @@ module Mutant
90
87
  end
91
88
  memoize :all_tests_index
92
89
 
93
- # Parse example into test
94
- #
95
- # @param [RSpec::Core::Example] example
96
- # @param [Integer] index
97
- #
98
- # @return [Test]
99
90
  def parse_example(example, index)
100
91
  metadata = example.metadata
101
92
 
@@ -111,11 +102,6 @@ module Mutant
111
102
  )
112
103
  end
113
104
 
114
- # Parse metadata into expression
115
- #
116
- # @param [RSpec::Core::Example::MetaData] metadata
117
- #
118
- # @return [Expression]
119
105
  def parse_metadata(metadata)
120
106
  if metadata.key?(:mutant_expression)
121
107
  parse_expression(metadata.fetch(:mutant_expression))
@@ -125,30 +111,16 @@ module Mutant
125
111
  end
126
112
  end
127
113
 
128
- # Parse expression
129
- #
130
- # @param [String] input
131
- # @param [Proc] default
132
- #
133
- # @return [Expression]
134
114
  def parse_expression(input, &default)
135
115
  expression_parser.apply(input).from_right(&default)
136
116
  end
137
117
 
138
- # Available rspec examples
139
- #
140
- # @return [Array<String, RSpec::Core::Example]
141
118
  def all_examples
142
119
  @world.example_groups.flat_map(&:descendants).flat_map(&:examples).select do |example|
143
120
  example.metadata.fetch(:mutant, true)
144
121
  end
145
122
  end
146
123
 
147
- # Filter examples
148
- #
149
- # @param [#call] predicate
150
- #
151
- # @return [undefined]
152
124
  def filter_examples(&predicate)
153
125
  @world.filtered_examples.each_value do |examples|
154
126
  examples.keep_if(&predicate)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-04 00:00:00.000000000 Z
11
+ date: 2020-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mutant
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.4
19
+ version: 0.9.14
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.9.4
26
+ version: 0.9.14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ homepage: https://github.com/mbj/mutant
58
58
  licenses:
59
59
  - Nonstandard
60
60
  metadata: {}
61
- post_install_message:
61
+ post_install_message:
62
62
  rdoc_options: []
63
63
  require_paths:
64
64
  - lib
@@ -73,8 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.0.6
77
- signing_key:
76
+ rubygems_version: 3.1.4
77
+ signing_key:
78
78
  specification_version: 4
79
79
  summary: Rspec integration for mutant
80
80
  test_files: []