midori.rb 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +2 -0
- data/LICENSE +1 -1
- data/lib/midori/runner.rb +7 -5
- data/lib/midori/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80360bc468902cd505ffbb42e2b74c358903b9baebe79040b60f313f3a34382a
|
4
|
+
data.tar.gz: 1b25ef636cb6f30c815accd3b5e52e07feb2a805c9c42750e2220bf82e891b75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e756a5b8f68588853f40dc844bdb429868216464b7a4d806b89c2819a3773cec8a4cc9c4374fbe90df8aa8e8e3824c3cfc3d57ebd1bc1d98a76653ec732e43ee
|
7
|
+
data.tar.gz: f5709d079cb969bb45627d8cdc4a8bfcc64f6668202f38a496cfd3e6cadb5d4201011a7a85f0d36e6085b9670e9287f559f42b4bf9e0f5c74f797f9f0ed1d5fa
|
data/LICENSE
CHANGED
data/lib/midori/runner.rb
CHANGED
@@ -33,13 +33,15 @@ class Midori::Runner
|
|
33
33
|
@server = TCPServer.new(@bind, @port)
|
34
34
|
tfo = @server.tcp_fast_open if Midori::Configure.tcp_fast_open
|
35
35
|
@logger.warn 'Failed to use TCP Fast Open feature on your OS'.yellow unless tfo
|
36
|
-
EventLoop.register(@server, :r) do |monitor|
|
37
|
-
socket = monitor.io.accept_nonblock
|
38
|
-
connection = Midori::Connection.new(socket)
|
39
|
-
connection.server_initialize(@api, @logger)
|
40
|
-
end
|
41
36
|
async_fiber(Fiber.new do
|
37
|
+
@logger.info 'Midori is booting...'.blue
|
42
38
|
@before.call
|
39
|
+
@logger.info 'Midori is serving...'.blue
|
40
|
+
EventLoop.register(@server, :r) do |monitor|
|
41
|
+
socket = monitor.io.accept_nonblock
|
42
|
+
connection = Midori::Connection.new(socket)
|
43
|
+
connection.server_initialize(@api, @logger)
|
44
|
+
end
|
43
45
|
end)
|
44
46
|
EventLoop.start
|
45
47
|
nil
|
data/lib/midori/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midori.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HeckPsi Lab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: murasaki
|
@@ -76,6 +76,7 @@ extensions:
|
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
78
|
- ".editorconfig"
|
79
|
+
- ".github/ISSUE_TEMPLATE.md"
|
79
80
|
- LICENSE
|
80
81
|
- ext/midori/extconf.rb
|
81
82
|
- ext/midori/websocket.c
|