sinatra 2.0.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sinatra might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/AUTHORS.md +1 -0
- data/CHANGELOG.md +258 -37
- data/CONTRIBUTING.md +7 -7
- data/Gemfile +15 -6
- data/MAINTENANCE.md +2 -15
- data/README.de.md +22 -22
- data/README.es.md +772 -362
- data/README.fr.md +188 -91
- data/README.hu.md +3 -3
- data/README.ja.md +84 -54
- data/README.ko.md +7 -7
- data/README.malayalam.md +3141 -0
- data/README.md +165 -113
- data/README.pt-br.md +2366 -339
- data/README.pt-pt.md +3 -3
- data/README.ru.md +835 -564
- data/README.zh.md +83 -21
- data/Rakefile +10 -7
- data/VERSION +1 -0
- data/examples/chat.rb +2 -1
- data/examples/rainbows.conf +3 -0
- data/examples/rainbows.rb +20 -0
- data/examples/stream.ru +4 -4
- data/lib/sinatra/base.rb +160 -123
- data/lib/sinatra/indifferent_hash.rb +79 -15
- data/lib/sinatra/main.rb +30 -11
- data/lib/sinatra/show_exceptions.rb +8 -11
- data/lib/sinatra/version.rb +1 -1
- data/sinatra.gemspec +25 -7
- metadata +20 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d2fb7e9fa622d8e1a7b82842d5ac454fd4c1d7b9a52c229ddf64b7dc12433b15
|
4
|
+
data.tar.gz: 6f7d140ece387704a0f18b2d7a810829b06881e4759bd48474271664ad62abf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0b7bd428c8efde08d481f3fbe8c845f526f4ab4ed58ede99bbe215c42488195c7d70ea36746d04a041d39cd771f4da9cd30afe64063ab455e14f7c525066efb
|
7
|
+
data.tar.gz: d4e3b63eaf8b9bce3cf748934404b06b8e0cfeb96da0796e925895ce84d96743d058f09781053051931b67c8ceb56f1bd6b46c8f945f255c4fc24626a9db7571
|
data/AUTHORS.md
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,66 +1,287 @@
|
|
1
|
+
## 2.2.0 / Unrealased
|
2
|
+
|
3
|
+
* Handle EOFError raised by Rack and return Bad Request 400 status. [#1743](https://github.com/sinatra/sinatra/pull/1743) by tamazon
|
4
|
+
|
5
|
+
* Update README.es.md with removal of Thin. [#1630](https://github.com/sinatra/sinatra/pull/1630) by Espartaco Palma
|
6
|
+
|
7
|
+
* Minor refactors in `base.rb`. [#1640](https://github.com/sinatra/sinatra/pull/1640) by ceclinux
|
8
|
+
|
9
|
+
* Fixed typos in german README.md. [#1648](https://github.com/sinatra/sinatra/pull/1648) by Juri
|
10
|
+
|
11
|
+
* Add escaping to the static 404 page. [#1645](https://github.com/sinatra/sinatra/pull/1645) by Chris Gavin
|
12
|
+
|
13
|
+
* Remove `detect_rack_handler` method. [#1652](https://github.com/sinatra/sinatra/pull/1652) by ceclinux
|
14
|
+
|
15
|
+
* 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
|
16
|
+
|
17
|
+
* Update README.ja.md with removal of Thin. [#1629](https://github.com/sinatra/sinatra/pull/1629) by Ryuichi KAWAMATA
|
18
|
+
|
19
|
+
* *Revert "Use prepend instead of include for helpers.* [#1662](https://github.com/sinatra/sinatra/pull/1662) by namusyaka
|
20
|
+
|
21
|
+
* Various minor fixes to README.md. [#1663](https://github.com/sinatra/sinatra/pull/1663) by Yanis Zafirópulos
|
22
|
+
|
23
|
+
* 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
|
24
|
+
|
25
|
+
* Update README.pt-br.md. [#1668](https://github.com/sinatra/sinatra/pull/1668) by Vitor Oliveira
|
26
|
+
|
27
|
+
* 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
|
28
|
+
|
29
|
+
* 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
|
30
|
+
|
31
|
+
* Add support for per form csrf tokens. Fixes [#1616](https://github.com/sinatra/sinatra/issues/1616) [#1653](https://github.com/sinatra/sinatra/pull/1653) by Jordan Owens
|
32
|
+
|
33
|
+
* Update MAINTENANCE.md with the `stable` branch status. [#1681](https://github.com/sinatra/sinatra/pull/1681) by Fredrik Rubensson
|
34
|
+
|
35
|
+
* Validate expanded path matches `public_dir` when serving static files. [#1683](https://github.com/sinatra/sinatra/pull/1683) by cji-stripe
|
36
|
+
|
37
|
+
* Fix Delegator to pass keyword arguments for Ruby 3.0. [#1684](https://github.com/sinatra/sinatra/pull/1684) by andrewtblake
|
38
|
+
|
39
|
+
* Fix use with keyword arguments for Ruby 3.0. [#1701](https://github.com/sinatra/sinatra/pull/1701) by Robin Wallin
|
40
|
+
|
41
|
+
* 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
|
42
|
+
|
43
|
+
* Remove unnecessary `test_files` from the gemspec. [#1712](https://github.com/sinatra/sinatra/pull/1712) by Masataka Pocke Kuwabara
|
44
|
+
|
45
|
+
* Add `#select`, `#reject` and `#compact` methods to `Sinatra::IndifferentHash`. [#1711](https://github.com/sinatra/sinatra/pull/1711) by Olivier Bellone
|
46
|
+
|
47
|
+
|
48
|
+
### CI
|
49
|
+
|
50
|
+
* Use latest JRuby 9.2.16.0 on CI. [#1682](https://github.com/sinatra/sinatra/pull/1682) by Olle Jonsson
|
51
|
+
|
52
|
+
* Switch CI from travis to Github actions. [#1691](https://github.com/sinatra/sinatra/pull/1691) by namusyaka
|
53
|
+
|
54
|
+
* Skip the Slack action if `secrets.SLACK_WEBHOOK` is not set. [#1705](https://github.com/sinatra/sinatra/pull/1705) by Robin Wallin
|
55
|
+
|
56
|
+
* Small CI improvements. [#1703](https://github.com/sinatra/sinatra/pull/1703) by Robin Wallin
|
57
|
+
|
58
|
+
* Drop auto-generated boilerplate comments from CI configuration file. [#1728](https://github.com/sinatra/sinatra/pull/1728) by Olle Jonsson
|
59
|
+
|
60
|
+
### sinatra-contrib
|
61
|
+
|
62
|
+
* Do not raise when key is an enumerable. [#1619](https://github.com/sinatra/sinatra/pull/1619) by Ulysse Buonomo
|
63
|
+
|
64
|
+
### Rack protection
|
65
|
+
|
66
|
+
* Fix broken `origin_whitelist` option. Fixes [#1641](https://github.com/sinatra/sinatra/issues/1641) [#1642](https://github.com/sinatra/sinatra/pull/1642) by Takeshi YASHIRO
|
67
|
+
|
68
|
+
## 2.1.0 / 2020-09-05
|
69
|
+
|
70
|
+
* Fix additional Ruby 2.7 keyword warnings [#1586](https://github.com/sinatra/sinatra/pull/1586) by Stefan Sundin
|
71
|
+
|
72
|
+
* Drop Ruby 2.2 support [#1455](https://github.com/sinatra/sinatra/pull/1455) by Eloy Pérez
|
73
|
+
|
74
|
+
* Add Rack::Protection::ReferrerPolicy [#1291](https://github.com/sinatra/sinatra/pull/1291) by Stefan Sundin
|
75
|
+
|
76
|
+
* Add `default_content_type` setting. Fixes [#1238](https://github.com/sinatra/sinatra/pull/1238) [#1239](https://github.com/sinatra/sinatra/pull/1239) by Mike Pastore
|
77
|
+
|
78
|
+
* Allow `set :<engine>` in sinatra-namespace [#1255](https://github.com/sinatra/sinatra/pull/1255) by Christian Höppner
|
79
|
+
|
80
|
+
* Use prepend instead of include for helpers. Fixes [#1213](https://github.com/sinatra/sinatra/pull/1213) [#1214](https://github.com/sinatra/sinatra/pull/1214) by Mike Pastore
|
81
|
+
|
82
|
+
* Fix issue with passed routes and provides Fixes [#1095](https://github.com/sinatra/sinatra/pull/1095) [#1606](https://github.com/sinatra/sinatra/pull/1606) by Mike Pastore, Jordan Owens
|
83
|
+
|
84
|
+
* Add QuietLogger that excludes pathes from Rack::CommonLogger [1250](https://github.com/sinatra/sinatra/pull/1250) by Christoph Wagner
|
85
|
+
|
86
|
+
* Sinatra::Contrib dependency updates. Fixes [#1207](https://github.com/sinatra/sinatra/pull/1207) [#1411](https://github.com/sinatra/sinatra/pull/1411) by Mike Pastore
|
87
|
+
|
88
|
+
* Allow CSP to fallback to default-src. Fixes [#1484](https://github.com/sinatra/sinatra/pull/1484) [#1490](https://github.com/sinatra/sinatra/pull/1490) by Jordan Owens
|
89
|
+
|
90
|
+
* Replace `origin_whitelist` with `permitted_origins`. Closes [#1620](https://github.com/sinatra/sinatra/issues/1620) [#1625](https://github.com/sinatra/sinatra/pull/1625) by rhymes
|
91
|
+
|
92
|
+
* Use Rainbows instead of thin for async/stream features. Closes [#1624](https://github.com/sinatra/sinatra/issues/1624) [#1627](https://github.com/sinatra/sinatra/pull/1627) by Ryuichi KAWAMATA
|
93
|
+
|
94
|
+
* Enable EscapedParams if passed via settings. Closes [#1615](https://github.com/sinatra/sinatra/issues/1615) [#1632](https://github.com/sinatra/sinatra/issues/1632) by Anders Bälter
|
95
|
+
|
96
|
+
* Support for parameters in mime types. Fixes [#1141](https://github.com/sinatra/sinatra/issues/1141) by John Hope
|
97
|
+
|
98
|
+
* Handle null byte when serving static files [#1574](https://github.com/sinatra/sinatra/issues/1574) by Kush Fanikiso
|
99
|
+
|
100
|
+
* Improve development support and documentation and source code by Olle Jonsson, Pierre-Adrien Buisson, Shota Iguchi
|
101
|
+
|
102
|
+
## 2.0.8.1 / 2020-01-02
|
103
|
+
|
104
|
+
* Allow multiple hashes to be passed in `merge` and `merge!` for `Sinatra::IndifferentHash` [#1572](https://github.com/sinatra/sinatra/pull/1572) by Shota Iguchi
|
105
|
+
|
106
|
+
## 2.0.8 / 2020-01-01
|
107
|
+
|
108
|
+
* Lookup Tilt class for template engine without loading files [#1558](https://github.com/sinatra/sinatra/pull/1558). Fixes [#1172](https://github.com/sinatra/sinatra/issues/1172) by Jordan Owens
|
109
|
+
|
110
|
+
* Add request info in NotFound exception [#1566](https://github.com/sinatra/sinatra/pull/1566) by Stefan Sundin
|
111
|
+
|
112
|
+
* Add `.yaml` support in `Sinatra::Contrib::ConfigFile` [#1564](https://github.com/sinatra/sinatra/issues/1564). Fixes [#1563](https://github.com/sinatra/sinatra/issues/1563) by Emerson Manabu Araki
|
113
|
+
|
114
|
+
* Remove only routing parameters from @params hash [#1569](https://github.com/sinatra/sinatra/pull/1569). Fixes [#1567](https://github.com/sinatra/sinatra/issues/1567) by Jordan Owens, Horacio
|
115
|
+
|
116
|
+
* Support `capture` and `content_for` with Hamlit [#1580](https://github.com/sinatra/sinatra/pull/1580) by Takashi Kokubun
|
117
|
+
|
118
|
+
* Eliminate warnings of keyword parameter for Ruby 2.7.0 [#1581](https://github.com/sinatra/sinatra/pull/1581) by Osamtimizer
|
119
|
+
|
120
|
+
## 2.0.7 / 2019-08-22
|
121
|
+
|
122
|
+
* Fix a regression [#1560](https://github.com/sinatra/sinatra/pull/1560) by Kunpei Sakai
|
123
|
+
|
124
|
+
## 2.0.6 / 2019-08-21
|
125
|
+
|
126
|
+
* Fix an issue setting environment from command line option [#1547](https://github.com/sinatra/sinatra/pull/1547), [#1554](https://github.com/sinatra/sinatra/pull/1554) by Jordan Owens, Kunpei Sakai
|
127
|
+
|
128
|
+
* Support pandoc as a new markdown renderer [#1533](https://github.com/sinatra/sinatra/pull/1533) by Vasiliy
|
129
|
+
|
130
|
+
* Remove outdated code for tilt 1.x [#1532](https://github.com/sinatra/sinatra/pull/1532) by Vasiliy
|
131
|
+
|
132
|
+
* Remove an extra logic for `force_encoding` [#1527](https://github.com/sinatra/sinatra/pull/1527) by Jordan Owens
|
133
|
+
|
134
|
+
* Avoid multiple errors even if `params` contains special values [#1526](https://github.com/sinatra/sinatra/pull/1527) by Kunpei Sakai
|
135
|
+
|
136
|
+
* Support `bundler/inline` with `require 'sinatra'` integration [#1520](https://github.com/sinatra/sinatra/pull/1520) by Kunpei Sakai
|
137
|
+
|
138
|
+
* Avoid `TypeError` when params contain a key without a value on Ruby < 2.4 [#1516](https://github.com/sinatra/sinatra/pull/1516) by Samuel Giddins
|
139
|
+
|
140
|
+
* Improve development support and documentation and source code by Olle Jonsson, Basavanagowda Kanur, Yuki MINAMIYA
|
141
|
+
|
142
|
+
## 2.0.5 / 2018-12-22
|
143
|
+
|
144
|
+
* Avoid FrozenError when params contains frozen value [#1506](https://github.com/sinatra/sinatra/pull/1506) by Kunpei Sakai
|
145
|
+
|
146
|
+
* Add support for Erubi [#1494](https://github.com/sinatra/sinatra/pull/1494) by @tkmru
|
147
|
+
|
148
|
+
* `IndifferentHash` monkeypatch warning improvements [#1477](https://github.com/sinatra/sinatra/pull/1477) by Mike Pastore
|
149
|
+
|
150
|
+
* Improve development support and documentation and source code by Anusree Prakash, Jordan Owens, @ceclinux and @krororo.
|
151
|
+
|
152
|
+
### sinatra-contrib
|
153
|
+
|
154
|
+
* Add `flush` option to `content_for` [#1225](https://github.com/sinatra/sinatra/pull/1225) by Shota Iguchi
|
155
|
+
|
156
|
+
* Drop activesupport dependency from sinatra-contrib [#1448](https://github.com/sinatra/sinatra/pull/1448)
|
157
|
+
|
158
|
+
* Update `yield_content` to append default to ERB template buffer [#1500](https://github.com/sinatra/sinatra/pull/1500) by Jordan Owens
|
159
|
+
|
160
|
+
### rack-protection
|
161
|
+
|
162
|
+
* Don't track the Accept-Language header by default [#1504](https://github.com/sinatra/sinatra/pull/1504) by Artem Chistyakov
|
163
|
+
|
164
|
+
## 2.0.4 / 2018-09-15
|
165
|
+
|
166
|
+
* Don't blow up when passing frozen string to `send_file` disposition [#1137](https://github.com/sinatra/sinatra/pull/1137) by Andrew Selder
|
167
|
+
|
168
|
+
* Fix ubygems LoadError [#1436](https://github.com/sinatra/sinatra/pull/1436) by Pavel Rosický
|
169
|
+
|
170
|
+
* Unescape regex captures [#1446](https://github.com/sinatra/sinatra/pull/1446) by Jordan Owens
|
171
|
+
|
172
|
+
* Slight performance improvements for IndifferentHash [#1427](https://github.com/sinatra/sinatra/pull/1427) by Mike Pastore
|
173
|
+
|
174
|
+
* Improve development support and documentation and source code by Will Yang, Jake Craige, Grey Baker and Guilherme Goettems Schneider
|
175
|
+
|
176
|
+
## 2.0.3 / 2018-06-09
|
177
|
+
|
178
|
+
* Fix the backports gem regression [#1442](https://github.com/sinatra/sinatra/issues/1442) by Marc-André Lafortune
|
179
|
+
|
180
|
+
## 2.0.2 / 2018-06-05
|
181
|
+
|
182
|
+
* Escape invalid query parameters [#1432](https://github.com/sinatra/sinatra/issues/1432) by Kunpei Sakai
|
183
|
+
* The patch fixes [CVE-2018-11627](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-11627).
|
184
|
+
|
185
|
+
* Fix undefined method error for `Sinatra::RequiredParams` with hash key [#1431](https://github.com/sinatra/sinatra/issues/1431) by Arpit Chauhan
|
186
|
+
|
187
|
+
* Add xml content-types to valid html_types for Rack::Protection [#1413](https://github.com/sinatra/sinatra/issues/1413) by Reenan Arbitrario
|
188
|
+
|
189
|
+
* Encode route parameters using :default_encoding setting [#1412](https://github.com/sinatra/sinatra/issues/1412) by Brian m. Carlson
|
190
|
+
|
191
|
+
* Fix unpredictable behaviour from Sinatra::ConfigFile [#1244](https://github.com/sinatra/sinatra/issues/1244) by John Hope
|
192
|
+
|
193
|
+
* Add Sinatra::IndifferentHash#slice [#1405](https://github.com/sinatra/sinatra/issues/1405) by Shota Iguchi
|
194
|
+
|
195
|
+
* Remove status code 205 from drop body response [#1398](https://github.com/sinatra/sinatra/issues/1398) by Shota Iguchi
|
196
|
+
|
197
|
+
* Ignore empty captures from params [#1390](https://github.com/sinatra/sinatra/issues/1390) by Shota Iguchi
|
198
|
+
|
199
|
+
* Improve development support and documentation and source code by Zp Yuan, Andreas Finger, Olle Jonsson, Shota Iguchi, Nikita Bulai and Joshua O'Brien
|
200
|
+
|
201
|
+
## 2.0.1 / 2018-02-17
|
202
|
+
|
203
|
+
* Repair nested namespaces, by avoiding prefix duplication [#1322](https://github.com/sinatra/sinatra/issues/1322). Fixes [#1310](https://github.com/sinatra/sinatra/issues/1310) by Kunpei Sakai
|
204
|
+
|
205
|
+
* Add pattern matches to values for Mustermann::Concat [#1333](https://github.com/sinatra/sinatra/issues/1333). Fixes [#1332](https://github.com/sinatra/sinatra/issues/1332) by Dawa Ometto
|
206
|
+
|
207
|
+
* Ship the VERSION file with the gem, to allow local unpacking [#1338](https://github.com/sinatra/sinatra/issues/1338) by Olle Jonsson
|
208
|
+
|
209
|
+
* Fix issue with custom error handler on bad request [#1351](https://github.com/sinatra/sinatra/issues/1351). Fixes [#1350](https://github.com/sinatra/sinatra/issues/1350) by Jordan Owens
|
210
|
+
|
211
|
+
* Override Rack::ShowExceptions#pretty to set custom template [#1377](https://github.com/sinatra/sinatra/issues/1377). Fixes [#1376](https://github.com/sinatra/sinatra/issues/1376) by Jordan Owens
|
212
|
+
|
213
|
+
* Enhanced path validation in Windows [#1379](https://github.com/sinatra/sinatra/issues/1379) by Orange Tsai from DEVCORE
|
214
|
+
* The patch fixes [CVE-2018-7212](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7212)
|
215
|
+
|
216
|
+
* Improve development support and documentation by Faheel Ahmad, Shota Iguchi, Olle Jonsson, Manabu Niseki, John Hope, Horacio, Ice-Storm, GraniteRock, Raman Skaskevich, Carlos Azuaje, 284km, Dan Rice and Zachary Scott
|
217
|
+
|
1
218
|
## 2.0.0 / 2017-04-10
|
2
219
|
|
3
|
-
* Use Mustermann for patterns #1086 by Konstantin Haase
|
220
|
+
* Use Mustermann for patterns [#1086](https://github.com/sinatra/sinatra/issues/1086) by Konstantin Haase
|
4
221
|
|
5
|
-
* Server now provides `-q` flag for quiet mode, which disables start/stop messages #1153 by Vasiliy.
|
222
|
+
* Server now provides `-q` flag for quiet mode, which disables start/stop messages [#1153](https://github.com/sinatra/sinatra/issues/1153) by Vasiliy.
|
6
223
|
|
7
|
-
* Session middleware can now be specified with `:session_store` setting #1161 by Jordan Owens.
|
224
|
+
* Session middleware can now be specified with `:session_store` setting [#1161](https://github.com/sinatra/sinatra/issues/1161) by Jordan Owens.
|
8
225
|
|
9
|
-
* `APP_ENV` is now preferred and recommended over `RACK_ENV` for setting environment #984 by Damien Mathieu.
|
226
|
+
* `APP_ENV` is now preferred and recommended over `RACK_ENV` for setting environment [#984](https://github.com/sinatra/sinatra/issues/984) by Damien Mathieu.
|
10
227
|
|
11
|
-
* Add Reel support #793 by Patricio Mac Adden.
|
228
|
+
* Add Reel support [#793](https://github.com/sinatra/sinatra/issues/793) by Patricio Mac Adden.
|
12
229
|
|
13
|
-
* Make route params available during error handling #895 by Jeremy Evans.
|
230
|
+
* Make route params available during error handling [#895](https://github.com/sinatra/sinatra/issues/895) by Jeremy Evans.
|
14
231
|
|
15
|
-
* Unify `not_found` and `error` 404 behavior #896 by Jeremy Evans.
|
232
|
+
* Unify `not_found` and `error` 404 behavior [#896](https://github.com/sinatra/sinatra/issues/896) by Jeremy Evans.
|
16
233
|
|
17
|
-
* Enable Ruby 2.3 `frozen_string_literal` feature #1076 by Vladimir Kochnev.
|
234
|
+
* Enable Ruby 2.3 `frozen_string_literal` feature [#1076](https://github.com/sinatra/sinatra/issues/1076) by Vladimir Kochnev.
|
18
235
|
|
19
236
|
* Add Sinatra::ShowExceptions::TEMPLATE and patched Rack::ShowExceptions to prefer Sinatra template by Zachary Scott.
|
20
237
|
|
21
|
-
* Sinatra::Runner is used internally for integration tests #840 by Nick Sutterer.
|
238
|
+
* Sinatra::Runner is used internally for integration tests [#840](https://github.com/sinatra/sinatra/issues/840) by Nick Sutterer.
|
239
|
+
|
240
|
+
* Fix case-sensitivity issue in `uri` method [#889](https://github.com/sinatra/sinatra/issues/889) by rennex.
|
241
|
+
|
242
|
+
* Use `Rack::Utils.status_code` to allow `status` helper to use symbol as well as numeric codes [#968](https://github.com/sinatra/sinatra/issues/968) by Tobias H. Michaelsen.
|
22
243
|
|
23
|
-
*
|
244
|
+
* Improved error handling for invalid params through Rack [#1070](https://github.com/sinatra/sinatra/issues/1070) by Jordan Owens.
|
24
245
|
|
25
|
-
*
|
246
|
+
* Ensure template is cached only once [#1021](https://github.com/sinatra/sinatra/issues/1021) by Patrik Rak.
|
26
247
|
|
27
|
-
*
|
248
|
+
* Rack middleware is initialized at server runtime rather than after receiving first request [#1205](https://github.com/sinatra/sinatra/issues/1205) by Itamar Turner-Trauring.
|
28
249
|
|
29
|
-
*
|
250
|
+
* Improve Session Secret documentation to encourage better security practices [#1218](https://github.com/sinatra/sinatra/issues/1218) by Glenn Rempe
|
30
251
|
|
31
|
-
*
|
252
|
+
* Exposed global and per-route options for Mustermann route parsing [#1233](https://github.com/sinatra/sinatra/issues/1233) by Mike Pastore
|
32
253
|
|
33
|
-
*
|
254
|
+
* Use same `session_secret` for classic and modular apps in development [#1245](https://github.com/sinatra/sinatra/issues/1245) by Marcus Stollsteimer
|
34
255
|
|
35
|
-
*
|
256
|
+
* Make authenticity token length a fixed value of 32 [#1181](https://github.com/sinatra/sinatra/issues/1181) by Jordan Owens
|
36
257
|
|
37
|
-
*
|
258
|
+
* Modernize Rack::Protection::ContentSecurityPolicy with CSP Level 2 and 3 Directives [#1202](https://github.com/sinatra/sinatra/issues/1202) by Glenn Rempe
|
38
259
|
|
39
|
-
*
|
260
|
+
* Adds preload option to Rack:Protection:StrictTransport [#1209](https://github.com/sinatra/sinatra/issues/1209) by Ed Robinson
|
40
261
|
|
41
|
-
*
|
262
|
+
* Improve BadRequest logic. Raise and handle exceptions if status is 400 [#1212](https://github.com/sinatra/sinatra/issues/1212) by Mike Pastore
|
42
263
|
|
43
|
-
*
|
264
|
+
* Make Rack::Test a development dependency [#1232](https://github.com/sinatra/sinatra/issues/1232) by Mike Pastore
|
44
265
|
|
45
|
-
*
|
266
|
+
* Capture exception messages of raised NotFound and BadRequest [#1210](https://github.com/sinatra/sinatra/issues/1210) by Mike Pastore
|
46
267
|
|
47
|
-
*
|
268
|
+
* Add explicit set method to contrib/cookies to override cookie settings [#1240](https://github.com/sinatra/sinatra/issues/1240) by Andrew Allen
|
48
269
|
|
49
|
-
*
|
270
|
+
* Avoid executing filters even if prefix matches with other namespace [#1253](https://github.com/sinatra/sinatra/issues/1253) by namusyaka
|
50
271
|
|
51
|
-
*
|
272
|
+
* Make `#has_key?` also indifferent in access, can accept String or Symbol [#1262](https://github.com/sinatra/sinatra/issues/1262) by Stephen Paul Weber
|
52
273
|
|
53
|
-
*
|
274
|
+
* Add `allow_if` option to bypass json csrf protection [#1265](https://github.com/sinatra/sinatra/issues/1265) by Jordan Owens
|
54
275
|
|
55
|
-
*
|
276
|
+
* rack-protection: Bundle StrictTransport, CookieTossing, and CSP [#1267](https://github.com/sinatra/sinatra/issues/1267) by Mike Pastore
|
56
277
|
|
57
|
-
* Add `
|
278
|
+
* Add `:strict_paths` option for managing trailing slashes [#1273](https://github.com/sinatra/sinatra/issues/1273) by namusyaka
|
58
279
|
|
59
|
-
*
|
280
|
+
* Add full IndifferentHash implementation to params [#1279](https://github.com/sinatra/sinatra/issues/1279) by Mike Pastore
|
60
281
|
|
61
|
-
|
282
|
+
## 1.4.8 / 2017-01-30
|
62
283
|
|
63
|
-
*
|
284
|
+
* Fix the deprecation warning from Ruby about Fixnum. [#1235](https://github.com/sinatra/sinatra/issues/1235) by Akira Matsuda
|
64
285
|
|
65
286
|
## 1.4.7 / 2016-01-24
|
66
287
|
|
@@ -68,14 +289,14 @@
|
|
68
289
|
|
69
290
|
* Correctly handle encoded colons in routes. (Jeremy Evans)
|
70
291
|
|
71
|
-
* Rename CHANGES to CHANGELOG.md and update Rakefile. #1043 (Eliza Sorensen)
|
292
|
+
* Rename CHANGES to CHANGELOG.md and update Rakefile. [#1043](https://github.com/sinatra/sinatra/issues/1043) (Eliza Sorensen)
|
72
293
|
|
73
|
-
* Improve documentation. #941, #1069, #1075, #1025, #1052 (Many great folks)
|
294
|
+
* Improve documentation. [#941](https://github.com/sinatra/sinatra/issues/941), [#1069](https://github.com/sinatra/sinatra/issues/1069), [#1075](https://github.com/sinatra/sinatra/issues/1075), [#1025](https://github.com/sinatra/sinatra/issues/1025), [#1052](https://github.com/sinatra/sinatra/issues/1052) (Many great folks)
|
74
295
|
|
75
296
|
* Introduce `Sinatra::Ext` to workaround Rack 1.6 bug to fix Ruby 1.8.7
|
76
|
-
support. #1080 (Zachary Scott)
|
297
|
+
support. [#1080](https://github.com/sinatra/sinatra/issues/1080) (Zachary Scott)
|
77
298
|
|
78
|
-
* Add CONTRIBUTING guide. #987 (Katrina Owen)
|
299
|
+
* Add CONTRIBUTING guide. [#987](https://github.com/sinatra/sinatra/issues/987) (Katrina Owen)
|
79
300
|
|
80
301
|
|
81
302
|
## 1.4.6 / 2015-03-23
|
@@ -610,9 +831,9 @@ Backported from 1.3.0:
|
|
610
831
|
|
611
832
|
* The request object was shared between multiple Sinatra instances in the
|
612
833
|
same middleware chain. This caused issues if any non-sinatra routing
|
613
|
-
|
834
|
+
happened in-between two of those instances, or running a request twice
|
614
835
|
against an application (described in the README). The caching was reverted.
|
615
|
-
See GH#239 and GH#256 for more infos. (Konstantin Haase)
|
836
|
+
See GH[#239](https://github.com/sinatra/sinatra/issues/239) and GH[#256](https://github.com/sinatra/sinatra/issues/256) for more infos. (Konstantin Haase)
|
616
837
|
|
617
838
|
* Fixes issues where the top level DSL was interfering with method_missing
|
618
839
|
proxies. This issue surfaced when Rails 3 was used with older Sass versions
|
@@ -1318,7 +1539,7 @@ the 1.0 release:
|
|
1318
1539
|
* BUG: raising Sinatra::NotFound resulted in a 500 response
|
1319
1540
|
code instead of 404.
|
1320
1541
|
|
1321
|
-
* BUG: use_in_file_templates! fails with CR/LF
|
1542
|
+
* BUG: use_in_file_templates! fails with CR/LF [#45]
|
1322
1543
|
|
1323
1544
|
* BUG: Sinatra detects the app file and root path when run under
|
1324
1545
|
thin/passenger.
|
data/CONTRIBUTING.md
CHANGED
@@ -36,13 +36,7 @@ can be applied as quickly as possible:
|
|
36
36
|
modify the `README.md` file to reflect that. Again, if you don't
|
37
37
|
update the `README`, we have to, and this holds up acceptance.
|
38
38
|
|
39
|
-
4. **
|
40
|
-
overview of the changes that go into each release, and gives credit
|
41
|
-
where credit is due. We make sure that the change log is up to date
|
42
|
-
before each release, and we always appreciate it when people make
|
43
|
-
it easier to get the release out the door.
|
44
|
-
|
45
|
-
5. **Push it:** Once you're ready, push your changes to a topic branch
|
39
|
+
4. **Push it:** Once you're ready, push your changes to a topic branch
|
46
40
|
and add a note to the ticket with the URL to your branch. Or, say
|
47
41
|
something like, "you can find the patch on johndoe/foobranch". We also
|
48
42
|
gladly accept GitHub [pull requests](http://help.github.com/pull-requests/).
|
@@ -98,3 +92,9 @@ fine).
|
|
98
92
|
|
99
93
|
[ghi]: http://github.com/sinatra/sinatra/issues
|
100
94
|
[ml]: http://groups.google.com/group/sinatrarb/topics "Sinatra Mailing List"
|
95
|
+
|
96
|
+
* ["Help Wanted"](https://github.com/sinatra/sinatra/labels/help%20wanted): Anyone willing to pitch in is open to contribute to this ticket as they see fit (will try to add context / summarize or ask for requirements)
|
97
|
+
|
98
|
+
* ["Good First Issue"](https://github.com/sinatra/sinatra/labels/good%20first%20issue): Potential first time contributors should start here
|
99
|
+
|
100
|
+
* ["Wishlist"](https://github.com/sinatra/sinatra/labels/Wishlist): All the things I wish we had but have no time for
|
data/Gemfile
CHANGED
@@ -11,7 +11,7 @@ source 'https://rubygems.org' unless ENV['QUICK']
|
|
11
11
|
gemspec
|
12
12
|
|
13
13
|
gem 'rake'
|
14
|
-
gem 'rack',
|
14
|
+
gem 'rack', '~> 2.0'
|
15
15
|
gem 'rack-test', '>= 0.6.2'
|
16
16
|
gem "minitest", "~> 5.0"
|
17
17
|
gem 'yard'
|
@@ -19,25 +19,30 @@ gem 'yard'
|
|
19
19
|
gem "rack-protection", path: "rack-protection"
|
20
20
|
gem "sinatra-contrib", path: "sinatra-contrib"
|
21
21
|
|
22
|
-
gem "twitter-text", "1.14.
|
22
|
+
gem "twitter-text", "1.14.7"
|
23
23
|
|
24
24
|
if RUBY_ENGINE == 'jruby'
|
25
25
|
gem 'nokogiri', '!= 1.5.0'
|
26
|
-
gem '
|
26
|
+
gem 'puma'
|
27
|
+
end
|
28
|
+
|
29
|
+
if RUBY_ENGINE == 'jruby' || RUBY_ENGINE == 'ruby'
|
30
|
+
gem "activesupport", "~> 5.1.6"
|
27
31
|
end
|
28
32
|
|
29
33
|
if RUBY_ENGINE == "ruby"
|
30
34
|
gem 'less', '~> 2.0'
|
31
|
-
gem '
|
35
|
+
gem 'therubyracer'
|
32
36
|
gem 'redcarpet'
|
33
|
-
gem 'wlang', '>=
|
37
|
+
gem 'wlang', '>= 3.0.1'
|
34
38
|
gem 'bluecloth'
|
35
39
|
gem 'rdiscount'
|
36
40
|
gem 'RedCloth'
|
37
41
|
gem 'puma'
|
38
42
|
gem 'yajl-ruby'
|
39
43
|
gem 'nokogiri'
|
40
|
-
gem '
|
44
|
+
gem 'rainbows'
|
45
|
+
gem 'eventmachine'
|
41
46
|
gem 'slim', '~> 2.0'
|
42
47
|
gem 'coffee-script', '>= 2.0'
|
43
48
|
gem 'rdoc'
|
@@ -52,11 +57,14 @@ if RUBY_ENGINE == "ruby"
|
|
52
57
|
gem 'stylus'
|
53
58
|
gem 'rabl'
|
54
59
|
gem 'builder'
|
60
|
+
gem 'erubi'
|
55
61
|
gem 'erubis'
|
56
62
|
gem 'haml', '>= 3.0'
|
57
63
|
gem 'sass'
|
58
64
|
gem 'reel-rack'
|
59
65
|
gem 'celluloid', '~> 0.16.0'
|
66
|
+
gem 'commonmarker', '~> 0.20.0'
|
67
|
+
gem 'pandoc-ruby', '~> 2.0.2'
|
60
68
|
gem 'simplecov', require: false
|
61
69
|
end
|
62
70
|
|
@@ -64,6 +72,7 @@ if RUBY_ENGINE == "rbx"
|
|
64
72
|
gem 'json'
|
65
73
|
gem 'rubysl'
|
66
74
|
gem 'rubysl-test-unit'
|
75
|
+
gem 'erubi'
|
67
76
|
end
|
68
77
|
|
69
78
|
platforms :jruby do
|
data/MAINTENANCE.md
CHANGED
@@ -2,15 +2,9 @@
|
|
2
2
|
|
3
3
|
## Versions
|
4
4
|
|
5
|
-
###
|
5
|
+
### Releases
|
6
6
|
|
7
|
-
The next major version of Sinatra will be released from the master branch.
|
8
|
-
|
9
|
-
* Current proposed major release: 2.0.0
|
10
|
-
|
11
|
-
### Stable release
|
12
|
-
|
13
|
-
The current stable version of Sinatra is 1.4 series, and released from the stable branch.
|
7
|
+
The next major version of Sinatra will be released from the master 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.
|
14
8
|
|
15
9
|
## Issues
|
16
10
|
|
@@ -22,21 +16,14 @@ New features will only be added to the master branch and will not be made availa
|
|
22
16
|
|
23
17
|
Only the latest release series will receive bug fixes. When enough bugs are fixed and its deemed worthy to release a new gem, this is the branch it happens from.
|
24
18
|
|
25
|
-
* Current release series: 1.4.x
|
26
|
-
|
27
19
|
### Security issues
|
28
20
|
|
29
21
|
The current release series will receive patches and new versions in case of a security issue.
|
30
22
|
|
31
|
-
* Current release series: 1.4.x
|
32
|
-
|
33
23
|
### Severe security issues
|
34
24
|
|
35
25
|
For severe security issues we will provide new versions as above, and also the last major release series will receive patches and new versions. The classification of the security issue is judged by the core team.
|
36
26
|
|
37
|
-
* Current release series: 1.4.x
|
38
|
-
* Next most recent release series: 1.3.x
|
39
|
-
|
40
27
|
### Unsupported Release Series
|
41
28
|
|
42
29
|
When a release series is no longer supported, it’s your own responsibility to deal with bugs and security issues. We may provide back-ports of the fixes and publish them to git, however there will be no new versions released. If you are not comfortable maintaining your own versions, you should upgrade to a supported version.
|