em-midori 0.1.5 → 0.1.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
  SHA1:
3
- metadata.gz: f432595f5783ebce17b63e45e546d7875c62202f
4
- data.tar.gz: 7a1b441d9baa8c203fd588bd95c92ad2cc3a39dd
3
+ metadata.gz: 3959c8ff30ab0b2e7cec8928e735e1fee122c523
4
+ data.tar.gz: 895bc19c6ceac8a34b4498f6f900d7d514b681c9
5
5
  SHA512:
6
- metadata.gz: 479fe680e641aab68cc929be341745bfc1a505774a554b2f8590253add2a25441f011ab88ad6a1f10f07016a7613196d660262bf1467a5a8f5a9e12c8c23cf67
7
- data.tar.gz: 22714ec1d12f80e3dc2de87e8b1265e9391ae71f9cb0dccd92cd585f835c3b54f4efb5dcd4e4f328a1637f781568c5a5ecb2b5e6032a527a8296a64ae05bf6d3
6
+ metadata.gz: c210d5205f733618cc67831e324df45bb4c689cd22fd8023dda6c5f52f40515cc56c6ccf8f6435e3a4fcfea39dab8ea732a06e9f9e76246d34435a568f26bbde
7
+ data.tar.gz: 970900a6a14f9798e1282c13db98b34aeedbb7c32a8e81f741fc6f634118543c87a2271cd7b7ca2f5385a27c6d27b6d1c164cc98946b6bc970e8f8d289647d96
@@ -7,4 +7,5 @@ class Midori::Configure
7
7
  set :bind, '127.0.0.1'
8
8
  set :port, 8080
9
9
  set :route_type, :sinatra
10
+ set :before, proc {}
10
11
  end
@@ -7,6 +7,7 @@ class Midori::Runner
7
7
  @logger = configure.logger
8
8
  @bind = configure.bind
9
9
  @port = configure.port
10
+ @before = configure.before
10
11
  @api = ((api.is_a?Midori::APIEngine) ? api : Midori::APIEngine.new(api, configure.route_type))
11
12
  end
12
13
 
@@ -24,6 +25,10 @@ class Midori::Runner
24
25
 
25
26
  EventMachine.set_simultaneous_accept_count(40) unless RUBY_PLATFORM == 'java'
26
27
  EventMachine.run do
28
+ async :before do
29
+ @before.call
30
+ end
31
+ before
27
32
  @logger.info "Midori #{Midori::VERSION} is now running on #{bind}:#{port}".blue
28
33
  @server_signature = EventMachine.start_server bind, port, Midori::Server, @api, @logger
29
34
  end
@@ -1,5 +1,5 @@
1
1
  # Midori Module
2
2
  module Midori
3
3
  # Current Version Code
4
- VERSION = '0.1.5'.freeze
4
+ VERSION = '0.1.5.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-midori
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HeckPsi Lab