anycable-core 1.4.1 → 1.4.2

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: fead71a088b7431fb65a3cfdd16ebee3760700496e9cc0d440f40b118952ac6a
4
- data.tar.gz: 26c7f7d1fd4fa3aefbf8e43358b8eb959e3aa707ec36d2d7775f657748e1afc5
3
+ metadata.gz: 391832d2af2280297419d7f62853313d8ac005e7ca826654d6669135748cb8e8
4
+ data.tar.gz: 229e4b51b7eaed689f0394445e86ba96cb08889391ae343b810439a727e30c0f
5
5
  SHA512:
6
- metadata.gz: 887068bded37ce33ebdb0a5ae2ffce3afbb545053a544db83ad581008ac0ec603a45019df8a87281030b790db90f2aae3c812b3434b3c782ac69f29d04c535bd
7
- data.tar.gz: c2e49c2fc7becb3c9b9076fd57f988abec053bd419e56dd0769d4e086704a66fd80dab0ffa485a9221053b9742a55de38c90b1463d1d5264b385c7b2f132d33d
6
+ metadata.gz: c951c3a248b67b9d481865d4a7c1e3d75f76ca963a8f314c8a4889fe9ab1e28eb889ecd48094c96802a20c9196f0932051167c1bd32b54ebf7d7d95dce71620b
7
+ data.tar.gz: 630c505792b0f374dc6acf7ffa861fcde660687ed7ac8894a0275e9f8d707133dbb9c29c24ed7b0e1dd8650b428a421243d5d1179361421996c850bdc50d0128
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.4.2 (2023-09-05)
6
+
7
+ - Fix parsing sentinel configuration from YAML in Rails. ([@palkan][])
8
+
5
9
  ## 1.4.1 (2023-07-24)
6
10
 
7
11
  - Add TLS support for gRPC server. ([@Envek][])
@@ -171,7 +171,7 @@ module AnyCable
171
171
  private
172
172
 
173
173
  def parse_sentinel(sentinel)
174
- return sentinel.transform_keys!(&:to_sym) if sentinel.is_a?(Hash)
174
+ return sentinel.to_hash.transform_keys(&:to_sym) if sentinel.respond_to?(:to_hash)
175
175
 
176
176
  uri = URI.parse("redis://#{sentinel}")
177
177
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  require "anycable/grpc/handler"
4
4
 
5
- require_relative "./health_pb"
6
- require_relative "./health_services_pb"
7
- require_relative "./health_checker"
5
+ require_relative "health_pb"
6
+ require_relative "health_services_pb"
7
+ require_relative "health_checker"
8
8
 
9
9
  module AnyCable
10
10
  module GRPC
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AnyCable
4
- VERSION = "1.4.1"
4
+ VERSION = "1.4.2"
5
5
  end
@@ -68,7 +68,7 @@ module AnyCable
68
68
 
69
69
  private
70
70
 
71
- def parse_sentinel: ((String | Hash[untyped, untyped]) sentinel) -> Hash[Symbol, untyped]
71
+ def parse_sentinel: (untyped sentinel) -> Hash[Symbol, untyped]
72
72
  def load_presets: () -> void
73
73
  def detect_presets: () -> Array[String]
74
74
  def write_preset: (Symbol, untyped, preset: String) -> void
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anycable-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2023-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config