cucumber-messages 13.1.0 → 14.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 600136f5bf4fedde2bdd6975353b45fdb2fb643f4cd94aba01586dc058aebf05
|
4
|
+
data.tar.gz: 6b4fcf4c5de9b505375f08b6c0cf48096d41decde48253cf1279226cb330838f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e14e0f0b0706cc837f8c158a9edcbab4fc9718e12d8b0b77deb169fc7ff2a94148aac1d104781cdc3451397c12c0eb56ead712f416a00afccf5c414ce267b473
|
7
|
+
data.tar.gz: b211272cdf09bdec2198d0c16120c9f8d864ddf76ad887407471bf0c22a90796c6ab5811c4ec2586a63e99999108b0adf1ccb628a5b8d1fba02fa75a03e4a830
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
14.1.0
|
data/lib/cucumber/messages.pb.rb
CHANGED
@@ -268,6 +268,7 @@ module Cucumber
|
|
268
268
|
optional :string, :description, 4
|
269
269
|
repeated ::Cucumber::Messages::GherkinDocument::Feature::FeatureChild::RuleChild, :children, 5
|
270
270
|
optional :string, :id, 6
|
271
|
+
repeated ::Cucumber::Messages::GherkinDocument::Feature::Tag, :tags, 7
|
271
272
|
end
|
272
273
|
|
273
274
|
class RuleChild
|
@@ -5,9 +5,13 @@ module Cucumber
|
|
5
5
|
class NdjsonToMessageEnumerator < Enumerator
|
6
6
|
def initialize(io)
|
7
7
|
super() do |yielder|
|
8
|
-
io.each_line do |
|
9
|
-
next if
|
10
|
-
|
8
|
+
io.each_line do |line|
|
9
|
+
next if line.strip.empty?
|
10
|
+
begin
|
11
|
+
m = Cucumber::Messages::Envelope.from_json(line)
|
12
|
+
rescue => e
|
13
|
+
raise "Not JSON: #{line.strip}"
|
14
|
+
end
|
11
15
|
yielder.yield(m)
|
12
16
|
end
|
13
17
|
end
|
@@ -95,6 +95,16 @@ module Cucumber
|
|
95
95
|
expect(incoming_messages.to_a).to(eq([Envelope.new]))
|
96
96
|
end
|
97
97
|
|
98
|
+
it "includes offending line in error message" do
|
99
|
+
io = StringIO.new
|
100
|
+
io.puts('BLA BLA')
|
101
|
+
|
102
|
+
io.rewind
|
103
|
+
incoming_messages = NdjsonToMessageEnumerator.new(io)
|
104
|
+
|
105
|
+
expect { incoming_messages.to_a }.to(raise_error('Not JSON: BLA BLA'))
|
106
|
+
end
|
107
|
+
|
98
108
|
def write_outgoing_messages(messages, out)
|
99
109
|
messages.each do |message|
|
100
110
|
message.write_ndjson_to(out)
|
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: 14.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:
|
11
|
+
date: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf-cucumber
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '13.0'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 13.0.
|
42
|
+
version: 13.0.3
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,27 +49,27 @@ dependencies:
|
|
49
49
|
version: '13.0'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 13.0.
|
52
|
+
version: 13.0.3
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rspec
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '3.
|
59
|
+
version: '3.10'
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 3.
|
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.
|
69
|
+
version: '3.10'
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: 3.
|
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-
|
125
|
+
summary: cucumber-messages-14.1.0
|
126
126
|
test_files:
|
127
|
-
- spec/
|
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/
|
132
|
-
- spec/
|
131
|
+
- spec/cucumber/messages/time_conversion_spec.rb
|
132
|
+
- spec/cucumber/messages/version_spec.rb
|