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: 60a3a93f0607331e34bd1af294bd142a0922041f75a896fea010344b6a34e814
4
- data.tar.gz: 7162f57716f199229576ab04d14ec73a526cc694435c88d356257423e6792e20
3
+ metadata.gz: 8bef0309c872b30a632afd0d944493cc0ecba7e5eb5348e470ede52b44cad857
4
+ data.tar.gz: 30c86c817bc8167157bcbb1679ee619908d5d505e52e856e12d294fa0b7c9ed6
5
5
  SHA512:
6
- metadata.gz: fcd4b9f4c1016813b51318f4ac8485e49dcf908e433290dcf70c644bfecedbea6acf8a6763b56cac824af6b8737dd6c9f6bd25dcec8ec983b487894b3d775cfb
7
- data.tar.gz: b472494d26b2e532259aed6962a492a466da78435df5a0a8e3bda15b7d04504c05f27320fc288a7ba0b586ea348f9860f578b9635d0a9131eae9b4d1e59c935a
6
+ metadata.gz: e97e7afee0915e9fcd16f2af9f713a0fa31832cdf01dab3a57c351d09592c54f27a57c0f053667d82e707f1a94be41ca1fc1e12deb3640c687b25f752a704a28
7
+ data.tar.gz: c62aacc66844003019511c285a7ab2bf5728383dcaf2c19b2e3f2859e1a2395a4d7b8690e8b619f1967a0ed677727a928f8177c8023b20d03aec94ed613c8cd0
data/.circleci/config.yml CHANGED
@@ -4,7 +4,7 @@ version: 2.1
4
4
  jobs:
5
5
  build:
6
6
  docker:
7
- - image: cimg/ruby:3.2
7
+ - image: cimg/ruby:3.4
8
8
  steps:
9
9
  - checkout
10
10
  - run: bundle install
@@ -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
- .steps
19
- .map { |step| "#{step.text} #{child_text(step)}" }
20
- .join("\n") + example_text(scenario)
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
- 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
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(&block)
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
- prototypes = expand_examples(scenario.examples, prototypes) if scenario.is_a? CukeModeler::Outline
39
- prototypes.each(&block)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chutney
4
- VERSION = '3.12.3'
4
+ VERSION = '3.12.4'
5
5
  end
@@ -0,0 +1,2 @@
1
+ User-agent: *
2
+ Allow: /
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.3
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: 2026-01-19 00:00:00.000000000 Z
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.4
314
+ rubygems_version: 4.0.3
315
315
  specification_version: 4
316
316
  summary: A linter for multi-lingual Gherkin
317
317
  test_files: []
File without changes