sinatra 2.2.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +0,0 @@
1
- Rainbows! do
2
- use :EventMachine
3
- end
data/examples/rainbows.rb DELETED
@@ -1,20 +0,0 @@
1
- require 'rainbows'
2
-
3
- module Rack
4
- module Handler
5
- class Rainbows
6
- def self.run(app, **options)
7
- rainbows_options = {
8
- listeners: ["#{options[:Host]}:#{options[:Port]}"],
9
- worker_processes: 1,
10
- timeout: 30,
11
- config_file: ::File.expand_path('rainbows.conf', __dir__),
12
- }
13
-
14
- ::Rainbows::HttpServer.new(app, rainbows_options).start.join
15
- end
16
- end
17
-
18
- register :rainbows, ::Rack::Handler::Rainbows
19
- end
20
- end