websocket 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +17 -0
- data/CHANGELOG.md +4 -0
- data/lib/websocket/exception_handler.rb +1 -1
- data/lib/websocket/frame/data.rb +1 -0
- data/lib/websocket/frame/handler/handler03.rb +5 -0
- data/lib/websocket/handshake/handler/client76.rb +1 -1
- data/lib/websocket/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7060e7e52081f894382fcfd1d67a8f3eda15b3b0c86abf4e5dea1f44e6f1c204
|
4
|
+
data.tar.gz: 93981161e7d5ded1e8182d67dd357ffc9a4c606b6bbbe6e84e7c03244db0a949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b260ffa5fac7b49981fd876ebc6adc55ced481e84fce368b8d974565edd431b9b4c563c718e889c7fd6eb28f80d8a2f20f2734d0d261610068c2f37e40c380be
|
7
|
+
data.tar.gz: d3c905e52be9abe45ac1f8575b31876d7efffcebc1554a124620c6b19b7d2b4b38037a2a0c5bc2a181532af79b484ea951dfb47864aecd3c6a00686f929246d1
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: Publish Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- v*
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v2
|
13
|
+
- name: Release Gem
|
14
|
+
uses: cadwallion/publish-rubygems-action@master
|
15
|
+
env:
|
16
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
17
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
data/CHANGELOG.md
CHANGED
@@ -14,7 +14,7 @@ module WebSocket
|
|
14
14
|
# @param [String] method_name Name of method that should be wrapped and rescued
|
15
15
|
# @param [Hash] options Options for rescue
|
16
16
|
#
|
17
|
-
# @
|
17
|
+
# @option options [Any] :return Value that should be returned instead of raised error
|
18
18
|
def rescue_method(method_name, options = {})
|
19
19
|
define_method "#{method_name}_with_rescue" do |*args|
|
20
20
|
begin
|
data/lib/websocket/frame/data.rb
CHANGED
@@ -20,6 +20,11 @@ module WebSocket
|
|
20
20
|
# Hash of frame opcodes and it's names
|
21
21
|
FRAME_TYPES_INVERSE = FRAME_TYPES.invert.freeze
|
22
22
|
|
23
|
+
def initialize(frame)
|
24
|
+
super
|
25
|
+
@application_data_buffer = nil
|
26
|
+
end
|
27
|
+
|
23
28
|
# @see WebSocket::Frame::Base#supported_frames
|
24
29
|
def supported_frames
|
25
30
|
%i[text binary close ping pong]
|
@@ -71,7 +71,7 @@ module WebSocket
|
|
71
71
|
NOISE_CHARS = ("\x21".."\x2f").to_a + ("\x3a".."\x7e").to_a
|
72
72
|
|
73
73
|
# Generate Sec-WebSocket-Key1 and Sec-WebSocket-Key2
|
74
|
-
# @param [String] name of key. Will be used to set number variable needed later. Valid values: key1, key2
|
74
|
+
# @param key [String] name of key. Will be used to set number variable needed later. Valid values: key1, key2
|
75
75
|
# @return [String] generated key
|
76
76
|
def generate_key(key)
|
77
77
|
spaces = rand(1..12)
|
data/lib/websocket/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Potocki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Universal Ruby library to handle WebSocket protocol
|
14
14
|
email:
|
@@ -18,6 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- ".codeclimate.yml"
|
21
|
+
- ".github/workflows/publish.yml"
|
21
22
|
- ".gitignore"
|
22
23
|
- ".rubocop.yml"
|
23
24
|
- ".travis.yml"
|
@@ -110,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
111
|
- !ruby/object:Gem::Version
|
111
112
|
version: '0'
|
112
113
|
requirements: []
|
113
|
-
|
114
|
-
rubygems_version: 2.7.7
|
114
|
+
rubygems_version: 3.0.3
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Universal Ruby library to handle WebSocket protocol
|