anycable-rails 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +3 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.md +8 -0
- data/Gemfile +0 -2
- data/README.md +10 -2
- data/lib/anycable/rails/actioncable/channel.rb +0 -8
- data/lib/anycable/rails/actioncable/connection.rb +1 -0
- data/lib/anycable/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bcdcb3ba12a6f1b8366c5b3258135198fe6e30d30daa90401f9e826aded2464d
|
4
|
+
data.tar.gz: 47cf4a2661e21dff58c8a824968e9054eb45669d2a22c5f20eaaefc2ebf564af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9956b15de7712c4d71fff95c05fa0582f500955fa4cc7d6bbb4a586715118af8532516a4a6b853552e71e82b08017278a571fc42f87bcd2e7a171c52d7b30b1a
|
7
|
+
data.tar.gz: f43d521934283f60770acd972f0500ee582ab3424f98cc172735a7d8d5d5fde0d1061023fdc77d4ca08617440de0ca5b58be34aa258cb1efbc20e50393f38765
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -4,10 +4,12 @@ cache: bundler
|
|
4
4
|
notifications:
|
5
5
|
email: false
|
6
6
|
|
7
|
-
rvm: 2.3.3
|
8
|
-
|
9
7
|
matrix:
|
10
8
|
include:
|
9
|
+
- rvm: 2.4.3
|
10
|
+
gemfile: Gemfile
|
11
|
+
- rvm: 2.5.0
|
12
|
+
gemfile: Gemfile
|
11
13
|
- gemfile: gemfiles/rails5.gemfile
|
12
14
|
- gemfile: gemfiles/railsmaster.gemfile
|
13
15
|
allow_failures:
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -84,7 +84,7 @@ Anycable uses [anyway_config](https://github.com/palkan/anyway_config), thus it
|
|
84
84
|
Run Anycable RPC server:
|
85
85
|
|
86
86
|
```ruby
|
87
|
-
./bin/anycable
|
87
|
+
RAILS_ENV=production ./bin/anycable
|
88
88
|
```
|
89
89
|
|
90
90
|
and also run AnyCable-compatible WebSocket server, e.g. [anycable-go](https://github.com/anycable/anycable-go):
|
@@ -93,10 +93,18 @@ and also run AnyCable-compatible WebSocket server, e.g. [anycable-go](https://gi
|
|
93
93
|
anycable-go -addr='localhost:3334'
|
94
94
|
```
|
95
95
|
|
96
|
-
Don't forget to set cable url in your
|
96
|
+
Don't forget to set cable url in your environment:
|
97
97
|
|
98
98
|
```ruby
|
99
|
+
# For development it's likely the localhost
|
100
|
+
|
101
|
+
# config/environments/development.rb
|
99
102
|
config.action_cable.url = "ws://localhost:3334/cable"
|
103
|
+
|
104
|
+
# For production it's likely to have a sub-domain and secure connection
|
105
|
+
|
106
|
+
# config/environments/production.rb
|
107
|
+
config.action_cable.url = "wss://ws.example.com/cable"
|
100
108
|
```
|
101
109
|
|
102
110
|
### Logging
|
@@ -21,14 +21,6 @@ module ActionCable
|
|
21
21
|
def stop_all_streams
|
22
22
|
connection.socket.unsubscribe_from_all identifier
|
23
23
|
end
|
24
|
-
|
25
|
-
def delegate_connection_identifiers
|
26
|
-
connection.identifiers.each do |identifier|
|
27
|
-
define_singleton_method(identifier) do
|
28
|
-
connection.fetch_identifier(identifier)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
24
|
end
|
33
25
|
end
|
34
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anycable-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- palkan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.
|
195
|
+
rubygems_version: 2.7.4
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Rails adapter for AnyCable
|