anycable-rails 1.3.0 → 1.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37be6474db2d3efc3493ec6fdf5b3826fbdfd84f9c4bc5f4574f1e0497457ec1
4
- data.tar.gz: bafe87b642e1aaf15c5b09650ed271081d0ba53738507077ed1075b2de5e0ef2
3
+ metadata.gz: e0b6b1675986dcb501b40474c041eb7605d10c20a0d3cad24137e212858fdd37
4
+ data.tar.gz: 9550331c49b15c2728dbe67a0a4d2238b2f02c7a43fe3a66e519eee87a5277f7
5
5
  SHA512:
6
- metadata.gz: b656f5a17009a19aacef7c1aac587299b5bdca24079e3e6a1ce2c9e652e26a7d65f08e34f0022e1ed4a9e42d8783af9d7d9e85a9059577ec224a523b7c12378e
7
- data.tar.gz: 383c128d5404a7ed42bba43a426cb68bd10be23607557bce7a8ef46cd1ea1cf2777c918e44a4c71f307a0f973ff863aef36f547290ce821d65251e7f9a62a3fd
6
+ metadata.gz: 93f254e60bfc30049050757a9603285a07b8ceefcb3a878670df220dc4b375ca6eed1ac7beb0dd758f8ff67ad879f60045ac273281e0a6a4dfa0d7bd6bdd573f
7
+ data.tar.gz: 95cb2de61f41a461818abdd49d453b7f678a47a6200d2f9caca271addb563e43fd74928bcf538ee1e5d06f40c491e99e236d0c88e8dd75223ddb2d46d502c494
data/CHANGELOG.md CHANGED
@@ -2,13 +2,19 @@
2
2
 
3
3
  ## master
4
4
 
5
- ## 1.3.0 (2021-02-21)
5
+ ## 1.3.1 (202-02-28)
6
+
7
+ - Fix Action Cable Channel patch to not change methods signatures. ([@palkan][])
8
+
9
+ Otherwise it could lead to conflicts with other patches.
10
+
11
+ ## 1.3.0 (2022-02-21)
6
12
 
7
13
  - Introduce `AnyCable::Rails.extend_adapter!` to make any pubsub adapter AnyCable-compatible. ([@palkan][])
8
14
 
9
15
  - Refactored Action Cable patching to preserve original functionality and avoid monkey-patching collisions. ([@palkan][])
10
16
 
11
- ## 1.2.1 (2021-01-31)
17
+ ## 1.2.1 (2022-01-31)
12
18
 
13
19
  - Add a temporary fix to be compatible with `sentry-rails`. ([@palkan][])
14
20
 
@@ -3,13 +3,15 @@
3
3
  require "action_cable/channel"
4
4
 
5
5
  ActionCable::Channel::Base.prepend(Module.new do
6
- def subscribe_to_channel(force: false)
7
- return if anycabled? && !force
8
- super()
6
+ def subscribe_to_channel
7
+ super unless anycabled? && !@__anycable_subscribing__
9
8
  end
10
9
 
11
10
  def handle_subscribe
12
- subscribe_to_channel(force: true)
11
+ @__anycable_subscribing__ = true
12
+ subscribe_to_channel
13
+ ensure
14
+ @__anycable_subscribing__ = false
13
15
  end
14
16
 
15
17
  def start_periodic_timers
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AnyCable
4
4
  module Rails
5
- VERSION = "1.3.0"
5
+ VERSION = "1.3.1"
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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anycable