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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc36fa232460616657d774b6ae0d21bac79c8123730812ac1032d185a4fa090a
4
- data.tar.gz: 125432097dd592f40606fd4e2d7fb30f1b029b794b832eda0d2f0e9f4b1d824a
3
+ metadata.gz: 7060e7e52081f894382fcfd1d67a8f3eda15b3b0c86abf4e5dea1f44e6f1c204
4
+ data.tar.gz: 93981161e7d5ded1e8182d67dd357ffc9a4c606b6bbbe6e84e7c03244db0a949
5
5
  SHA512:
6
- metadata.gz: 825c8e711023468f699cf0cf0a0f9e1ce462a81bc2ca5ea1a1523b079548bd21d9ac9bc0938d47d154a3e4706c23ff71e9abd93612ec9e83f3b1063651e7e7bb
7
- data.tar.gz: 66a68866a9c231658d7cdd203250a4c1cab1d860b4fe2523343d77fd7969f48fc86471cc0920795fe52499ee3aa93825294a1651ab6968ca76839ee2ec34d200
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}}
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.9
4
+
5
+ - avoid ruby -w warnings
6
+
3
7
  ## 1.2.8
4
8
 
5
9
  - restore support for Ruby 2.0+
@@ -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
- # @options options [Any] :return Value that should be returned instead of raised error
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
@@ -5,6 +5,7 @@ module WebSocket
5
5
  class Data < String
6
6
  def initialize(*args)
7
7
  super(*convert_args(args))
8
+ @masking_key = nil
8
9
  end
9
10
 
10
11
  def <<(*args)
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebSocket
4
- VERSION = '1.2.8'.freeze
4
+ VERSION = '1.2.9'.freeze
5
5
  end
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.8
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: 2018-05-25 00:00:00.000000000 Z
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
- rubyforge_project:
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