cucumber-messages 12.3.1 → 13.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d179baf44d1d2267653dad69d58b831cdbaa1ee07cdcc48f626ef3c0d75f1e
|
4
|
+
data.tar.gz: f819ada49098e3e6248ad475e5fb2b4a15b2593801bcb7f036a8b3419dd64481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a883a5d58178d49b081490f6c9fe8586c1c6ed5bc6b73e45da38f705f0e843c8e0dbcfecf024831f0058c4fb0020c1221f114da76be055b6b864a6e31cac235c
|
7
|
+
data.tar.gz: 6aa18340f7a7172565a3d23bc6073a40065b33fb4d7a9199c284582a4b41bda0eef871040a91f936740ff04f09c76c44cdd8d66410a569171ca623eb0b8b3012
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
13.1.0
|
data/lib/cucumber/messages.pb.rb
CHANGED
@@ -26,9 +26,12 @@ module Cucumber
|
|
26
26
|
class Timestamp < ::Protobuf::Message; end
|
27
27
|
class Duration < ::Protobuf::Message; end
|
28
28
|
class Location < ::Protobuf::Message; end
|
29
|
-
class SourceReference < ::Protobuf::Message
|
30
|
-
|
31
|
-
|
29
|
+
class SourceReference < ::Protobuf::Message
|
30
|
+
class JavaMethod < ::Protobuf::Message; end
|
31
|
+
class JavaStackTraceElement < ::Protobuf::Message; end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
32
35
|
class Source < ::Protobuf::Message; end
|
33
36
|
class GherkinDocument < ::Protobuf::Message
|
34
37
|
class Comment < ::Protobuf::Message; end
|
@@ -220,22 +223,22 @@ module Cucumber
|
|
220
223
|
end
|
221
224
|
|
222
225
|
class SourceReference
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
226
|
+
class JavaMethod
|
227
|
+
optional :string, :class_name, 1
|
228
|
+
optional :string, :method_name, 2
|
229
|
+
repeated :string, :method_parameter_types, 3
|
230
|
+
end
|
228
231
|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
232
|
+
class JavaStackTraceElement
|
233
|
+
optional :string, :class_name, 1
|
234
|
+
optional :string, :method_name, 2
|
235
|
+
optional :string, :file_name, 3
|
236
|
+
end
|
234
237
|
|
235
|
-
|
236
|
-
optional
|
237
|
-
optional
|
238
|
-
optional
|
238
|
+
optional :string, :uri, 1
|
239
|
+
optional ::Cucumber::Messages::SourceReference::JavaMethod, :java_method, 3
|
240
|
+
optional ::Cucumber::Messages::SourceReference::JavaStackTraceElement, :java_stack_trace_element, 4
|
241
|
+
optional ::Cucumber::Messages::Location, :location, 2
|
239
242
|
end
|
240
243
|
|
241
244
|
class Source
|
@@ -361,6 +364,8 @@ module Cucumber
|
|
361
364
|
optional :string, :body, 4
|
362
365
|
optional :string, :media_type, 5
|
363
366
|
optional ::Cucumber::Messages::Attachment::ContentEncoding, :content_encoding, 6
|
367
|
+
optional :string, :file_name, 7
|
368
|
+
optional :string, :url, 8
|
364
369
|
end
|
365
370
|
|
366
371
|
class Pickle
|
@@ -69,6 +69,22 @@ module Cucumber
|
|
69
69
|
expect(incoming_messages.to_a).to(eq(outgoing_messages))
|
70
70
|
end
|
71
71
|
|
72
|
+
it "ignores empty lines" do
|
73
|
+
outgoing_messages = [
|
74
|
+
Envelope.new(source: Source.new(data: 'Feature: Hello')),
|
75
|
+
Envelope.new(attachment: Attachment.new(binary: [1,2,3,4].pack('C*')))
|
76
|
+
]
|
77
|
+
|
78
|
+
io = StringIO.new
|
79
|
+
write_outgoing_messages(outgoing_messages, io)
|
80
|
+
io.write("\n\n")
|
81
|
+
|
82
|
+
io.rewind
|
83
|
+
incoming_messages = NdjsonToMessageEnumerator.new(io)
|
84
|
+
|
85
|
+
expect(incoming_messages.to_a).to(eq(outgoing_messages))
|
86
|
+
end
|
87
|
+
|
72
88
|
it "ignores missing fields" do
|
73
89
|
io = StringIO.new
|
74
90
|
io.puts('{"unused": 99}')
|
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: 13.1.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: 2020-
|
11
|
+
date: 2020-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf-cucumber
|
@@ -122,7 +122,7 @@ requirements: []
|
|
122
122
|
rubygems_version: 3.1.2
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
|
-
summary: cucumber-messages-
|
125
|
+
summary: cucumber-messages-13.1.0
|
126
126
|
test_files:
|
127
127
|
- spec/cucumber/messages/time_conversion_spec.rb
|
128
128
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|