cucumber-messages 10.0.3 → 11.0.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: 9ddd1ac24d59fd4bf04a0cb8f0645870a965ea2565c6176fb452d95c66f4f53f
4
- data.tar.gz: c6ac4d19a6f4cf0a441ebba9e58fcd909f8e4eadec2036aa259e3c4d1b644d46
3
+ metadata.gz: 3d2a9e3ba049f624f70583034c3a0a0c2c4bf7c2ec01d43840fe7b6cf57855cf
4
+ data.tar.gz: cd2063ad64853e7abe242d73b8ec1954b7cbd3aaf7cc2aefcb37541e63d966c6
5
5
  SHA512:
6
- metadata.gz: 5a1fc197332e899f31c05fed197cb6f6a22c846d5a02fe40306796153062c6ea780bcdd2bb15088ad22960c6ff859d4e741df22f0ba6eb80ded58bc479165763
7
- data.tar.gz: 6d84feee4e8036698140d6c76c35ade98af1faa648d23d966bba83a3124e41b26eb60181939ba31a52a4a1d6e6e0a5dc23882255cbe255fb48df542edca5423f
6
+ metadata.gz: 2aa6c8d3fdba4131e2897c56a2c99f62bbd1f3ac109186f77704aa5a305039edf24454aacc7224fb6ecbfc1e3e88831db96bd63127bb10309d8e776d9adaca03
7
+ data.tar.gz: a7455079cbdbca1bda2f7392538de4a69a9abbce30a899db16ff40ff5658297ccc2da979f0f6aefb3e6c8ebc3a5541671b6c829b45ea55f9249cb0eeeec1ea87
data/README.md CHANGED
@@ -1,3 +1,2 @@
1
1
  # Cucumber Messages for Ruby (Protocol Buffers)
2
2
 
3
- [![Build Status](https://travis-ci.org/cucumber/cucumber-messages-ruby.svg?branch=master)](https://travis-ci.org/cucumber/cucumber-messages-ruby)
@@ -65,7 +65,14 @@ module Cucumber
65
65
 
66
66
  end
67
67
 
68
- class Attachment < ::Protobuf::Message; end
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, :text, 6
331
- optional :bytes, :binary, 7
332
- optional :string, :media_type, 8
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 with bytes fields" do
8
- a1 = Attachment.new(binary: [1,2,3,4].pack('C*'))
9
- expect(a1.binary.length).to eq(4)
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(binary: "JALLA"))
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: 10.0.3
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-05 00:00:00.000000000 Z
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-10.0.3
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