grpc_server_template 0.1.5 → 0.1.6

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: 5bab622599c9f63443fa0f557e81b34cd86d605779adf6645a9612d4123fa079
4
- data.tar.gz: 3773e6dff35ab2e1dd8e6020f1431b5734816258f5602deec7fab4463539cb39
3
+ metadata.gz: 2a06cb87622a9e7948594b7e733827b3841febd2167f45fd5e7414c90a0190d2
4
+ data.tar.gz: 13682df932e694070cc4a8851a34dcebcf3962a66716fc72bdc6bee7042c3655
5
5
  SHA512:
6
- metadata.gz: d1392f376410ec37f3058549052c8a7f6f071ac0e6dba59cfc92424b8cbd57c71bd8ef9ab344e188798f3dbe59fd1b599cd3528854427a58d4e5ba9939bd4af4
7
- data.tar.gz: d40bcaa2f22452c9b28f3162ad4938f07931e1af4fa0cc5bf6a687cb90cbd66d706f2e6df32bb315b4a094c213fb4ce837c0236fe79c773c0c50bc9a75facf01
6
+ metadata.gz: 3bf1e25c798dfb2c1cf247b8959d0d22066435b638a22efa90ad4e77723ca496b96993d88afbfc525e81e54134eb7079a925097580a04ea99156bbde207905dc
7
+ data.tar.gz: 9227410fbeb00ab4c185c6fee8f16406bd7278e3a5772778304425e225b331d55e40e8c045e47e1926028a280f2fe08eef7b34efc7a1c51ddc2f5bbd1e41d8a7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grpc_server_template (0.1.5)
4
+ grpc_server_template (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -11,7 +11,8 @@ module GrpcServerTemplate
11
11
  stub = GrpcServerTemplate::Stub.new("0.0.0.0:50052", :this_channel_is_insecure)
12
12
  req = GrpcServerTemplate::Messages::HelloRequest.new(name: name)
13
13
  resp_obj = stub.say_hello(req)
14
- puts "Response: #{resp_obj}"
14
+ puts "> Response: #{resp_obj}"
15
+ resp_obj
15
16
  end
16
17
  end
17
18
  end
@@ -7,7 +7,7 @@ module GrpcServerTemplate
7
7
  # Handler
8
8
  class Handler < GrpcServerTemplate::Service
9
9
  def say_hello(hello_req, _unused_call)
10
- puts "Request: #{hello_req}"
10
+ puts "> Request: #{hello_req}"
11
11
  GrpcServerTemplate::Messages::HelloReply.new(message: "Hello #{hello_req.name}")
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@
6
6
  require "google/protobuf"
7
7
 
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("grpc_server_template.proto", :syntax => :proto3) do
9
+ add_file("grpc_server_template.proto", syntax: :proto3) do
10
10
  add_message "HelloRequest" do
11
11
  optional :name, :string, 1
12
12
  end
@@ -9,7 +9,6 @@ require_relative "messages"
9
9
  module GrpcServerTemplate
10
10
  # The greeting service definition.
11
11
  class Service
12
-
13
12
  include ::GRPC::GenericService
14
13
 
15
14
  self.marshal_class_method = :encode
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrpcServerTemplate
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc_server_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvance
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-17 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A template for the ruby grpc server.
14
14
  email: