anycable-rails 1.4.0.rc.1 → 1.4.0.rc.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: 0dee5ce36e194f29ada1c7f701cbb31cbc92916ccd9c2d3c254cd9e852f0a2c9
4
- data.tar.gz: e670c663ca84f4998fec4293cebcad1892cc25a0089c26b36dc03b795f9e7b02
3
+ metadata.gz: eab80b24449df16cc625841275a035b770b9fea7826fe66eae11f9c6c8e038fb
4
+ data.tar.gz: 57934f4ebd4b5b54b644adc53148722b26d39514535cef60f2bab68abfff39ab
5
5
  SHA512:
6
- metadata.gz: c1d642d9e4485be3ff12149d889c2cb0102120ec9b9c29244897653aec43835de0fc78c68cbf1e27664772cb0465ddcd2ded1e6485cc295ae7de2108cd853903
7
- data.tar.gz: 5e05409f30f6fe79c530da2be7689ff38eb778eb0a49721a4ec61e7d629893a281ddd738ab298912ccf61a69c2095c999aaaa06a53a3ed4477414319d94a173d
6
+ metadata.gz: 14a06a81679e958ba7d5a277899c14b5d59d89561ccf19be8a49b8937e30ef76bb4c3e9dec08708b8fd2b1911104e9f87917a6d7643df7b702e6562bf9a55ca1
7
+ data.tar.gz: 79a8daa00df091afa5da621b85423dd34cebeba6d60591240200f1b7eeb0848423387bc62d5a3c8beb04cc7f5a3fca305e3e3928b82f4cce01c61313b658bbef
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.4.0.rc.2 (2023-07-03)
6
+
7
+ - Add HTTP RPC integration. ([@palkan][])
8
+
9
+ Specify `http_rpc_mounth_path` in your `anycable.yml` to enable HTTP RPC.
10
+
5
11
  ## 1.3.7 (2023-02-28)
6
12
 
7
13
  - Fix `anycable` gem dependency constraints.
@@ -9,9 +9,11 @@ require "anyway/rails"
9
9
  # - `access_logs_disabled` (defaults to true) — whether to print Started/Finished logs
10
10
  # - `persistent_session_enabled` (defaults to false) — whether to store session changes in the connection state
11
11
  # - `embedded` (defaults to false) — whether to run RPC server inside a Rails server process
12
+ # - `http_rpc_mount_path` (default to nil) — path to mount HTTP RPC server
12
13
  AnyCable::Config.attr_config(
13
14
  access_logs_disabled: true,
14
15
  persistent_session_enabled: false,
15
- embedded: false
16
+ embedded: false,
17
+ http_rpc_mount_path: nil
16
18
  )
17
19
  AnyCable::Config.ignore_options :access_logs_disabled, :persistent_session_enabled
@@ -65,6 +65,19 @@ module AnyCable
65
65
  end
66
66
  end
67
67
 
68
+ initializer "anycable.routes" do
69
+ next unless AnyCable::Rails.enabled?
70
+
71
+ config.after_initialize do |app|
72
+ config = AnyCable.config
73
+ unless config.http_rpc_mount_path.nil?
74
+ app.routes.prepend do
75
+ mount AnyCable::HTTRPC::Server.new => config.http_rpc_mount_path, :internal => true
76
+ end
77
+ end
78
+ end
79
+ end
80
+
68
81
  # Since Rails 6.1
69
82
  if respond_to?(:server)
70
83
  server do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AnyCable
4
4
  module Rails
5
- VERSION = "1.4.0.rc.1"
5
+ VERSION = "1.4.0.rc.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anycable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.rc.1
4
+ version: 1.4.0.rc.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-06-01 00:00:00.000000000 Z
11
+ date: 2023-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anycable
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.0.rc.1
19
+ version: 1.4.0.rc.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.0.rc.1
26
+ version: 1.4.0.rc.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actioncable
29
29
  requirement: !ruby/object:Gem::Requirement