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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9419913b098ff41396cbc11f0d3c2495f9cccb03471c79800f929079b1355537
4
- data.tar.gz: 24de10f74455a26bdd20921975f031df322f5c744c5d12b95a071e0f7be48cb8
3
+ metadata.gz: dacb78ebf74e2700e9a33fee5738d6887f89bc1ff75fd0462f13f7fecb6a4c29
4
+ data.tar.gz: 517d19aedb9257e328ab373321bf994bec148e90993078bd1d9222d16012ddd2
5
5
  SHA512:
6
- metadata.gz: 31b267d997fdfd90d93a6477984614d5a6235bea3400a2c4b22008e1303ae2e801be15c647f50a9b1149bd87564ec4311e378e58d80d6cc1933b558f19d95469
7
- data.tar.gz: 6ea95642df78c178290c1451645aa61ad916b59d8b00767dfefe8e552245eae1b96903e458107506760b0cf3f17c1d1e935f16615c6039b40572767fdb8b7fa7
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
@@ -1,7 +1,7 @@
1
1
  module WebSocket
2
2
  module Client
3
3
  module Simple
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
6
6
  end
7
7
  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.0
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: 2021-12-31 00:00:00.000000000 Z
12
+ date: 2022-01-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler