courier_spec 0.0.3 → 0.0.4

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: e0a7462582da5fd7e16164f004ea5b32cc15202c970f9bfb4563e51c48bc5012
4
- data.tar.gz: a6ac31b4d35ebe3d8f06530d2cb0690b184cab1188f3fb754c7e186bc5b6d34e
3
+ metadata.gz: d8ed01441ecdee7991888da9b8e1d139212e73fac446c8abb91fb60afd5b8e69
4
+ data.tar.gz: 1a2cd25403cc0993afefd86a3e264452d84eebbbe49e4e735ef7637f1012fdd7
5
5
  SHA512:
6
- metadata.gz: 59ca0e5be733df0df23ab836e621073be11848bc10521bf875885e920a9b94ccf395dc696dda443754e9115da0bd92a23473b37ffe83210eeb6c0209f9c17411
7
- data.tar.gz: c97deaa79937754ada8b1807b975b0c7381b6cd282679e1e111e45dfb7ccbe165218a187095d06b1ea5e9f833f97e7f4a4af6285622fd0657d813b0da89fb9e7
6
+ metadata.gz: fabbc76fcd30433f5c002f76a80dfc7b7ef83063aee9bee8ebaf9a6044aa25a7e7dbb131c2d7564c50fce3f1c0d41cd6441ce4bc4e4d446e0c83e44cf9d09d1f
7
+ data.tar.gz: 4d34573eee0d5d55b1734d4b6de8dba76d207542169eb6c8e03953f22815c12068b926ba41b13b0d8b88b9f505d89ce9ef2248f12c1ab5036db66f98dc427d68
Binary file
@@ -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.3'
7
+ spec.version = '0.0.4'
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"
@@ -0,0 +1,4 @@
1
+ module CourierSpec
2
+ require 'balance_pb'
3
+ require 'balance_services_pb'
4
+ end
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruiyang Zhang
@@ -30,13 +30,11 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
- - courier_proto.gemspec
33
+ - courier_spec-0.0.3.gem
34
+ - courier_spec.gemspec
34
35
  - lib/balance_pb.rb
35
36
  - lib/balance_services_pb.rb
36
- - lib/helloworld_pb.rb
37
- - lib/helloworld_services_pb.rb
38
- - lib/todo_pb.rb
39
- - lib/todo_services_pb.rb
37
+ - lib/courier_spec.rb
40
38
  homepage: https://rubygemspec.org/gems/courier_proto
41
39
  licenses:
42
40
  - MIT
data/lib/helloworld_pb.rb DELETED
@@ -1,20 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: helloworld.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("helloworld.proto", :syntax => :proto3) do
8
- add_message "helloworld.HelloRequest" do
9
- optional :name, :string, 1
10
- end
11
- add_message "helloworld.HelloReply" do
12
- optional :message, :string, 1
13
- end
14
- end
15
- end
16
-
17
- module Helloworld
18
- HelloRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("helloworld.HelloRequest").msgclass
19
- HelloReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("helloworld.HelloReply").msgclass
20
- end
@@ -1,39 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: helloworld.proto for package 'helloworld'
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
- #
18
-
19
- require 'grpc'
20
- require 'helloworld_pb'
21
-
22
- module Helloworld
23
- module Greeter
24
- # The greeting service definition.
25
- class Service
26
-
27
- include GRPC::GenericService
28
-
29
- self.marshal_class_method = :encode
30
- self.unmarshal_class_method = :decode
31
- self.service_name = 'helloworld.Greeter'
32
-
33
- # Sends a greeting
34
- rpc :SayHello, HelloRequest, HelloReply
35
- end
36
-
37
- Stub = Service.rpc_stub_class
38
- end
39
- end
data/lib/todo_pb.rb DELETED
@@ -1,23 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: todo.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("todo.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
@@ -1,25 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: todo.proto for package 'balance'
3
-
4
- require 'grpc'
5
- require 'todo_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