courier_spec 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/courier_proto.gemspec +1 -1
- data/lib/balance_pb.rb +23 -0
- data/lib/balance_services_pb.rb +25 -0
- data/lib/todo_pb.rb +10 -7
- data/lib/todo_services_pb.rb +8 -22
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0a7462582da5fd7e16164f004ea5b32cc15202c970f9bfb4563e51c48bc5012
|
4
|
+
data.tar.gz: a6ac31b4d35ebe3d8f06530d2cb0690b184cab1188f3fb754c7e186bc5b6d34e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59ca0e5be733df0df23ab836e621073be11848bc10521bf875885e920a9b94ccf395dc696dda443754e9115da0bd92a23473b37ffe83210eeb6c0209f9c17411
|
7
|
+
data.tar.gz: c97deaa79937754ada8b1807b975b0c7381b6cd282679e1e111e45dfb7ccbe165218a187095d06b1ea5e9f833f97e7f4a4af6285622fd0657d813b0da89fb9e7
|
data/courier_proto.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'courier_spec'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.3'
|
8
8
|
spec.date = '2019-09-12'
|
9
9
|
spec.summary = "Courier Spec for proto files!"
|
10
10
|
spec.description = "The gem is the generated files for proto file"
|
data/lib/balance_pb.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: balance.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("balance.proto", :syntax => :proto3) do
|
8
|
+
add_message "balance.BalanceRequest" do
|
9
|
+
optional :msisdn, :int64, 1
|
10
|
+
optional :amount, :int64, 2
|
11
|
+
optional :currency, :string, 3
|
12
|
+
end
|
13
|
+
add_message "balance.BalanceReply" do
|
14
|
+
optional :value, :float, 1
|
15
|
+
optional :currency, :string, 2
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Balance
|
21
|
+
BalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceRequest").msgclass
|
22
|
+
BalanceReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceReply").msgclass
|
23
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: balance.proto for package 'balance'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'balance_pb'
|
6
|
+
|
7
|
+
module Balance
|
8
|
+
module Balance
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'balance.Balance'
|
16
|
+
|
17
|
+
rpc :GetBalance, BalanceRequest, BalanceReply
|
18
|
+
rpc :SetBalance, BalanceRequest, BalanceReply
|
19
|
+
rpc :AddBalance, BalanceRequest, BalanceReply
|
20
|
+
rpc :DeductBalance, BalanceRequest, BalanceReply
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
data/lib/todo_pb.rb
CHANGED
@@ -5,16 +5,19 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
7
|
add_file("todo.proto", :syntax => :proto3) do
|
8
|
-
add_message "
|
9
|
-
optional :
|
8
|
+
add_message "balance.BalanceRequest" do
|
9
|
+
optional :msisdn, :int64, 1
|
10
|
+
optional :amount, :int64, 2
|
11
|
+
optional :currency, :string, 3
|
10
12
|
end
|
11
|
-
add_message "
|
12
|
-
optional :
|
13
|
+
add_message "balance.BalanceReply" do
|
14
|
+
optional :value, :float, 1
|
15
|
+
optional :currency, :string, 2
|
13
16
|
end
|
14
17
|
end
|
15
18
|
end
|
16
19
|
|
17
|
-
module
|
18
|
-
|
19
|
-
|
20
|
+
module Balance
|
21
|
+
BalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceRequest").msgclass
|
22
|
+
BalanceReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("balance.BalanceReply").msgclass
|
20
23
|
end
|
data/lib/todo_services_pb.rb
CHANGED
@@ -1,37 +1,23 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: todo.proto for package '
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2015 gRPC authors.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
2
|
+
# Source: todo.proto for package 'balance'
|
18
3
|
|
19
4
|
require 'grpc'
|
20
5
|
require 'todo_pb'
|
21
6
|
|
22
|
-
module
|
23
|
-
module
|
24
|
-
# The greeting service definition.
|
7
|
+
module Balance
|
8
|
+
module Balance
|
25
9
|
class Service
|
26
10
|
|
27
11
|
include GRPC::GenericService
|
28
12
|
|
29
13
|
self.marshal_class_method = :encode
|
30
14
|
self.unmarshal_class_method = :decode
|
31
|
-
self.service_name = '
|
15
|
+
self.service_name = 'balance.Balance'
|
32
16
|
|
33
|
-
|
34
|
-
rpc :
|
17
|
+
rpc :GetBalance, BalanceRequest, BalanceReply
|
18
|
+
rpc :SetBalance, BalanceRequest, BalanceReply
|
19
|
+
rpc :AddBalance, BalanceRequest, BalanceReply
|
20
|
+
rpc :DeductBalance, BalanceRequest, BalanceReply
|
35
21
|
end
|
36
22
|
|
37
23
|
Stub = Service.rpc_stub_class
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: courier_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruiyang Zhang
|
@@ -31,6 +31,8 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- courier_proto.gemspec
|
34
|
+
- lib/balance_pb.rb
|
35
|
+
- lib/balance_services_pb.rb
|
34
36
|
- lib/helloworld_pb.rb
|
35
37
|
- lib/helloworld_services_pb.rb
|
36
38
|
- lib/todo_pb.rb
|