chutney 3.12.3 → 3.12.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8bef0309c872b30a632afd0d944493cc0ecba7e5eb5348e470ede52b44cad857
|
|
4
|
+
data.tar.gz: 30c86c817bc8167157bcbb1679ee619908d5d505e52e856e12d294fa0b7c9ed6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e97e7afee0915e9fcd16f2af9f713a0fa31832cdf01dab3a57c351d09592c54f27a57c0f053667d82e707f1a94be41ca1fc1e12deb3640c687b25f752a704a28
|
|
7
|
+
data.tar.gz: c62aacc66844003019511c285a7ab2bf5728383dcaf2c19b2e3f2859e1a2395a4d7b8690e8b619f1967a0ed677727a928f8177c8023b20d03aec94ed613c8cd0
|
data/.circleci/config.yml
CHANGED
|
@@ -11,28 +11,28 @@ module Chutney
|
|
|
11
11
|
@dictionary ||= Hash.new { |hash, key| hash[key] = [] }
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def lint
|
|
14
|
+
def lint # rubocop:disable Metrics/MethodLength
|
|
15
15
|
scenarios do |feature, scenario|
|
|
16
16
|
text = background ? background.steps.map(&:to_s).join("\n").concat("\n") : ''
|
|
17
17
|
text += scenario
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
.steps
|
|
19
|
+
.map { |step| "#{step.text} #{child_text(step)}" }
|
|
20
|
+
.join("\n") + example_text(scenario)
|
|
21
21
|
digest = Digest::SHA2.hexdigest(text)
|
|
22
22
|
SameScenario.dictionary[digest] << { scenario:, feature: }
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
SameScenario.dictionary.filter { |_k, v| v.size > 1 }
|
|
26
26
|
.each_value do |v|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
v[1...].each_with_index do |problem, index|
|
|
28
|
+
add_issue(I18n.t('linters.same_scenario',
|
|
29
|
+
feature: problem[:feature].name,
|
|
30
|
+
scenario: problem[:scenario].name,
|
|
31
|
+
original_feature: v.first[:feature].name,
|
|
32
|
+
original_scenario: v.first[:scenario].name),
|
|
33
|
+
problem[:feature], problem[:scenario], nil)
|
|
34
|
+
v.delete_at(index + 1)
|
|
35
|
+
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -30,13 +30,19 @@ module Chutney
|
|
|
30
30
|
result
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
def expanded_steps(&
|
|
33
|
+
def expanded_steps(&)
|
|
34
34
|
scenarios do |_feature, scenario|
|
|
35
35
|
next unless scenario.steps
|
|
36
36
|
|
|
37
37
|
prototypes = [render_step(scenario.steps.first)]
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
|
|
39
|
+
# only expand further if this is a Scenario Outline and we are dealing
|
|
40
|
+
# with a Given step with substitutions
|
|
41
|
+
if scenario.is_a?(CukeModeler::Outline) && prototypes.any? { |prototype| prototype =~ /<.*>/ }
|
|
42
|
+
prototypes = expand_examples(scenario.examples, prototypes)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
prototypes.each(&)
|
|
40
46
|
end
|
|
41
47
|
end
|
|
42
48
|
|
data/lib/chutney/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chutney
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.12.
|
|
4
|
+
version: 3.12.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nigel Brookes-Thomas
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
- John Gluck
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: amatch
|
|
@@ -223,7 +223,6 @@ files:
|
|
|
223
223
|
- lib/chutney/lsp/server.rb
|
|
224
224
|
- lib/chutney/version.rb
|
|
225
225
|
- lib/config/locales/en.yml
|
|
226
|
-
- spec/chutney_mcp_spec.rb
|
|
227
226
|
- spec/chutney_spec.rb
|
|
228
227
|
- spec/spec_helper.rb
|
|
229
228
|
- usechutney.com.site/.gitignore
|
|
@@ -235,6 +234,7 @@ files:
|
|
|
235
234
|
- usechutney.com.site/site/assets/favicons/favicon.ico
|
|
236
235
|
- usechutney.com.site/site/assets/favicons/site.webmanifest
|
|
237
236
|
- usechutney.com.site/site/assets/mr_pickle.png
|
|
237
|
+
- usechutney.com.site/site/assets/robots.txt
|
|
238
238
|
- usechutney.com.site/site/assets/styles.css
|
|
239
239
|
- usechutney.com.site/site/src/about.page.md
|
|
240
240
|
- usechutney.com.site/site/src/docs/configuration.page.md
|
|
@@ -311,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
311
311
|
- !ruby/object:Gem::Version
|
|
312
312
|
version: '0'
|
|
313
313
|
requirements: []
|
|
314
|
-
rubygems_version: 4.0.
|
|
314
|
+
rubygems_version: 4.0.3
|
|
315
315
|
specification_version: 4
|
|
316
316
|
summary: A linter for multi-lingual Gherkin
|
|
317
317
|
test_files: []
|
data/spec/chutney_mcp_spec.rb
DELETED
|
File without changes
|