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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a07247036ade5e265e7cdeecad88340fcc0facfb27d84c4c9e16cf37453e62e6
4
- data.tar.gz: 4698c72c5b546788f037c88d3ca93993bc17199a6eea89b0d1ac402220ea1767
3
+ metadata.gz: 80360bc468902cd505ffbb42e2b74c358903b9baebe79040b60f313f3a34382a
4
+ data.tar.gz: 1b25ef636cb6f30c815accd3b5e52e07feb2a805c9c42750e2220bf82e891b75
5
5
  SHA512:
6
- metadata.gz: 2ddbba65cd94493229a768566b1f64815c4a0020340a1158a15a9ed1373f565fc73fb542887fe7eda402371f50ddc6ec57e89f5a2dece8cd60cd2cb29fdba90a
7
- data.tar.gz: c7d1007d47da1dea0572ef33a3d70b373c3d6189a48afd798212669c6f2d25989c6808328eaab0b01fca45210ff0c233b11688411f9be40cc401a1b3a89c5429
6
+ metadata.gz: e756a5b8f68588853f40dc844bdb429868216464b7a4d806b89c2819a3773cec8a4cc9c4374fbe90df8aa8e8e3824c3cfc3d57ebd1bc1d98a76653ec732e43ee
7
+ data.tar.gz: f5709d079cb969bb45627d8cdc4a8bfcc64f6668202f38a496cfd3e6cadb5d4201011a7a85f0d36e6085b9670e9287f559f42b4bf9e0f5c74f797f9f0ed1d5fa
@@ -0,0 +1,2 @@
1
+ <!-- Love midorirb? Please consider supporting our collective:
2
+ 👉 https://opencollective.com/midorirb/donate -->
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2016-2017 HeckPsi Lab
3
+ Copyright (c) 2016-2018 HeckPsi Lab
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
@@ -1,5 +1,5 @@
1
1
  # Midori Module
2
2
  module Midori
3
3
  # Current Version Code
4
- VERSION = '0.5.2'.freeze
4
+ VERSION = '0.5.3'.freeze
5
5
  end
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.2
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-01-31 00:00:00.000000000 Z
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