protocol-websocket 0.7.3 → 0.7.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
  SHA256:
3
- metadata.gz: 86e03089f165a2cf50a6b4cbd20328da1a782778c02f23a3be4e4542de0ea692
4
- data.tar.gz: d4f856117d7e13373cd115871276682f08793ddf353f3106f5569cc8e38fb4ad
3
+ metadata.gz: 519265fe5ebe9530d3ddec6e9bc3836dd0a2af827e377ef4ac7f390f5791f2a9
4
+ data.tar.gz: 32a7ab9ab4e4b065ee6b0f738396ea575b49da9c8ac927ee38da8afa1ab595fb
5
5
  SHA512:
6
- metadata.gz: fbd6e6cbec72148770e2c3979bc56cdea6f12726ae8270759a613814ee1e54492ee0ba24a51b5077d3dfeff93e19abb56ea5ff219e042a03445e87ff0b33c051
7
- data.tar.gz: 519c30e7774eac646675e8a940e9665214bd9d9a266297038d781030e8ca9150a9aa877c85b0ece209ff0a9475203403e7879155b472b8d283bb3a066af6c4bd
6
+ metadata.gz: 5f5e59c42893bf46ba3581f4a44952c919b56d94db139b558fd6fafa3d4c360d52d58741da99fb456afe72fb8679c27a4f22eaf551b014b4e774dd5cb31f39ff
7
+ data.tar.gz: '08611be52a6cbbfb10ec656bf820bc3241afb626de9aa9fb2ce19f9efa21e3d5f38bfe6f5f1b86f7ec184355bd236505469705559d7e234c4d3a8f04d5b536fa'
@@ -177,10 +177,13 @@ module Protocol
177
177
 
178
178
  # @param buffer [String] a unicode or binary string.
179
179
  def write(buffer)
180
+ # https://tools.ietf.org/html/rfc6455#section-5.6
181
+
182
+ # Text: The "Payload data" is text data encoded as UTF-8
180
183
  if buffer.encoding == Encoding::UTF_8
181
184
  send_text(buffer)
182
185
  else
183
- send_data(buffer)
186
+ send_binary(buffer)
184
187
  end
185
188
  end
186
189
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module WebSocket
23
- VERSION = "0.7.3"
23
+ VERSION = "0.7.4"
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.7.3
4
+ version: 0.7.4
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-07-13 00:00:00.000000000 Z
11
+ date: 2019-12-15 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.6
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: A low level implementation of the WebSocket protocol.