cucumber-messages 12.3.2 → 13.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d3c1d138201a3432939ab35e2b4d898f868c87abe7bce711966dd6c20dfcd00
4
- data.tar.gz: f3a0c12fc2e1332e1cebd4744de5710d2f5cf56efbaa0de29d6651a94926303e
3
+ metadata.gz: 70d7c86687240b7c8c6524efa75a4caf9d80dcd93ff2dfd1889e58104ae62ef1
4
+ data.tar.gz: 923e66ab70375c6c943d518273ba629fb238fbb1f5263e8140bc91aa42e97242
5
5
  SHA512:
6
- metadata.gz: 0103fd3bf93bdf7ea959c4811cbfbe4abc0e975477ff755db2668aebbff13e9473555451e40023e84524b4d163ded09bf227774eb146e7dea64ceff6857ced0f
7
- data.tar.gz: 13e0f7dc705e6ac57dd85bb2590c0032611c0a211541c8fa3af9f02efce3431e5551802e1108a755411837ae8afbdfb87a1cd35866e58d796f943449d6328d80
6
+ metadata.gz: e11edd66bf60c66cd077403f0d9596ca29163126979f4928942bb9e325eae13f644be7af4b1522a7b5ab34ef2ab16033e2eb8f2c4e0e1cc376075f85a808631e
7
+ data.tar.gz: f3506aff07dbf4f1dce4b7748cb22c995f60442899cbc4f5e30fa91954aed1cd3dd18074d4d248646903b94d8247a17406f465734bf01bb542af0294276e4f0c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.3.2
1
+ 13.2.0
@@ -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; end
30
- class JavaMethod < ::Protobuf::Message; end
31
- class JavaStackTraceElement < ::Protobuf::Message; end
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
- optional :string, :uri, 1
224
- optional ::Cucumber::Messages::JavaMethod, :java_method, 3
225
- optional ::Cucumber::Messages::JavaStackTraceElement, :java_stack_trace_element, 4
226
- optional ::Cucumber::Messages::Location, :location, 2
227
- end
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
- class JavaMethod
230
- optional :string, :class_name, 1
231
- optional :string, :method_name, 2
232
- repeated :string, :method_parameter_types, 3
233
- end
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
- class JavaStackTraceElement
236
- optional :string, :class_name, 1
237
- optional :string, :method_name, 2
238
- optional :string, :file_name, 3
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
@@ -6,6 +6,7 @@ module Cucumber
6
6
  def initialize(io)
7
7
  super() do |yielder|
8
8
  io.each_line do |json|
9
+ next if json.strip.empty?
9
10
  m = Cucumber::Messages::Envelope.from_json(json)
10
11
  yielder.yield(m)
11
12
  end
@@ -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: 12.3.2
4
+ version: 13.2.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-07-29 00:00:00.000000000 Z
11
+ date: 2020-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: protobuf-cucumber
@@ -56,20 +56,20 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '3.9'
59
+ version: '3.10'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 3.9.0
62
+ version: 3.10.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '3.9'
69
+ version: '3.10'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 3.9.0
72
+ version: 3.10.0
73
73
  description: Protocol Buffer messages for Cucumber's inter-process communication
74
74
  email: cukes@googlegroups.com
75
75
  executables: []
@@ -122,11 +122,11 @@ requirements: []
122
122
  rubygems_version: 3.1.2
123
123
  signing_key:
124
124
  specification_version: 4
125
- summary: cucumber-messages-12.3.2
125
+ summary: cucumber-messages-13.2.0
126
126
  test_files:
127
- - spec/cucumber/messages/time_conversion_spec.rb
127
+ - spec/capture_warnings.rb
128
+ - spec/cucumber/messages/id_generator_spec.rb
128
129
  - spec/cucumber/messages/ndjson_serialization_spec.rb
129
- - spec/cucumber/messages/version_spec.rb
130
130
  - spec/cucumber/messages/protobuf_serialization_spec.rb
131
- - spec/cucumber/messages/id_generator_spec.rb
132
- - spec/capture_warnings.rb
131
+ - spec/cucumber/messages/time_conversion_spec.rb
132
+ - spec/cucumber/messages/version_spec.rb