anycable-rails 1.4.0.rc.1 → 1.4.0.rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/anycable/rails/config.rb +3 -1
- data/lib/anycable/rails/railtie.rb +13 -0
- data/lib/anycable/rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df44b9cecad580d342da48f6de10487c7983c1992a27fb91f22f2436d8f4ba77
|
4
|
+
data.tar.gz: 8451fe4a45778f18cad445b88f919325ce0c9e9da304864c39fb70cdef2b555f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e888b265640322f69d018f6c660f4a7878813f51a96bc26a83c806e7637fbf2e710d30eeeb378989ab59e7702af647a0110e5e6c8977d25ac214fbd9c4430b2
|
7
|
+
data.tar.gz: fbc4264a5de315e1c7206f064af7614503d19cdc084f2114e0b9c4a4433b2bc38b4a8a22dd216e705bfe2c5da0c84e705777d3a1f94b87eb38ec87f4da35b6b1
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 1.4.0.rc.3 (2023-07-04)
|
6
|
+
|
7
|
+
- Relax `anycable` gem dependency constraints.
|
8
|
+
|
9
|
+
## 1.4.0.rc.2 (2023-07-03)
|
10
|
+
|
11
|
+
- Add HTTP RPC integration. ([@palkan][])
|
12
|
+
|
13
|
+
Specify `http_rpc_mounth_path` in your `anycable.yml` to enable HTTP RPC.
|
14
|
+
|
5
15
|
## 1.3.7 (2023-02-28)
|
6
16
|
|
7
17
|
- 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
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anycable-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.0.rc.
|
4
|
+
version: 1.4.0.rc.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- palkan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anycable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.4.0.rc.
|
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.
|
26
|
+
version: 1.4.0.rc.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actioncable
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|