cucumber-messages 13.2.0 → 14.1.1

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: 70d7c86687240b7c8c6524efa75a4caf9d80dcd93ff2dfd1889e58104ae62ef1
4
- data.tar.gz: 923e66ab70375c6c943d518273ba629fb238fbb1f5263e8140bc91aa42e97242
3
+ metadata.gz: d407ca872659592485664b97da7b3fe656947a5096fce704b9a8cd9e2f519f39
4
+ data.tar.gz: a5218585dc6675093464a4ab28c0b935b5c46d73ff69f2261be394f26ff67655
5
5
  SHA512:
6
- metadata.gz: e11edd66bf60c66cd077403f0d9596ca29163126979f4928942bb9e325eae13f644be7af4b1522a7b5ab34ef2ab16033e2eb8f2c4e0e1cc376075f85a808631e
7
- data.tar.gz: f3506aff07dbf4f1dce4b7748cb22c995f60442899cbc4f5e30fa91954aed1cd3dd18074d4d248646903b94d8247a17406f465734bf01bb542af0294276e4f0c
6
+ metadata.gz: 0cbf725a00ff31626708307e22e9fc9d94959e4d5f1f4394176c3f1a1b59e78dae4e8e6583aff4dfc45aec640f4be0d8cb6458883a48de189de5da69a8dfa24d
7
+ data.tar.gz: 20616b28b70c5d9285796ebcfe2ad930f3764cc47153bccdc2ab77c5362dc6c79aacb592830ba0881946c6d58a4ae7a6d91816791c7d016c45b38090544552fb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 13.2.0
1
+ 14.1.1
@@ -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 |json|
9
- next if json.strip.empty?
10
- m = Cucumber::Messages::Envelope.from_json(json)
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: 13.2.0
4
+ version: 14.1.1
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-12 00:00:00.000000000 Z
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.1
42
+ version: 13.0.3
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '13.0'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 13.0.1
52
+ version: 13.0.3
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -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-13.2.0
125
+ summary: cucumber-messages-14.1.1
126
126
  test_files:
127
127
  - spec/capture_warnings.rb
128
128
  - spec/cucumber/messages/id_generator_spec.rb