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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bf92528e6ff160d8d3a6997b8b00a44d86c46ac
4
- data.tar.gz: 52bc1ac08fbf89488719d85c00bab0e741359c87
3
+ metadata.gz: feaea19ab6b110fe0052c095d4c7cc872efc78c3
4
+ data.tar.gz: 026b75e936cf6e5b42bcc1f7e6d64cac6c4f60ce
5
5
  SHA512:
6
- metadata.gz: 9caf811ac34255710d42a13a1a7f9066279d6c747a0e9b86fb3fff100aea31dc9889deb161acdfaa4b80907810f689c367851497ecd5399cde16a417df2bcf61
7
- data.tar.gz: 86151ce87a7c7598e9a2a132b2d21fee05c10e621456766b78c3d11b94df942fb5d7d3e478333a0e84c8d6d7ebf0a223f1272be819dafbf2fd530bb007fd7983
6
+ metadata.gz: ae7d0569bbe3986de7b9b0a4e1fa6a7c4ae450cb48e2d9b2428554a68b255aefb70e23cab6705aa60ee2c188107cb7ce88f5c07d6ba01f6b1439bac2c08b73ee
7
+ data.tar.gz: 80dfe3b2d410473b3372a0db4720c05d8bc0b2e3fc3086e9fc2f80253d40383d75daad2df55858ca0ddd8f0891c77584672331f97819ddb7355a00ffe814a3ac
@@ -2,7 +2,10 @@ Changelog for the gruf gem. This includes internal history before the gem was ma
2
2
 
3
3
  ### Pending release
4
4
 
5
+ ### 1.2.1
5
6
 
7
+ - Added ability to pass in server options via new `server_options` configuration
8
+ attribute.
6
9
 
7
10
  ### 1.2.0
8
11
 
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
@@ -22,6 +22,7 @@ module Gruf
22
22
  VALID_CONFIG_KEYS = {
23
23
  root_path: '',
24
24
  server_binding_url: '0.0.0.0:9001',
25
+ server_options: {},
25
26
  authentication_options: {},
26
27
  instrumentation_options: {},
27
28
  hook_options: {},
@@ -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
  ##
@@ -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)
@@ -15,5 +15,5 @@
15
15
  # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
16
  #
17
17
  module Gruf
18
- VERSION = '1.2.0'.freeze
18
+ VERSION = '1.2.1'.freeze
19
19
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler