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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 543429b3563ec46a43bd569c1618b02bc8ffe60b
4
- data.tar.gz: ca280799cf84a65246991702b21292e74a07ea15
2
+ SHA256:
3
+ metadata.gz: bcdcb3ba12a6f1b8366c5b3258135198fe6e30d30daa90401f9e826aded2464d
4
+ data.tar.gz: 47cf4a2661e21dff58c8a824968e9054eb45669d2a22c5f20eaaefc2ebf564af
5
5
  SHA512:
6
- metadata.gz: 0d1cbc8dff4fb113187d959d4fed909fc370c204412c1f230dfa52b95f068dc45879a1f653b37b3ff67d95f06dc1ea8fe66426e2d29c02bdac1f94d047cea2e2
7
- data.tar.gz: aba10277d8e2680065275ce977dec610194a21cae397e4b0c25717852442e9f3fa12e898f443faf2fd0ae6ee027a7304edcdc8691e24190caf5c7dd59569a920
6
+ metadata.gz: 9956b15de7712c4d71fff95c05fa0582f500955fa4cc7d6bbb4a586715118af8532516a4a6b853552e71e82b08017278a571fc42f87bcd2e7a171c52d7b30b1a
7
+ data.tar.gz: f43d521934283f60770acd972f0500ee582ab3424f98cc172735a7d8d5d5fde0d1061023fdc77d4ca08617440de0ca5b58be34aa258cb1efbc20e50393f38765
data/.rubocop.yml CHANGED
@@ -32,6 +32,9 @@ Style/Documentation:
32
32
  Style/FormatString:
33
33
  Enabled: false
34
34
 
35
+ Style/FormatStringToken:
36
+ Enabled: false
37
+
35
38
  Style/StringLiterals:
36
39
  Enabled: false
37
40
 
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
@@ -1,5 +1,13 @@
1
1
  # Change log
2
2
 
3
+ ## master
4
+
5
+ ## 0.5.3
6
+
7
+ - Fix return value of `Connection#handle_close`. ([@palkan][])
8
+
9
+ Should always be `true`, we do not expect a failure here.
10
+
3
11
  ## 0.5.2
4
12
 
5
13
  - Add config/anycable.yml to Rails generator. ([@alekseyl][])
data/Gemfile CHANGED
@@ -6,6 +6,4 @@ local_gemfile = "#{File.dirname(__FILE__)}/Gemfile.local"
6
6
 
7
7
  if File.exist?(local_gemfile)
8
8
  eval(File.read(local_gemfile)) # rubocop:disable Lint/Eval
9
- else
10
- # ??
11
9
  end
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 `config/environments/production.rb`:
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
@@ -54,6 +54,7 @@ module ActionCable
54
54
 
55
55
  subscriptions.unsubscribe_from_all
56
56
  disconnect if respond_to?(:disconnect)
57
+ true
57
58
  end
58
59
 
59
60
  # rubocop:disable Metrics/MethodLength
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Anycable
4
4
  module Rails
5
- VERSION = "0.5.2"
5
+ VERSION = "0.5.3"
6
6
  end
7
7
  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.2
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: 2017-12-15 00:00:00.000000000 Z
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.6.13
195
+ rubygems_version: 2.7.4
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Rails adapter for AnyCable