solid_cable 0.2.1 → 0.2.3

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: 6f21d57b5c3c839b30ef880bb84c02fe5e375d3674d282a1b8541e1d86b131a4
4
- data.tar.gz: 2b58076180cb59dcfd61f5c39620d14399ce0cbf14c681038488e404ed3f81a6
3
+ metadata.gz: d8096f76e264285fd4961d3acc29b899bf8a6a9d253a9d8229a767c224b2ddc9
4
+ data.tar.gz: f19299d3a1b31e59178da3af4f0a114e8c73bfc542ecb09a5cce15ce48c17563
5
5
  SHA512:
6
- metadata.gz: 2fe8d98cd77a1db28afa1e3d2c4a917f8eb1741ea56969974fb9944ba43f9a46f20e49204b40315fccb7aa8534cf143c2cd225d93c85ff5b1454690f6e3eb2b9
7
- data.tar.gz: c254587b2e46bac28c16cfe0dd7c25631fff6ec4930c38be4e4dda63acb70a74b5a194b9a9ed3060361b56eac6f07f4462672ae74fbc69bda024b6ebec4dae51
6
+ metadata.gz: 2b298fc20cfda3365df1e02e8eea12fd23e2b7c831075353c4b75a179a83777caba6f1516f10562b993ffe2a7a86d8d95d5f92952de8b2c690428b0448fc7d27
7
+ data.tar.gz: 066cbb2f2a661c58769ef760519cac757323d0fd6f329ca07caa107cce81a741d03b55e4adc8484307580edcd5b8046d42fee8706017da102bfd36c428de8918
@@ -9,7 +9,7 @@ module SolidCable
9
9
  where(channel: channels).where(id: (last_id + 1)..).order(:id)
10
10
  }
11
11
 
12
- def prune
12
+ def self.prune
13
13
  prunable.delete_all
14
14
  end
15
15
  end
@@ -54,7 +54,6 @@ module ActionCable
54
54
 
55
55
  def shutdown
56
56
  self.running = false
57
- ::SolidCable::Message.prune
58
57
  Thread.pass while thread.alive?
59
58
  end
60
59
 
@@ -65,6 +64,8 @@ module ActionCable
65
64
 
66
65
  def remove_channel(channel)
67
66
  channels.delete(channel)
67
+
68
+ ::SolidCable::Message.prune
68
69
  end
69
70
 
70
71
  def invoke_callback(*)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidCable
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_cable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza