websocket-client-simple 0.6.1 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21d4caf0f550f6beb5276442fd90f9e0d6bbc4a4cd9c08ca8eef12472ebd072e
4
- data.tar.gz: 312f88a43ce512fc4953ffd32b6c28c9560a8839fd4fbb37b2d2feae4b7d612e
3
+ metadata.gz: ccdf4ed7409765786ec398e74ea090136c9f679184c3039133814536973521bf
4
+ data.tar.gz: 42192d8a9646cf946088837f7c0b98b7a4340b47d99b9194e0b30653371a5363
5
5
  SHA512:
6
- metadata.gz: '045560966b35fa3972609406742d61ba8e8cf60f04aa4dbaffa8cf5d4e507f5a2e56f68c4b2a01f5f3a536d38980bf446de5f3a35841ba16b1e704936283fd6b'
7
- data.tar.gz: cd43f68e8725afdd6346dafed3a676f0852067030411aab97051c4e0550011be09c559f8d0125e1c68fdc5bafeeaf24a6794e5bcf93b382a7795b7d8e5287cd5
6
+ metadata.gz: 8d5c97bd4abb94b73ac64180b53861d4db98b775c24fbbbf9c36d5141a559bc239de7902fd2ca32786a7b185b2e36d24dc94fe335d8c06597b40d1774d3f49c4
7
+ data.tar.gz: b1585685d2e4c1e56200750bed8654ab3a16700fd7587d1036a62d633d277e63502010001778dbf57293dac644d9157591552becbffcfdcae0744cc5681f3f88
@@ -9,13 +9,13 @@ on:
9
9
  - cron: "0 0 * * 6" # At 00:00 on Saturday
10
10
  jobs:
11
11
  test:
12
- runs-on: ubuntu-20.04
12
+ runs-on: ubuntu-22.04
13
13
  strategy:
14
14
  matrix:
15
- ruby: ["3.1", "3.0", "2.7", "2.6"]
15
+ ruby: ["3.2", "3.1", "3.0", "2.7", "2.6"]
16
16
  name: Ruby ${{ matrix.ruby }}
17
17
  steps:
18
- - uses: actions/checkout@v2
18
+ - uses: actions/checkout@v3
19
19
  - uses: ruby/setup-ruby@v1
20
20
  with:
21
21
  ruby-version: ${{ matrix.ruby }}
data/CHANGELOG.md ADDED
@@ -0,0 +1,85 @@
1
+ # Changelog
2
+
3
+ ## Not yet released
4
+
5
+ ## 0.7.0 - 2023-08-04
6
+ * Expose add accessor `Client#thread` #22 by @jlaffaye
7
+ * Rewrite changelog as a Markdown
8
+
9
+ ## 0.6.1 - 2023-03-10
10
+ * Make `#open?` safe to use when `@handshake` is `nil` #20 by @cyberarm
11
+
12
+ ## 0.6.0 - 2022-09-22
13
+ * Add option `cert_store` for passing cert store to SSLSocket context #12 by @DerekStride
14
+ * Set `OpenSSL::SSL::SSLSocket#sync_close` to `true` #12 by @DerekStride
15
+
16
+ ## 0.5.1 - 2022-01-01
17
+ * Add `closed?` method to `WebSocket::Client::Simple` #8 by @fuyuton
18
+ * rescue when `OpenSSL::SSL::SSLError` raised #10 by @fuyuton
19
+
20
+ ## 0.5.0 - 2021-12-31
21
+ * 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
22
+ * thank you for contributing @eagletmt
23
+ * Made the necessary changes to use SNI. #6
24
+ * thank you for contributing @fuyuton
25
+
26
+ ## 0.4.0 - 2021-12-30
27
+ * Drop support of ruby 2.5 or older versions as explicit.
28
+
29
+ ## 0.3.1 - 2021-12-30
30
+ * The development of this repository has moved to https://github.com/ruby-jp/websocket-client-simple
31
+
32
+ ## 0.3.0 - 2016-12-30
33
+ * `connect` method runs a given block before connecting WebSocket [#12](https://github.com/shokai/websocket-client-simple/issues/12)
34
+ * thank you for suggestion @codekitchen
35
+
36
+ ## 0.2.5 - 2016-02-18
37
+ * bugfixed sending when broken pipe [#15](https://github.com/shokai/websocket-client-simple/pull/15)
38
+ * add `:verify_mode` option for SSL Context [#14](https://github.com/shokai/websocket-client-simple/pull/14)
39
+ * thank you for contributing @michaelvilensky
40
+
41
+ ## 0.2.4 - 2015-11-12
42
+ * support handshake headers [#11](https://github.com/shokai/websocket-client-simple/pull/11)
43
+ * thank you for contributing @mathieugagne
44
+
45
+ ## 0.2.3 - 2015-10-26
46
+ * kill thread at end of method [#10](https://github.com/shokai/websocket-client-simple/pull/10)
47
+ * thank you for contributing @hansy
48
+
49
+ ## 0.2.2 - 2014-11-18
50
+ * bugfix socket reading
51
+
52
+ ## 0.2.0 - 2014-06-07
53
+ * SSL support with `wss://` and `https://` scheme [#6](https://github.com/shokai/websocket-client-simple/pull/6)
54
+ * thank you for contributing @mallowlabs
55
+
56
+ ## 0.1.0 - 2014-05-08
57
+ * add accessor `Client#handshake` [#5](https://github.com/shokai/websocket-client-simple/issues/5)
58
+ * bugfix socket reading
59
+
60
+ ## 0.0.9 - 2014-04-03
61
+ * emit `error` in receive thread
62
+ * rescue only `Errno::EPIPE`, not all Errors
63
+
64
+ ## 0.0.8 - 2014-01-29
65
+ * bugfix `Client#close` #4
66
+
67
+ ## 0.0.7 - 2014-01-29
68
+ * send CLOSE frame in `Client#close` [#4](https://github.com/shokai/websocket-client-simple/issues/4)
69
+ ## 0.0.6 - 2014-01-17
70
+ * add function `Client#open?`
71
+
72
+ ## 0.0.5 - 2013-03-23
73
+ * kill read thread on close
74
+
75
+ ## 0.0.4 - 2013-03-23
76
+ * fix sample and README
77
+
78
+ ## 0.0.3 - 2013-03-23
79
+ * `:type => :text` option in send
80
+
81
+ ## 0.0.2 - 2013-03-22
82
+ * remove unnecessary sleep
83
+
84
+ ## 0.0.1 - 2013-03-22
85
+ * release
@@ -11,7 +11,7 @@ module WebSocket
11
11
 
12
12
  class Client
13
13
  include EventEmitter
14
- attr_reader :url, :handshake
14
+ attr_reader :url, :handshake, :thread
15
15
 
16
16
  def connect(url, options={})
17
17
  return if @socket
@@ -1,7 +1,7 @@
1
1
  module WebSocket
2
2
  module Client
3
3
  module Simple
4
- VERSION = "0.6.1"
4
+ VERSION = "0.7.0"
5
5
  end
6
6
  end
7
7
  end
@@ -1,11 +1,11 @@
1
1
  require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
- class TestWebSocketClientSimple < MiniTest::Test
4
-
3
+ class TestWebSocketClientSimple < Minitest::Test
4
+
5
5
  def test_onopen
6
-
6
+
7
7
  EM::run{
8
-
8
+
9
9
  EchoServer.start
10
10
 
11
11
  res = nil
@@ -27,7 +27,7 @@ class TestWebSocketClientSimple < MiniTest::Test
27
27
  EM::stop_event_loop
28
28
  end
29
29
  }
30
-
30
+
31
31
  end
32
-
32
+
33
33
  end
@@ -1,6 +1,6 @@
1
1
  require_relative 'test_helper'
2
2
 
3
- class TestWebSocketClientSimple < MiniTest::Test
3
+ class TestWebSocketClientSimple < Minitest::Test
4
4
 
5
5
  def test_echo
6
6
  msgs = ['foo','bar','baz']
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  if spec.respond_to?(:metadata)
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = spec.homepage
19
- spec.metadata["changelog_uri"] = "https://github.com/ruby-jp/websocket-client-simple/blob/master/History.txt"
19
+ spec.metadata["changelog_uri"] = "https://github.com/ruby-jp/websocket-client-simple/blob/master/CHANGELOG.md"
20
20
  end
21
21
 
22
22
  spec.post_install_message = "The development of this gem has moved to #{spec.homepage}."
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websocket-client-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  - Yusuke Nakamura
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-10 00:00:00.000000000 Z
12
+ date: 2023-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -119,8 +119,8 @@ extra_rdoc_files: []
119
119
  files:
120
120
  - ".github/workflows/test.yml"
121
121
  - ".gitignore"
122
+ - CHANGELOG.md
122
123
  - Gemfile
123
- - History.txt
124
124
  - LICENSE.txt
125
125
  - README.md
126
126
  - Rakefile
@@ -142,7 +142,7 @@ licenses:
142
142
  metadata:
143
143
  homepage_uri: https://github.com/ruby-jp/websocket-client-simple
144
144
  source_code_uri: https://github.com/ruby-jp/websocket-client-simple
145
- changelog_uri: https://github.com/ruby-jp/websocket-client-simple/blob/master/History.txt
145
+ changelog_uri: https://github.com/ruby-jp/websocket-client-simple/blob/master/CHANGELOG.md
146
146
  post_install_message: The development of this gem has moved to https://github.com/ruby-jp/websocket-client-simple.
147
147
  rdoc_options: []
148
148
  require_paths:
@@ -158,8 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.1.6
162
- signing_key:
161
+ rubygems_version: 3.3.7
162
+ signing_key:
163
163
  specification_version: 4
164
164
  summary: Simple WebSocket Client for Ruby
165
165
  test_files:
data/History.txt DELETED
@@ -1,107 +0,0 @@
1
- === Not yet released
2
-
3
- == 0.6.1 2023-03-10
4
-
5
- * Make #open? safe to use when `@handshake` is `nil` #20 by @cyberarm
6
-
7
- == 0.6.0 2022-09-22
8
-
9
- * Add option `cert_store` for passing cert store to SSLSocket context #12 by @DerekStride
10
- * Set `OpenSSL::SSL::SSLSocket#sync_close` to `true` #12 by @DerekStride
11
-
12
- === 0.5.1 2022-01-01
13
-
14
- * Add `closed?` method to `WebSocket::Client::Simple` #8 by @fuyuton
15
- * rescue when `OpenSSL::SSL::SSLError` raised #10 by @fuyuton
16
-
17
- === 0.5.0 2021-12-31
18
-
19
- * 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
20
- * thank you for contributing @eagletmt
21
- * Made the necessary changes to use SNI. #6
22
- * thank you for contributing @fuyuton
23
-
24
- === 0.4.0 2021-12-30
25
-
26
- * Drop support of ruby 2.5 or older versions as explicit.
27
-
28
- === 0.3.1 2021-12-30
29
-
30
- * The development of this repository has moved to https://github.com/ruby-jp/websocket-client-simple
31
-
32
- === 0.3.0 2016-02-20
33
-
34
- * "connect" method runs a given block before connecting WebSocket #12
35
- * thank you for suggestion @codekitchen
36
-
37
- === 0.2.5 2016-02-18
38
-
39
- * bugfixed sending when broken pipe #15
40
- * add :verify_mode option for SSL Context #14
41
- * thank you for contributing @michaelvilensky
42
-
43
- === 0.2.4 2015-11-12
44
-
45
- * support handshake headers #11
46
- * thank you for contributing @mathieugagne
47
-
48
- === 0.2.3 2015-10-26
49
-
50
- * kill thread at end of method
51
- * thank you for contributing @hansy
52
-
53
- === 0.2.2 2014-11-18
54
-
55
- * add :ssl_version option to specify version of SSL/TLS
56
- * thank you for contributing @tonybyrne
57
-
58
- === 0.2.1 2014-10-19
59
-
60
- * bugfix socket reading
61
-
62
- === 0.2.0 2014-06-07
63
-
64
- * SSL support with wss:// and https:// scheme
65
- * thank you for contributing @mallowlabs
66
-
67
- === 0.1.0 2014-05-08
68
-
69
- * add accessor Client#handshake #5
70
- * bugfix socket reading
71
-
72
- === 0.0.9 2014-04-03
73
-
74
- * emit "error" in receive thread
75
- * rescue only Errno::EPIPE, not all Errors
76
-
77
- === 0.0.8 2014-01-29
78
-
79
- * bugfix Client#close #4
80
-
81
- === 0.0.7 2014-01-29
82
-
83
- * send CLOSE frame in Client#close #4
84
-
85
- === 0.0.6 2014-01-17
86
-
87
- * add function Client#open?
88
-
89
- === 0.0.5 2013-03-23
90
-
91
- * kill read thread on close
92
-
93
- === 0.0.4 2013-03-23
94
-
95
- * fix sample and README
96
-
97
- === 0.0.3 2013-03-23
98
-
99
- * :type => :text option in send
100
-
101
- === 0.0.2 2013-03-22
102
-
103
- * remove unnecessary sleep
104
-
105
- === 0.0.1 2013-03-22
106
-
107
- * release