gritz 0.1.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +4 -4
- data/lib/gritz/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a95e6912024249ab3efc8753e49f5c6221348413a9a9fd3f4d17157169336676
|
|
4
|
+
data.tar.gz: 40abe904ca3558e321c80db1bb3f87294ca1c98f47ed9f695c37048c2510fd2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e47c08e7623f8c44055996696945cbd77a8cbd32b730836ebee07a3b95ea6eb50b0a9d213daa83b74f28a7d415b32310277c1596ffe0982945deccf9db9763c
|
|
7
|
+
data.tar.gz: 577748ed23020e59a82224bc074044ee77ec6ed065fc47a7243754fc00e553ef2f32e4417c8bbdcbd0401f8216a3350e54d55194469c4fd00c1438ca973b0e49
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gritz
|
|
2
2
|
|
|
3
|
-
Gritz is a Ruby gRPC application framework with controllers, middleware and network-free controller tests. It supports a single-process
|
|
3
|
+
Gritz is a Ruby gRPC application framework with controllers, middleware and network-free controller tests. It supports a single-process native server, Linux forked-worker supervision, and all four RPC forms: unary, server streaming, client streaming and bidirectional streaming.
|
|
4
4
|
|
|
5
5
|
Requires CRuby 3.3 or later and grpc 1.83 or later. Linux and macOS are tested.
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ Requires CRuby 3.3 or later and grpc 1.83 or later. Linux and macOS are tested.
|
|
|
12
12
|
| `gritz-core` | [gritzrpc/gritz-core](https://github.com/gritzrpc/gritz-core) | Transport-independent application framework |
|
|
13
13
|
| `gritz-native` | [gritzrpc/gritz-native](https://github.com/gritzrpc/gritz-native) | Official grpc gem adapter and thread pool |
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Applications can add `gem "gritz", "~> 0.2.0"` to their Gemfile. It installs both the core and native adapter. The Fiber adapter `gritz-async` and integrations `gritz-rails` / `gritz-otel` are planned.
|
|
16
16
|
|
|
17
17
|
## Quickstart from source
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ Register controllers in a configuration file:
|
|
|
55
55
|
```ruby
|
|
56
56
|
require_relative "../app/greeter_controller"
|
|
57
57
|
|
|
58
|
-
workers 0
|
|
58
|
+
workers 0 # Use workers 4 with a fixed bind port for Linux multiprocess serving.
|
|
59
59
|
threads 16
|
|
60
60
|
bind "127.0.0.1:50051"
|
|
61
61
|
register_controller GreeterController
|
|
@@ -93,7 +93,7 @@ Configuration precedence is CLI options, `GRITZ_*` environment variables, config
|
|
|
93
93
|
|
|
94
94
|
Use `TERM` or `INT` to finish in-flight calls within `shutdown_timeout`; `QUIT` closes immediately. Application code should check deadlines and cancellation during long work. The grpc 1.83 server view can report cancellation late; deadlines remain the practical limit for long handlers. The native thread pool rejects excess requests immediately with `RESOURCE_EXHAUSTED`; grpc 1.83 ignores its deprecated `max_waiting_requests` setting.
|
|
95
95
|
|
|
96
|
-
The server binds insecure gRPC sockets. Use a trusted network or a TLS-terminating proxy. Native TLS, health checks, reflection
|
|
96
|
+
The server binds insecure gRPC sockets. Use a trusted network or a TLS-terminating proxy. Native TLS, health checks, reflection and metrics export are unavailable. Unsupported transport and TLS features fail at startup.
|
|
97
97
|
|
|
98
98
|
The default transport is `:native` (`Gritz::Transport::Native`). `gritz-core` can be loaded separately with `require "gritz/core"` without loading grpc.
|
|
99
99
|
|
data/lib/gritz/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gritz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yudai Takada
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.2.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.2.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: gritz-native
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.
|
|
32
|
+
version: 0.2.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.
|
|
39
|
+
version: 0.2.0
|
|
40
40
|
description: Gritz combines transport-independent controllers, middleware and testing
|
|
41
41
|
with a gRPC C-core server.
|
|
42
42
|
email:
|
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
requirements: []
|
|
77
|
-
rubygems_version:
|
|
77
|
+
rubygems_version: 3.6.9
|
|
78
78
|
specification_version: 4
|
|
79
79
|
summary: A controller-based Ruby gRPC application framework
|
|
80
80
|
test_files: []
|