anycable-rails 1.0.7 → 1.1.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +4 -6
- data/lib/anycable/rails/actioncable/testing.rb +1 -1
- data/lib/anycable/rails/version.rb +1 -1
- metadata +16 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '087189f7948c52bb58e4e1d558c6952620ddbeb7b9a7150f6a8a75e10b305fd7'
|
4
|
+
data.tar.gz: 2c8c1d0b355dc447d73df3fbc98b1afb7c12d15bed3556300888cb7ccd5ac7b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69a9672b864a8a7cb606e3b066900bc3c39df59e357a4b95f28426d22207766ed914061b686974c56b41dc3eae3da3e39017e0bfe34701ab7a89b4ae5ec9c9a1
|
7
|
+
data.tar.gz: 25439b57367b5f61671e778324b46aadb96190c4a5d27f75a4872a7003b03c589fcbcdbafc346885e45ad2ce6c58f241e4a54578c636b71b1eae4a10ffc6db6d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -11,8 +11,6 @@ With AnyCable you can use channels, client-side JS, broadcasting - (almost) all
|
|
11
11
|
|
12
12
|
You can even use Action Cable in development and not be afraid of [compatibility issues](#compatibility).
|
13
13
|
|
14
|
-
**Important** This is a readme for the upcoming v1.0 release. For v0.6.x see the readme from the [0-6-stable](https://github.com/anycable/anycable-rails/tree/0-6-stable) branch.
|
15
|
-
|
16
14
|
💾 [Example Application](https://github.com/anycable/anycable_rails_demo)
|
17
15
|
|
18
16
|
📑 [Documentation](https://docs.anycable.io/#/rails/getting_started).
|
@@ -22,8 +20,8 @@ You can even use Action Cable in development and not be afraid of [compatibility
|
|
22
20
|
|
23
21
|
## Requirements
|
24
22
|
|
25
|
-
- Ruby >= 2.
|
26
|
-
- Rails >=
|
23
|
+
- Ruby >= 2.6
|
24
|
+
- Rails >= 6.0
|
27
25
|
- Redis (see [other options](https://github.com/anycable/anycable/issues/2) for broadcasting)
|
28
26
|
|
29
27
|
## Usage
|
@@ -64,7 +62,7 @@ and specify AnyCable WebSocket server URL:
|
|
64
62
|
# For development it's likely the localhost
|
65
63
|
|
66
64
|
# config/environments/development.rb
|
67
|
-
config.action_cable.url = "ws://localhost:
|
65
|
+
config.action_cable.url = "ws://localhost:8080/cable"
|
68
66
|
|
69
67
|
# For production it's likely to have a sub-domain and secure connection
|
70
68
|
|
@@ -85,7 +83,7 @@ $ RAILS_ENV=production bundle exec anycable
|
|
85
83
|
And, finally, run AnyCable WebSocket server, e.g. [anycable-go](https://docs.anycable.io/#/v1/anycable-go/getting_started):
|
86
84
|
|
87
85
|
```sh
|
88
|
-
anycable-go --host=localhost --port=
|
86
|
+
anycable-go --host=localhost --port=8080
|
89
87
|
```
|
90
88
|
|
91
89
|
See [documentation](https://docs.anycable.io/#/rails/getting_started) for more information on AnyCable + Rails usage.
|
@@ -18,7 +18,7 @@ end)
|
|
18
18
|
|
19
19
|
ActionCable::Channel::ConnectionStub.prepend(Module.new do
|
20
20
|
def socket
|
21
|
-
@socket ||= AnyCable::Socket.new(env: {})
|
21
|
+
@socket ||= AnyCable::Socket.new(env: AnyCable::Env.new(url: "http://test.host", headers: {}))
|
22
22
|
end
|
23
23
|
|
24
24
|
alias_method :anycable_socket, :socket
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anycable-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.1.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- palkan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: anycable
|
14
|
+
name: anycable-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.1.0.pre1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.
|
26
|
+
version: 1.1.0.pre1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actioncable
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: globalid
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: activerecord
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: ammeter
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +189,7 @@ metadata:
|
|
203
189
|
documentation_uri: https://docs.anycable.io/#/using_with_rails
|
204
190
|
homepage_uri: https://anycable.io/
|
205
191
|
source_code_uri: http://github.com/anycable/anycable-rails
|
206
|
-
post_install_message:
|
192
|
+
post_install_message:
|
207
193
|
rdoc_options: []
|
208
194
|
require_paths:
|
209
195
|
- lib
|
@@ -211,15 +197,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
197
|
requirements:
|
212
198
|
- - ">="
|
213
199
|
- !ruby/object:Gem::Version
|
214
|
-
version: '2.
|
200
|
+
version: '2.6'
|
215
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
202
|
requirements:
|
217
|
-
- - "
|
203
|
+
- - ">"
|
218
204
|
- !ruby/object:Gem::Version
|
219
|
-
version:
|
205
|
+
version: 1.3.1
|
220
206
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
222
|
-
signing_key:
|
207
|
+
rubygems_version: 3.2.15
|
208
|
+
signing_key:
|
223
209
|
specification_version: 4
|
224
210
|
summary: Rails adapter for AnyCable
|
225
211
|
test_files: []
|