anycable-rails 1.3.4 → 1.3.5
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 +4 -0
- data/MIT-LICENSE +1 -1
- data/lib/action_cable/subscription_adapter/any_cable.rb +16 -0
- data/lib/anycable/rails/version.rb +1 -1
- data/lib/anycable/rails.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75584d70f4f8d966a74cfee8d0741bc5072aabcbab60a7fecc2c4532d7a9719c
|
4
|
+
data.tar.gz: a4efe6de0db26e8f91a896350a142aa483d9305798fafc3e758b29c522e7cf3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e79d37168a1d299d700cf86444e74e424a360b6d22fe6eb682ef0cba4ea648526a4ea603a5a032a709ed5308856df2d7cb8dedd634668afde239673ef89dd7
|
7
|
+
data.tar.gz: aabcd20cbc91c4733d4978c9c99cf5d0574775badf9ef67fffea8a4a9b825c3b6e6b76c3581a4a75a3058f7ce3fb762a2b69dea4a8b2be935f0b75ea7e09fa0d
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE
CHANGED
@@ -7,6 +7,14 @@ module ActionCable
|
|
7
7
|
# AnyCable subscription adapter delegates broadcasts
|
8
8
|
# to AnyCable
|
9
9
|
class AnyCable < Base
|
10
|
+
ACTION_CABLE_SERVER_ERROR_MESSAGE = <<~STR
|
11
|
+
Looks like you're trying to connect to Rails Action Cable server, not an AnyCable one.
|
12
|
+
|
13
|
+
Please make sure your client is configured to connect to AnyCable server.
|
14
|
+
|
15
|
+
See https://docs.anycable.io/troubleshooting
|
16
|
+
STR
|
17
|
+
|
10
18
|
def initialize(*)
|
11
19
|
end
|
12
20
|
|
@@ -14,6 +22,14 @@ module ActionCable
|
|
14
22
|
::AnyCable.broadcast(channel, payload)
|
15
23
|
end
|
16
24
|
|
25
|
+
def subscribe(*)
|
26
|
+
raise NotImplementedError, ACTION_CABLE_SERVER_ERROR_MESSAGE
|
27
|
+
end
|
28
|
+
|
29
|
+
def unsubscribe(*)
|
30
|
+
raise NotImplementedError, ACTION_CABLE_SERVER_ERROR_MESSAGE
|
31
|
+
end
|
32
|
+
|
17
33
|
def shutdown
|
18
34
|
# nothing to do
|
19
35
|
# we only need this method for development,
|
data/lib/anycable/rails.rb
CHANGED
@@ -68,8 +68,8 @@ end
|
|
68
68
|
if defined?(::Rails) && ::Rails.application && ::Rails.application.initialized?
|
69
69
|
puts("\n**************************************************")
|
70
70
|
puts(
|
71
|
-
"⛔️ WARNING: AnyCable loaded after application initialization. Might not work correctly.\n"\
|
72
|
-
"Please, make sure to remove `require: false` in your Gemfile or "\
|
71
|
+
"⛔️ WARNING: AnyCable loaded after application initialization. Might not work correctly.\n" \
|
72
|
+
"Please, make sure to remove `require: false` in your Gemfile or " \
|
73
73
|
"require manually in `environment.rb` before `Rails.application.initialize!`"
|
74
74
|
)
|
75
75
|
puts("**************************************************\n\n")
|
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.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- palkan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anycable
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
|
-
rubygems_version: 3.3.
|
208
|
+
rubygems_version: 3.3.11
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Rails adapter for AnyCable
|