websocket-client-simple 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +9 -0
- data/lib/websocket-client-simple/client.rb +3 -2
- data/lib/websocket-client-simple/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9419913b098ff41396cbc11f0d3c2495f9cccb03471c79800f929079b1355537
|
4
|
+
data.tar.gz: 24de10f74455a26bdd20921975f031df322f5c744c5d12b95a071e0f7be48cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31b267d997fdfd90d93a6477984614d5a6235bea3400a2c4b22008e1303ae2e801be15c647f50a9b1149bd87564ec4311e378e58d80d6cc1933b558f19d95469
|
7
|
+
data.tar.gz: 6ea95642df78c178290c1451645aa61ad916b59d8b00767dfefe8e552245eae1b96903e458107506760b0cf3f17c1d1e935f16615c6039b40572767fdb8b7fa7
|
data/History.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
=== Not yet released
|
2
|
+
|
3
|
+
=== 0.5.0 2021-12-31
|
4
|
+
|
5
|
+
* Change TLS context defaults to system's default. The previous defaults were ssl_version=SSLv23 and verify_mode=VERIFY_NONE, which are insecure nowadays. #5
|
6
|
+
* thank you for contributing @eagletmt
|
7
|
+
* Made the necessary changes to use SNI. #6
|
8
|
+
* thank you for contributing @fuyuton
|
9
|
+
|
1
10
|
=== 0.4.0 2021-12-30
|
2
11
|
|
3
12
|
* Drop support of ruby 2.5 or older versions as explicit.
|
@@ -21,12 +21,13 @@ module WebSocket
|
|
21
21
|
uri.port || (uri.scheme == 'wss' ? 443 : 80))
|
22
22
|
if ['https', 'wss'].include? uri.scheme
|
23
23
|
ctx = OpenSSL::SSL::SSLContext.new
|
24
|
-
ctx.ssl_version = options[:ssl_version]
|
25
|
-
ctx.verify_mode = options[:verify_mode]
|
24
|
+
ctx.ssl_version = options[:ssl_version] if options[:ssl_version]
|
25
|
+
ctx.verify_mode = options[:verify_mode] if options[:verify_mode]
|
26
26
|
cert_store = OpenSSL::X509::Store.new
|
27
27
|
cert_store.set_default_paths
|
28
28
|
ctx.cert_store = cert_store
|
29
29
|
@socket = ::OpenSSL::SSL::SSLSocket.new(@socket, ctx)
|
30
|
+
@socket.hostname = uri.host
|
30
31
|
@socket.connect
|
31
32
|
end
|
32
33
|
@handshake = ::WebSocket::Handshake::Client.new :url => url, :headers => options[:headers]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: websocket-client-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-12-
|
12
|
+
date: 2021-12-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|