action_cable_client 1.3.3 → 1.3.4

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: e5e9c55bf13967847c26cfa284ff5a6c3b6055d8
4
- data.tar.gz: ab357eb1af14a1292230ede92eff6ba852f723c9
3
+ metadata.gz: 977e65342bdaa2a92cb204a207032d2da9b5a120
4
+ data.tar.gz: 079643bcac126fcc798ff4a2b0ec26fd59d5fe35
5
5
  SHA512:
6
- metadata.gz: bb7e65b912fb7125d1b5889a9aa2105c05a338ac4932c63d691e36a549805de9e61facf1cd83fc2bbe51413c1516842e7b8408478ffcb2f50d8b70f02411eff2
7
- data.tar.gz: 4a500488f74dbe6126d625cc5e03e3c1f965a37c86720419d5158b3d8e6d367d13b887391a09aeb36d5c874bd65c89e1dbd962b67382349a016cfd8bfda1dd6e
6
+ metadata.gz: 23371f7113817938517a3c26c6dcb58cf71a37e14e3f511856f6cfd1c867cf9b13eb650ee27fd975b19ed2f6b90a73fd25bd3cb288b70f3b7e6f9cb982575de9
7
+ data.tar.gz: a183f2bad40d90a8a7db310037ef9aa3784f188f7c9e0fb4a58cb11f07b56820758a883a008a3565446566284f647212cfd2146249f08bbe2d14e35b43151543
@@ -1,3 +1,6 @@
1
+ ## 1.3.4
2
+ * [#7](https://github.com/NullVoxPopuli/action_cable_client/pull/7) Avoid crashing on empty JSON data (@MikeAski)
3
+
1
4
  ## 1.3.2
2
5
  * Getting disconnected from the server will now set the result of subscribed? to false
3
6
 
@@ -162,6 +162,7 @@ class ActionCableClient
162
162
  # with the identifier '_ping' are skipped
163
163
  def handle_received_message(message, skip_pings = true)
164
164
  string = message.data
165
+ return if string.empty?
165
166
  json = JSON.parse(string)
166
167
 
167
168
  if is_ping?(json)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class ActionCableClient
3
- VERSION = '1.3.3'
3
+ VERSION = '1.3.4'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_cable_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - L. Preston Sego III
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -129,6 +129,5 @@ rubyforge_project:
129
129
  rubygems_version: 2.6.6
130
130
  signing_key:
131
131
  specification_version: 4
132
- summary: ActionCableClient-1.3.3
132
+ summary: ActionCableClient-1.3.4
133
133
  test_files: []
134
- has_rdoc: