anycable-rails 0.4.2 → 0.4.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
2
  SHA1:
3
- metadata.gz: e95bafdd5f71f9fd0de1c480ab2e8f36d2ee1add
4
- data.tar.gz: 786dd59f4fe28b5b967449f73c4b146dbacdc27a
3
+ metadata.gz: 6923ad31b6dc65fa570990b09f1bf783d4da01cc
4
+ data.tar.gz: f47d6f09595e1062b531fc78ec256ea81161d9f2
5
5
  SHA512:
6
- metadata.gz: c601664ce532ee077c6d603b15f657678db51779f93492faa75c95cd76128728e756b953f4ce8615c0858a96febf7b75f0068952b54b41c87852610ca73c0490
7
- data.tar.gz: e5d9cae48701c693fd1cede2eb635f3da40551969a23aad1d0dcba9d96ed0a310468d093d8273b3bffafc0937a10d67dcafaadb07ea10862fe98c9514d49ac77
6
+ metadata.gz: f197235782f718cd1ef9ae7dd3ef0b2a88d93e142df4de8d9c45408341180bfe8a8e21bd44369fb4566e5000dd9eb021b50923a2eaf80a42133cd49921ebfb52
7
+ data.tar.gz: 91615205236a762e3eb34d787b03ba74eeacc9ebafc5d146d78fc39110d03799d6c6f4e066c3547c908ddfd0ea9948f2550916e173a823f627366e505c31ba98
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_dependency "rails", "~> 5"
21
- spec.add_dependency "anycable", "~>0.4.1"
21
+ spec.add_dependency "anycable", "~>0.4.2"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -14,11 +14,11 @@ module ActionCable
14
14
 
15
15
  def stream_from(broadcasting, callback = nil, coder: nil)
16
16
  raise ArgumentError('Unsupported') if callback.present? || coder.present? || block_given?
17
- connection.socket.stream broadcasting
17
+ connection.socket.subscribe identifier, broadcasting
18
18
  end
19
19
 
20
20
  def stop_all_streams
21
- connection.socket.stop_all_streams
21
+ connection.socket.unsubscribe_from_all identifier
22
22
  end
23
23
 
24
24
  def delegate_connection_identifiers
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Anycable
3
3
  module Rails
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
6
6
  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.4.2
4
+ version: 0.4.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-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.1
33
+ version: 0.4.2
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.4.1
40
+ version: 0.4.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement