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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3de94291c905860137fbeb2be431f470af5929eddd3df869b602944dbe3253ea
4
- data.tar.gz: 282cd45242df875e8c664a9434bb7364592a5062e4d3d4980972d9a314931996
3
+ metadata.gz: 15454c9930260897f5d2b7415a5fffcce9eea3430b4012ee0abea150a13b4ccd
4
+ data.tar.gz: 7f7bc1675756c4c6ca2ebf0ed7c154ced739bffc039486cbe7b6d61634677c18
5
5
  SHA512:
6
- metadata.gz: d06b793680ecc5064ec5b4978b83a1a18903f9647b733b3e19ff32979044ab129130019780fafb7f09703f1d7e16ecd5983bf5fa0bd08b1906b4af6597f4c832
7
- data.tar.gz: 7e37790c465cbbf80e1d02d1e71fc9a5e8276fb21d6fb894ae19f6eef663910e4df956293dc218b8de91d940d2586e65248f4f6aababd4d661fb4fdad10d37ce
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 2.7-3.2.
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 = '>= 2.7', '< 3.3'
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',
@@ -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 = (::Gruf.services || []) unless services.any?
185
+ services = ::Gruf.services || [] unless services.any?
186
186
 
187
187
  services
188
188
  end
@@ -121,7 +121,7 @@ module Gruf
121
121
  }.freeze
122
122
  }.freeze
123
123
 
124
- attr_accessor(* VALID_CONFIG_KEYS.keys)
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
@@ -88,7 +88,7 @@ module Gruf
88
88
  @field_errors = []
89
89
  @metadata = {}
90
90
  args.each do |k, v|
91
- send("#{k}=", v) if respond_to?(k)
91
+ send(:"#{k}=", v) if respond_to?(k)
92
92
  end
93
93
  end
94
94
 
@@ -108,7 +108,7 @@ module Gruf
108
108
  # @return [::Gruf::Logger]
109
109
  #
110
110
  def logger
111
- @logger ||= (options.fetch(:logger, nil) || Gruf.logger)
111
+ @logger ||= options.fetch(:logger, nil) || Gruf.logger
112
112
  end
113
113
 
114
114
  ##
data/lib/gruf/server.rb CHANGED
@@ -192,7 +192,7 @@ module Gruf
192
192
  # @return [Array<Class>]
193
193
  #
194
194
  def services
195
- @services ||= (::Gruf.services || (options.fetch(:services, nil) || []))
195
+ @services ||= ::Gruf.services || (options.fetch(:services, nil) || [])
196
196
  end
197
197
 
198
198
  ##
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.18.0'
19
+ VERSION = '2.19.0'
20
20
  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: 2.18.0
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: 2023-11-29 00:00:00.000000000 Z
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: '2.7'
217
+ version: '3.0'
218
218
  - - "<"
219
219
  - !ruby/object:Gem::Version
220
- version: '3.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.4.10
227
+ rubygems_version: 3.5.3
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: gRPC Ruby Framework