anycable-rails 1.3.4 → 1.3.5

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: 6200d2863868ed23ac3bcc19478e4310bc4097bfff5884eb5c427ef9c41ec6be
4
- data.tar.gz: a33f42cd90e362301dc90f5957b77787cec29e28c3aeee9782d3d81c582301f4
3
+ metadata.gz: 75584d70f4f8d966a74cfee8d0741bc5072aabcbab60a7fecc2c4532d7a9719c
4
+ data.tar.gz: a4efe6de0db26e8f91a896350a142aa483d9305798fafc3e758b29c522e7cf3a
5
5
  SHA512:
6
- metadata.gz: 2f89b8b32dca31e58df2ad57f926b6ef7f2619dd5286d630e393cd7e306fd247cba46e4aa1ce76304bb75486ba52127b0d819dae10093e0a835a5e11c9b02ece
7
- data.tar.gz: 5fc0c51cb4eb86c5c8bbbbae0c896af8440ec765370ff0c4a69aaa146e3d2465f1b28993f8f213cd7f8d956d684251aecb7eeda8951db14b0dbbc4c035b45507
6
+ metadata.gz: 64e79d37168a1d299d700cf86444e74e424a360b6d22fe6eb682ef0cba4ea648526a4ea603a5a032a709ed5308856df2d7cb8dedd634668afde239673ef89dd7
7
+ data.tar.gz: aabcd20cbc91c4733d4978c9c99cf5d0574775badf9ef67fffea8a4a9b825c3b6e6b76c3581a4a75a3058f7ce3fb762a2b69dea4a8b2be935f0b75ea7e09fa0d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.3.5 (2023-01-04)
6
+
7
+ - Make misconfiguration error more informative. ([@palkan][])
8
+
5
9
  ## 1.3.4 (2022-06-28)
6
10
 
7
11
  - Add support and backport for Connection command callbacks. ([@palkan][])
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2017-2022 palkan
1
+ Copyright 2017-2023 palkan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AnyCable
4
4
  module Rails
5
- VERSION = "1.3.4"
5
+ VERSION = "1.3.5"
6
6
  end
7
7
  end
@@ -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
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: 2022-06-28 00:00:00.000000000 Z
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.7
208
+ rubygems_version: 3.3.11
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Rails adapter for AnyCable