cucumber-messages 18.0.0 → 19.0.0
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 +4 -4
- data/VERSION +1 -1
- data/lib/cucumber/messages.deserializers.rb +2 -0
- data/lib/cucumber/messages.dtos.rb +34 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 512e3d9a19a6f4b2efe7502b4287bdd32ae805d1693e4dc7bfd2b005532cc81e
|
4
|
+
data.tar.gz: 7bfa437dbbe4ce2b18bf25be3c1713338021c76065765863db9b1e66dd0969fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15036d0df9878ad1321a8835a26fc94cb1519e3198c45a7933dac5524e676b417c8349737087d3271cb72e855e1b7691dd22a4e641c83a38d2501a878c5c87fd
|
7
|
+
data.tar.gz: 4519148de1ffbd9e4ef9831eaf711856da39886441148d509e652d8fb55af75e012de6f8f0a5465c1446409d3500b6e164edfa34ed408bf8b807b89fe333fcb8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
19.0.0
|
@@ -354,6 +354,7 @@ module Cucumber
|
|
354
354
|
self.new(
|
355
355
|
location: Location.from_h(hash[:location]),
|
356
356
|
keyword: hash[:keyword],
|
357
|
+
keyword_type: hash[:keywordType],
|
357
358
|
text: hash[:text],
|
358
359
|
doc_string: DocString.from_h(hash[:docString]),
|
359
360
|
data_table: DataTable.from_h(hash[:dataTable]),
|
@@ -659,6 +660,7 @@ module Cucumber
|
|
659
660
|
argument: PickleStepArgument.from_h(hash[:argument]),
|
660
661
|
ast_node_ids: hash[:astNodeIds],
|
661
662
|
id: hash[:id],
|
663
|
+
type: hash[:type],
|
662
664
|
text: hash[:text],
|
663
665
|
)
|
664
666
|
end
|
@@ -657,8 +657,16 @@ module Cucumber
|
|
657
657
|
|
658
658
|
attr_reader :location
|
659
659
|
|
660
|
+
##
|
661
|
+
# The actual keyword as it appeared in the source.
|
662
|
+
|
660
663
|
attr_reader :keyword
|
661
664
|
|
665
|
+
##
|
666
|
+
# The test phase signalled by the keyword: Context definition (Given), Action performance (When), Outcome assertion (Then). Other keywords signal Continuation (And and But) from a prior keyword. Please note that all translations which a dialect maps to multiple keywords (`*` is in this category for all dialects), map to 'Unknown'.
|
667
|
+
|
668
|
+
attr_reader :keyword_type
|
669
|
+
|
662
670
|
attr_reader :text
|
663
671
|
|
664
672
|
attr_reader :doc_string
|
@@ -673,6 +681,7 @@ module Cucumber
|
|
673
681
|
def initialize(
|
674
682
|
location: Location.new,
|
675
683
|
keyword: '',
|
684
|
+
keyword_type: nil,
|
676
685
|
text: '',
|
677
686
|
doc_string: nil,
|
678
687
|
data_table: nil,
|
@@ -680,6 +689,7 @@ module Cucumber
|
|
680
689
|
)
|
681
690
|
@location = location
|
682
691
|
@keyword = keyword
|
692
|
+
@keyword_type = keyword_type
|
683
693
|
@text = text
|
684
694
|
@doc_string = doc_string
|
685
695
|
@data_table = data_table
|
@@ -1175,17 +1185,26 @@ module Cucumber
|
|
1175
1185
|
|
1176
1186
|
attr_reader :id
|
1177
1187
|
|
1188
|
+
##
|
1189
|
+
# The context in which the step was specified: context (Given), action (When) or outcome (Then).
|
1190
|
+
#
|
1191
|
+
# Note that the keywords `But` and `And` inherit their meaning from prior steps and the `*` 'keyword' doesn't have specific meaning (hence Unknown)
|
1192
|
+
|
1193
|
+
attr_reader :type
|
1194
|
+
|
1178
1195
|
attr_reader :text
|
1179
1196
|
|
1180
1197
|
def initialize(
|
1181
1198
|
argument: nil,
|
1182
1199
|
ast_node_ids: [],
|
1183
1200
|
id: '',
|
1201
|
+
type: nil,
|
1184
1202
|
text: ''
|
1185
1203
|
)
|
1186
1204
|
@argument = argument
|
1187
1205
|
@ast_node_ids = ast_node_ids
|
1188
1206
|
@id = id
|
1207
|
+
@type = type
|
1189
1208
|
@text = text
|
1190
1209
|
end
|
1191
1210
|
end
|
@@ -1892,6 +1911,13 @@ class Cucumber::Messages::AttachmentContentEncoding
|
|
1892
1911
|
BASE64 = 'BASE64'
|
1893
1912
|
end
|
1894
1913
|
|
1914
|
+
class Cucumber::Messages::PickleStepType
|
1915
|
+
UNKNOWN = 'Unknown'
|
1916
|
+
CONTEXT = 'Context'
|
1917
|
+
ACTION = 'Action'
|
1918
|
+
OUTCOME = 'Outcome'
|
1919
|
+
end
|
1920
|
+
|
1895
1921
|
class Cucumber::Messages::SourceMediaType
|
1896
1922
|
TEXT_X_CUCUMBER_GHERKIN_PLAIN = 'text/x.cucumber.gherkin+plain'
|
1897
1923
|
TEXT_X_CUCUMBER_GHERKIN_MARKDOWN = 'text/x.cucumber.gherkin+markdown'
|
@@ -1902,6 +1928,14 @@ class Cucumber::Messages::StepDefinitionPatternType
|
|
1902
1928
|
REGULAR_EXPRESSION = 'REGULAR_EXPRESSION'
|
1903
1929
|
end
|
1904
1930
|
|
1931
|
+
class Cucumber::Messages::StepKeywordType
|
1932
|
+
UNKNOWN = 'Unknown'
|
1933
|
+
CONTEXT = 'Context'
|
1934
|
+
ACTION = 'Action'
|
1935
|
+
OUTCOME = 'Outcome'
|
1936
|
+
CONJUNCTION = 'Conjunction'
|
1937
|
+
end
|
1938
|
+
|
1905
1939
|
class Cucumber::Messages::TestStepResultStatus
|
1906
1940
|
UNKNOWN = 'UNKNOWN'
|
1907
1941
|
PASSED = 'PASSED'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-messages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 19.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -107,7 +107,7 @@ requirements: []
|
|
107
107
|
rubygems_version: 3.1.2
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
|
-
summary: cucumber-messages-
|
110
|
+
summary: cucumber-messages-19.0.0
|
111
111
|
test_files:
|
112
112
|
- spec/capture_warnings.rb
|
113
113
|
- spec/cucumber/messages/acceptance_spec.rb
|