grpcx 0.1.0 → 0.1.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: ce77106489146dc1a2c5dbaf39411f2061d86355b857de1100cc952a8d1b9522
4
- data.tar.gz: 30cdaa7d8aaa269106010a61e91a4c2916c928218fa47624ee6c06a0f4bccd48
3
+ metadata.gz: 7e6bcd16e9fceffd33f50eb1f4329ce55b9c983ff434f8688cbc2cf2432012d0
4
+ data.tar.gz: 79fb5b99a06087b37e0a8af8c36c13eebaf07b81a797459144b144adcecc3e07
5
5
  SHA512:
6
- metadata.gz: 10727d31b94270648bab756d5da572ffcf244f17bf4540ee4830d110635bf26e7c0900de0d11002a5bd840a3796fbda18a417bd5f38353f44fdcdac7b39af03a
7
- data.tar.gz: 1378bb8ecf7d4528e0400bb109fc80e1e98baa0567a131c510ed40b1f3dd37752337d21ad41f7982cf23fb3a7eb9d71fea3c18fd12de5ac5eb4e3d05c9b4a3f6
6
+ metadata.gz: e19042030a742d1f985dde51ef366402bbd062c3fe4f2d17d987c6dbc40db0cf069ad61f746648291987d0011b38d28f757e3dd8b9b5bdcdff738ba34029b228
7
+ data.tar.gz: a79ba2d070d331afa74b95f439f0cfa0fa243d2e5c6b11186d3175374f3a435b304082ad67ec2ba34230415dda06add606101b0762ed8823b36b4c4c19448443
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  .rubocop-*
2
+ pkg/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grpcx (0.1.0)
4
+ grpcx (0.1.1)
5
5
  activesupport (>= 5.0)
6
6
  grpc (>= 1.8.0)
7
7
 
data/grpcx.gemspec CHANGED
@@ -1,11 +1,11 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'grpcx'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.authors = ['Black Square Media Ltd']
5
5
  s.email = ['info@blacksquaremedia.com']
6
6
  s.summary = %(gRPC extensions/helpers)
7
7
  s.description = %()
8
- s.homepage = 'https://bitbucket.org/bsm/grpcx'
8
+ s.homepage = 'https://github.com/bsm/grpcx'
9
9
  s.license = 'MIT'
10
10
 
11
11
  s.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^spec/}) }
@@ -6,20 +6,20 @@ module Grpcx
6
6
  class Instrumentation < GRPC::ServerInterceptor
7
7
  METRIC_NAME = 'process_action.grpc'.freeze
8
8
 
9
- def request_response(method: nil, &block)
10
- instrument(action: method, &block)
9
+ def request_response(opts={}, &block)
10
+ instrument(action: opts[:method], &block)
11
11
  end
12
12
 
13
- def client_streamer(method: nil, &block)
14
- instrument(action: method, &block)
13
+ def client_streamer(opts={}, &block)
14
+ instrument(action: opts[:method], &block)
15
15
  end
16
16
 
17
- def server_streamer(method: nil, &block)
18
- instrument(action: method, &block)
17
+ def server_streamer(opts={}, &block)
18
+ instrument(action: opts[:method], &block)
19
19
  end
20
20
 
21
- def bidi_streamer(method: nil, &block)
22
- instrument(action: method, &block)
21
+ def bidi_streamer(opts={}, &block)
22
+ instrument(action: opts[:method], &block)
23
23
  end
24
24
 
25
25
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpcx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media Ltd
@@ -131,7 +131,7 @@ files:
131
131
  - lib/grpcx/server/interceptors/rescue.rb
132
132
  - spec/lib/server_spec.rb
133
133
  - spec/spec_helper.rb
134
- homepage: https://bitbucket.org/bsm/grpcx
134
+ homepage: https://github.com/bsm/grpcx
135
135
  licenses:
136
136
  - MIT
137
137
  metadata: {}