solid_cable 1.0.5 → 1.0.6

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: 368a0fb2fc95a48908c5ac7c5e0024efc151bd5408d81a16e659cdd1d8be8c27
4
- data.tar.gz: de55b31627d6cd90aeb38b50b37abe7939e30d1a287c4d896a2c132ded97224b
3
+ metadata.gz: 6a3ffe8d513e578210ffa1586b9f3fa921919ab9ff1d4b2a9cbf802ea550a37c
4
+ data.tar.gz: 9dab848172317e0046d8beced7fe6f3e889b1190c91e5e9be10b2f6b964e6780
5
5
  SHA512:
6
- metadata.gz: 57ef9951de08928ef6a86414d930b67ce0b8ff13bb052fe3be131f5f3ef5593001552e670192de3e98950a2cfc2e24a14ccc959a438adb8d87bcc3ec422e8887
7
- data.tar.gz: 0bf82c49324bb9d1f4e0416a00c267f6463c87fccc08b51837c876d0ed7327cee0e327b07b08fe75fc4e63ebadfa35b4b183522aaa624f42510bdad3278ed142
6
+ metadata.gz: 07f016353535c742c511d63dfc600d78e381963567b89ece4ba194b357e0c89bcc2633b40e1d8b7cd6c062ff27d15e316a3b8c99ed36f04cea6163e33d034dde
7
+ data.tar.gz: e6affe9d7b555a0892aae14092368d46392f7fcc6f563c7bce91353e3bae046a444dbc28148bc10a2ffbb08d0872aaf2e401a5bf5151ac9fa2d23c51e3b72df9
@@ -13,6 +13,12 @@ class SolidCable::InstallGenerator < Rails::Generators::Base
13
13
  new_production_cable_config)
14
14
  end
15
15
 
16
+ def configure_development_cable
17
+ gsub_file("config/cable.yml",
18
+ /development:\n\s*adapter: redis\n url: .*\n/,
19
+ new_development_cable_config)
20
+ end
21
+
16
22
  private
17
23
 
18
24
  def new_production_cable_config
@@ -22,8 +28,23 @@ class SolidCable::InstallGenerator < Rails::Generators::Base
22
28
  connects_to:
23
29
  database:
24
30
  writing: cable
31
+ reading: cable
25
32
  polling_interval: 0.1.seconds
26
33
  keep_messages_around_for: 1.day
27
34
  YAML
28
35
  end
36
+
37
+ def new_development_cable_config
38
+ <<~YAML
39
+ development:
40
+ adapter: solid_cable
41
+ connects_to:
42
+ database:
43
+ writing: cable
44
+ reading: cable
45
+ polling_interval: 1.second
46
+ keep_messages_around_for: 1.day
47
+ silence_polling: true
48
+ YAML
49
+ end
29
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidCable
4
- VERSION = "1.0.5"
4
+ VERSION = "1.0.6"
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: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza