griffin 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bde96b38724aa97b682bfc64f06b7aafd3839191c879e3c4cd99f818b411f98a
4
- data.tar.gz: 7e6906a7bffae9171156ec71a68bef87f38cc8b5b668d7ea886953d83cfdbeff
3
+ metadata.gz: e380066807405ad0cd85bb8d26d3b263ba3de198288c642430c2be19a7c86732
4
+ data.tar.gz: 83608646081bc8ee5934ce025b161102be2f421340ce4ae045cbd68e98e260d0
5
5
  SHA512:
6
- metadata.gz: def92a8064a0141d4b4b2ad73429d81abcab11c6ba5597789b6a8a955f426e2a8c3699edb49042175ac7c904364afec7e6f9e6784f20a107e7f10ac2787af4ed
7
- data.tar.gz: 855a0900def7e9630017cd695e5f120a0e080a89e36199a426ef9060bd3692a28121f4b9b6155a0df2398a87e3d430e2768d373553fe8b5edcdaab6160bc065e
6
+ metadata.gz: d4617d35228892ee4e2ef3a9d900154d5acf8a68361e26b1f4352f403b8c3abff1c00e41f354eb71f96c47c7695dbfea38ec76634b7b50fc0dde211faffa0268
7
+ data.tar.gz: 3a631fddb85ec1319e29aa9b92a736b096c31acfbe76aa0d0c1e7e179816d20d95a41b9e72fc477f1f5209661e83fda167222a8a17111d2bbc08c7b0e4b1abfa
@@ -46,8 +46,8 @@ module Griffin
46
46
  end
47
47
 
48
48
  def handle(handler)
49
+ @server.handle(handler)
49
50
  klass = handler.is_a?(Class) ? handler : handler.class
50
- @server.handle(klass)
51
51
  klass.rpc_descs.each_key do |path|
52
52
  Griffin.logger.info("Handle #{path}")
53
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Griffin
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
@@ -37,7 +37,7 @@ module Grpc
37
37
  status = @statuses["#{req.service}"]
38
38
  end
39
39
  if status.nil?
40
- fail GRPC::BadStatus.new_status_exception(StatusCodes::NOT_FOUND)
40
+ fail GRPC::NotFound.new("Service is not found: #{req.service}")
41
41
  end
42
42
  HealthCheckResponse.new(status: status)
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: griffin
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
  - ganmacs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-20 00:00:00.000000000 Z
11
+ date: 2018-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler