anycable-core 1.1.2 → 1.1.3

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: 113cfc3490f5829915e8e46026b1c7de0672bb8dc5b388a91a1d0c773688aea5
4
- data.tar.gz: 877b8c1672dd37169787dd04bdec610810eab8b27084d8bebf16e3a1b3de98f7
3
+ metadata.gz: 6c53c6eef6f814614854125b047e654fd9d5d95035df76c3a99b9f6b6567dfad
4
+ data.tar.gz: 4ab82cfb62467ae183e9af67b28ae9627b9ee92efb96890b9042fa78bd147536
5
5
  SHA512:
6
- metadata.gz: c6f636686bba507d3b88c83541ba2189637ddb6ef2074d635715d4a533fca4480c37b1131db83a9c6e32ad5e2e166316e7c2747b4aca23a9b2620910bedc0774
7
- data.tar.gz: 5d32ecbb7ed802e7d153f4aef170b7df5eca8bc8b4d609a725e9853dc7a4d6eb183abeb9a0ffe1615c33d5272c7cb415b86bd621aaccd5a4ea22c892df3a12c6
6
+ metadata.gz: 532a44843ed5220efc7d6c9b8c9eefad351888b0f8cbf5645ca15f4b2be202f615102ee25c5017280b7998f09c97d8f6346611a7c44f4d2b6819a2f1863b11b5
7
+ data.tar.gz: 5b99db45b4795158bda35d0c6fd9c505fddf0b1dd0e28c051e1fe9af901bbef858c731a029500c22ec767d0934e71e0b642ee7c3c70315c69cdab71d2ef2e06f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.1.3 (2021-09-29)
6
+
7
+ - Added support for type coercion from Anyway Config 2.2. ([@palkan][])
8
+
5
9
  ## 1.1.2 (2021-09-10) 🤵👰
6
10
 
7
11
  - Improved gRPC server args support. ([@palkan][])
@@ -46,7 +46,9 @@ module AnyCable
46
46
  version_check_enabled: true
47
47
  )
48
48
 
49
- alias_method :version_check_enabled?, :version_check_enabled
49
+ if respond_to?(:coerce_types)
50
+ coerce_types redis_sentinels: {type: nil, array: true}, debug: :boolean, version_check_enabled: :boolean
51
+ end
50
52
 
51
53
  flag_options :debug
52
54
 
data/lib/anycable/grpc.rb CHANGED
@@ -16,7 +16,6 @@ AnyCable.server_builder = ->(config) {
16
16
  ::GRPC.define_singleton_method(:logger) { AnyCable.logger } if config.log_grpc?
17
17
 
18
18
  params = config.to_grpc_params
19
- params[:host] = config.rpc_host
20
19
 
21
- AnyCable::GRPC::Server.new(**params)
20
+ AnyCable::GRPC::Server.new(**params, host: config.rpc_host)
22
21
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AnyCable
4
- VERSION = "1.1.2"
4
+ VERSION = "1.1.3"
5
5
  end
data/sig/anycable/rpc.rbs CHANGED
@@ -19,13 +19,13 @@ module AnyCable
19
19
  attr_accessor url: String
20
20
  attr_accessor headers: protoMap
21
21
 
22
- def initialize: (?url: String, ?headers: protoMap, ?cstate: protoMap, ?istate: protoMap) -> void
22
+ def initialize: (?url: String, ?headers: protoMap, ?cstate: protoMap?, ?istate: protoMap?) -> void
23
23
  end
24
24
 
25
25
  class EnvResponse
26
26
  include _WithEnvState
27
27
 
28
- def initialize: (?cstate: protoMap, ?istate: protoMap) -> void
28
+ def initialize: (?cstate: protoMap?, ?istate: protoMap?) -> void
29
29
  end
30
30
 
31
31
  interface _ProtoMessage
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.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-10 00:00:00.000000000 Z
11
+ date: 2021-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubygems_version: 3.2.15
234
+ rubygems_version: 3.2.22
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: AnyCable core RPC implementation