sinatra 2.2.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS.md +14 -8
- data/CHANGELOG.md +157 -16
- data/CONTRIBUTING.md +11 -11
- data/Gemfile +52 -61
- data/MAINTENANCE.md +2 -2
- data/README.md +204 -487
- data/Rakefile +82 -79
- data/SECURITY.md +1 -1
- data/VERSION +1 -1
- data/examples/chat.rb +25 -12
- data/examples/lifecycle_events.rb +20 -0
- data/examples/simple.rb +2 -0
- data/examples/stream.ru +2 -2
- data/lib/sinatra/base.rb +435 -341
- data/lib/sinatra/indifferent_hash.rb +35 -35
- data/lib/sinatra/main.rb +18 -16
- data/lib/sinatra/show_exceptions.rb +17 -15
- data/lib/sinatra/version.rb +3 -1
- data/lib/sinatra.rb +2 -0
- data/sinatra.gemspec +36 -33
- metadata +23 -29
- data/README.de.md +0 -3239
- data/README.es.md +0 -3231
- data/README.fr.md +0 -3111
- data/README.hu.md +0 -728
- data/README.ja.md +0 -2844
- data/README.ko.md +0 -2967
- data/README.malayalam.md +0 -3141
- data/README.pt-br.md +0 -3787
- data/README.pt-pt.md +0 -791
- data/README.ru.md +0 -3207
- data/README.zh.md +0 -2934
- data/examples/rainbows.conf +0 -3
- data/examples/rainbows.rb +0 -20
data/examples/rainbows.conf
DELETED
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
|