gruf 2.16.0 → 2.16.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: 3d83766bdf6739e3997891fd7b5e5ecd393aa17c8fab0ab839ff0789756726cf
4
- data.tar.gz: b959a1644c29c5732438a60a079dc318136146eddb96d4060091f0f39fc7e5c6
3
+ metadata.gz: 1f7ea5bc2b3a0c64008a565c470d19b948814f9c636ccdea72b93703f384ca77
4
+ data.tar.gz: f5a23c82e85208104baec460d93f650e66189dfb3b27dc0c409dc32b21bcda4a
5
5
  SHA512:
6
- metadata.gz: ef7b011e2d693c2cb05b10697e0b67fcedb1d72ffc8adeac5f207557a30494860878a5b80e94fc8d512e7a4e5e6cb69b2bc8a854e72cd80f2e1507e0c1f379b6
7
- data.tar.gz: a75845718660f4013015eff266c737315ce7bb00e147c83bc175390c87d890be525ee88059f5bb3ec224bbe30a96fb348143dfccd0c377a2dee8bd3eb674a6ea
6
+ metadata.gz: b227b3fc5253dbace401291e9643e2703244e9e83020d9516358ed78caef24f56668d61f9411f1b2dc25fa5854d711cc5b54346937f71d6835e00f98cd003e46
7
+ data.tar.gz: 61f863b87320654ec2b247953b3817ae854ae4e601bc0c09206803a8cc2e453a8f80c77b0679b2cb03f870f5a0ba6c44ca8be8bc2ea6f1d34d0c03c7527b888b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@ Changelog for the gruf gem. This includes internal history before the gem was ma
2
2
 
3
3
  ### Pending release
4
4
 
5
+ ### 2.16.1
6
+
7
+ * Fix issue where default gRPC health check was loaded even if unused or not desired; now only loaded when requested
8
+
9
+ ### 2.16.0
10
+
5
11
  - Add opt-in ability to serve the official [gRPC health check](https://github.com/grpc/grpc/blob/master/src/ruby/pb/grpc/health/v1/health_services_pb.rb)
6
12
  automatically via `health_check_enabled` configuration option (or `GRUF_HEALTH_CHECK_ENABLED` environment
7
13
  variable).
@@ -161,9 +161,7 @@ module Gruf
161
161
  def bind_health_check!(services)
162
162
  # do this here to trigger autoloading the controller in zeitwerk, since we don't explicitly load this
163
163
  # controller. This binds the service and makes sure the method handlers are setup.
164
- # rubocop:disable Lint/Void
165
- Gruf::Controllers::HealthController
166
- # rubocop:enable Lint/Void
164
+ require 'gruf/controllers/health_controller'
167
165
  # if we're already bound to the services array (say someone explicitly passes the health check in, skip)
168
166
  return services if services.include?(::Grpc::Health::V1::Health::Service)
169
167
 
@@ -15,6 +15,8 @@
15
15
  # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
16
  # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
17
  #
18
+ require 'grpc/health/v1/health_services_pb'
19
+
18
20
  module Gruf
19
21
  module Controllers
20
22
  ##
data/lib/gruf/version.rb CHANGED
@@ -16,5 +16,5 @@
16
16
  # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
17
  #
18
18
  module Gruf
19
- VERSION = '2.16.0'
19
+ VERSION = '2.16.1'
20
20
  end
data/lib/gruf.rb CHANGED
@@ -20,7 +20,6 @@ require 'active_support/core_ext/module/delegation'
20
20
  require 'active_support/hash_with_indifferent_access'
21
21
  require 'active_support/concern'
22
22
  require 'active_support/inflector'
23
- require 'grpc/health/v1/health_services_pb'
24
23
  require 'base64'
25
24
 
26
25
  # use Zeitwerk to lazily autoload all the files in the lib directory
@@ -29,6 +28,7 @@ loader = ::Zeitwerk::Loader.new
29
28
  loader.tag = File.basename(__FILE__, '.rb')
30
29
  loader.inflector = ::Zeitwerk::GemInflector.new(__FILE__)
31
30
  loader.ignore("#{__dir__}/gruf/integrations/rails/railtie.rb")
31
+ loader.ignore("#{__dir__}/gruf/controllers/health_controller.rb")
32
32
  loader.push_dir(__dir__)
33
33
  loader.setup
34
34
 
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: 2.16.0
4
+ version: 2.16.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: 2022-08-14 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler-audit