gritz-core 0.6.1 → 0.9.0

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: 365ed02137d42c5182e6f09a10544c189d7fe0d70fc0faffd2864b752e13e40c
4
- data.tar.gz: 797d64d766c36257ef700d7647045d317c4027ed4b7295f959f54fec2139849e
3
+ metadata.gz: 40b995a6a11953b9aec90291e60bbd928911c1e4e0337a7241daf3c34b210e27
4
+ data.tar.gz: 511df3afe2b9071e7920b36633a58fdd759832ccf158392a7e2be553385a72f6
5
5
  SHA512:
6
- metadata.gz: 8cdc413c2a357fb5e98ce5c397ae5e1b69d136f89752d479d4960367fc0a2cf6d99dabeebede608aa2f7c8f948ee542640ff4f269323a7aa203d5ef07c027296
7
- data.tar.gz: 3da9357cc46ca9f495f997803929d489e3ca691074cdad0b1e33f49457bcbc35d58ad37b3331b754b08967a3ff5376dfd60f6a02943a8e6e3e8fac34f78a35a7
6
+ metadata.gz: a66f9c4d58aca49a6e4bf9912b2f2ecf1f0391e2381cb9c3b9cbe29ab7bb47c777fcad4667afb67f90a8d2d98f7fc9df231cf82a4fa25021777b264e074ac6d4
7
+ data.tar.gz: c1bbe9d8f404c15669814fab6f85d3b6b389b0ff3bd7548cfb5ce5e7ca98e6672d8811ca9707339c47a09128aa06b4475606e386104d06f52403098400073953
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0
4
+
5
+ - Start the 0.9 stabilization series with the documented public API and support policy.
6
+ - Reject directories and named pipes configured as TLS certificate, key or client CA files before allocating transport resources.
7
+
3
8
  ## 0.6.1
4
9
 
5
10
  - Avoid formatting suppressed RPC completion logs, preserving responses, status mapping and metrics when INFO logging is disabled.
data/README.md CHANGED
@@ -31,6 +31,10 @@ bundle exec rake build
31
31
 
32
32
  Tests, lint and packaging run independently in this repository. See [CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md) and the [release guide](docs/guides/releasing.md).
33
33
 
34
+ ## Documentation
35
+
36
+ Read the [published guides and API reference](https://gritzrpc.github.io/gritz/), [public API policy](https://github.com/gritzrpc/gritz/blob/main/docs/public-api.md), [support policy](https://github.com/gritzrpc/gritz/blob/main/docs/support-policy.md) and [stabilization gate](https://github.com/gritzrpc/gritz/blob/main/docs/stabilization.md).
37
+
34
38
  ## License
35
39
 
36
40
  [MIT](LICENSE.txt).
@@ -184,6 +184,7 @@ module Gritz
184
184
  end
185
185
  end
186
186
 
187
+ # @api private
187
188
  class InterceptorAdapter
188
189
  def initialize(app, klass, options)
189
190
  @app = app
@@ -216,7 +216,8 @@ module Gritz
216
216
  end
217
217
 
218
218
  tls.each do |name, path|
219
- raise ConfigurationError, "Invalid tls #{name}" unless %i[cert key client_ca].include?(name) && path.is_a?(String) && File.readable?(path)
219
+ valid = %i[cert key client_ca].include?(name) && path.is_a?(String) && File.file?(path) && File.readable?(path)
220
+ raise ConfigurationError, "Invalid tls #{name}" unless valid
220
221
  end
221
222
  end
222
223
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gritz
4
4
  module Core
5
- VERSION = "0.6.1"
5
+ VERSION = "0.9.0"
6
6
  end
7
7
  end
data/lib/gritz/core.rb CHANGED
@@ -4,6 +4,8 @@ require "zeitwerk"
4
4
  require_relative "errors"
5
5
  require_relative "core/version"
6
6
 
7
+ # Transport-independent RPC controllers, middleware, clients and lifecycle tools.
8
+ # @api public
7
9
  module Gritz
8
10
  module Core
9
11
  # Core loading deliberately does not require grpc or initialize transports.
@@ -16,6 +16,7 @@ module Gritz
16
16
  end
17
17
  end
18
18
 
19
+ # @api private
19
20
  module ConstructorHook
20
21
  def new(...)
21
22
  Gritz::ForkGuard.check!(self)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gritz-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yudai Takada
@@ -171,6 +171,7 @@ licenses:
171
171
  metadata:
172
172
  allowed_push_host: https://rubygems.org
173
173
  source_code_uri: https://github.com/gritzrpc/gritz-core
174
+ documentation_uri: https://gritzrpc.github.io/gritz/
174
175
  changelog_uri: https://github.com/gritzrpc/gritz-core/blob/main/CHANGELOG.md
175
176
  rubygems_mfa_required: 'true'
176
177
  rdoc_options: []