vx-lib-message 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/lib/message/messages.pb.rb +14 -4
- data/lib/vx/lib/message/testing.rb +17 -1
- data/lib/vx/lib/message/version.rb +1 -1
- data/proto/messages.proto +8 -0
- data/spec/lib/message_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03cde6a0433459b1f01e14883d1184f0a6adff94
|
4
|
+
data.tar.gz: e3e8880a7b88c6db42ba3c43aa17bbb8aa17ce3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87893d91d741c798ef88f8fe378e33a3902e1484cf07842847db08eaaeb9c168dc6b7d569e3485528dba68642f2d2949c657b417bfaaa73ab836221419235c6d
|
7
|
+
data.tar.gz: 390fc66b3a02ffeec319b87563ebecf2d5c190c6789555fe6875f40c33187f0d69bcdd0dd3dfb4cffd2941b3b659bacca18b8e7e7f4904ea244d2c63869f6351
|
@@ -5,6 +5,10 @@ module Vx
|
|
5
5
|
module Lib
|
6
6
|
module Message
|
7
7
|
|
8
|
+
class Service
|
9
|
+
include Beefcake::Message
|
10
|
+
end
|
11
|
+
|
8
12
|
class PerformJob
|
9
13
|
include Beefcake::Message
|
10
14
|
end
|
@@ -25,8 +29,16 @@ module Vx
|
|
25
29
|
end
|
26
30
|
end
|
27
31
|
|
28
|
-
class
|
32
|
+
class Company
|
29
33
|
include Beefcake::Message
|
34
|
+
end
|
35
|
+
|
36
|
+
class Service
|
37
|
+
required :name, :string, 1
|
38
|
+
optional :version, :string, 2
|
39
|
+
end
|
40
|
+
|
41
|
+
class PerformJob
|
30
42
|
required :company_id, :string, 1
|
31
43
|
required :company_name, :string, 2
|
32
44
|
required :project_id, :string, 3
|
@@ -42,10 +54,10 @@ module Vx
|
|
42
54
|
optional :image, :string, 13
|
43
55
|
optional :job_timeout, :uint64, 14
|
44
56
|
optional :job_read_timeout, :uint64, 15
|
57
|
+
repeated :services, Service, 16
|
45
58
|
end
|
46
59
|
|
47
60
|
class JobLog
|
48
|
-
include Beefcake::Message
|
49
61
|
required :company_id, :string, 1
|
50
62
|
required :company_name, :string, 2
|
51
63
|
required :project_id, :string, 3
|
@@ -60,7 +72,6 @@ module Vx
|
|
60
72
|
end
|
61
73
|
|
62
74
|
class JobStatus
|
63
|
-
include Beefcake::Message
|
64
75
|
required :company_id, :string, 1
|
65
76
|
required :company_name, :string, 2
|
66
77
|
required :project_id, :string, 3
|
@@ -77,7 +88,6 @@ module Vx
|
|
77
88
|
end
|
78
89
|
|
79
90
|
class Company
|
80
|
-
include Beefcake::Message
|
81
91
|
required :company_id, :string, 1
|
82
92
|
required :company_name, :string, 2
|
83
93
|
end
|
@@ -13,13 +13,29 @@ module Vx ; module Lib
|
|
13
13
|
build_number: 4,
|
14
14
|
job_id: '5',
|
15
15
|
job_number: 6,
|
16
|
-
job_version: 1
|
16
|
+
job_version: 1,
|
17
|
+
services: [Service.new( name: "postgres" )]
|
17
18
|
}
|
18
19
|
|
19
20
|
def self.common
|
20
21
|
@@common
|
21
22
|
end
|
22
23
|
|
24
|
+
class Service
|
25
|
+
class << self
|
26
|
+
def test_attributes(options = {})
|
27
|
+
Message.common.merge(
|
28
|
+
name: "postgres",
|
29
|
+
version: "9.6"
|
30
|
+
).merge(options)
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_message(options = {})
|
34
|
+
new test_attributes(options)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
23
39
|
class JobStatus
|
24
40
|
class << self
|
25
41
|
|
data/proto/messages.proto
CHANGED
@@ -1,5 +1,11 @@
|
|
1
|
+
syntax = "proto2";
|
1
2
|
package vx.lib.message;
|
2
3
|
|
4
|
+
message Service {
|
5
|
+
required string name = 1;
|
6
|
+
optional string version = 2;
|
7
|
+
}
|
8
|
+
|
3
9
|
message PerformJob {
|
4
10
|
required string company_id = 1;
|
5
11
|
required string company_name = 2;
|
@@ -21,6 +27,8 @@ message PerformJob {
|
|
21
27
|
|
22
28
|
optional uint64 job_timeout = 14;
|
23
29
|
optional uint64 job_read_timeout = 15;
|
30
|
+
|
31
|
+
repeated Service services = 16;
|
24
32
|
}
|
25
33
|
|
26
34
|
message JobLog {
|
data/spec/lib/message_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-lib-message
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: beefcake
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.4.5.1
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Evrone CI message
|