mt-libuv 4.1.02 → 4.1.03
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/mt-libuv/tcp.rb +2 -2
- data/lib/mt-libuv/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: a1202ed78ce77bd07568e4227426d50e6fbe0699900c2146890f75151d3c69a0
|
4
|
+
data.tar.gz: 9aa062a9eaf012254125890a37b8dce64b6dbb36afee563f9c9c0c61040db31f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f0461eaec6df22b89e63af45508401530d1a9bd341113edfbfc0aa2e50239c879dee658fe0d4f22a2499c1ed5db76324ae379b02cad8d3a46a00d4e5fb29591
|
7
|
+
data.tar.gz: 9865e4c1eefebdc94a5d8366912f474615b2face27804c067f4cf190acf9edbaefc42b2eceeb7579d8c1179f2a2e465295a46ebe6cc9d2e9307d846262d945b8
|
data/README.md
CHANGED
@@ -14,7 +14,7 @@ For convenience the thread local or default reactor can be accessed via the `rea
|
|
14
14
|
You can pass a block to be executed on the reactor and the reactor will run until there is nothing left to do.
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
require 'libuv'
|
17
|
+
require 'mt-libuv'
|
18
18
|
|
19
19
|
reactor do |reactor|
|
20
20
|
reactor.timer {
|
@@ -28,7 +28,7 @@ You can pass a block to be executed on the reactor and the reactor will run unti
|
|
28
28
|
Promises are used to simplify code flow.
|
29
29
|
|
30
30
|
```ruby
|
31
|
-
require 'libuv'
|
31
|
+
require 'mt-libuv'
|
32
32
|
|
33
33
|
reactor do |reactor|
|
34
34
|
reactor.tcp { |data, socket|
|
@@ -51,7 +51,7 @@ Promises are used to simplify code flow.
|
|
51
51
|
Continuations are used if callbacks are not defined
|
52
52
|
|
53
53
|
```ruby
|
54
|
-
require 'libuv'
|
54
|
+
require 'mt-libuv'
|
55
55
|
|
56
56
|
reactor do |reactor|
|
57
57
|
begin
|
@@ -71,7 +71,7 @@ Continuations are used if callbacks are not defined
|
|
71
71
|
Any promise can be converted into a continuation
|
72
72
|
|
73
73
|
```ruby
|
74
|
-
require 'libuv'
|
74
|
+
require 'mt-libuv'
|
75
75
|
|
76
76
|
reactor do |reactor|
|
77
77
|
# Perform work on the thread pool with promises
|
data/lib/mt-libuv/tcp.rb
CHANGED
@@ -62,12 +62,12 @@ module MTLibuv
|
|
62
62
|
hosts = @tls_options[:hosts]
|
63
63
|
if hosts && hosts[0]
|
64
64
|
opts = @tls_options.merge(hosts[0])
|
65
|
-
@tls = ::
|
65
|
+
@tls = ::MTRubyTls::SSL::Box.new(opts[:server], self, opts)
|
66
66
|
hosts[1..-1].each do |host_opts|
|
67
67
|
@tls.add_host(**host_opts)
|
68
68
|
end
|
69
69
|
else
|
70
|
-
@tls = ::
|
70
|
+
@tls = ::MTRubyTls::SSL::Box.new(@tls_options[:server], self, @tls_options)
|
71
71
|
end
|
72
72
|
@tls.start
|
73
73
|
self
|
data/lib/mt-libuv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mt-libuv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.03
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giallombardo Nathan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|