cucumber-messages 10.0.3 → 11.0.1
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: 3d2a9e3ba049f624f70583034c3a0a0c2c4bf7c2ec01d43840fe7b6cf57855cf
|
4
|
+
data.tar.gz: cd2063ad64853e7abe242d73b8ec1954b7cbd3aaf7cc2aefcb37541e63d966c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aa6c8d3fdba4131e2897c56a2c99f62bbd1f3ac109186f77704aa5a305039edf24454aacc7224fb6ecbfc1e3e88831db96bd63127bb10309d8e776d9adaca03
|
7
|
+
data.tar.gz: a7455079cbdbca1bda2f7392538de4a69a9abbce30a899db16ff40ff5658297ccc2da979f0f6aefb3e6c8ebc3a5541671b6c829b45ea55f9249cb0eeeec1ea87
|
data/README.md
CHANGED
data/lib/cucumber/messages.pb.rb
CHANGED
@@ -65,7 +65,14 @@ module Cucumber
|
|
65
65
|
|
66
66
|
end
|
67
67
|
|
68
|
-
class Attachment < ::Protobuf::Message
|
68
|
+
class Attachment < ::Protobuf::Message
|
69
|
+
class ContentEncoding < ::Protobuf::Enum
|
70
|
+
define :IDENTITY, 0
|
71
|
+
define :BASE64, 1
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
|
69
76
|
class Pickle < ::Protobuf::Message
|
70
77
|
class PickleTag < ::Protobuf::Message; end
|
71
78
|
class PickleStep < ::Protobuf::Message; end
|
@@ -327,9 +334,9 @@ module Cucumber
|
|
327
334
|
optional ::Cucumber::Messages::SourceReference, :source, 1
|
328
335
|
optional :string, :test_step_id, 4
|
329
336
|
optional :string, :test_case_started_id, 5
|
330
|
-
optional :string, :
|
331
|
-
optional :
|
332
|
-
optional
|
337
|
+
optional :string, :body, 6
|
338
|
+
optional :string, :media_type, 7
|
339
|
+
optional ::Cucumber::Messages::Attachment::ContentEncoding, :content_encoding, 8
|
333
340
|
end
|
334
341
|
|
335
342
|
class Pickle
|
@@ -4,9 +4,9 @@ module Cucumber
|
|
4
4
|
module Messages
|
5
5
|
describe Messages do
|
6
6
|
|
7
|
-
it "json-roundtrips messages
|
8
|
-
a1 = Attachment.new(
|
9
|
-
expect(a1.
|
7
|
+
it "json-roundtrips messages" do
|
8
|
+
a1 = Attachment.new(body: 'hello')
|
9
|
+
expect(a1.body).to eq('hello')
|
10
10
|
a2 = Attachment.new(JSON.parse(a1.to_json(proto3: true)))
|
11
11
|
expect(a2).to(eq(a1))
|
12
12
|
end
|
@@ -7,7 +7,7 @@ module Cucumber
|
|
7
7
|
it "can be serialised over a binary stream" do
|
8
8
|
outgoing_messages = [
|
9
9
|
Envelope.new(source: Source.new(data: 'Feature: Hello')),
|
10
|
-
Envelope.new(attachment: Attachment.new(
|
10
|
+
Envelope.new(attachment: Attachment.new(body: "JALLA"))
|
11
11
|
]
|
12
12
|
|
13
13
|
io = StringIO.new
|
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: 11.0.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-03-
|
11
|
+
date: 2020-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf-cucumber
|
@@ -121,7 +121,7 @@ rubyforge_project:
|
|
121
121
|
rubygems_version: 2.7.6.2
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
|
-
summary: cucumber-messages-
|
124
|
+
summary: cucumber-messages-11.0.1
|
125
125
|
test_files:
|
126
126
|
- spec/cucumber/messages/time_conversion_spec.rb
|
127
127
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|