protocol-websocket 0.6.1 → 0.7.0

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: 33eeff4af7898ed6affc7f2d21346353fb8b28b84ac0ce352e39a1e9d29dfe3d
4
- data.tar.gz: 5a476f70592773a0fc2a5888f74c677a44f702689fe29444ba6076d9a6b514b0
3
+ metadata.gz: 4dc50db69013fc02249f6ea8286ae21d3393e254981613508368d42681af0fce
4
+ data.tar.gz: 3fa1dc744a1313043f8e8fc90bf76052a0de01876c14012d66682b7c0a623ca6
5
5
  SHA512:
6
- metadata.gz: 326edc906773bfd1afe0463a03ac24e95f1557795fbbc35a83ba1d01046db804421b37bc597bb29c624df677760b29633e4df200d4f9d95287256520a1077e54
7
- data.tar.gz: b397680b7384cd8bfd2f361eee8641cb551f7d1d8aed3612f777e40d2df5f5267d5408a527ebbe357e9a9da6f2f1368ae10b70afc23af667269a40551d518f44
6
+ metadata.gz: aec5858ecf25bfc29428a06fa870f0d26a8634d911f8b6ccb5626b7c7cda29ffb2944bde656d577e99182ea1bb08fcc3b5fd39cdc8b3c301f240d75ad20f2cb8
7
+ data.tar.gz: 191fffcabad7d80c766c4a50b243e6d67d0ba2b3b6b76bad312c3bf81b4481538a30414d029ac6dae2354276c97720b3651cd02665221e1986059b92047b4a2e
@@ -142,10 +142,10 @@ module Protocol
142
142
  end
143
143
  end
144
144
 
145
- def send_ping(data)
145
+ def send_ping(data = nil)
146
146
  if @state != :closed
147
147
  frame = PingFrame.new(mask: @mask)
148
- frame.pack(data)
148
+ frame.pack(data) if data
149
149
 
150
150
  write_frame(frame)
151
151
  else
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module WebSocket
23
- VERSION = "0.6.1"
23
+ VERSION = "0.7.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2019-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: protocol-http
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.0.3
143
+ rubygems_version: 3.0.2
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: A low level implementation of the WebSocket protocol.