action_cable_client 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/action_cable_client.rb +2 -1
- data/lib/action_cable_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dec61f745613b62ce129f1a873a18abae86fb5b1
|
|
4
|
+
data.tar.gz: b384a15c1ea219d5f5d7bfbbf49ae4ac360704fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6f5b9bebe52571701b3cc211058d617407f49f3118d8014db3809f306af7adde92d9b82665663839a5e511cd26d8436cd6195f60a1f4dc1a7552280bfad6c4d
|
|
7
|
+
data.tar.gz: 1abfbb2e5372acd5967f6b4ab328c7a75227bcd84bf33f9c79491b4d81411338e60b18296fea3e41cb253554889ac8e65ce1d6e718c440768491dac6ad64fd0d
|
data/lib/action_cable_client.rb
CHANGED
|
@@ -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?
|
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.
|
|
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.
|
|
132
|
+
summary: ActionCableClient-1.2.3
|
|
133
133
|
test_files: []
|
|
134
134
|
has_rdoc:
|