courier_spec 0.0.0 → 0.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: dc81821e421522e470a75bf1391ca9288157b55e5828a94479bfe15c004e3a7e
4
- data.tar.gz: cd1401004e35f4542147d53b83b28d00d846f5b4a5a6f049c008f7c5613801f6
3
+ metadata.gz: 0c0af09db13ee3c1618afa7bc2ba84198d799769dde5a43b2c5f5f85b60e8edc
4
+ data.tar.gz: 644bda37af43281e2e9eaaab6caa1e93ab15421c3e0e55a9ab7e165021a46885
5
5
  SHA512:
6
- metadata.gz: e2d2ea38ec049a081816b65144a37d3a33e18d203da3b7600bd30b8b87d84aa083ac676ee6791b494605ceecbcc54bbc12558f22d3e11df13706f564cb5b91a3
7
- data.tar.gz: 3e368d01bd7141a37cc1b7daa43b357d12664dd3f61a84cc684a38f58acfedcb1302d07d85fad1e0f5c4ab0f8f9d6b48f3abd4f8aab137c4c9e46a7f1526dbe1
6
+ metadata.gz: 3bd561338685f6f430dbafa4d99b93d47963cd0dd26c26207d713d2e51f9edeaddbf429eec12a0d99d67d62ce6925776641b6867315bba29f5ae470d12c6d62e
7
+ data.tar.gz: c21b922fef923b69b4739f80b682527df989237301f0c710222255345c3bce11aff6f4593fc528055c463957ddc4a8c861cc93422a3e5e9e0f4bf1b91dabb17f
@@ -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.0'
7
+ spec.version = '0.0.1'
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"
@@ -13,18 +13,9 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage =
14
14
  'https://rubygemspec.org/gems/courier_proto'
15
15
  spec.license = 'MIT'
16
+ spec.files = Dir['**/*']
17
+ spec.require_path = 'lib'
18
+ spec.add_runtime_dependency 'grpc', '~> 1.6'
16
19
 
17
- # Prevent pushing this gem to RubyGemspec.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- # if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = "https://rubygemspec.org/gems"
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against " \
23
- # "public gem pushespec."
24
- # end
25
20
 
26
- spec.files = Dir['**/*']
27
- spec.require_path = 'lib'
28
-
29
- spec.add_runtime_dependency 'grpc', '~> 1.6'
30
21
  end
@@ -0,0 +1,20 @@
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
@@ -0,0 +1,39 @@
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
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.0
4
+ version: 0.0.1
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/helloworld_pb.rb
35
+ - lib/helloworld_services_pb.rb
34
36
  - lib/todo_pb.rb
35
37
  - lib/todo_services_pb.rb
36
38
  homepage: https://rubygemspec.org/gems/courier_proto