sinatra 2.2.3 → 4.0.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 +166 -17
- data/CONTRIBUTING.md +11 -11
- data/Gemfile +56 -74
- data/MAINTENANCE.md +2 -2
- data/README.md +207 -496
- 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 +461 -346
- data/lib/sinatra/indifferent_hash.rb +35 -41
- 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 +37 -33
- metadata +46 -33
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71d0bb379c736d6c251ceb424cac84dbe3a8b22d80a54473a0af1085b93b7dbf
|
4
|
+
data.tar.gz: 489d48a5e4f934127e04cdafa2d0d582c5143cc2a8f476239ea5b5b0f0e492c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbe92c1867d3ebe8ddc3f707c4e9f9cf2b68bddf2556164b85083ac635650725d63f8c847b4c70d0ad2abf6793b5f1054918b0b7c4e04d303119867be84c3253
|
7
|
+
data.tar.gz: 0727d88e9f5574c304dd3f31c6107a2b3e1cde96914e258c86fee529a1e922b0ff1d023f109fcc3b232f010ae21d9bdb4c365001dc7c3f658c0bd75b95e8d24d
|
data/AUTHORS.md
CHANGED
@@ -2,31 +2,37 @@ Sinatra was designed and developed by Blake Mizerany in California.
|
|
2
2
|
|
3
3
|
### Current Team
|
4
4
|
|
5
|
-
* **
|
5
|
+
* **Eloy Perez**
|
6
|
+
* **Jordan Owens**
|
7
|
+
* **Olle Jonsson**
|
8
|
+
* **Patrik Ragnarsson**
|
6
9
|
* **Zachary Scott**
|
7
|
-
* **Kashyap Kondamudi**
|
8
|
-
* **Ashley Williams**
|
9
|
-
* **Trevor Bramble**
|
10
|
-
* **Kunpei Sakai**
|
11
10
|
|
12
11
|
### Alumni
|
13
12
|
|
14
13
|
* **Blake Mizerany** (creator)
|
14
|
+
* **Konstantin Haase** (maintainer)
|
15
15
|
* **Ryan Tomayko**
|
16
16
|
* **Simon Rozet**
|
17
17
|
* **Katrina Owen**
|
18
|
+
* **Kashyap Kondamudi**
|
19
|
+
* **Ashley Williams**
|
20
|
+
* **Trevor Bramble**
|
21
|
+
* **Kunpei Sakai**
|
18
22
|
|
19
23
|
### Thanks
|
20
24
|
|
21
25
|
Sinatra would not have been possible without strong company backing.
|
22
26
|
In the past, financial and emotional support have been provided mainly by
|
23
|
-
[Heroku](
|
24
|
-
[Engine Yard](http://www.engineyard.com/)
|
25
|
-
[
|
27
|
+
[Heroku](https://heroku.com), [GitHub](https://github.com),
|
28
|
+
[Engine Yard](http://www.engineyard.com/) and [Travis CI](https://travis-ci.com/),
|
29
|
+
and is now taken care of by [84codes](https://www.84codes.com/).
|
26
30
|
|
27
31
|
Special thanks to the following extraordinary individuals, without whom
|
28
32
|
Sinatra would not be possible:
|
29
33
|
|
34
|
+
* [Benoit Daloze](https://eregon.me/blog/) (eregon) for help around TruffleRuby
|
35
|
+
and keyword arguments use in mustermann.
|
30
36
|
* [Ryan Tomayko](http://tomayko.com/) (rtomayko) for constantly fixing
|
31
37
|
whitespace errors __60d5006__
|
32
38
|
* [Ezra Zygmuntowicz](http://brainspl.at/) (ezmobius) for initial help and
|
data/CHANGELOG.md
CHANGED
@@ -1,45 +1,182 @@
|
|
1
|
+
## 4.0.0. / 2024-01-19
|
2
|
+
|
3
|
+
* New: Add support for Rack 3 ([#1857])
|
4
|
+
* Note: you may want to read the [Rack 3 Upgrade Guide]
|
5
|
+
|
6
|
+
* Require Ruby 2.7.8 as minimum Ruby version ([#1993])
|
7
|
+
|
8
|
+
* Breaking change: Drop support for Rack 2 ([#1857])
|
9
|
+
* Note: when using Sinatra to start the web server, you now need the `rackup` gem installed
|
10
|
+
|
11
|
+
* Breaking change: Remove the `IndifferentHash` initializer ([#1982])
|
12
|
+
|
13
|
+
* Breaking change: Disable `session_hijacking` protection by default ([#1984])
|
14
|
+
|
15
|
+
* Breaking change: Remove `Rack::Protection::EncryptedCookie` ([#1989])
|
16
|
+
* Note: cookies are still encrypted (by [`Rack::Session::Cookie`])
|
17
|
+
|
18
|
+
[#1857]: https://github.com/sinatra/sinatra/pull/1857
|
19
|
+
[#1993]: https://github.com/sinatra/sinatra/pull/1993
|
20
|
+
[#1982]: https://github.com/sinatra/sinatra/pull/1982
|
21
|
+
[#1984]: https://github.com/sinatra/sinatra/pull/1984
|
22
|
+
[#1989]: https://github.com/sinatra/sinatra/pull/1989
|
23
|
+
[`Rack::Session::Cookie`]: https://github.com/rack/rack-session
|
24
|
+
[Rack 3 Upgrade Guide]: https://github.com/rack/rack/blob/main/UPGRADE-GUIDE.md
|
25
|
+
|
26
|
+
## 3.2.0 / 2023-12-29
|
27
|
+
|
28
|
+
* New: Add `#except` method to `Sinatra::IndifferentHash` ([#1940])
|
29
|
+
|
30
|
+
* New: Use `Exception#detailed_message` to show backtrace ([#1952])
|
31
|
+
|
32
|
+
* New: Add `Sinatra::HamlHelpers` to sinatra-contrib ([#1960])
|
33
|
+
|
34
|
+
* Fix: Add `base64` to rack-protection runtime dependencies ([#1946])
|
35
|
+
|
36
|
+
* Fix: Avoid open-ended dependencies for sinatra-contrib and rack-protection ([#1949])
|
37
|
+
|
38
|
+
* Fix: Helpful message when `Sinatra::Runner` times out ([#1975])
|
39
|
+
|
40
|
+
* Fix: Ruby 3.3 + Bundler 2.5 compatibility ([#1975])
|
41
|
+
|
42
|
+
[#1940]: https://github.com/sinatra/sinatra/pull/1940
|
43
|
+
[#1946]: https://github.com/sinatra/sinatra/pull/1946
|
44
|
+
[#1949]: https://github.com/sinatra/sinatra/pull/1949
|
45
|
+
[#1952]: https://github.com/sinatra/sinatra/pull/1952
|
46
|
+
[#1960]: https://github.com/sinatra/sinatra/pull/1960
|
47
|
+
[#1975]: https://github.com/sinatra/sinatra/pull/1975
|
48
|
+
|
49
|
+
## 3.1.0 / 2023-08-07
|
50
|
+
|
51
|
+
* New: Add sass support via sass-embedded [#1911] by なつき
|
52
|
+
|
53
|
+
* New: Add start and stop callbacks [#1913] by Jevin Sew
|
54
|
+
|
55
|
+
* New: Warn on dropping sessions [#1900] by Jonathan del Strother
|
56
|
+
|
57
|
+
* New: Make Puma the default server [#1924] by Patrik Ragnarsson
|
58
|
+
|
59
|
+
* Fix: Remove use of Tilt::Cache [#1922] by Jeremy Evans (allows use of Tilt 2.2.0 without deprecation warning)
|
60
|
+
|
61
|
+
* Fix: rack-protection: specify rack version requirement [#1932] by Patrik Ragnarsson
|
62
|
+
|
63
|
+
[#1911]: https://github.com/sinatra/sinatra/pull/1911
|
64
|
+
[#1913]: https://github.com/sinatra/sinatra/pull/1913
|
65
|
+
[#1900]: https://github.com/sinatra/sinatra/pull/1900
|
66
|
+
[#1924]: https://github.com/sinatra/sinatra/pull/1924
|
67
|
+
[#1922]: https://github.com/sinatra/sinatra/pull/1922
|
68
|
+
[#1932]: https://github.com/sinatra/sinatra/pull/1932
|
69
|
+
|
70
|
+
## 3.0.6 / 2023-04-11
|
71
|
+
|
72
|
+
* Fix: Add support to keep open streaming connections with Puma [#1858](https://github.com/sinatra/sinatra/pull/1858) by Jordan Owens
|
73
|
+
|
74
|
+
* Fix: Avoid crash in `uri` helper on Integer input [#1890](https://github.com/sinatra/sinatra/pull/1890) by Patrik Ragnarsson
|
75
|
+
|
76
|
+
* Fix: Rescue `RuntimeError` when trying to use `SecureRandom` [#1888](https://github.com/sinatra/sinatra/pull/1888) by Stefan Sundin
|
77
|
+
|
78
|
+
## 3.0.5 / 2022-12-16
|
79
|
+
|
80
|
+
* Fix: Add Zeitwerk compatibility. [#1831](https://github.com/sinatra/sinatra/pull/1831) by Dawid Janczak
|
81
|
+
|
82
|
+
* Fix: Allow CALLERS_TO_IGNORE to be overridden
|
83
|
+
|
84
|
+
## 3.0.4 / 2022-11-25
|
85
|
+
|
86
|
+
* Fix: Escape filename in the Content-Disposition header. [#1841](https://github.com/sinatra/sinatra/pull/1841) by Kunpei Sakai
|
87
|
+
|
88
|
+
## 3.0.3 / 2022-11-11
|
89
|
+
|
90
|
+
* Fix: fixed ReDoS for Rack::Protection::IPSpoofing. [#1823](https://github.com/sinatra/sinatra/pull/1823) by @ooooooo-q
|
91
|
+
|
92
|
+
## 3.0.2 / 2022-10-01
|
93
|
+
|
94
|
+
* New: Add Haml 6 support. [#1820](https://github.com/sinatra/sinatra/pull/1820) by Jordan Owens
|
95
|
+
|
96
|
+
## 3.0.1 / 2022-09-26
|
97
|
+
|
98
|
+
* Fix: Revert removal of rack-protection.rb. [#1814](https://github.com/sinatra/sinatra/pull/1814) by Olle Jonsson
|
99
|
+
|
100
|
+
* Fix: Revert change to server start and stop messaging by using Kernel#warn. Renamed internal warn method warn_for_deprecation. [#1818](https://github.com/sinatra/sinatra/pull/1818) by Jordan Owens
|
101
|
+
|
102
|
+
## 3.0.0 / 2022-09-26
|
103
|
+
|
104
|
+
* New: Add Falcon support. [#1794](https://github.com/sinatra/sinatra/pull/1794) by Samuel Williams and @horaciob
|
105
|
+
|
106
|
+
* New: Add AES GCM encryption support for session cookies. [#1324] (https://github.com/sinatra/sinatra/pull/1324) by Michael Coyne
|
107
|
+
|
108
|
+
* Deprecated: Sinatra Reloader will be removed in the next major release.
|
109
|
+
|
110
|
+
* Fix: Internal Sinatra errors now extend `Sinatra::Error`. This fixes [#1204](https://github.com/sinatra/sinatra/issues/1204) and [#1518](https://github.com/sinatra/sinatra/issues/1518). [bda8c29d](https://github.com/sinatra/sinatra/commit/bda8c29d70619d53f5b1c181140638d340695514) by Jordan Owens
|
111
|
+
|
112
|
+
* Fix: Preserve query param value if named route param nil. [#1676](https://github.com/sinatra/sinatra/pull/1676) by Jordan Owens
|
113
|
+
|
114
|
+
* Require Ruby 2.6 as minimum Ruby version. [#1699](https://github.com/sinatra/sinatra/pull/1699) by Eloy Pérez
|
115
|
+
|
116
|
+
* Breaking change: Remove support for the Stylus template engine. [#1697](https://github.com/sinatra/sinatra/pull/1697) by Eloy Pérez
|
117
|
+
|
118
|
+
* Breaking change: Remove support for the erubis template engine. [#1761](https://github.com/sinatra/sinatra/pull/1761) by Eloy Pérez
|
119
|
+
|
120
|
+
* Breaking change: Remove support for the textile template engine. [#1766](https://github.com/sinatra/sinatra/pull/1766) by Eloy Pérez
|
121
|
+
|
122
|
+
* Breaking change: Remove support for SASS as a template engine. [#1768](https://github.com/sinatra/sinatra/pull/1768) by Eloy Pérez
|
123
|
+
|
124
|
+
* Breaking change: Remove support for Wlang as a template engine. [#1780](https://github.com/sinatra/sinatra/pull/1780) by Eloy Pérez
|
125
|
+
|
126
|
+
* Breaking change: Remove support for CoffeeScript as a template engine. [#1790](https://github.com/sinatra/sinatra/pull/1790) by Eloy Pérez
|
127
|
+
|
128
|
+
* Breaking change: Remove support for Mediawiki as a template engine. [#1791](https://github.com/sinatra/sinatra/pull/1791) by Eloy Pérez
|
129
|
+
|
130
|
+
* Breaking change: Remove support for Creole as a template engine. [#1792](https://github.com/sinatra/sinatra/pull/1792) by Eloy Pérez
|
131
|
+
|
132
|
+
* Breaking change: Remove support for Radius as a template engine. [#1793](https://github.com/sinatra/sinatra/pull/1793) by Eloy Pérez
|
133
|
+
|
134
|
+
* Breaking change: Remove support for the defunct Less templating library. See [#1716](https://github.com/sinatra/sinatra/issues/1716), [#1715](https://github.com/sinatra/sinatra/issues/1715) for more discussion and background. [d1af2f1e](https://github.com/sinatra/sinatra/commit/d1af2f1e6c8710419dfe3102a660f7a32f0e67e3) by Olle Jonsson
|
135
|
+
|
136
|
+
* Breaking change: Remove Reel integration. [54597502](https://github.com/sinatra/sinatra/commit/545975025927a27a1daca790598620038979f1c5) by Olle Jonsson
|
137
|
+
|
138
|
+
* CI: Start testing on Ruby 3.1. [60e221940](https://github.com/sinatra/sinatra/commit/60e2219407e6ae067bf3e53eb060ee4860c60c8d) and [b0fa4bef](https://github.com/sinatra/sinatra/commit/b0fa4beffaa3b10bf02947d0a35e137403296c6b) by Johannes Würbach
|
139
|
+
|
140
|
+
* Use `Kernel#caller_locations`. [#1491](https://github.com/sinatra/sinatra/pull/1491) by Julik Tarkhanov
|
141
|
+
|
142
|
+
* Docs: Japanese documentation: Add notes about the `default_content_type` setting. [#1650](https://github.com/sinatra/sinatra/pull/1650) by Akifumi Tominaga
|
143
|
+
|
144
|
+
* Docs: Polish documentation: Add section about Multithreaded modes and Routes. [#1708](https://github.com/sinatra/sinatra/pull/1708) by Patrick Gramatowski
|
145
|
+
|
146
|
+
* Docs: Japanese documentation: Make Session section reflect changes done to README.md. [#1731](https://github.com/sinatra/sinatra/pull/1731) by @shu-i-chi
|
147
|
+
|
1
148
|
## 2.2.3 / 2022-11-25
|
2
149
|
|
3
150
|
* Fix: Escape filename in the Content-Disposition header. [#1841](https://github.com/sinatra/sinatra/pull/1841) by Kunpei Sakai
|
4
151
|
|
152
|
+
* Fix: fixed ReDoS for Rack::Protection::IPSpoofing. [#1823](https://github.com/sinatra/sinatra/pull/1823) by @ooooooo-q
|
153
|
+
|
5
154
|
## 2.2.2 / 2022-07-23
|
6
155
|
|
7
156
|
* Update mustermann dependency to version 2.
|
8
157
|
|
9
158
|
## 2.2.1 / 2022-07-15
|
10
159
|
|
11
|
-
* Fix JRuby regression by using ruby2_keywords for delegation.
|
160
|
+
* Fix JRuby regression by using ruby2_keywords for delegation. #1750 by Patrik Ragnarsson
|
12
161
|
|
13
|
-
* Add JRuby to CI.
|
162
|
+
* Add JRuby to CI. #1755 by Karol Bucek
|
14
163
|
|
15
164
|
## 2.2.0 / 2022-02-15
|
16
165
|
|
17
|
-
* Breaking change: Add
|
166
|
+
* Breaking change: Add `#select`, `#reject` and `#compact` methods to `Sinatra::IndifferentHash`. If hash keys need to be converted to symbols, call `#to_h` to get a `Hash` instance first. [#1711](https://github.com/sinatra/sinatra/pull/1711) by Olivier Bellone
|
18
167
|
|
19
168
|
* Handle EOFError raised by Rack and return Bad Request 400 status. [#1743](https://github.com/sinatra/sinatra/pull/1743) by tamazon
|
20
169
|
|
21
|
-
* Update README.es.md with removal of Thin. [#1630](https://github.com/sinatra/sinatra/pull/1630) by Espartaco Palma
|
22
|
-
|
23
170
|
* Minor refactors in `base.rb`. [#1640](https://github.com/sinatra/sinatra/pull/1640) by ceclinux
|
24
171
|
|
25
|
-
* Fixed typos in german README.md. [#1648](https://github.com/sinatra/sinatra/pull/1648) by Juri
|
26
|
-
|
27
172
|
* Add escaping to the static 404 page. [#1645](https://github.com/sinatra/sinatra/pull/1645) by Chris Gavin
|
28
173
|
|
29
174
|
* Remove `detect_rack_handler` method. [#1652](https://github.com/sinatra/sinatra/pull/1652) by ceclinux
|
30
175
|
|
31
176
|
* Respect content type set in superclass before filter. Fixes [#1647](https://github.com/sinatra/sinatra/issues/1647) [#1649](https://github.com/sinatra/sinatra/pull/1649) by Jordan Owens
|
32
177
|
|
33
|
-
* Update README.ja.md with removal of Thin. [#1629](https://github.com/sinatra/sinatra/pull/1629) by Ryuichi KAWAMATA
|
34
|
-
|
35
178
|
* *Revert "Use prepend instead of include for helpers.* [#1662](https://github.com/sinatra/sinatra/pull/1662) by namusyaka
|
36
179
|
|
37
|
-
* Various minor fixes to README.md. [#1663](https://github.com/sinatra/sinatra/pull/1663) by Yanis Zafirópulos
|
38
|
-
|
39
|
-
* Document when `dump_errors` is enabled. Fixes [#1664](https://github.com/sinatra/sinatra/issues/1664) [#1665](https://github.com/sinatra/sinatra/pull/1665) by Patrik Ragnarsson
|
40
|
-
|
41
|
-
* Update README.pt-br.md. [#1668](https://github.com/sinatra/sinatra/pull/1668) by Vitor Oliveira
|
42
|
-
|
43
180
|
* Fix usage of inherited `Sinatra::Base` classes keyword arguments. Fixes [#1669](https://github.com/sinatra/sinatra/issues/1669) [#1670](https://github.com/sinatra/sinatra/pull/1670) by Cadu Ribeiro
|
44
181
|
|
45
182
|
* Reduce RDoc generation time by not including every README. Fixes [#1578](https://github.com/sinatra/sinatra/issues/1578) [#1671](https://github.com/sinatra/sinatra/pull/1671) by Eloy Pérez
|
@@ -52,17 +189,29 @@
|
|
52
189
|
|
53
190
|
* Fix Delegator to pass keyword arguments for Ruby 3.0. [#1684](https://github.com/sinatra/sinatra/pull/1684) by andrewtblake
|
54
191
|
|
55
|
-
* Fix use with keyword arguments for Ruby 3.0. [#1701](https://github.com/sinatra/sinatra/pull/1701) by Robin Wallin
|
192
|
+
* Fix use with keyword arguments for Ruby 3.0. [#1701](https://github.com/sinatra/sinatra/pull/1701) by Robin Wallin
|
56
193
|
|
57
194
|
* Fix memory leaks for proc template. Fixes [#1704](https://github.com/sinatra/sinatra/issues/1714) [#1719](https://github.com/sinatra/sinatra/pull/1719) by Slevin
|
58
195
|
|
59
196
|
* Remove unnecessary `test_files` from the gemspec. [#1712](https://github.com/sinatra/sinatra/pull/1712) by Masataka Pocke Kuwabara
|
60
197
|
|
198
|
+
* Docs: Spanish documentation: Update README.es.md with removal of Thin. [#1630](https://github.com/sinatra/sinatra/pull/1630) by Espartaco Palma
|
199
|
+
|
200
|
+
* Docs: German documentation: Fixed typos in German README.md. [#1648](https://github.com/sinatra/sinatra/pull/1648) by Juri
|
201
|
+
|
202
|
+
* Docs: Japanese documentation: Update README.ja.md with removal of Thin. [#1629](https://github.com/sinatra/sinatra/pull/1629) by Ryuichi KAWAMATA
|
203
|
+
|
204
|
+
* Docs: English documentation: Various minor fixes to README.md. [#1663](https://github.com/sinatra/sinatra/pull/1663) by Yanis Zafirópulos
|
205
|
+
|
206
|
+
* Docs: English documentation: Document when `dump_errors` is enabled. Fixes [#1664](https://github.com/sinatra/sinatra/issues/1664) [#1665](https://github.com/sinatra/sinatra/pull/1665) by Patrik Ragnarsson
|
207
|
+
|
208
|
+
* Docs: Brazilian Portuguese documentation: Update README.pt-br.md with translation fixes. [#1668](https://github.com/sinatra/sinatra/pull/1668) by Vitor Oliveira
|
209
|
+
|
61
210
|
### CI
|
62
211
|
|
63
212
|
* Use latest JRuby 9.2.16.0 on CI. [#1682](https://github.com/sinatra/sinatra/pull/1682) by Olle Jonsson
|
64
213
|
|
65
|
-
* Switch CI from travis to
|
214
|
+
* Switch CI from travis to GitHub Actions. [#1691](https://github.com/sinatra/sinatra/pull/1691) by namusyaka
|
66
215
|
|
67
216
|
* Skip the Slack action if `secrets.SLACK_WEBHOOK` is not set. [#1705](https://github.com/sinatra/sinatra/pull/1705) by Robin Wallin
|
68
217
|
|
data/CONTRIBUTING.md
CHANGED
@@ -65,21 +65,21 @@ track patch requests.
|
|
65
65
|
also has its own [Git repository](http://github.com/sinatra/sinatra-recipes).
|
66
66
|
|
67
67
|
* [The Introduction](http://www.sinatrarb.com/intro.html) is generated from
|
68
|
-
Sinatra's [README file](http://github.com/sinatra/sinatra/blob/
|
68
|
+
Sinatra's [README file](http://github.com/sinatra/sinatra/blob/main/README.md).
|
69
69
|
|
70
70
|
* If you want to help translating the documentation, the README is already
|
71
71
|
available in
|
72
|
-
[Japanese](http://github.com/sinatra/sinatra/blob/
|
73
|
-
[German](http://github.com/sinatra/sinatra/blob/
|
74
|
-
[Chinese](https://github.com/sinatra/sinatra/blob/
|
75
|
-
[Russian](https://github.com/sinatra/sinatra/blob/
|
76
|
-
[European](https://github.com/sinatra/sinatra/blob/
|
77
|
-
[Brazilian](https://github.com/sinatra/sinatra/blob/
|
72
|
+
[Japanese](http://github.com/sinatra/sinatra/blob/main/README.ja.md),
|
73
|
+
[German](http://github.com/sinatra/sinatra/blob/main/README.de.md),
|
74
|
+
[Chinese](https://github.com/sinatra/sinatra/blob/main/README.zh.md),
|
75
|
+
[Russian](https://github.com/sinatra/sinatra/blob/main/README.ru.md),
|
76
|
+
[European](https://github.com/sinatra/sinatra/blob/main/README.pt-pt.md) and
|
77
|
+
[Brazilian](https://github.com/sinatra/sinatra/blob/main/README.pt-br.md)
|
78
78
|
Portuguese,
|
79
|
-
[French](https://github.com/sinatra/sinatra/blob/
|
80
|
-
[Spanish](https://github.com/sinatra/sinatra/blob/
|
81
|
-
[Korean](https://github.com/sinatra/sinatra/blob/
|
82
|
-
[Hungarian](https://github.com/sinatra/sinatra/blob/
|
79
|
+
[French](https://github.com/sinatra/sinatra/blob/main/README.fr.md),
|
80
|
+
[Spanish](https://github.com/sinatra/sinatra/blob/main/README.es.md),
|
81
|
+
[Korean](https://github.com/sinatra/sinatra/blob/main/README.ko.md), and
|
82
|
+
[Hungarian](https://github.com/sinatra/sinatra/blob/main/README.hu.md).
|
83
83
|
The translations tend to fall behind the English version. Translations into
|
84
84
|
other languages would also be appreciated.
|
85
85
|
|
data/Gemfile
CHANGED
@@ -1,79 +1,61 @@
|
|
1
|
-
#
|
2
|
-
# Well, not all development dependencies install on all rubies. Moreover, `gem
|
3
|
-
# install sinatra --development` doesn't work, as it will also try to install
|
4
|
-
# development dependencies of our dependencies, and those are not conflict free.
|
5
|
-
# So, here we are, `bundle install`.
|
6
|
-
#
|
7
|
-
# If you have issues with a gem: `bundle install --without-coffee-script`.
|
1
|
+
# frozen_string_literal: true
|
8
2
|
|
9
|
-
|
10
|
-
source 'https://rubygems.org' unless ENV['QUICK']
|
3
|
+
source 'https://rubygems.org'
|
11
4
|
gemspec
|
12
5
|
|
13
6
|
gem 'rake'
|
14
|
-
gem 'rack', '~> 2.0'
|
15
|
-
gem 'rack-test', '>= 0.6.2'
|
16
|
-
gem "minitest", "~> 5.0"
|
17
|
-
gem 'yard'
|
18
7
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
gem
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
if
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
gem 'rubysl-test-unit'
|
74
|
-
gem 'erubi'
|
75
|
-
end
|
76
|
-
|
77
|
-
platforms :jruby do
|
78
|
-
gem 'json'
|
79
|
-
end
|
8
|
+
rack_version = ENV['rack'].to_s
|
9
|
+
rack_version = nil if rack_version.empty? || (rack_version == 'stable')
|
10
|
+
rack_version = { github: 'rack/rack' } if rack_version == 'head'
|
11
|
+
gem 'rack', rack_version
|
12
|
+
|
13
|
+
rack_session_version = ENV['rack_session'].to_s
|
14
|
+
rack_session_version = nil if rack_session_version.empty? || (rack_session_version == 'stable')
|
15
|
+
rack_session_version = { github: 'rack/rack-session' } if rack_session_version == 'head'
|
16
|
+
gem 'rack-session', rack_session_version
|
17
|
+
|
18
|
+
gem 'rackup'
|
19
|
+
|
20
|
+
puma_version = ENV['puma'].to_s
|
21
|
+
puma_version = nil if puma_version.empty? || (puma_version == 'stable')
|
22
|
+
puma_version = { github: 'puma/puma' } if puma_version == 'head'
|
23
|
+
gem 'puma', puma_version
|
24
|
+
|
25
|
+
gem 'minitest', '~> 5.0'
|
26
|
+
gem 'rack-test'
|
27
|
+
gem 'rubocop', '~> 1.32.0', require: false
|
28
|
+
gem 'yard' # used by rake doc
|
29
|
+
|
30
|
+
gem 'rack-protection', path: 'rack-protection'
|
31
|
+
gem 'sinatra-contrib', path: 'sinatra-contrib'
|
32
|
+
|
33
|
+
gem 'asciidoctor'
|
34
|
+
gem 'builder'
|
35
|
+
gem 'childprocess', '>= 5'
|
36
|
+
gem 'commonmarker', '~> 0.23.4', platforms: [:ruby]
|
37
|
+
gem 'erubi'
|
38
|
+
gem 'eventmachine'
|
39
|
+
gem 'falcon', '~> 0.40', platforms: [:ruby]
|
40
|
+
gem 'haml', '~> 6'
|
41
|
+
gem 'kramdown'
|
42
|
+
gem 'liquid'
|
43
|
+
gem 'markaby'
|
44
|
+
gem 'nokogiri', '> 1.5.0'
|
45
|
+
gem 'pandoc-ruby', '~> 2.0.2'
|
46
|
+
gem 'rabl'
|
47
|
+
gem 'rdiscount', platforms: [:ruby]
|
48
|
+
gem 'rdoc'
|
49
|
+
gem 'redcarpet', platforms: [:ruby]
|
50
|
+
gem 'simplecov', require: false
|
51
|
+
gem 'slim', '~> 4'
|
52
|
+
gem 'yajl-ruby', platforms: [:ruby]
|
53
|
+
gem 'zeitwerk'
|
54
|
+
|
55
|
+
# sass-embedded depends on google-protobuf
|
56
|
+
# which fails to be installed on JRuby and TruffleRuby under aarch64
|
57
|
+
# https://github.com/jruby/jruby/issues/8062
|
58
|
+
# https://github.com/protocolbuffers/protobuf/issues/11935
|
59
|
+
java = %w(jruby truffleruby).include?(RUBY_ENGINE)
|
60
|
+
aarch64 = RbConfig::CONFIG["target_cpu"] == 'aarch64'
|
61
|
+
gem 'sass-embedded', '~> 1.54' unless java && aarch64
|
data/MAINTENANCE.md
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
### Releases
|
6
6
|
|
7
|
-
The next major version of Sinatra will be released from the
|
7
|
+
The next major version of Sinatra will be released from the main branch. Each version will be tagged so it will be possible to branch of should there be a need for bug fixes and other updates.
|
8
8
|
|
9
9
|
## Issues
|
10
10
|
|
11
11
|
### New features
|
12
12
|
|
13
|
-
New features will only be added to the
|
13
|
+
New features will only be added to the main branch and will not be made available in point releases.
|
14
14
|
|
15
15
|
### Bug fixes
|
16
16
|
|