action_cable_client 1.2.2 → 1.2.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: be694bf2ad134f94cff96699def64933943d0e00
4
- data.tar.gz: 64d9fa29c981854f3125f18cd6c0522a5c48df88
3
+ metadata.gz: dec61f745613b62ce129f1a873a18abae86fb5b1
4
+ data.tar.gz: b384a15c1ea219d5f5d7bfbbf49ae4ac360704fe
5
5
  SHA512:
6
- metadata.gz: bf35488d260a47398cf607d3c825aac8f4b9d61190df944743c1e561ad63efa75b74334dc99b3a62affa3b1bd9a7474dee43972e043588d5d7ed347ed3237bb6
7
- data.tar.gz: 70565abe338695a37bf75cdade5295ea9c7498e244e4bbc2fc8a6d153b6bee0d1f0c4ba1f4a64178cb99960063d04f7ddd23778d912b491774d1c7954410620d
6
+ metadata.gz: f6f5b9bebe52571701b3cc211058d617407f49f3118d8014db3809f306af7adde92d9b82665663839a5e511cd26d8436cd6195f60a1f4dc1a7552280bfad6c4d
7
+ data.tar.gz: 1abfbb2e5372acd5967f6b4ab328c7a75227bcd84bf33f9c79491b4d81411338e60b18296fea3e41cb253554889ac8e65ce1d6e718c440768491dac6ad64fd0d
@@ -132,8 +132,9 @@ class ActionCableClient
132
132
  json = JSON.parse(string)
133
133
 
134
134
  if is_ping?(json)
135
- check_for_subscribe_confirmation(json) unless subscribed?
136
135
  yield(json) unless skip_pings
136
+ elsif !subscribed?
137
+ check_for_subscribe_confirmation(json)
137
138
  else
138
139
  # TODO: do we want to yield any additional things?
139
140
  # maybe just make it extensible?
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class ActionCableClient
3
- VERSION = '1.2.2'
3
+ VERSION = '1.2.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_cable_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - L. Preston Sego III
@@ -129,6 +129,6 @@ rubyforge_project:
129
129
  rubygems_version: 2.5.1
130
130
  signing_key:
131
131
  specification_version: 4
132
- summary: ActionCableClient-1.2.2
132
+ summary: ActionCableClient-1.2.3
133
133
  test_files: []
134
134
  has_rdoc: