anycable-core 1.4.0.rc.2 → 1.4.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: 25b7f4021fa0e158fbd28f5213545756750ab8222ed43c25e770bb4031083f9e
4
- data.tar.gz: a2f5760a88c80ed483d1de2b953558f2ac4f66b71d55a2e1745b52f1ce359f3d
3
+ metadata.gz: 4d56f39fa97e55307e2895bcbdff87e8d9a0b6229ca7baab78ba09e6a384114d
4
+ data.tar.gz: 5134a604805b575f1d5e17e4152ca4aae5d4a5ed83ce96687ca02f4cf8b91c63
5
5
  SHA512:
6
- metadata.gz: f18b8269a526c7cebedcd0146f12a3dc43e1aa3c0af23e3bbe147f632758bfc1b3102e972f6416b1a1b7228cfcc9a9c8f90ba1b22a0d173a8f46ce392777d93f
7
- data.tar.gz: 36a767ee9034deefbecc0696843e65c1c1773ce8e58cf5898a4a4fd4bd44784fbf7cd8a4a7ba5d6bcb84767b1466df465d8c26b2ac634aaa55aa311f2e84734b
6
+ metadata.gz: d3c57283d963f8228bad73ba1c5f77d3f58915ad38e8b4e28678e94503794eac162b418f7fb1b31d0b4a30f7557b10cfda95a2af5a3be5ebb7785ff96aa7e5dc
7
+ data.tar.gz: 5ec1eee3fc7c16f546c4a8d6d315dd4b04efa4da3633dce5c7467189b126b80ccde5c8fa1c6aa1f40fb96434ee28cf67a7b857a63ab12b8360f1e3498b60d5d3
data/CHANGELOG.md CHANGED
@@ -2,12 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
- ## 1.4.0.rc.2 (2023-07-03)
5
+ ## 1.4.0 (2023-07-07)
6
6
 
7
7
  - Add HTTP RPC support. ([@palkan][])
8
8
 
9
- ## 1.4.0.rc.1 (2023-06-01)
10
-
11
9
  - Add `redisx` broadcast adapter. ([@palkan][])
12
10
 
13
11
  A next-gen (Broker-compatible) broadcasting adapter using Redis Streams.
@@ -57,6 +57,7 @@ module AnyCable
57
57
 
58
58
  def raw_broadcast(payload)
59
59
  ensure_thread_is_alive
60
+ AnyCable.logger.info "Enqueue: #{payload}"
60
61
  queue << payload
61
62
  end
62
63
 
@@ -95,6 +96,7 @@ module AnyCable
95
96
  build_http do |http|
96
97
  req = Net::HTTP::Post.new(url, {"Content-Type" => "application/json"}.merge(headers))
97
98
  req.body = payload
99
+ AnyCable.logger.info "Perform: #{payload}"
98
100
  http.request(req)
99
101
  end
100
102
  end
@@ -36,7 +36,7 @@ module AnyCable
36
36
 
37
37
  response = AnyCable.rpc_handler.handle(rpc_command, payload, build_meta(env))
38
38
 
39
- [200, {}, [response.to_json({format_enums_as_integers: true})]]
39
+ [200, {}, [response.to_json({format_enums_as_integers: true, preserve_proto_fieldnames: true})]]
40
40
  rescue JSON::ParserError, ArgumentError => e
41
41
  [422, {}, ["Invalid request body: #{e.message}"]]
42
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AnyCable
4
- VERSION = "1.4.0.rc.2"
4
+ VERSION = "1.4.0"
5
5
  end
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.0.rc.2
4
+ version: 1.4.0
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-04 00:00:00.000000000 Z
11
+ date: 2023-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config
@@ -282,9 +282,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
282
282
  version: 2.7.0
283
283
  required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  requirements:
285
- - - ">"
285
+ - - ">="
286
286
  - !ruby/object:Gem::Version
287
- version: 1.3.1
287
+ version: '0'
288
288
  requirements: []
289
289
  rubygems_version: 3.4.8
290
290
  signing_key: