logstash-codec-protobuf 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+
4
+ require 'protocol_buffers'
5
+
6
+ begin; require 'header/header.pb'; rescue LoadError; end
7
+
8
+ module Logging
9
+ # forward declarations
10
+ class Event < ::ProtocolBuffers::Message; end
11
+
12
+ class Event < ::ProtocolBuffers::Message
13
+ set_fully_qualified_name "Logging.Event"
14
+
15
+ optional :string, :name, 1
16
+ optional ::Grpc::Header, :header, 2
17
+ end
18
+
19
+ end
@@ -0,0 +1,12 @@
1
+ syntax = "proto2";
2
+
3
+ // Compile: ruby-protoc spec/helpers/*proto
4
+
5
+ package Logging;
6
+
7
+ import "header/header.proto";
8
+
9
+ message Event {
10
+ optional string name = 1;
11
+ optional grpc.Header header = 2;
12
+ }
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+
4
+ require 'protocol_buffers'
5
+
6
+ module Grpc
7
+ # forward declarations
8
+ class Header < ::ProtocolBuffers::Message; end
9
+
10
+ class Header < ::ProtocolBuffers::Message
11
+ set_fully_qualified_name "grpc.Header"
12
+
13
+ optional :string, :protocol, 1
14
+ end
15
+
16
+ end
@@ -0,0 +1,8 @@
1
+ syntax = "proto2";
2
+
3
+ // Compile: ruby-protoc spec/helpers/*proto
4
+ package grpc;
5
+
6
+ message Header {
7
+ optional string protocol = 1;
8
+ }
@@ -0,0 +1,7 @@
1
+ syntax = "proto3";
2
+
3
+ // Compile: protoc --ruby_out=. spec/helpers/*proto3
4
+
5
+ message Header {
6
+ map<string, string> name = 3;
7
+ }
@@ -0,0 +1,12 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: header/header.proto3
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "Header" do
8
+ map :name, :string, :string, 3
9
+ end
10
+ end
11
+
12
+ Header = Google::Protobuf::DescriptorPool.generated_pool.lookup("Header").msgclass
@@ -0,0 +1,12 @@
1
+ syntax = "proto3";
2
+
3
+ // Compile: protoc --ruby_out=. spec/helpers/*proto3
4
+
5
+ package A;
6
+
7
+ import "header/header.proto3";
8
+
9
+ message MessageA {
10
+ string name = 1;
11
+ Header header = 2;
12
+ }
@@ -0,0 +1,16 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: messageA.proto3
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'header/header_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "A.MessageA" do
9
+ optional :name, :string, 1
10
+ optional :header, :message, 2, "Header"
11
+ end
12
+ end
13
+
14
+ module A
15
+ MessageA = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.MessageA").msgclass
16
+ end
@@ -0,0 +1,12 @@
1
+ syntax = "proto3";
2
+
3
+ // Compile: protoc --ruby_out=. spec/helpers/*proto3
4
+
5
+ package B;
6
+
7
+ import "header/header.proto3";
8
+
9
+ message MessageB {
10
+ string name = 1;
11
+ Header header = 2;
12
+ }
@@ -0,0 +1,16 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: messageB.proto3
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'header/header_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "B.MessageB" do
9
+ optional :name, :string, 1
10
+ optional :header, :message, 2, "Header"
11
+ end
12
+ end
13
+
14
+ module B
15
+ MessageB = Google::Protobuf::DescriptorPool.generated_pool.lookup("B.MessageB").msgclass
16
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inga Feick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -94,12 +94,22 @@ files:
94
94
  - spec/codecs/protobuf_spec.rb
95
95
  - spec/helpers/pb2/ColourTestcase.pb.rb
96
96
  - spec/helpers/pb2/ColourTestcase.proto
97
+ - spec/helpers/pb2/event.pb.rb
98
+ - spec/helpers/pb2/event.proto
99
+ - spec/helpers/pb2/header/header.pb.rb
100
+ - spec/helpers/pb2/header/header.proto
97
101
  - spec/helpers/pb2/human.pb.rb
98
102
  - spec/helpers/pb2/unicorn.pb.rb
99
103
  - spec/helpers/pb2/unicorn_event.pb.rb
100
104
  - spec/helpers/pb3/ProbeResult_pb.rb
101
105
  - spec/helpers/pb3/dnsmessage_pb.rb
106
+ - spec/helpers/pb3/header/header.proto3
107
+ - spec/helpers/pb3/header/header_pb.rb
102
108
  - spec/helpers/pb3/integertest_pb.rb
109
+ - spec/helpers/pb3/messageA.proto3
110
+ - spec/helpers/pb3/messageA_pb.rb
111
+ - spec/helpers/pb3/messageB.proto3
112
+ - spec/helpers/pb3/messageB_pb.rb
103
113
  - spec/helpers/pb3/unicorn.proto3
104
114
  - spec/helpers/pb3/unicorn_pb.rb
105
115
  homepage:
@@ -124,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
134
  version: '0'
125
135
  requirements: []
126
136
  rubyforge_project:
127
- rubygems_version: 2.6.13
137
+ rubygems_version: 2.6.14.1
128
138
  signing_key:
129
139
  specification_version: 4
130
140
  summary: Reads protobuf messages and converts to Logstash Events
@@ -133,11 +143,21 @@ test_files:
133
143
  - spec/codecs/protobuf_spec.rb
134
144
  - spec/helpers/pb2/ColourTestcase.pb.rb
135
145
  - spec/helpers/pb2/ColourTestcase.proto
146
+ - spec/helpers/pb2/event.pb.rb
147
+ - spec/helpers/pb2/event.proto
148
+ - spec/helpers/pb2/header/header.pb.rb
149
+ - spec/helpers/pb2/header/header.proto
136
150
  - spec/helpers/pb2/human.pb.rb
137
151
  - spec/helpers/pb2/unicorn.pb.rb
138
152
  - spec/helpers/pb2/unicorn_event.pb.rb
139
153
  - spec/helpers/pb3/ProbeResult_pb.rb
140
154
  - spec/helpers/pb3/dnsmessage_pb.rb
155
+ - spec/helpers/pb3/header/header.proto3
156
+ - spec/helpers/pb3/header/header_pb.rb
141
157
  - spec/helpers/pb3/integertest_pb.rb
158
+ - spec/helpers/pb3/messageA.proto3
159
+ - spec/helpers/pb3/messageA_pb.rb
160
+ - spec/helpers/pb3/messageB.proto3
161
+ - spec/helpers/pb3/messageB_pb.rb
142
162
  - spec/helpers/pb3/unicorn.proto3
143
163
  - spec/helpers/pb3/unicorn_pb.rb