gruf 2.18.0 → 2.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/gruf.gemspec +2 -2
- data/lib/gruf/cli/executor.rb +1 -1
- data/lib/gruf/configuration.rb +2 -2
- data/lib/gruf/error.rb +1 -1
- data/lib/gruf/interceptors/instrumentation/request_logging/interceptor.rb +1 -1
- data/lib/gruf/server.rb +1 -1
- data/lib/gruf/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: 15454c9930260897f5d2b7415a5fffcce9eea3430b4012ee0abea150a13b4ccd
|
4
|
+
data.tar.gz: 7f7bc1675756c4c6ca2ebf0ed7c154ced739bffc039486cbe7b6d61634677c18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '097f461c4837ffe3a0d971050771a052ebb258566861048329c001e935a05d4a7391fbb4de09b31443c3372ff32bae8773939884719f77d1c5c7b898a1c0fc44'
|
7
|
+
data.tar.gz: 7aa0ddb128a2aabe1b992735a98e99ec513be58420cd8ccac979f6195d34ce371b6f8af6ef873307daec2d4949b7cddcbddc70e7a38133624a937206c73f71ae
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@ Changelog for the gruf gem. This includes internal history before the gem was ma
|
|
2
2
|
|
3
3
|
### Pending release
|
4
4
|
|
5
|
+
### 2.19.0
|
6
|
+
|
7
|
+
* [#197] Add support for Ruby 3.3
|
8
|
+
* Drop support for Ruby 2.x
|
9
|
+
|
5
10
|
### 2.18.0
|
6
11
|
|
7
12
|
* Add `GRUF_USE_DEFAULT_INTERCEPTORS` ENV to dynamically enable/disable default interceptors
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ up fast and efficiently at scale. Some of its features include:
|
|
17
17
|
still preserving gRPC BadStatus codes
|
18
18
|
* Server and client execution timings in responses
|
19
19
|
|
20
|
-
gruf currently has active support for gRPC 1.10.x+. gruf is compatible and tested with Ruby
|
20
|
+
gruf currently has active support for gRPC 1.10.x+. gruf is compatible and tested with Ruby 3.0-3.3.
|
21
21
|
gruf is also not [Rails](https://github.com/rails/rails)-specific, and can be used in any Ruby framework
|
22
22
|
(such as [Grape](https://github.com/ruby-grape/grape) or [dry-rb](https://dry-rb.org/), for instance).
|
23
23
|
|
data/gruf.gemspec
CHANGED
@@ -32,11 +32,11 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables << 'gruf'
|
33
33
|
spec.require_paths = ['lib']
|
34
34
|
|
35
|
-
spec.required_ruby_version = '>=
|
35
|
+
spec.required_ruby_version = '>= 3.0', '< 3.4'
|
36
36
|
|
37
37
|
spec.metadata = {
|
38
38
|
'bug_tracker_uri' => 'https://github.com/bigcommerce/gruf/issues',
|
39
|
-
'changelog_uri' => 'https://github.com/bigcommerce/gruf/CHANGELOG.md',
|
39
|
+
'changelog_uri' => 'https://github.com/bigcommerce/gruf/blob/main/CHANGELOG.md',
|
40
40
|
'homepage_uri' => 'https://github.com/bigcommerce/gruf',
|
41
41
|
'rubygems_mfa_required' => 'true',
|
42
42
|
'source_code_uri' => 'https://github.com/bigcommerce/gruf',
|
data/lib/gruf/cli/executor.rb
CHANGED
@@ -182,7 +182,7 @@ module Gruf
|
|
182
182
|
# next check CLI arguments
|
183
183
|
services = @options[:services].to_s.split(',').map(&:strip).uniq
|
184
184
|
# finally, if none, use global gruf autoloaded services
|
185
|
-
services =
|
185
|
+
services = ::Gruf.services || [] unless services.any?
|
186
186
|
|
187
187
|
services
|
188
188
|
end
|
data/lib/gruf/configuration.rb
CHANGED
@@ -121,7 +121,7 @@ module Gruf
|
|
121
121
|
}.freeze
|
122
122
|
}.freeze
|
123
123
|
|
124
|
-
attr_accessor(*
|
124
|
+
attr_accessor(*VALID_CONFIG_KEYS.keys)
|
125
125
|
|
126
126
|
##
|
127
127
|
# Whenever this is extended into a class, setup the defaults
|
@@ -164,7 +164,7 @@ module Gruf
|
|
164
164
|
#
|
165
165
|
def reset
|
166
166
|
VALID_CONFIG_KEYS.each do |k, v|
|
167
|
-
send("#{k}=", v)
|
167
|
+
send(:"#{k}=", v)
|
168
168
|
end
|
169
169
|
self.server_binding_url = "#{::ENV.fetch('GRPC_SERVER_HOST',
|
170
170
|
'0.0.0.0')}:#{::ENV.fetch('GRPC_SERVER_PORT', 9_001)}"
|
data/lib/gruf/error.rb
CHANGED
data/lib/gruf/server.rb
CHANGED
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: 2.
|
4
|
+
version: 2.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun McCormick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -201,7 +201,7 @@ licenses:
|
|
201
201
|
- MIT
|
202
202
|
metadata:
|
203
203
|
bug_tracker_uri: https://github.com/bigcommerce/gruf/issues
|
204
|
-
changelog_uri: https://github.com/bigcommerce/gruf/CHANGELOG.md
|
204
|
+
changelog_uri: https://github.com/bigcommerce/gruf/blob/main/CHANGELOG.md
|
205
205
|
homepage_uri: https://github.com/bigcommerce/gruf
|
206
206
|
rubygems_mfa_required: 'true'
|
207
207
|
source_code_uri: https://github.com/bigcommerce/gruf
|
@@ -214,17 +214,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
214
|
requirements:
|
215
215
|
- - ">="
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version: '
|
217
|
+
version: '3.0'
|
218
218
|
- - "<"
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version: '3.
|
220
|
+
version: '3.4'
|
221
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
222
|
requirements:
|
223
223
|
- - ">="
|
224
224
|
- !ruby/object:Gem::Version
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
227
|
+
rubygems_version: 3.5.3
|
228
228
|
signing_key:
|
229
229
|
specification_version: 4
|
230
230
|
summary: gRPC Ruby Framework
|