customer_service_im 0.14.0 → 0.15.0

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: 3fabb9e1f4f4302eb3d1a50a44be2fb9aef4eff4d8ddc3868e7599d3d57192d4
4
- data.tar.gz: cc468ad78fb41e22a185372ea22c88d1193c96dabde202b6e1613c0b7708910f
3
+ metadata.gz: 361eef1d405d594d4623b8f5918e8832f5c08bae60a78b0383cdf1d066b02a21
4
+ data.tar.gz: 5622634866a2d0c12b12c710a37d88a4bf30a4e5660836d3d3baad341ef97f6e
5
5
  SHA512:
6
- metadata.gz: ab10c8a0820d38e14a8b6a0fd543bcbca431cb2a44b6bcc54a12debb13cc9e95d1f9fb688ed867672804deae6a927b6af322bdf7ae45331320e048e989c2871c
7
- data.tar.gz: 4ee88b2022a1216cca8a3280cd0e5b82530ab4d262f85014a16792e8d465f07d019c9959112f39a4461a4ae72f69143a30a3ab66cc56160bcc0978ea2d8e7169
6
+ metadata.gz: de3b926211144172238515e1d96775e4b75f6017e1ec02d91dca5c18d9c6ebb39a979c8935d13299396da4714cc30740461683f2d38e785579d03d01dfb11df6
7
+ data.tar.gz: 26dc6a611ade6678afcf6dbd536d4d0112a4dfc2b4d8661753260c59a9cdc3cb181248bd27ef1bbecdf7d1dfae874ef5a16f16485cc6b6994f2b635426a88d41
data/README.md CHANGED
@@ -23,7 +23,16 @@ rails g customer_service_im:install
23
23
 
24
24
  4. 修改`config/initializers/customer_service_im.rb`里边的配置信息,小程序配置和腾讯语音识别配置
25
25
 
26
- 5. 安装 Engine 迁移
26
+ 5. 修改`config/cable.yml`中的配置,全部的 adapter 都改为 redis
27
+
28
+ ```yml
29
+ development:
30
+ adapter: redis
31
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
32
+
33
+ ```
34
+
35
+ 7. 安装 Engine 迁移
27
36
  ```bash
28
37
  rails customer_service_im:install:migrations
29
38
  ```
@@ -69,6 +78,12 @@ end
69
78
  $ rails s -b 0.0.0.0
70
79
  ```
71
80
 
81
+ ## 部署注意事项
82
+
83
+ - 反向代理的配置
84
+ - redis 的配置
85
+ - `config/cable.yml`的配置
86
+
72
87
  ## Contributing
73
88
  Contribution directions go here.
74
89
 
@@ -4,6 +4,8 @@ module CustomerServiceIm
4
4
  belongs_to :user, polymorphic: true
5
5
  belongs_to :staff, optional: true
6
6
 
7
+ after_create :broadcast_to_channel
8
+
7
9
  # validates_presence_of :title
8
10
 
9
11
  def last_message
@@ -1,3 +1,3 @@
1
1
  module CustomerServiceIm
2
- VERSION = '0.14.0'
2
+ VERSION = '0.15.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: customer_service_im
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2021-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails