hellogrpc 0.0.1472012531 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE.txt +21 -0
- data/hellogrpc.gemspec +35 -0
- data/lib/{hellogrpc_pb.rb → hellogrpc/hellogrpc_pb.rb} +7 -5
- data/lib/hellogrpc/hellogrpc_services.rb +23 -0
- data/lib/hellogrpc/version.rb +3 -0
- data/lib/hellogrpc.rb +6 -0
- metadata +28 -15
- data/lib/hellogrpc_services_pb.rb +0 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0bcb735a2206f0eb4ac793f54aec3a05108788662e8d0c69e2638678014cb4d3
|
4
|
+
data.tar.gz: b263d6e74067c08947f3b734aca8023c56f71ea5178739322f6a380dd62c89e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0a7e060255835d63a59f1574dba30ba422882fab627d6f5b9c1c6aff3165f9998eb30cbc4e09894de412092f2c1b3afd7cfb97981850121aa96fe6b6015aa2
|
7
|
+
data.tar.gz: 7479a31d92a628423683f202dff39e7e7b20c24043ce3b2b76b1e371c402712c597df5cee322f13e47b775f494b0a3666de236c5ed62d18a2115db55fcaa1e87
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Kyle Conroy
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/hellogrpc.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "hellogrpc/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "hellogrpc"
|
7
|
+
spec.version = Hellogrpc::VERSION
|
8
|
+
spec.authors = ["Kyle Conroy"]
|
9
|
+
spec.email = ["kyle@conroy.org"]
|
10
|
+
|
11
|
+
spec.summary = "Say Hello"
|
12
|
+
spec.description = "Say Hi"
|
13
|
+
spec.homepage = "https://rubygems.org/gems/hellogrpc"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
20
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
+
spec.metadata["source_code_uri"] = "https://github.com/stackmachine/hellogrpc-rb"
|
22
|
+
else
|
23
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
24
|
+
"public gem pushes."
|
25
|
+
end
|
26
|
+
|
27
|
+
# Specify which files should be added to the gem when it is released.
|
28
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
30
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
31
|
+
end
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_runtime_dependency 'grpc', '~> 1.0', '>= 1.0.0'
|
35
|
+
end
|
@@ -4,11 +4,13 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
add_file("hellogrpc.proto", :syntax => :proto3) do
|
8
|
+
add_message "hellogrpc.HelloRequest" do
|
9
|
+
optional :name, :string, 1
|
10
|
+
end
|
11
|
+
add_message "hellogrpc.HelloReply" do
|
12
|
+
optional :message, :string, 1
|
13
|
+
end
|
12
14
|
end
|
13
15
|
end
|
14
16
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: hellogrpc.proto for package 'hellogrpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
|
6
|
+
module Hellogrpc
|
7
|
+
module Greeter
|
8
|
+
|
9
|
+
# TODO: add proto service documentation here
|
10
|
+
class Service
|
11
|
+
|
12
|
+
include GRPC::GenericService
|
13
|
+
|
14
|
+
self.marshal_class_method = :encode
|
15
|
+
self.unmarshal_class_method = :decode
|
16
|
+
self.service_name = 'hellogrpc.Greeter'
|
17
|
+
|
18
|
+
rpc :SayHello, HelloRequest, HelloReply
|
19
|
+
end
|
20
|
+
|
21
|
+
Stub = Service.rpc_stub_class
|
22
|
+
end
|
23
|
+
end
|
data/lib/hellogrpc.rb
ADDED
metadata
CHANGED
@@ -1,41 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hellogrpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Kyle Conroy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.0.0
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 1.0.0
|
27
|
-
|
28
|
-
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
33
|
+
description: Say Hi
|
34
|
+
email:
|
35
|
+
- kyle@conroy.org
|
29
36
|
executables: []
|
30
37
|
extensions: []
|
31
38
|
extra_rdoc_files: []
|
32
39
|
files:
|
33
|
-
-
|
34
|
-
-
|
35
|
-
|
40
|
+
- LICENSE.txt
|
41
|
+
- hellogrpc.gemspec
|
42
|
+
- lib/hellogrpc.rb
|
43
|
+
- lib/hellogrpc/hellogrpc_pb.rb
|
44
|
+
- lib/hellogrpc/hellogrpc_services.rb
|
45
|
+
- lib/hellogrpc/version.rb
|
46
|
+
homepage: https://rubygems.org/gems/hellogrpc
|
36
47
|
licenses:
|
37
48
|
- MIT
|
38
|
-
metadata:
|
49
|
+
metadata:
|
50
|
+
allowed_push_host: https://rubygems.org/
|
51
|
+
homepage_uri: https://rubygems.org/gems/hellogrpc
|
52
|
+
source_code_uri: https://github.com/stackmachine/hellogrpc-rb
|
39
53
|
post_install_message:
|
40
54
|
rdoc_options: []
|
41
55
|
require_paths:
|
@@ -44,16 +58,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
58
|
requirements:
|
45
59
|
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
61
|
+
version: '0'
|
48
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
63
|
requirements:
|
50
64
|
- - ">="
|
51
65
|
- !ruby/object:Gem::Version
|
52
66
|
version: '0'
|
53
67
|
requirements: []
|
54
|
-
|
55
|
-
rubygems_version: 2.5.1
|
68
|
+
rubygems_version: 3.0.2
|
56
69
|
signing_key:
|
57
70
|
specification_version: 4
|
58
|
-
summary: Hello
|
71
|
+
summary: Say Hello
|
59
72
|
test_files: []
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: hellogrpc.proto for package 'hellogrpc'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2015, Google Inc.
|
5
|
-
# All rights reserved.
|
6
|
-
#
|
7
|
-
# Redistribution and use in source and binary forms, with or without
|
8
|
-
# modification, are permitted provided that the following conditions are
|
9
|
-
# met:
|
10
|
-
#
|
11
|
-
# * Redistributions of source code must retain the above copyright
|
12
|
-
# notice, this list of conditions and the following disclaimer.
|
13
|
-
# * Redistributions in binary form must reproduce the above
|
14
|
-
# copyright notice, this list of conditions and the following disclaimer
|
15
|
-
# in the documentation and/or other materials provided with the
|
16
|
-
# distribution.
|
17
|
-
# * Neither the name of Google Inc. nor the names of its
|
18
|
-
# contributors may be used to endorse or promote products derived from
|
19
|
-
# this software without specific prior written permission.
|
20
|
-
#
|
21
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
22
|
-
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
23
|
-
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
24
|
-
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
25
|
-
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
26
|
-
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
27
|
-
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
28
|
-
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
29
|
-
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
30
|
-
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
31
|
-
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
32
|
-
#
|
33
|
-
|
34
|
-
require 'grpc'
|
35
|
-
require 'hellogrpc_pb'
|
36
|
-
|
37
|
-
module Hellogrpc
|
38
|
-
module Greeter
|
39
|
-
# The greeting service definition.
|
40
|
-
class Service
|
41
|
-
|
42
|
-
include GRPC::GenericService
|
43
|
-
|
44
|
-
self.marshal_class_method = :encode
|
45
|
-
self.unmarshal_class_method = :decode
|
46
|
-
self.service_name = 'hellogrpc.Greeter'
|
47
|
-
|
48
|
-
# Sends a greeting
|
49
|
-
rpc :SayHello, HelloRequest, HelloReply
|
50
|
-
end
|
51
|
-
|
52
|
-
Stub = Service.rpc_stub_class
|
53
|
-
end
|
54
|
-
end
|