sinatra 3.0.5 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHORS.md +14 -8
- data/CHANGELOG.md +75 -2
- data/CONTRIBUTING.md +11 -11
- data/Gemfile +22 -20
- data/MAINTENANCE.md +2 -2
- data/README.md +137 -129
- data/Rakefile +25 -22
- data/SECURITY.md +1 -1
- data/VERSION +1 -1
- data/examples/chat.rb +20 -9
- data/examples/lifecycle_events.rb +20 -0
- data/examples/stream.ru +0 -2
- data/lib/sinatra/base.rb +154 -46
- data/lib/sinatra/indifferent_hash.rb +10 -8
- data/lib/sinatra/show_exceptions.rb +2 -2
- data/lib/sinatra/version.rb +1 -1
- data/sinatra.gemspec +4 -5
- metadata +37 -32
- data/examples/rainbows.conf +0 -3
- data/examples/rainbows.rb +0 -22
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Blake Mizerany
|
|
8
8
|
- Ryan Tomayko
|
|
9
9
|
- Simon Rozet
|
|
10
10
|
- Konstantin Haase
|
|
11
|
-
autorequire:
|
|
11
|
+
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: mustermann
|
|
@@ -31,64 +31,70 @@ dependencies:
|
|
|
31
31
|
name: rack
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
|
33
33
|
requirements:
|
|
34
|
-
- - "~>"
|
|
35
|
-
- !ruby/object:Gem::Version
|
|
36
|
-
version: '2.2'
|
|
37
34
|
- - ">="
|
|
38
35
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
36
|
+
version: 3.0.0
|
|
37
|
+
- - "<"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '4'
|
|
40
40
|
type: :runtime
|
|
41
41
|
prerelease: false
|
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
|
-
- - "~>"
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '2.2'
|
|
47
44
|
- - ">="
|
|
48
45
|
- !ruby/object:Gem::Version
|
|
49
|
-
version:
|
|
46
|
+
version: 3.0.0
|
|
47
|
+
- - "<"
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '4'
|
|
50
50
|
- !ruby/object:Gem::Dependency
|
|
51
|
-
name: rack-
|
|
51
|
+
name: rack-session
|
|
52
52
|
requirement: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
|
-
- -
|
|
54
|
+
- - ">="
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: 2.0.0
|
|
57
|
+
- - "<"
|
|
55
58
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 3
|
|
59
|
+
version: '3'
|
|
57
60
|
type: :runtime
|
|
58
61
|
prerelease: false
|
|
59
62
|
version_requirements: !ruby/object:Gem::Requirement
|
|
60
63
|
requirements:
|
|
61
|
-
- -
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: 2.0.0
|
|
67
|
+
- - "<"
|
|
62
68
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 3
|
|
69
|
+
version: '3'
|
|
64
70
|
- !ruby/object:Gem::Dependency
|
|
65
|
-
name:
|
|
71
|
+
name: rack-protection
|
|
66
72
|
requirement: !ruby/object:Gem::Requirement
|
|
67
73
|
requirements:
|
|
68
|
-
- -
|
|
74
|
+
- - '='
|
|
69
75
|
- !ruby/object:Gem::Version
|
|
70
|
-
version:
|
|
76
|
+
version: 4.0.0
|
|
71
77
|
type: :runtime
|
|
72
78
|
prerelease: false
|
|
73
79
|
version_requirements: !ruby/object:Gem::Requirement
|
|
74
80
|
requirements:
|
|
75
|
-
- -
|
|
81
|
+
- - '='
|
|
76
82
|
- !ruby/object:Gem::Version
|
|
77
|
-
version:
|
|
83
|
+
version: 4.0.0
|
|
78
84
|
- !ruby/object:Gem::Dependency
|
|
79
|
-
name:
|
|
85
|
+
name: tilt
|
|
80
86
|
requirement: !ruby/object:Gem::Requirement
|
|
81
87
|
requirements:
|
|
82
88
|
- - "~>"
|
|
83
89
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: '2'
|
|
85
|
-
type: :
|
|
90
|
+
version: '2.0'
|
|
91
|
+
type: :runtime
|
|
86
92
|
prerelease: false
|
|
87
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
88
94
|
requirements:
|
|
89
95
|
- - "~>"
|
|
90
96
|
- !ruby/object:Gem::Version
|
|
91
|
-
version: '2'
|
|
97
|
+
version: '2.0'
|
|
92
98
|
description: Sinatra is a DSL for quickly creating web applications in Ruby with minimal
|
|
93
99
|
effort.
|
|
94
100
|
email: sinatrarb@googlegroups.com
|
|
@@ -110,8 +116,7 @@ files:
|
|
|
110
116
|
- SECURITY.md
|
|
111
117
|
- VERSION
|
|
112
118
|
- examples/chat.rb
|
|
113
|
-
- examples/
|
|
114
|
-
- examples/rainbows.rb
|
|
119
|
+
- examples/lifecycle_events.rb
|
|
115
120
|
- examples/simple.rb
|
|
116
121
|
- examples/stream.ru
|
|
117
122
|
- lib/sinatra.rb
|
|
@@ -128,12 +133,12 @@ licenses:
|
|
|
128
133
|
- MIT
|
|
129
134
|
metadata:
|
|
130
135
|
source_code_uri: https://github.com/sinatra/sinatra
|
|
131
|
-
changelog_uri: https://github.com/sinatra/sinatra/blob/
|
|
136
|
+
changelog_uri: https://github.com/sinatra/sinatra/blob/main/CHANGELOG.md
|
|
132
137
|
homepage_uri: http://sinatrarb.com/
|
|
133
138
|
bug_tracker_uri: https://github.com/sinatra/sinatra/issues
|
|
134
139
|
mailing_list_uri: http://groups.google.com/group/sinatrarb
|
|
135
140
|
documentation_uri: https://www.rubydoc.info/gems/sinatra
|
|
136
|
-
post_install_message:
|
|
141
|
+
post_install_message:
|
|
137
142
|
rdoc_options:
|
|
138
143
|
- "--line-numbers"
|
|
139
144
|
- "--title"
|
|
@@ -147,15 +152,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
147
152
|
requirements:
|
|
148
153
|
- - ">="
|
|
149
154
|
- !ruby/object:Gem::Version
|
|
150
|
-
version: 2.
|
|
155
|
+
version: 2.7.8
|
|
151
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
157
|
requirements:
|
|
153
158
|
- - ">="
|
|
154
159
|
- !ruby/object:Gem::Version
|
|
155
160
|
version: '0'
|
|
156
161
|
requirements: []
|
|
157
|
-
rubygems_version: 3.
|
|
158
|
-
signing_key:
|
|
162
|
+
rubygems_version: 3.5.3
|
|
163
|
+
signing_key:
|
|
159
164
|
specification_version: 4
|
|
160
165
|
summary: Classy web-development dressed in a DSL
|
|
161
166
|
test_files: []
|
data/examples/rainbows.conf
DELETED
data/examples/rainbows.rb
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'rainbows'
|
|
4
|
-
|
|
5
|
-
module Rack
|
|
6
|
-
module Handler
|
|
7
|
-
class Rainbows
|
|
8
|
-
def self.run(app, **options)
|
|
9
|
-
rainbows_options = {
|
|
10
|
-
listeners: ["#{options[:Host]}:#{options[:Port]}"],
|
|
11
|
-
worker_processes: 1,
|
|
12
|
-
timeout: 30,
|
|
13
|
-
config_file: ::File.expand_path('rainbows.conf', __dir__)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
::Rainbows::HttpServer.new(app, rainbows_options).start.join
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
register :rainbows, ::Rack::Handler::Rainbows
|
|
21
|
-
end
|
|
22
|
-
end
|