gruf 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +5 -0
- data/lib/gruf/configuration.rb +1 -0
- data/lib/gruf/instrumentation/request_context.rb +16 -0
- data/lib/gruf/server.rb +1 -1
- data/lib/gruf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feaea19ab6b110fe0052c095d4c7cc872efc78c3
|
4
|
+
data.tar.gz: 026b75e936cf6e5b42bcc1f7e6d64cac6c4f60ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae7d0569bbe3986de7b9b0a4e1fa6a7c4ae450cb48e2d9b2428554a68b255aefb70e23cab6705aa60ee2c188107cb7ce88f5c07d6ba01f6b1439bac2c08b73ee
|
7
|
+
data.tar.gz: 80dfe3b2d410473b3372a0db4720c05d8bc0b2e3fc3086e9fc2f80253d40383d75daad2df55858ca0ddd8f0891c77584672331f97819ddb7355a00ffe814a3ac
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -344,6 +344,11 @@ support for gruf services
|
|
344
344
|
* [gruf-profiler](https://github.com/bigcommerce/gruf-profiler) - Profiles and provides memory usage
|
345
345
|
reports for gruf services
|
346
346
|
|
347
|
+
## Demo Rails App
|
348
|
+
|
349
|
+
There is a [demonstration Rails application here](https://github.com/bigcommerce/gruf-demo) you can view and clone
|
350
|
+
that shows how to integrate Gruf into an existing Rails application.
|
351
|
+
|
347
352
|
## License
|
348
353
|
|
349
354
|
Copyright (c) 2017-present, BigCommerce Pty. Ltd. All rights reserved
|
data/lib/gruf/configuration.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2017-present, BigCommerce Pty. Ltd. All rights reserved
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
5
|
+
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
6
|
+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
7
|
+
# persons to whom the Software is furnished to do so, subject to the following conditions:
|
8
|
+
#
|
9
|
+
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
10
|
+
# Software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
13
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
14
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
15
|
+
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
16
|
+
#
|
1
17
|
module Gruf
|
2
18
|
module Instrumentation
|
3
19
|
##
|
data/lib/gruf/server.rb
CHANGED
@@ -41,7 +41,7 @@ module Gruf
|
|
41
41
|
# :nocov:
|
42
42
|
def start!
|
43
43
|
logger.info { 'Booting gRPC Server...' }
|
44
|
-
server = GRPC::RpcServer.new
|
44
|
+
server = GRPC::RpcServer.new(Gruf.server_options)
|
45
45
|
server.add_http2_port Gruf.server_binding_url, ssl_credentials
|
46
46
|
services.each do |s|
|
47
47
|
server.handle(s)
|
data/lib/gruf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gruf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun McCormick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|