anycable-rails 0.6.0.rc1 → 0.6.1

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: 23c007d1a03872b62769d01916c37dc08e65b209f7f2c03dc82506142dd9deba
4
- data.tar.gz: 852a706ac6f822674f4f8ded679dd369b1fed46adfebf4687ff917e04d6b5dce
3
+ metadata.gz: b31bd9ca1f658ed9a91d87a8f9e6e61a0ba6ba33c8c96b9445d2e830484548e3
4
+ data.tar.gz: 0b3bc0739812916c6c06023216606baaa78efb6f2178af27d20a9ea0dc9d5697
5
5
  SHA512:
6
- metadata.gz: d7d61c3f61e07ff50a5ab51598647befa8295345864afa913829cc4311aa178dc2841e1bc9ddce5cb5a2f822add9d2a0cc667ecef438cfed3e0c056d9c726497
7
- data.tar.gz: 4d9233be76b119ca9b09dcdb010e9a9bc6fdfa1c883530b97455a2ec2d23331458991c442b40640006ee8aa07ec12f5e0df3bf6c6b3a705761184661761e40d5
6
+ metadata.gz: 330e33fb5479cad54312cdae2dfb0bba80520ffaedfac781de4c4edff0825ad72ab39dc3f390732745c07963b9a849dff5e31fbc373bbf818e7e60959740a91b
7
+ data.tar.gz: 8677fd2198e04aaeb55785e3632eb96d99bc28333bad791a1800401b6396f61d4f047c3ed9733d3481ac5c77d4c837553af7ae4986d73fe51bb9e7bc27d79f56
@@ -1,6 +1,13 @@
1
1
  # Change log
2
2
 
3
- ## 0.6.0-dev
3
+ ## master
4
+
5
+ - Fix regression introduced in [e64a366e](https://github.com/anycable/anycable-rails/commit/e64a366ea21293925e0c5c0b8e6595d65d5d0981#diff-fd0e56a6e825002eac978507c3581af7R14) ([@palkan][])
6
+
7
+ `Connection` patch could be loaded after `identify_by` is called, thus breaking
8
+ identifiers.
9
+
10
+ ## 0.6.0 (2018-11-15)
4
11
 
5
12
  - [PR #56](https://github.com/anycable/anycable-rails/pull/56) Request verification based on ActionCable config. ([@DmitryTsepelev][])
6
13
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "rails", ">= 5"
22
- spec.add_dependency "anycable", "0.6.0.rc1"
22
+ spec.add_dependency "anycable", "~> 0.6.0"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
@@ -8,8 +8,6 @@ module AnyCable
8
8
  # Rails handler for AnyCable
9
9
  module Rails
10
10
  require "anycable/rails/railtie"
11
- # Load Action Cable patches only when running RPC server
12
- require "anycable/rails/actioncable/connection" if defined?(::AnyCable::CLI)
13
11
  end
14
12
  end
15
13
 
@@ -40,6 +40,10 @@ module AnyCable
40
40
 
41
41
  initializer "anycable.connection_factory", after: "action_cable.set_configs" do |_app|
42
42
  ActiveSupport.on_load(:action_cable) do
43
+ if ::ActionCable.server.config.cable&.fetch("adapter", nil) == "any_cable"
44
+ require "anycable/rails/actioncable/connection"
45
+ end
46
+
43
47
  AnyCable.connection_factory = connection_class.call
44
48
  end
45
49
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AnyCable
4
4
  module Rails
5
- VERSION = "0.6.0.rc1"
5
+ VERSION = "0.6.1"
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.6.0.rc1
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2018-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: anycable
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.0.rc1
33
+ version: 0.6.0
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: 0.6.0.rc1
40
+ version: 0.6.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -193,9 +193,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - ">"
196
+ - - ">="
197
197
  - !ruby/object:Gem::Version
198
- version: 1.3.1
198
+ version: '0'
199
199
  requirements: []
200
200
  rubyforge_project:
201
201
  rubygems_version: 2.7.7