actioncable 5.2.7 → 6.0.0.beta1
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 +4 -4
- data/CHANGELOG.md +58 -97
- data/MIT-LICENSE +1 -1
- data/README.md +1 -544
- data/app/assets/javascripts/action_cable.js +492 -0
- data/lib/action_cable/channel/base.rb +5 -1
- data/lib/action_cable/channel/test_case.rb +312 -0
- data/lib/action_cable/channel.rb +1 -0
- data/lib/action_cable/connection/authorization.rb +1 -1
- data/lib/action_cable/connection/base.rb +9 -7
- data/lib/action_cable/connection/message_buffer.rb +1 -4
- data/lib/action_cable/connection/stream.rb +4 -2
- data/lib/action_cable/connection/subscriptions.rb +1 -5
- data/lib/action_cable/connection/test_case.rb +236 -0
- data/lib/action_cable/connection/web_socket.rb +1 -3
- data/lib/action_cable/connection.rb +1 -0
- data/lib/action_cable/gem_version.rb +4 -4
- data/lib/action_cable/server/base.rb +3 -1
- data/lib/action_cable/server/worker.rb +5 -7
- data/lib/action_cable/subscription_adapter/postgresql.rb +24 -8
- data/lib/action_cable/subscription_adapter/redis.rb +2 -1
- data/lib/action_cable/subscription_adapter/test.rb +40 -0
- data/lib/action_cable/subscription_adapter.rb +1 -0
- data/lib/action_cable/test_case.rb +11 -0
- data/lib/action_cable/test_helper.rb +133 -0
- data/lib/action_cable.rb +15 -7
- data/lib/rails/generators/channel/USAGE +4 -5
- data/lib/rails/generators/channel/channel_generator.rb +6 -3
- data/lib/rails/generators/channel/templates/{assets → javascript}/channel.js.tt +3 -1
- data/lib/rails/generators/channel/templates/{assets/cable.js.tt → javascript/consumer.js.tt} +2 -9
- data/lib/rails/generators/channel/templates/javascript/index.js.tt +5 -0
- data/lib/rails/generators/test_unit/channel_generator.rb +20 -0
- data/lib/rails/generators/test_unit/templates/channel_test.rb.tt +8 -0
- metadata +21 -14
- data/lib/assets/compiled/action_cable.js +0 -601
- data/lib/rails/generators/channel/templates/assets/channel.coffee.tt +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20a6bcfcf415a9ea43c5d5c373f866bbef09a40408f9295e0977def92827b56f
|
4
|
+
data.tar.gz: ab61cfc6789eeba117d09b5472adb861d8afaade19486e6bd4b2f34917d13596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc74fe87659a01fbbb841a36de8bd2027d2c3ec73ea92f23706ae07bc8648e5c92cb1bd08bb4f6e00cbbab2c201db183badb1cecae8d7b4839232116fc43e24
|
7
|
+
data.tar.gz: b09eb6b5430aa9fe60eb41aa8a9e21ad59a49bf281f14cbcf562200ae09e9d2950cc0eb3ebc2d6019f506325cab1c7ff58ea735d4672643ca2de76fd99b86524
|
data/CHANGELOG.md
CHANGED
@@ -1,119 +1,80 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 6.0.0.beta1 (January 18, 2019) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Merge [`action-cable-testing`](https://github.com/palkan/action-cable-testing) to Rails.
|
4
4
|
|
5
|
+
*Vladimir Dementyev*
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
* No changes.
|
9
|
-
|
10
|
-
|
11
|
-
## Rails 5.2.6.2 (February 11, 2022) ##
|
12
|
-
|
13
|
-
* No changes.
|
14
|
-
|
15
|
-
|
16
|
-
## Rails 5.2.6.1 (February 11, 2022) ##
|
17
|
-
|
18
|
-
* No changes.
|
19
|
-
|
20
|
-
|
21
|
-
## Rails 5.2.6 (May 05, 2021) ##
|
22
|
-
|
23
|
-
* No changes.
|
24
|
-
|
25
|
-
|
26
|
-
## Rails 5.2.5 (March 26, 2021) ##
|
27
|
-
|
28
|
-
* No changes.
|
29
|
-
|
30
|
-
|
31
|
-
## Rails 5.2.4.6 (May 05, 2021) ##
|
32
|
-
|
33
|
-
* No changes.
|
34
|
-
|
35
|
-
|
36
|
-
## Rails 5.2.4.5 (February 10, 2021) ##
|
37
|
-
|
38
|
-
* No changes.
|
39
|
-
|
40
|
-
|
41
|
-
## Rails 5.2.4.4 (September 09, 2020) ##
|
42
|
-
|
43
|
-
* No changes.
|
44
|
-
|
45
|
-
|
46
|
-
## Rails 5.2.4.3 (May 18, 2020) ##
|
47
|
-
|
48
|
-
* No changes.
|
49
|
-
|
50
|
-
|
51
|
-
## Rails 5.2.4.2 (March 19, 2020) ##
|
52
|
-
|
53
|
-
* No changes.
|
54
|
-
|
55
|
-
|
56
|
-
## Rails 5.2.4.1 (December 18, 2019) ##
|
57
|
-
|
58
|
-
* No changes.
|
59
|
-
|
60
|
-
|
61
|
-
## Rails 5.2.4 (November 27, 2019) ##
|
62
|
-
|
63
|
-
* No changes.
|
64
|
-
|
65
|
-
|
66
|
-
## Rails 5.2.3 (March 27, 2019) ##
|
67
|
-
|
68
|
-
* No changes.
|
69
|
-
|
70
|
-
|
71
|
-
## Rails 5.2.2.1 (March 11, 2019) ##
|
72
|
-
|
73
|
-
* No changes.
|
74
|
-
|
75
|
-
|
76
|
-
## Rails 5.2.2 (December 04, 2018) ##
|
77
|
-
|
78
|
-
* No changes.
|
79
|
-
|
7
|
+
* The JavaScript WebSocket client will no longer try to reconnect
|
8
|
+
when you call `reject_unauthorized_connection` on the connection.
|
80
9
|
|
81
|
-
|
10
|
+
*Mick Staugaard*
|
82
11
|
|
83
|
-
*
|
12
|
+
* `ActionCable.Connection#getState` now references the configurable
|
13
|
+
`ActionCable.adapters.WebSocket` property rather than the `WebSocket` global
|
14
|
+
variable, matching the behavior of `ActionCable.Connection#open`.
|
84
15
|
|
16
|
+
*Richard Macklin*
|
85
17
|
|
86
|
-
|
18
|
+
* The ActionCable javascript package has been converted from CoffeeScript
|
19
|
+
to ES2015, and we now publish the source code in the npm distribution.
|
87
20
|
|
88
|
-
|
21
|
+
This allows ActionCable users to depend on the javascript source code
|
22
|
+
rather than the compiled code, which can produce smaller javascript bundles.
|
89
23
|
|
24
|
+
This change includes some breaking changes to optional parts of the
|
25
|
+
ActionCable javascript API:
|
90
26
|
|
91
|
-
|
27
|
+
- Configuration of the WebSocket adapter and logger adapter have been moved
|
28
|
+
from properties of `ActionCable` to properties of `ActionCable.adapters`.
|
29
|
+
If you are currently configuring these adapters you will need to make
|
30
|
+
these changes when upgrading:
|
92
31
|
|
93
|
-
|
32
|
+
```diff
|
33
|
+
- ActionCable.WebSocket = MyWebSocket
|
34
|
+
+ ActionCable.adapters.WebSocket = MyWebSocket
|
35
|
+
```
|
36
|
+
```diff
|
37
|
+
- ActionCable.logger = myLogger
|
38
|
+
+ ActionCable.adapters.logger = myLogger
|
39
|
+
```
|
94
40
|
|
95
|
-
|
41
|
+
- The `ActionCable.startDebugging()` and `ActionCable.stopDebugging()`
|
42
|
+
methods have been removed and replaced with the property
|
43
|
+
`ActionCable.logger.enabled`. If you are currently using these methods you
|
44
|
+
will need to make these changes when upgrading:
|
96
45
|
|
97
|
-
|
46
|
+
```diff
|
47
|
+
- ActionCable.startDebugging()
|
48
|
+
+ ActionCable.logger.enabled = true
|
49
|
+
```
|
50
|
+
```diff
|
51
|
+
- ActionCable.stopDebugging()
|
52
|
+
+ ActionCable.logger.enabled = false
|
53
|
+
```
|
98
54
|
|
99
|
-
*
|
55
|
+
*Richard Macklin*
|
100
56
|
|
101
|
-
*
|
57
|
+
* Add `id` option to redis adapter so now you can distinguish
|
58
|
+
ActionCable's redis connections among others. Also, you can set
|
59
|
+
custom id in options.
|
102
60
|
|
103
|
-
|
104
|
-
|
61
|
+
Before:
|
62
|
+
```
|
63
|
+
$ redis-cli client list
|
64
|
+
id=669 addr=127.0.0.1:46442 fd=8 name= age=18 ...
|
65
|
+
```
|
105
66
|
|
106
|
-
|
67
|
+
After:
|
68
|
+
```
|
69
|
+
$ redis-cli client list
|
70
|
+
id=673 addr=127.0.0.1:46516 fd=8 name=ActionCable-PID-19413 age=2 ...
|
71
|
+
```
|
107
72
|
|
108
|
-
*
|
73
|
+
*Ilia Kasianenko*
|
109
74
|
|
110
|
-
*
|
75
|
+
* Rails 6 requires Ruby 2.5.0 or newer.
|
111
76
|
|
112
|
-
|
113
|
-
While we can add all of these options to the `url` itself, it is not explicitly documented. This alternative setup
|
114
|
-
is shown as the first example in the [Redis rubygem](https://github.com/redis/redis-rb#getting-started), which
|
115
|
-
makes this set of options as sensible as using just the `url`.
|
77
|
+
*Jeremy Daer*, *Kasper Timm Hansen*
|
116
78
|
|
117
|
-
*Marc Rendl Ignacio*
|
118
79
|
|
119
|
-
Please check [5-
|
80
|
+
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actioncable/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED