websocket-client-simple 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/lib/websocket-client-simple/client.rb +7 -0
- 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: dacb78ebf74e2700e9a33fee5738d6887f89bc1ff75fd0462f13f7fecb6a4c29
|
4
|
+
data.tar.gz: 517d19aedb9257e328ab373321bf994bec148e90993078bd1d9222d16012ddd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60c390df8b3a65861e8fb7af48e068a8e2d1f28ae8efa5beb780f8b73d4cff844e9ae22f925f6b5c860946742cfcf91dd138c61ee3f3dd60218bec30c4a57825
|
7
|
+
data.tar.gz: 3e8fccee5f323c77734272dc60bf801d8d58de0c4b53b6d6c4f7f2f6f209dde3940066323eb52bd8de76fdc217a17cb4b0c0e61d0e47f90d93a50139b9025391
|
data/History.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
=== Not yet released
|
2
2
|
|
3
|
+
=== 0.5.1 2022-01-01
|
4
|
+
|
5
|
+
* Add `closed?` method to `WebSocket::Client::Simple` #8 by @fuyuton
|
6
|
+
* rescue when `OpenSSL::SSL::SSLError` raised #10 by @fuyuton
|
7
|
+
|
3
8
|
=== 0.5.0 2021-12-31
|
4
9
|
|
5
10
|
* 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
|
@@ -77,6 +77,9 @@ module WebSocket
|
|
77
77
|
rescue Errno::EPIPE => e
|
78
78
|
@pipe_broken = true
|
79
79
|
emit :__close, e
|
80
|
+
rescue OpenSSL::SSL::SSLError => e
|
81
|
+
@pipe_broken = true
|
82
|
+
emit :__close, e
|
80
83
|
end
|
81
84
|
end
|
82
85
|
|
@@ -96,6 +99,10 @@ module WebSocket
|
|
96
99
|
@handshake.finished? and !@closed
|
97
100
|
end
|
98
101
|
|
102
|
+
def closed?
|
103
|
+
@closed
|
104
|
+
end
|
105
|
+
|
99
106
|
end
|
100
107
|
|
101
108
|
end
|
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.5.
|
4
|
+
version: 0.5.1
|
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:
|
12
|
+
date: 2022-01-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|