cucumber-messages 17.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b958b8377e9d0b2a640404712496accb9dbbf3903c27f00e80c5b2e924eb557
4
- data.tar.gz: 30a115adc167602d57fd46bb9beccd902cc979b04bdd2d1dd72da7e8a64c0fed
3
+ metadata.gz: 512e3d9a19a6f4b2efe7502b4287bdd32ae805d1693e4dc7bfd2b005532cc81e
4
+ data.tar.gz: 7bfa437dbbe4ce2b18bf25be3c1713338021c76065765863db9b1e66dd0969fd
5
5
  SHA512:
6
- metadata.gz: 5c832e51d1cd4da23335ad99f50ca3bbea3bc7990a876e965b7d75e1877715e15ab18d65e5b4d4431c053772c6f1435d5610fa4f7a77c587f05a519a9008752f
7
- data.tar.gz: a34c399ff79fc74a17edb2357bc4652379b1bd72d170c65ac76a046e6c74bf9dc24b8a29ad7f5814aa8bf15c21f8f835d8d32d0e725bdd2bacd234d75c44daed
6
+ metadata.gz: 15036d0df9878ad1321a8835a26fc94cb1519e3198c45a7933dac5524e676b417c8349737087d3271cb72e855e1b7691dd22a4e641c83a38d2501a878c5c87fd
7
+ data.tar.gz: 4519148de1ffbd9e4ef9831eaf711856da39886441148d509e652d8fb55af75e012de6f8f0a5465c1446409d3500b6e164edfa34ed408bf8b807b89fe333fcb8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 17.1.0
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]),
@@ -439,6 +440,7 @@ module Cucumber
439
440
 
440
441
  self.new(
441
442
  id: hash[:id],
443
+ name: hash[:name],
442
444
  source_reference: SourceReference.from_h(hash[:sourceReference]),
443
445
  tag_expression: hash[:tagExpression],
444
446
  )
@@ -658,6 +660,7 @@ module Cucumber
658
660
  argument: PickleStepArgument.from_h(hash[:argument]),
659
661
  ast_node_ids: hash[:astNodeIds],
660
662
  id: hash[:id],
663
+ type: hash[:type],
661
664
  text: hash[:text],
662
665
  )
663
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
@@ -794,16 +804,20 @@ module Cucumber
794
804
 
795
805
  attr_reader :id
796
806
 
807
+ attr_reader :name
808
+
797
809
  attr_reader :source_reference
798
810
 
799
811
  attr_reader :tag_expression
800
812
 
801
813
  def initialize(
802
814
  id: '',
815
+ name: nil,
803
816
  source_reference: SourceReference.new,
804
817
  tag_expression: nil
805
818
  )
806
819
  @id = id
820
+ @name = name
807
821
  @source_reference = source_reference
808
822
  @tag_expression = tag_expression
809
823
  end
@@ -1068,9 +1082,7 @@ module Cucumber
1068
1082
 
1069
1083
  ##
1070
1084
  # *
1071
- # A unique id for the pickle. This is a [SHA1](https://en.wikipedia.org/wiki/SHA-1) hash
1072
- # from the source data and the `locations` of the pickle.
1073
- # This ID will change if source the file is modified.
1085
+ # A unique id for the pickle
1074
1086
 
1075
1087
  attr_reader :id
1076
1088
 
@@ -1173,17 +1185,26 @@ module Cucumber
1173
1185
 
1174
1186
  attr_reader :id
1175
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
+
1176
1195
  attr_reader :text
1177
1196
 
1178
1197
  def initialize(
1179
1198
  argument: nil,
1180
1199
  ast_node_ids: [],
1181
1200
  id: '',
1201
+ type: nil,
1182
1202
  text: ''
1183
1203
  )
1184
1204
  @argument = argument
1185
1205
  @ast_node_ids = ast_node_ids
1186
1206
  @id = id
1207
+ @type = type
1187
1208
  @text = text
1188
1209
  end
1189
1210
  end
@@ -1890,6 +1911,13 @@ class Cucumber::Messages::AttachmentContentEncoding
1890
1911
  BASE64 = 'BASE64'
1891
1912
  end
1892
1913
 
1914
+ class Cucumber::Messages::PickleStepType
1915
+ UNKNOWN = 'Unknown'
1916
+ CONTEXT = 'Context'
1917
+ ACTION = 'Action'
1918
+ OUTCOME = 'Outcome'
1919
+ end
1920
+
1893
1921
  class Cucumber::Messages::SourceMediaType
1894
1922
  TEXT_X_CUCUMBER_GHERKIN_PLAIN = 'text/x.cucumber.gherkin+plain'
1895
1923
  TEXT_X_CUCUMBER_GHERKIN_MARKDOWN = 'text/x.cucumber.gherkin+markdown'
@@ -1900,6 +1928,14 @@ class Cucumber::Messages::StepDefinitionPatternType
1900
1928
  REGULAR_EXPRESSION = 'REGULAR_EXPRESSION'
1901
1929
  end
1902
1930
 
1931
+ class Cucumber::Messages::StepKeywordType
1932
+ UNKNOWN = 'Unknown'
1933
+ CONTEXT = 'Context'
1934
+ ACTION = 'Action'
1935
+ OUTCOME = 'Outcome'
1936
+ CONJUNCTION = 'Conjunction'
1937
+ end
1938
+
1903
1939
  class Cucumber::Messages::TestStepResultStatus
1904
1940
  UNKNOWN = 'UNKNOWN'
1905
1941
  PASSED = 'PASSED'
@@ -1909,3 +1945,4 @@ class Cucumber::Messages::TestStepResultStatus
1909
1945
  AMBIGUOUS = 'AMBIGUOUS'
1910
1946
  FAILED = 'FAILED'
1911
1947
  end
1948
+
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: 17.1.0
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: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -36,20 +36,20 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.10'
39
+ version: '3.11'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 3.10.0
42
+ version: 3.11.0
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '3.10'
49
+ version: '3.11'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 3.10.0
52
+ version: 3.11.0
53
53
  description: Protocol Buffer messages for Cucumber's inter-process communication
54
54
  email: cukes@googlegroups.com
55
55
  executables: []
@@ -107,15 +107,15 @@ requirements: []
107
107
  rubygems_version: 3.1.2
108
108
  signing_key:
109
109
  specification_version: 4
110
- summary: cucumber-messages-17.1.0
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
114
- - spec/cucumber/messages/id_generator_spec.rb
114
+ - spec/cucumber/messages/ndjson_serialization_spec.rb
115
115
  - spec/cucumber/messages/message/deserialization_spec.rb
116
116
  - spec/cucumber/messages/message/dummy_messages.rb
117
- - spec/cucumber/messages/message/serialization_spec.rb
118
117
  - spec/cucumber/messages/message/utils_spec.rb
119
- - spec/cucumber/messages/ndjson_serialization_spec.rb
118
+ - spec/cucumber/messages/message/serialization_spec.rb
120
119
  - spec/cucumber/messages/time_conversion_spec.rb
120
+ - spec/cucumber/messages/id_generator_spec.rb
121
121
  - spec/cucumber/messages/version_spec.rb