solid_cable 0.2.0 → 0.2.2

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: fdc881f5bdbc42849563b7a04165bd1681810bd938fa9d7edb293c0d59ecc098
4
- data.tar.gz: 560d1ad6d1583e360617157d2cc6f87f3b611dd9f408bad200801e20d773513a
3
+ metadata.gz: 0cc364cff3708e09a42f27d3771c1f3f8393d14608e643f190ddc4edc1411d71
4
+ data.tar.gz: '0419dea96ac486d8c4c294d287ff53e23a87b534455af375c625c9473ff3e5c7'
5
5
  SHA512:
6
- metadata.gz: 2059991512cf183a42448deabbd5a48946b3ff6d7412d405ef92c1fea4dad7b5816539efdd671c6c0fd475b43dc1c6295fc920b87e042663454914d49bb7c18c
7
- data.tar.gz: a8a895d63fca959c60ff5c63ab349c5c7c7414646dd95a88167b2c7d7a92f228a180ecb71f35b2ed84208f80242f6417cf185e4a6ba72e6e5b44a223de6b39bc
6
+ metadata.gz: 81fe63e8fcf0cdd2b0ecbae7421a11a6ef39c881f1f43ca1d56677d9ebccbf5410e753ff8e6f96849244391022629c8df01fd946f7d991ca7dd1e056e4d2702a
7
+ data.tar.gz: 7a08ffa497dd41d93977c423c3b60749816ff03e8ce670933e54d1e01524cdf690e7effa5ce039704887bbdcd0b49edb1e57123e4f097b5a5d529f44ed3f14b3
@@ -3,13 +3,13 @@
3
3
  module SolidCable
4
4
  class Message < SolidCable::Record
5
5
  scope :prunable, lambda {
6
- where(created_at: ..SolidCable.keep_messages_around_for.ago)
6
+ where(created_at: ..::SolidCable.keep_messages_around_for.ago)
7
7
  }
8
8
  scope :broadcastable, lambda { |channels, last_id|
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
@@ -48,7 +48,7 @@ module ActionCable
48
48
  while running?
49
49
  with_polling_volume { broadcast_messages }
50
50
 
51
- sleep SolidCable.polling_interval
51
+ sleep ::SolidCable.polling_interval
52
52
  end
53
53
  end
54
54
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidCable
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
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.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza