cucumber-gherkin 19.0.1 → 20.0.1

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.
@@ -11,11 +11,11 @@ module Gherkin
11
11
  }
12
12
 
13
13
  let(:source_feature) {
14
- {
14
+ Cucumber::Messages::Source.new(
15
15
  uri: '//whatever/uri',
16
16
  data: feature_content,
17
- mediaType: 'text/x.cucumber.gherkin+plain'
18
- }
17
+ media_type: 'text/x.cucumber.gherkin+plain'
18
+ )
19
19
  }
20
20
 
21
21
  let(:options) {
@@ -25,10 +25,10 @@ module Gherkin
25
25
  }
26
26
 
27
27
  let(:gherkin_document) {
28
- ParserMessageStream.new([], [source_feature], options).messages.first[:gherkinDocument]
28
+ ParserMessageStream.new([], [source_feature], options).messages.first.gherkin_document
29
29
  }
30
30
 
31
- let(:scenario_id) { gherkin_document[:feature][:children].first[:scenario][:id] }
31
+ let(:scenario_id) { gherkin_document.feature.children.first.scenario.id }
32
32
 
33
33
  context '#messages' do
34
34
  it "raises an exception on second iteration" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-gherkin
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.0.1
4
+ version: 20.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gáspár Nagy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-17 00:00:00.000000000 Z
13
+ date: 2021-07-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber-messages
@@ -18,20 +18,20 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '16.0'
21
+ version: '17.0'
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: 16.0.0
24
+ version: 17.0.1
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - "~>"
30
30
  - !ruby/object:Gem::Version
31
- version: '16.0'
31
+ version: '17.0'
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 16.0.0
34
+ version: 17.0.1
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rake
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -41,7 +41,7 @@ dependencies:
41
41
  version: '13.0'
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 13.0.3
44
+ version: 13.0.6
45
45
  type: :development
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
@@ -51,7 +51,7 @@ dependencies:
51
51
  version: '13.0'
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 13.0.3
54
+ version: 13.0.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -111,10 +111,10 @@ licenses:
111
111
  - MIT
112
112
  metadata:
113
113
  bug_tracker_uri: https://github.com/cucumber/cucumber/issues
114
- changelog_uri: https://github.com/cucumber/cucumber/blob/master/gherkin/CHANGELOG.md
114
+ changelog_uri: https://github.com/cucumber/common/blob/main/gherkin/CHANGELOG.md
115
115
  documentation_uri: https://cucumber.io/docs/gherkin/
116
116
  mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
117
- source_code_uri: https://github.com/cucumber/cucumber/blob/master/gherkin/ruby
117
+ source_code_uri: https://github.com/cucumber/common/blob/main/gherkin/ruby
118
118
  post_install_message:
119
119
  rdoc_options:
120
120
  - "--charset=UTF-8"
@@ -134,12 +134,12 @@ requirements: []
134
134
  rubygems_version: 3.1.2
135
135
  signing_key:
136
136
  specification_version: 4
137
- summary: cucumber-gherkin-19.0.1
137
+ summary: cucumber-gherkin-20.0.1
138
138
  test_files:
139
139
  - spec/capture_warnings.rb
140
- - spec/gherkin/dialect_spec.rb
141
140
  - spec/gherkin/gherkin_line_spec.rb
142
- - spec/gherkin/gherkin_spec.rb
141
+ - spec/gherkin/dialect_spec.rb
143
142
  - spec/gherkin/parser_spec.rb
144
- - spec/gherkin/query_spec.rb
145
143
  - spec/gherkin/stream/parser_message_stream_spec.rb
144
+ - spec/gherkin/query_spec.rb
145
+ - spec/gherkin/gherkin_spec.rb