nano-max-rb 0.0.1

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.
@@ -0,0 +1,1848 @@
1
+ ## Unreleased
2
+
3
+ ## 4.2.1 / 2025-10-10
4
+
5
+ * Fix: Revert "`PATH_INFO` can never be empty" ([#2124](https://github.com/sinatra/sinatra/pull/2124))
6
+ * addresses issues with routing and 404, [more in the original pull request](https://github.com/sinatra/sinatra/issues/2113#issuecomment-3388476329)
7
+
8
+ ## 4.2.0 / 2025-10-08
9
+
10
+ * New: Add `:static_headers` setting for custom headers in static file responses ([#2089](https://github.com/sinatra/sinatra/pull/2089))
11
+ * Fix: Fix regex in `etag_matches?` to prevent ReDoS ([#2121](https://github.com/sinatra/sinatra/pull/2121))
12
+ * Fix: `PATH_INFO` can never be empty ([#2114](https://github.com/sinatra/sinatra/pull/2114))
13
+ * Fix: Fix malformed Content-Type headers ([#2081](https://github.com/sinatra/sinatra/pull/2081))
14
+ * Fix: Avoid crash for integer values in `content_type` parameters ([#2078](https://github.com/sinatra/sinatra/pull/2078))
15
+
16
+ ## 4.1.1 / 2024-11-20
17
+
18
+ * Fix: Restore WEBrick support ([#2067](https://github.com/sinatra/sinatra/pull/2067))
19
+
20
+ ## 4.1.0 / 2024-11-18
21
+
22
+ * New: Add `host_authorization` setting ([#2053](https://github.com/sinatra/sinatra/pull/2053))
23
+ * Defaults to `.localhost`, `.test` and any IP address in development mode.
24
+ * Security: addresses [CVE-2024-21510](https://github.com/advisories/GHSA-hxx2-7vcw-mqr3).
25
+ * Fix: Return an instance of `Sinatra::IndifferentHash` when calling `#except` ([#2044](https://github.com/sinatra/sinatra/pull/2044))
26
+ * Fix: Address warning from `URI` for Ruby 3.4 ([#2060](https://github.com/sinatra/sinatra/pull/2060))
27
+ * Fix: `rackup` no longer depends on WEBrick, recommend Puma instead ([`4a558503`](https://github.com/sinatra/sinatra/commit/4a558503a0ee41f26d4ebc07b478340e8a8a5ed6))
28
+ * Fix: Zeitwerk 2.7.0+ compatibility ([#2050](https://github.com/sinatra/sinatra/pull/2050))
29
+ * Fix: Address warning about Hash construction for Ruby 3.4 ([#2028](https://github.com/sinatra/sinatra/pull/2028))
30
+ * Fix: Declare missing dependencies for Ruby 3.5 ([#2032](https://github.com/sinatra/sinatra/pull/2032))
31
+ * Fix: Compatibility with `--enable-frozen-string-literal` ([#2033](https://github.com/sinatra/sinatra/pull/2033))
32
+ * Fix: Rack 3.1 compatibility ([#2035](https://github.com/sinatra/sinatra/pull/2035))
33
+ * Don't depend on `Rack::Logger`
34
+ * Don't delete `content-length` header when `Rack::Files` is used
35
+
36
+ ## 4.0.1 / 2025-05-24
37
+
38
+ * Rack 3.1 compatibility ([#2035])
39
+
40
+ * Fix malformed Content-Type headers ([#2081])
41
+
42
+ * Avoid crash for integer values in `content_type` parameters ([#2078])
43
+
44
+ * Fix compatibility with --enable-frozen-string-literal ([#2033])
45
+
46
+ * Declare missing dependencies for Ruby 3.5 ([#2032])
47
+
48
+ * Fix warning about Hash construction. ([#2028])
49
+
50
+ * Support Zeitwerk 2.7.0+ ([#2050])
51
+
52
+ * Address URI depreciation ([#2060])
53
+
54
+ [#2035]: https://github.com/sinatra/sinatra/pull/2035
55
+ [#2081]: https://github.com/sinatra/sinatra/pull/2081
56
+ [#2078]: https://github.com/sinatra/sinatra/pull/2078
57
+ [#2033]: https://github.com/sinatra/sinatra/pull/2033
58
+ [#2032]: https://github.com/sinatra/sinatra/pull/2032
59
+ [#2028]: https://github.com/sinatra/sinatra/pull/2028
60
+ [#2050]: https://github.com/sinatra/sinatra/pull/2050
61
+ [#2060]: https://github.com/sinatra/sinatra/pull/2060
62
+
63
+ ## 4.0.0. / 2024-01-19
64
+
65
+ * New: Add support for Rack 3 ([#1857])
66
+ * Note: you may want to read the [Rack 3 Upgrade Guide]
67
+
68
+ * Require Ruby 2.7.8 as minimum Ruby version ([#1993])
69
+
70
+ * Breaking change: Drop support for Rack 2 ([#1857])
71
+ * Note: when using Sinatra to start the web server, you now need the `rackup` gem installed
72
+
73
+ * Breaking change: Remove the `IndifferentHash` initializer ([#1982])
74
+
75
+ * Breaking change: Disable `session_hijacking` protection by default ([#1984])
76
+
77
+ * Breaking change: Remove `Rack::Protection::EncryptedCookie` ([#1989])
78
+ * Note: cookies are still encrypted (by [`Rack::Session::Cookie`])
79
+
80
+ [#1857]: https://github.com/sinatra/sinatra/pull/1857
81
+ [#1993]: https://github.com/sinatra/sinatra/pull/1993
82
+ [#1982]: https://github.com/sinatra/sinatra/pull/1982
83
+ [#1984]: https://github.com/sinatra/sinatra/pull/1984
84
+ [#1989]: https://github.com/sinatra/sinatra/pull/1989
85
+ [`Rack::Session::Cookie`]: https://github.com/rack/rack-session
86
+ [Rack 3 Upgrade Guide]: https://github.com/rack/rack/blob/main/UPGRADE-GUIDE.md
87
+
88
+ ## 3.2.0 / 2023-12-29
89
+
90
+ * New: Add `#except` method to `Sinatra::IndifferentHash` ([#1940])
91
+
92
+ * New: Use `Exception#detailed_message` to show backtrace ([#1952])
93
+
94
+ * New: Add `Sinatra::HamlHelpers` to sinatra-contrib ([#1960])
95
+
96
+ * Fix: Add `base64` to rack-protection runtime dependencies ([#1946])
97
+
98
+ * Fix: Avoid open-ended dependencies for sinatra-contrib and rack-protection ([#1949])
99
+
100
+ * Fix: Helpful message when `Sinatra::Runner` times out ([#1975])
101
+
102
+ * Fix: Ruby 3.3 + Bundler 2.5 compatibility ([#1975])
103
+
104
+ [#1940]: https://github.com/sinatra/sinatra/pull/1940
105
+ [#1946]: https://github.com/sinatra/sinatra/pull/1946
106
+ [#1949]: https://github.com/sinatra/sinatra/pull/1949
107
+ [#1952]: https://github.com/sinatra/sinatra/pull/1952
108
+ [#1960]: https://github.com/sinatra/sinatra/pull/1960
109
+ [#1975]: https://github.com/sinatra/sinatra/pull/1975
110
+
111
+ ## 3.1.0 / 2023-08-07
112
+
113
+ * New: Add sass support via sass-embedded [#1911] by なつき
114
+
115
+ * New: Add start and stop callbacks [#1913] by Jevin Sew
116
+
117
+ * New: Warn on dropping sessions [#1900] by Jonathan del Strother
118
+
119
+ * New: Make Puma the default server [#1924] by Patrik Ragnarsson
120
+
121
+ * Fix: Remove use of Tilt::Cache [#1922] by Jeremy Evans (allows use of Tilt 2.2.0 without deprecation warning)
122
+
123
+ * Fix: rack-protection: specify rack version requirement [#1932] by Patrik Ragnarsson
124
+
125
+ [#1911]: https://github.com/sinatra/sinatra/pull/1911
126
+ [#1913]: https://github.com/sinatra/sinatra/pull/1913
127
+ [#1900]: https://github.com/sinatra/sinatra/pull/1900
128
+ [#1924]: https://github.com/sinatra/sinatra/pull/1924
129
+ [#1922]: https://github.com/sinatra/sinatra/pull/1922
130
+ [#1932]: https://github.com/sinatra/sinatra/pull/1932
131
+
132
+ ## 3.0.6 / 2023-04-11
133
+
134
+ * Fix: Add support to keep open streaming connections with Puma [#1858](https://github.com/sinatra/sinatra/pull/1858) by Jordan Owens
135
+
136
+ * Fix: Avoid crash in `uri` helper on Integer input [#1890](https://github.com/sinatra/sinatra/pull/1890) by Patrik Ragnarsson
137
+
138
+ * Fix: Rescue `RuntimeError` when trying to use `SecureRandom` [#1888](https://github.com/sinatra/sinatra/pull/1888) by Stefan Sundin
139
+
140
+ ## 3.0.5 / 2022-12-16
141
+
142
+ * Fix: Add Zeitwerk compatibility. [#1831](https://github.com/sinatra/sinatra/pull/1831) by Dawid Janczak
143
+
144
+ * Fix: Allow CALLERS_TO_IGNORE to be overridden
145
+
146
+ ## 3.0.4 / 2022-11-25
147
+
148
+ * Fix: Escape filename in the Content-Disposition header. [#1841](https://github.com/sinatra/sinatra/pull/1841) by Kunpei Sakai
149
+
150
+ ## 3.0.3 / 2022-11-11
151
+
152
+ * Fix: fixed ReDoS for Rack::Protection::IPSpoofing. [#1823](https://github.com/sinatra/sinatra/pull/1823) by @ooooooo-q
153
+
154
+ ## 3.0.2 / 2022-10-01
155
+
156
+ * New: Add Haml 6 support. [#1820](https://github.com/sinatra/sinatra/pull/1820) by Jordan Owens
157
+
158
+ ## 3.0.1 / 2022-09-26
159
+
160
+ * Fix: Revert removal of rack-protection.rb. [#1814](https://github.com/sinatra/sinatra/pull/1814) by Olle Jonsson
161
+
162
+ * 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
163
+
164
+ ## 3.0.0 / 2022-09-26
165
+
166
+ * New: Add Falcon support. [#1794](https://github.com/sinatra/sinatra/pull/1794) by Samuel Williams and @horaciob
167
+
168
+ * New: Add AES GCM encryption support for session cookies. [#1324] (https://github.com/sinatra/sinatra/pull/1324) by Michael Coyne
169
+
170
+ * Deprecated: Sinatra Reloader will be removed in the next major release.
171
+
172
+ * 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
173
+
174
+ * Fix: Preserve query param value if named route param nil. [#1676](https://github.com/sinatra/sinatra/pull/1676) by Jordan Owens
175
+
176
+ * Require Ruby 2.6 as minimum Ruby version. [#1699](https://github.com/sinatra/sinatra/pull/1699) by Eloy Pérez
177
+
178
+ * Breaking change: Remove support for the Stylus template engine. [#1697](https://github.com/sinatra/sinatra/pull/1697) by Eloy Pérez
179
+
180
+ * Breaking change: Remove support for the erubis template engine. [#1761](https://github.com/sinatra/sinatra/pull/1761) by Eloy Pérez
181
+
182
+ * Breaking change: Remove support for the textile template engine. [#1766](https://github.com/sinatra/sinatra/pull/1766) by Eloy Pérez
183
+
184
+ * Breaking change: Remove support for SASS as a template engine. [#1768](https://github.com/sinatra/sinatra/pull/1768) by Eloy Pérez
185
+
186
+ * Breaking change: Remove support for Wlang as a template engine. [#1780](https://github.com/sinatra/sinatra/pull/1780) by Eloy Pérez
187
+
188
+ * Breaking change: Remove support for CoffeeScript as a template engine. [#1790](https://github.com/sinatra/sinatra/pull/1790) by Eloy Pérez
189
+
190
+ * Breaking change: Remove support for Mediawiki as a template engine. [#1791](https://github.com/sinatra/sinatra/pull/1791) by Eloy Pérez
191
+
192
+ * Breaking change: Remove support for Creole as a template engine. [#1792](https://github.com/sinatra/sinatra/pull/1792) by Eloy Pérez
193
+
194
+ * Breaking change: Remove support for Radius as a template engine. [#1793](https://github.com/sinatra/sinatra/pull/1793) by Eloy Pérez
195
+
196
+ * 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
197
+
198
+ * Breaking change: Remove Reel integration. [54597502](https://github.com/sinatra/sinatra/commit/545975025927a27a1daca790598620038979f1c5) by Olle Jonsson
199
+
200
+ * 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
201
+
202
+ * Use `Kernel#caller_locations`. [#1491](https://github.com/sinatra/sinatra/pull/1491) by Julik Tarkhanov
203
+
204
+ * Docs: Japanese documentation: Add notes about the `default_content_type` setting. [#1650](https://github.com/sinatra/sinatra/pull/1650) by Akifumi Tominaga
205
+
206
+ * Docs: Polish documentation: Add section about Multithreaded modes and Routes. [#1708](https://github.com/sinatra/sinatra/pull/1708) by Patrick Gramatowski
207
+
208
+ * Docs: Japanese documentation: Make Session section reflect changes done to README.md. [#1731](https://github.com/sinatra/sinatra/pull/1731) by @shu-i-chi
209
+
210
+ ## 2.2.3 / 2022-11-25
211
+
212
+ * Fix: Escape filename in the Content-Disposition header. [#1841](https://github.com/sinatra/sinatra/pull/1841) by Kunpei Sakai
213
+
214
+ * Fix: fixed ReDoS for Rack::Protection::IPSpoofing. [#1823](https://github.com/sinatra/sinatra/pull/1823) by @ooooooo-q
215
+
216
+ ## 2.2.2 / 2022-07-23
217
+
218
+ * Update mustermann dependency to version 2.
219
+
220
+ ## 2.2.1 / 2022-07-15
221
+
222
+ * Fix JRuby regression by using ruby2_keywords for delegation. #1750 by Patrik Ragnarsson
223
+
224
+ * Add JRuby to CI. #1755 by Karol Bucek
225
+
226
+ ## 2.2.0 / 2022-02-15
227
+
228
+ * 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
229
+
230
+ * Handle EOFError raised by Rack and return Bad Request 400 status. [#1743](https://github.com/sinatra/sinatra/pull/1743) by tamazon
231
+
232
+ * Minor refactors in `base.rb`. [#1640](https://github.com/sinatra/sinatra/pull/1640) by ceclinux
233
+
234
+ * Add escaping to the static 404 page. [#1645](https://github.com/sinatra/sinatra/pull/1645) by Chris Gavin
235
+
236
+ * Remove `detect_rack_handler` method. [#1652](https://github.com/sinatra/sinatra/pull/1652) by ceclinux
237
+
238
+ * 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
239
+
240
+ * *Revert "Use prepend instead of include for helpers.* [#1662](https://github.com/sinatra/sinatra/pull/1662) by namusyaka
241
+
242
+ * 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
243
+
244
+ * 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
245
+
246
+ * 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
247
+
248
+ * Update MAINTENANCE.md with the `stable` branch status. [#1681](https://github.com/sinatra/sinatra/pull/1681) by Fredrik Rubensson
249
+
250
+ * Validate expanded path matches `public_dir` when serving static files. [#1683](https://github.com/sinatra/sinatra/pull/1683) by cji-stripe
251
+
252
+ * Fix Delegator to pass keyword arguments for Ruby 3.0. [#1684](https://github.com/sinatra/sinatra/pull/1684) by andrewtblake
253
+
254
+ * Fix use with keyword arguments for Ruby 3.0. [#1701](https://github.com/sinatra/sinatra/pull/1701) by Robin Wallin
255
+
256
+ * 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
257
+
258
+ * Remove unnecessary `test_files` from the gemspec. [#1712](https://github.com/sinatra/sinatra/pull/1712) by Masataka Pocke Kuwabara
259
+
260
+ * Docs: Spanish documentation: Update README.es.md with removal of Thin. [#1630](https://github.com/sinatra/sinatra/pull/1630) by Espartaco Palma
261
+
262
+ * Docs: German documentation: Fixed typos in German README.md. [#1648](https://github.com/sinatra/sinatra/pull/1648) by Juri
263
+
264
+ * Docs: Japanese documentation: Update README.ja.md with removal of Thin. [#1629](https://github.com/sinatra/sinatra/pull/1629) by Ryuichi KAWAMATA
265
+
266
+ * Docs: English documentation: Various minor fixes to README.md. [#1663](https://github.com/sinatra/sinatra/pull/1663) by Yanis Zafirópulos
267
+
268
+ * 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
269
+
270
+ * Docs: Brazilian Portuguese documentation: Update README.pt-br.md with translation fixes. [#1668](https://github.com/sinatra/sinatra/pull/1668) by Vitor Oliveira
271
+
272
+ ### CI
273
+
274
+ * Use latest JRuby 9.2.16.0 on CI. [#1682](https://github.com/sinatra/sinatra/pull/1682) by Olle Jonsson
275
+
276
+ * Switch CI from travis to GitHub Actions. [#1691](https://github.com/sinatra/sinatra/pull/1691) by namusyaka
277
+
278
+ * Skip the Slack action if `secrets.SLACK_WEBHOOK` is not set. [#1705](https://github.com/sinatra/sinatra/pull/1705) by Robin Wallin
279
+
280
+ * Small CI improvements. [#1703](https://github.com/sinatra/sinatra/pull/1703) by Robin Wallin
281
+
282
+ * Drop auto-generated boilerplate comments from CI configuration file. [#1728](https://github.com/sinatra/sinatra/pull/1728) by Olle Jonsson
283
+
284
+ ### sinatra-contrib
285
+
286
+ * Do not raise when key is an enumerable. [#1619](https://github.com/sinatra/sinatra/pull/1619) by Ulysse Buonomo
287
+
288
+ ### Rack protection
289
+
290
+ * 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
291
+
292
+ ## 2.1.0 / 2020-09-05
293
+
294
+ * Fix additional Ruby 2.7 keyword warnings [#1586](https://github.com/sinatra/sinatra/pull/1586) by Stefan Sundin
295
+
296
+ * Drop Ruby 2.2 support [#1455](https://github.com/sinatra/sinatra/pull/1455) by Eloy Pérez
297
+
298
+ * Add Rack::Protection::ReferrerPolicy [#1291](https://github.com/sinatra/sinatra/pull/1291) by Stefan Sundin
299
+
300
+ * 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
301
+
302
+ * Allow `set :<engine>` in sinatra-namespace [#1255](https://github.com/sinatra/sinatra/pull/1255) by Christian Höppner
303
+
304
+ * 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
305
+
306
+ * 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
307
+
308
+ * Add QuietLogger that excludes paths from Rack::CommonLogger [1250](https://github.com/sinatra/sinatra/pull/1250) by Christoph Wagner
309
+
310
+ * Sinatra::Contrib dependency updates. Fixes [#1207](https://github.com/sinatra/sinatra/pull/1207) [#1411](https://github.com/sinatra/sinatra/pull/1411) by Mike Pastore
311
+
312
+ * 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
313
+
314
+ * 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
315
+
316
+ * 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
317
+
318
+ * 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
319
+
320
+ * Support for parameters in mime types. Fixes [#1141](https://github.com/sinatra/sinatra/issues/1141) by John Hope
321
+
322
+ * Handle null byte when serving static files [#1574](https://github.com/sinatra/sinatra/issues/1574) by Kush Fanikiso
323
+
324
+ * Improve development support and documentation and source code by Olle Jonsson, Pierre-Adrien Buisson, Shota Iguchi
325
+
326
+ ## 2.0.8.1 / 2020-01-02
327
+
328
+ * Allow multiple hashes to be passed in `merge` and `merge!` for `Sinatra::IndifferentHash` [#1572](https://github.com/sinatra/sinatra/pull/1572) by Shota Iguchi
329
+
330
+ ## 2.0.8 / 2020-01-01
331
+
332
+ * 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
333
+
334
+ * Add request info in NotFound exception [#1566](https://github.com/sinatra/sinatra/pull/1566) by Stefan Sundin
335
+
336
+ * 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
337
+
338
+ * 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
339
+
340
+ * Support `capture` and `content_for` with Hamlit [#1580](https://github.com/sinatra/sinatra/pull/1580) by Takashi Kokubun
341
+
342
+ * Eliminate warnings of keyword parameter for Ruby 2.7.0 [#1581](https://github.com/sinatra/sinatra/pull/1581) by Osamtimizer
343
+
344
+ ## 2.0.7 / 2019-08-22
345
+
346
+ * Fix a regression [#1560](https://github.com/sinatra/sinatra/pull/1560) by Kunpei Sakai
347
+
348
+ ## 2.0.6 / 2019-08-21
349
+
350
+ * 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
351
+
352
+ * Support pandoc as a new markdown renderer [#1533](https://github.com/sinatra/sinatra/pull/1533) by Vasiliy
353
+
354
+ * Remove outdated code for tilt 1.x [#1532](https://github.com/sinatra/sinatra/pull/1532) by Vasiliy
355
+
356
+ * Remove an extra logic for `force_encoding` [#1527](https://github.com/sinatra/sinatra/pull/1527) by Jordan Owens
357
+
358
+ * Avoid multiple errors even if `params` contains special values [#1526](https://github.com/sinatra/sinatra/pull/1527) by Kunpei Sakai
359
+
360
+ * Support `bundler/inline` with `require 'sinatra'` integration [#1520](https://github.com/sinatra/sinatra/pull/1520) by Kunpei Sakai
361
+
362
+ * 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
363
+
364
+ * Improve development support and documentation and source code by Olle Jonsson, Basavanagowda Kanur, Yuki MINAMIYA
365
+
366
+ ## 2.0.5 / 2018-12-22
367
+
368
+ * Avoid FrozenError when params contains frozen value [#1506](https://github.com/sinatra/sinatra/pull/1506) by Kunpei Sakai
369
+
370
+ * Add support for Erubi [#1494](https://github.com/sinatra/sinatra/pull/1494) by @tkmru
371
+
372
+ * `IndifferentHash` monkeypatch warning improvements [#1477](https://github.com/sinatra/sinatra/pull/1477) by Mike Pastore
373
+
374
+ * Improve development support and documentation and source code by Anusree Prakash, Jordan Owens, @ceclinux and @krororo.
375
+
376
+ ### sinatra-contrib
377
+
378
+ * Add `flush` option to `content_for` [#1225](https://github.com/sinatra/sinatra/pull/1225) by Shota Iguchi
379
+
380
+ * Drop activesupport dependency from sinatra-contrib [#1448](https://github.com/sinatra/sinatra/pull/1448)
381
+
382
+ * Update `yield_content` to append default to ERB template buffer [#1500](https://github.com/sinatra/sinatra/pull/1500) by Jordan Owens
383
+
384
+ ### rack-protection
385
+
386
+ * Don't track the Accept-Language header by default [#1504](https://github.com/sinatra/sinatra/pull/1504) by Artem Chistyakov
387
+
388
+ ## 2.0.4 / 2018-09-15
389
+
390
+ * Don't blow up when passing frozen string to `send_file` disposition [#1137](https://github.com/sinatra/sinatra/pull/1137) by Andrew Selder
391
+
392
+ * Fix ubygems LoadError [#1436](https://github.com/sinatra/sinatra/pull/1436) by Pavel Rosický
393
+
394
+ * Unescape regex captures [#1446](https://github.com/sinatra/sinatra/pull/1446) by Jordan Owens
395
+
396
+ * Slight performance improvements for IndifferentHash [#1427](https://github.com/sinatra/sinatra/pull/1427) by Mike Pastore
397
+
398
+ * Improve development support and documentation and source code by Will Yang, Jake Craige, Grey Baker and Guilherme Goettems Schneider
399
+
400
+ ## 2.0.3 / 2018-06-09
401
+
402
+ * Fix the backports gem regression [#1442](https://github.com/sinatra/sinatra/issues/1442) by Marc-André Lafortune
403
+
404
+ ## 2.0.2 / 2018-06-05
405
+
406
+ * Escape invalid query parameters [#1432](https://github.com/sinatra/sinatra/issues/1432) by Kunpei Sakai
407
+ * The patch fixes [CVE-2018-11627](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-11627).
408
+
409
+ * Fix undefined method error for `Sinatra::RequiredParams` with hash key [#1431](https://github.com/sinatra/sinatra/issues/1431) by Arpit Chauhan
410
+
411
+ * Add xml content-types to valid html_types for Rack::Protection [#1413](https://github.com/sinatra/sinatra/issues/1413) by Reenan Arbitrario
412
+
413
+ * Encode route parameters using :default_encoding setting [#1412](https://github.com/sinatra/sinatra/issues/1412) by Brian m. Carlson
414
+
415
+ * Fix unpredictable behaviour from Sinatra::ConfigFile [#1244](https://github.com/sinatra/sinatra/issues/1244) by John Hope
416
+
417
+ * Add Sinatra::IndifferentHash#slice [#1405](https://github.com/sinatra/sinatra/issues/1405) by Shota Iguchi
418
+
419
+ * Remove status code 205 from drop body response [#1398](https://github.com/sinatra/sinatra/issues/1398) by Shota Iguchi
420
+
421
+ * Ignore empty captures from params [#1390](https://github.com/sinatra/sinatra/issues/1390) by Shota Iguchi
422
+
423
+ * Improve development support and documentation and source code by Zp Yuan, Andreas Finger, Olle Jonsson, Shota Iguchi, Nikita Bulai and Joshua O'Brien
424
+
425
+ ## 2.0.1 / 2018-02-17
426
+
427
+ * 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
428
+
429
+ * 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
430
+
431
+ * Ship the VERSION file with the gem, to allow local unpacking [#1338](https://github.com/sinatra/sinatra/issues/1338) by Olle Jonsson
432
+
433
+ * 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
434
+
435
+ * 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
436
+
437
+ * Enhanced path validation in Windows [#1379](https://github.com/sinatra/sinatra/issues/1379) by Orange Tsai from DEVCORE
438
+ * The patch fixes [CVE-2018-7212](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7212)
439
+
440
+ * 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
441
+
442
+ ## 2.0.0 / 2017-04-10
443
+
444
+ * Use Mustermann for patterns [#1086](https://github.com/sinatra/sinatra/issues/1086) by Konstantin Haase
445
+
446
+ * Server now provides `-q` flag for quiet mode, which disables start/stop messages [#1153](https://github.com/sinatra/sinatra/issues/1153) by Vasiliy.
447
+
448
+ * Session middleware can now be specified with `:session_store` setting [#1161](https://github.com/sinatra/sinatra/issues/1161) by Jordan Owens.
449
+
450
+ * `APP_ENV` is now preferred and recommended over `RACK_ENV` for setting environment [#984](https://github.com/sinatra/sinatra/issues/984) by Damien Mathieu.
451
+
452
+ * Add Reel support [#793](https://github.com/sinatra/sinatra/issues/793) by Patricio Mac Adden.
453
+
454
+ * Make route params available during error handling [#895](https://github.com/sinatra/sinatra/issues/895) by Jeremy Evans.
455
+
456
+ * Unify `not_found` and `error` 404 behavior [#896](https://github.com/sinatra/sinatra/issues/896) by Jeremy Evans.
457
+
458
+ * Enable Ruby 2.3 `frozen_string_literal` feature [#1076](https://github.com/sinatra/sinatra/issues/1076) by Vladimir Kochnev.
459
+
460
+ * Add Sinatra::ShowExceptions::TEMPLATE and patched Rack::ShowExceptions to prefer Sinatra template by Zachary Scott.
461
+
462
+ * Sinatra::Runner is used internally for integration tests [#840](https://github.com/sinatra/sinatra/issues/840) by Nick Sutterer.
463
+
464
+ * Fix case-sensitivity issue in `uri` method [#889](https://github.com/sinatra/sinatra/issues/889) by rennex.
465
+
466
+ * 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.
467
+
468
+ * Improved error handling for invalid params through Rack [#1070](https://github.com/sinatra/sinatra/issues/1070) by Jordan Owens.
469
+
470
+ * Ensure template is cached only once [#1021](https://github.com/sinatra/sinatra/issues/1021) by Patrik Rak.
471
+
472
+ * 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.
473
+
474
+ * Improve Session Secret documentation to encourage better security practices [#1218](https://github.com/sinatra/sinatra/issues/1218) by Glenn Rempe
475
+
476
+ * Exposed global and per-route options for Mustermann route parsing [#1233](https://github.com/sinatra/sinatra/issues/1233) by Mike Pastore
477
+
478
+ * Use same `session_secret` for classic and modular apps in development [#1245](https://github.com/sinatra/sinatra/issues/1245) by Marcus Stollsteimer
479
+
480
+ * Make authenticity token length a fixed value of 32 [#1181](https://github.com/sinatra/sinatra/issues/1181) by Jordan Owens
481
+
482
+ * Modernize Rack::Protection::ContentSecurityPolicy with CSP Level 2 and 3 Directives [#1202](https://github.com/sinatra/sinatra/issues/1202) by Glenn Rempe
483
+
484
+ * Adds preload option to Rack:Protection:StrictTransport [#1209](https://github.com/sinatra/sinatra/issues/1209) by Ed Robinson
485
+
486
+ * Improve BadRequest logic. Raise and handle exceptions if status is 400 [#1212](https://github.com/sinatra/sinatra/issues/1212) by Mike Pastore
487
+
488
+ * Make Rack::Test a development dependency [#1232](https://github.com/sinatra/sinatra/issues/1232) by Mike Pastore
489
+
490
+ * Capture exception messages of raised NotFound and BadRequest [#1210](https://github.com/sinatra/sinatra/issues/1210) by Mike Pastore
491
+
492
+ * Add explicit set method to contrib/cookies to override cookie settings [#1240](https://github.com/sinatra/sinatra/issues/1240) by Andrew Allen
493
+
494
+ * Avoid executing filters even if prefix matches with other namespace [#1253](https://github.com/sinatra/sinatra/issues/1253) by namusyaka
495
+
496
+ * Make `#has_key?` also indifferent in access, can accept String or Symbol [#1262](https://github.com/sinatra/sinatra/issues/1262) by Stephen Paul Weber
497
+
498
+ * Add `allow_if` option to bypass json csrf protection [#1265](https://github.com/sinatra/sinatra/issues/1265) by Jordan Owens
499
+
500
+ * rack-protection: Bundle StrictTransport, CookieTossing, and CSP [#1267](https://github.com/sinatra/sinatra/issues/1267) by Mike Pastore
501
+
502
+ * Add `:strict_paths` option for managing trailing slashes [#1273](https://github.com/sinatra/sinatra/issues/1273) by namusyaka
503
+
504
+ * Add full IndifferentHash implementation to params [#1279](https://github.com/sinatra/sinatra/issues/1279) by Mike Pastore
505
+
506
+ ## 1.4.8 / 2017-01-30
507
+
508
+ * Fix the deprecation warning from Ruby about Fixnum. [#1235](https://github.com/sinatra/sinatra/issues/1235) by Akira Matsuda
509
+
510
+ ## 1.4.7 / 2016-01-24
511
+
512
+ * Add Ashley Williams, Trevor Bramble, and Kashyap Kondamudi to team Sinatra.
513
+
514
+ * Correctly handle encoded colons in routes. (Jeremy Evans)
515
+
516
+ * Rename CHANGES to CHANGELOG.md and update Rakefile. [#1043](https://github.com/sinatra/sinatra/issues/1043) (Eliza Sorensen)
517
+
518
+ * 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)
519
+
520
+ * Introduce `Sinatra::Ext` to workaround Rack 1.6 bug to fix Ruby 1.8.7
521
+ support. [#1080](https://github.com/sinatra/sinatra/issues/1080) (Zachary Scott)
522
+
523
+ * Add CONTRIBUTING guide. [#987](https://github.com/sinatra/sinatra/issues/987) (Katrina Owen)
524
+
525
+
526
+ ## 1.4.6 / 2015-03-23
527
+
528
+ * Improve tests and documentation. (Darío Hereñú, Seiichi Yonezawa, kyoendo,
529
+ John Voloski, Ferenc-, Renaud Martinet, Christian Haase, marocchino,
530
+ huoxito, Damir Svrtan, Amaury Medeiros, Jeremy Evans, Kashyap, shenqihui,
531
+ Ausmarton Fernandes, kami, Vipul A M, Lei Wu, 7stud, Taylor Shuler,
532
+ namusyaka, burningTyger, Cornelius Bock, detomastah, hakeda, John Hope,
533
+ Ruben Gonzalez, Andrey Deryabin, attilaolah, Anton Davydov, Nikita Penzin,
534
+ Dyego Costa)
535
+
536
+ * Remove duplicate require of sinatra/base. (Alexey Muranov)
537
+
538
+ * Escape HTML in 404 error page. (Andy Brody)
539
+
540
+ * Refactor to method call in `Stream#close` and `#callback`. (Damir Svrtan)
541
+
542
+ * Depend on latest version of Slim. (Damir Svrtan)
543
+
544
+ * Fix compatibility with Tilt version 2. (Yegor Timoschenko)
545
+
546
+ * Fix compatibility issue with Rack `pretty` method from ShowExceptions.
547
+ (Kashyap)
548
+
549
+ * Show date in local time in exception messages. (tayler1)
550
+
551
+ * Fix logo on error pages when using Ruby 1.8. (Jeremy Evans)
552
+
553
+ * Upgrade test suite to Minitest version 5 and fix Ruby 2.2 compatibility.
554
+ (Vipul A M)
555
+
556
+ ## 1.4.5 / 2014-04-08
557
+
558
+ * Improve tests and documentation. (Seiichi Yonezawa, Mike Gehard, Andrew
559
+ Deitrick, Matthew Nicholas Bradley, GoGo tanaka, Carlos Lazo, Shim Tw,
560
+ kyoendo, Roman Kuznietsov, Stanislav Chistenko, Ryunosuke SATO, Ben Lewis,
561
+ wuleicanada, Patricio Mac Adden, Thais Camilo)
562
+
563
+ * Fix Ruby warnings. (Vipul A M, Piotr Szotkowski)
564
+
565
+ * Fix template cache memory leak. (Scott Holden)
566
+
567
+ * Work around UTF-8 bug in JRuby. (namusyaka)
568
+
569
+ * Don't set charset for JSON mime-type (Sebastian Borrazas)
570
+
571
+ * Fix bug in request.accept? that might trigger a NoMethodError. (sbonami)
572
+
573
+ ## 1.4.4 / 2013-10-21
574
+
575
+ * Allow setting layout to false specifically for a single rendering engine.
576
+ (Matt Wildig)
577
+
578
+ * Allow using wildcard in argument passed to `request.accept?`. (wilkie)
579
+
580
+ * Treat missing Accept header like wild card. (Patricio Mac Adden)
581
+
582
+ * Improve tests and documentation. (Darío Javier Cravero, Armen P., michelc,
583
+ Patricio Mac Adden, Matt Wildig, Vipul A M, utenmiki, George Timoschenko,
584
+ Diogo Scudelletti)
585
+
586
+ * Fix Ruby warnings. (Vipul A M, Patricio Mac Adden)
587
+
588
+ * Improve self-hosted server started by `run!` method or in classic mode.
589
+ (Tobias Bühlmann)
590
+
591
+ * Reduce objects allocated per request. (Vipul A M)
592
+
593
+ * Drop unused, undocumented options hash from Sinatra.new. (George Timoschenko)
594
+
595
+ * Keep Content-Length header when response is a `Rack::File` or when streaming.
596
+ (Patricio Mac Adden, George Timoschenko)
597
+
598
+ * Use reel if it's the only server available besides webrick. (Tobias Bühlmann)
599
+
600
+ * Add `disable :traps` so setting up signal traps for self hosted server can be
601
+ skipped. (George Timoschenko)
602
+
603
+ * The `status` option passed to `send_file` may now be a string. (George
604
+ Timoschenko)
605
+
606
+ * Reduce file size of dev mode images for 404 and 500 pages. (Francis Go)
607
+
608
+ ## 1.4.3 / 2013-06-07
609
+
610
+ * Running a Sinatra file directly or via `run!` it will now ignore an
611
+ empty $PORT env variable. (noxqsgit)
612
+
613
+ * Improve documentation. (burningTyger, Patricio Mac Adden,
614
+ Konstantin Haase, Diogo Scudelletti, Dominic Imhof)
615
+
616
+ * Expose matched pattern as env["sinatra.route"]. (Aman Gupta)
617
+
618
+ * Fix warning on Ruby 2.0. (Craig Little)
619
+
620
+ * Improve running subset of tests in isolation. (Viliam Pucik)
621
+
622
+ * Reorder private/public methods. (Patricio Mac Adden)
623
+
624
+ * Loosen version dependency for rack, so it runs with Rails 3.2.
625
+ (Konstantin Haase)
626
+
627
+ * Request#accept? now returns true instead of a truthy value. (Alan Harris)
628
+
629
+ ## 1.4.2 / 2013-03-21
630
+
631
+ * Fix parsing error for case where both the pattern and the captured part
632
+ contain a dot. (Florian Hanke, Konstantin Haase)
633
+
634
+ * Missing Accept header is treated like */*. (Greg Denton)
635
+
636
+ * Improve documentation. (Patricio Mac Adden, Joe Bottigliero)
637
+
638
+ ## 1.4.1 / 2013-03-15
639
+
640
+ * Make delegated methods available in config.ru (Konstantin Haase)
641
+
642
+ ## 1.4.0 / 2013-03-15
643
+
644
+ * Add support for LINK and UNLINK requests. (Konstantin Haase)
645
+
646
+ * Add support for Yajl templates. (Jamie Hodge)
647
+
648
+ * Add support for Rabl templates. (Jesse Cooke)
649
+
650
+ * Add support for Wlang templates. (Bernard Lambeau)
651
+
652
+ * Add support for Stylus templates. (Juan David Pastas, Konstantin Haase)
653
+
654
+ * You can now pass a block to ERb, Haml, Slim, Liquid and Wlang templates,
655
+ which will be used when calling `yield` in the template. (Alexey Muranov)
656
+
657
+ * When running in classic mode, no longer include Sinatra::Delegator in Object,
658
+ instead extend the main object only. (Konstantin Haase)
659
+
660
+ * Improved route parsing: "/:name.?:format?" with "/foo.png" now matches to
661
+ {name: "foo", format: "png"} instead of {name: "foo.png"}. (Florian Hanke)
662
+
663
+ * Add :status option support to send_file. (Konstantin Haase)
664
+
665
+ * The `provides` condition now respects an earlier set content type.
666
+ (Konstantin Haase)
667
+
668
+ * Exception#code is only used when :use_code is enabled. Moreover, it will
669
+ be ignored if the value is not between 400 and 599. You should use
670
+ Exception#http_status instead. (Konstantin Haase)
671
+
672
+ * Status, headers and body will be set correctly in an after filter when using
673
+ halt in a before filter or route. (Konstantin Haase)
674
+
675
+ * Sinatra::Base.new now returns a Sinatra::Wrapper instance, exposing
676
+ `#settings` and `#helpers`, yet going through the middleware stack on
677
+ `#call`. It also implements a nice `#inspect`, so it plays nice with
678
+ Rails' `rake routes`. (Konstantin Haase)
679
+
680
+ * In addition to WebRick, Thin and Mongrel, Sinatra will now automatically pick
681
+ up Puma, Trinidad, ControlTower or Net::HTTP::Server when installed. The
682
+ logic for picking the server has been improved and now depends on the Ruby
683
+ implementation used. (Mark Rada, Konstantin Haase, Patricio Mac Adden)
684
+
685
+ * "Sinatra doesn't know this ditty" pages now show the app class when running
686
+ a modular application. This helps detecting where the response came from when
687
+ combining multiple modular apps. (Konstantin Haase)
688
+
689
+ * When port is not set explicitly, use $PORT env variable if set and only
690
+ default to 4567 if not. Plays nice with foreman. (Konstantin Haase)
691
+
692
+ * Allow setting layout on a per engine basis. (Zachary Scott, Konstantin Haase)
693
+
694
+ * You can now use `register` directly in a classic app. (Konstantin Haase)
695
+
696
+ * `redirect` now accepts URI or Addressable::URI instances. (Nicolas
697
+ Sanguinetti)
698
+
699
+ * Have Content-Disposition header also include file name for `inline`, not
700
+ just for `attachment`. (Konstantin Haase)
701
+
702
+ * Better compatibility to Rack 1.5. (James Tucker, Konstantin Haase)
703
+
704
+ * Make route parsing regex more robust. (Zoltan Dezso, Konstantin Haase)
705
+
706
+ * Improve Accept header parsing, expose parameters. (Pieter van de Bruggen,
707
+ Konstantin Haase)
708
+
709
+ * Add `layout_options` render option. Allows you, amongst other things, to
710
+ render a layout from a different folder. (Konstantin Haase)
711
+
712
+ * Explicitly setting `layout` to `nil` is treated like setting it to `false`.
713
+ (richo)
714
+
715
+ * Properly escape attributes in Content-Type header. (Pieter van de Bruggen)
716
+
717
+ * Default to only serving localhost in development mode. (Postmodern)
718
+
719
+ * Setting status code to 404 in error handler no longer triggers not_found
720
+ handler. (Konstantin Haase)
721
+
722
+ * The `protection` option now takes a `session` key for force
723
+ disabling/enabling session based protections. (Konstantin Haase)
724
+
725
+ * Add `x_cascade` option to disable `X-Cascade` header on missing route.
726
+ (Konstantin Haase)
727
+
728
+ * Improve documentation. (Kashyap, Stanislav Chistenko, Zachary Scott,
729
+ Anthony Accomazzo, Peter Suschlik, Rachel Mehl, ymmtmsys, Anurag Priyam,
730
+ burningTyger, Tony Miller, akicho8, Vasily Polovnyov, Markus Prinz,
731
+ Alexey Muranov, Erik Johnson, Vipul A M, Konstantin Haase)
732
+
733
+ * Convert documentation to Markdown. (Kashyap, Robin Dupret, burningTyger,
734
+ Vasily Polovnyov, Iain Barnett, Giuseppe Capizzi, Neil West)
735
+
736
+ * Don't set not_found content type to HTML in development mode with custom
737
+ not_found handler. (Konstantin Haase)
738
+
739
+ * Fix mixed indentation for private methods. (Robin Dupret)
740
+
741
+ * Recalculate Content-Length even if hard coded if body is reset. Relevant
742
+ mostly for error handlers. (Nathan Esquenazi, Konstantin Haase)
743
+
744
+ * Plus sign is once again kept as such when used for URL matches. (Konstantin
745
+ Haase)
746
+
747
+ * Take views option into account for template caching. (Konstantin Haase)
748
+
749
+ * Consistent use of `headers` instead of `header` internally. (Patricio Mac Adden)
750
+
751
+ * Fix compatibility to RDoc 4. (Bohuslav Kabrda)
752
+
753
+ * Make chat example work with latest jQuery. (loveky, Tony Miller)
754
+
755
+ * Make tests run without warnings. (Patricio Mac Adden)
756
+
757
+ * Make sure value returned by `mime_type` is a String or nil, even when a
758
+ different object is passed in, like an AcceptEntry. (Konstantin Haase)
759
+
760
+ * Exceptions in `after` filter are now handled like any other exception.
761
+ (Nathan Esquenazi)
762
+
763
+ ## 1.3.6 (backport release) / 2013-03-15
764
+
765
+ Backported from 1.4.0:
766
+
767
+ * Take views option into account for template caching. (Konstantin Haase)
768
+
769
+ * Improve documentation (Konstantin Haase)
770
+
771
+ * No longer override `define_singleton_method`. (Konstantin Haase)
772
+
773
+ ## 1.3.5 / 2013-02-25
774
+
775
+ * Fix for RubyGems 2.0 (Uchio KONDO)
776
+
777
+ * Improve documentation (Konstantin Haase)
778
+
779
+ * No longer override `define_singleton_method`. (Konstantin Haase)
780
+
781
+ ## 1.3.4 / 2013-01-26
782
+
783
+ * Improve documentation. (Kashyap, Stanislav Chistenko, Konstantin Haase,
784
+ ymmtmsys, Anurag Priyam)
785
+
786
+ * Adjustments to template system to work with Tilt edge. (Konstantin Haase)
787
+
788
+ * Fix streaming with latest Rack release. (Konstantin Haase)
789
+
790
+ * Fix default content type for Sinatra::Response with latest Rack release.
791
+ (Konstantin Haase)
792
+
793
+ * Fix regression where + was no longer treated like space. (Ross Boucher)
794
+
795
+ * Status, headers and body will be set correctly in an after filter when using
796
+ halt in a before filter or route. (Konstantin Haase)
797
+
798
+ ## 1.3.3 / 2012-08-19
799
+
800
+ * Improved documentation. (burningTyger, Konstantin Haase, Gabriel Andretta,
801
+ Anurag Priyam, michelc)
802
+
803
+ * No longer modify the load path. (Konstantin Haase)
804
+
805
+ * When keeping a stream open, set up callback/errback correctly to deal with
806
+ clients closing the connection. (Konstantin Haase)
807
+
808
+ * Fix bug where having a query param and a URL param by the same name would
809
+ concatenate the two values. (Konstantin Haase)
810
+
811
+ * Prevent duplicated log output when application is already wrapped in a
812
+ `Rack::CommonLogger`. (Konstantin Haase)
813
+
814
+ * Fix issue where `Rack::Link` and Rails were preventing indefinite streaming.
815
+ (Konstantin Haase)
816
+
817
+ * No longer cause warnings when running Ruby with `-w`. (Konstantin Haase)
818
+
819
+ * HEAD requests on static files no longer report a Content-Length of 0, but
820
+ instead the proper length. (Konstantin Haase)
821
+
822
+ * When protecting against CSRF attacks, drop the session instead of refusing
823
+ the request. (Konstantin Haase)
824
+
825
+ ## 1.3.2 / 2011-12-30
826
+
827
+ * Don't automatically add `Rack::CommonLogger` if `Rack::Server` is adding it,
828
+ too. (Konstantin Haase)
829
+
830
+ * Setting `logging` to `nil` will avoid setting up `Rack::NullLogger`.
831
+ (Konstantin Haase)
832
+
833
+ * Route specific params are now available in the block passed to #stream.
834
+ (Konstantin Haase)
835
+
836
+ * Fix bug where rendering a second template in the same request, after the
837
+ first one raised an exception, skipped the default layout. (Nathan Baum)
838
+
839
+ * Fix bug where parameter escaping got enabled when disabling a different
840
+ protection. (Konstantin Haase)
841
+
842
+ * Fix regression: Filters without a pattern may now again manipulate the params
843
+ hash. (Konstantin Haase)
844
+
845
+ * Added examples directory. (Konstantin Haase)
846
+
847
+ * Improved documentation. (Gabriel Andretta, Markus Prinz, Erick Zetta, Just
848
+ Lest, Adam Vaughan, Aleksander Dąbrowski)
849
+
850
+ * Improved MagLev support. (Tim Felgentreff)
851
+
852
+ ## 1.3.1 / 2011-10-05
853
+
854
+ * Support adding more than one callback to the stream object. (Konstantin
855
+ Haase)
856
+
857
+ * Fix for infinite loop when streaming on 1.9.2 with Thin from a modular
858
+ application (Konstantin Haase)
859
+
860
+ ## 1.3.0 / 2011-09-30
861
+
862
+ * Added `stream` helper method for easily creating streaming APIs, Server
863
+ Sent Events or even WebSockets. See README for more on that topic.
864
+ (Konstantin Haase)
865
+
866
+ * If a HTTP 1.1 client is redirected from a different verb than GET, use 303
867
+ instead of 302 by default. You may still pass 302 explicitly. Fixes AJAX
868
+ redirects in Internet Explorer 9 (to be fair, everyone else is doing it
869
+ wrong and IE is behaving correct). (Konstantin Haase)
870
+
871
+ * Added support for HTTP PATCH requests. (Konstantin Haase)
872
+
873
+ * Use rack-protection to defend against common opportunistic attacks.
874
+ (Josh Lane, Jacob Burkhart, Konstantin Haase)
875
+
876
+ * Support for Creole templates, Creole is a standardized wiki markup,
877
+ supported by many wiki implementations. (Konstanin Haase)
878
+
879
+ * The `erubis` method has been deprecated. If Erubis is available, Sinatra
880
+ will automatically use it for rendering ERB templates. `require 'erb'`
881
+ explicitly to prevent that behavior. (Magnus Holm, Ryan Tomayko, Konstantin
882
+ Haase)
883
+
884
+ * Patterns now match against the escaped URLs rather than the unescaped
885
+ version. This makes Sinatra confirm with RFC 2396 section 2.2 and RFC 2616
886
+ section 3.2.3 (escaped reserved characters should not be treated like the
887
+ unescaped version), meaning that "/:name" will also match `/foo%2Fbar`, but
888
+ not `/foo/bar`. To avoid incompatibility, pattern matching has been
889
+ adjusted. Moreover, since we do no longer need to keep an unescaped version
890
+ of path_info around, we handle all changes to `env['PATH_INFO']` correctly.
891
+ (Konstantin Haase)
892
+
893
+ * `settings.app_file` now defaults to the file subclassing `Sinatra::Base` in
894
+ modular applications. (Konstantin Haase)
895
+
896
+ * Set up `Rack::Logger` or `Rack::NullLogger` depending on whether logging
897
+ was enabled or not. Also, expose that logger with the `logger` helper
898
+ method. (Konstantin Haase)
899
+
900
+ * The sessions setting may be an options hash now. (Konstantin Haase)
901
+
902
+ * Important: Ruby 1.8.6 support has been dropped. This version also depends
903
+ on at least Rack 1.3.0. This means that it is incompatible with Rails prior
904
+ to 3.1.0. Please use 1.2.x if you require an earlier version of Ruby or
905
+ Rack, which we will continue to supply with bug fixes. (Konstantin Haase)
906
+
907
+ * Renamed `:public` to `:public_folder` to avoid overriding Ruby's built-in
908
+ `public` method/keyword. `set(:public, ...)` is still possible but shows a
909
+ warning. (Konstantin Haase)
910
+
911
+ * It is now possible to use a different target class for the top level DSL
912
+ (aka classic style) than `Sinatra::Application` by setting
913
+ `Delegator.target`. This was mainly introduced to ease testing. (Konstantin
914
+ Haase)
915
+
916
+ * Error handlers defined for an error class will now also handle subclasses
917
+ of that class, unless more specific error handlers exist. (Konstantin
918
+ Haase)
919
+
920
+ * Error handling respects Exception#code, again. (Konstantin Haase)
921
+
922
+ * Changing a setting will merge hashes: `set(:x, :a => 1); set(:x :b => 2)`
923
+ will result in `{:a => 1, :b => 2}`. Use `set(:x, {:a => 1}, true)` to
924
+ avoid this behavior. (Konstantin Haase)
925
+
926
+ * Added `request.accept?` and `request.preferred_type` to ease dealing with
927
+ `Accept` headers. (Konstantin Haase)
928
+
929
+ * Added `:static_cache_control` setting to automatically set cache control
930
+ headers to static files. (Kenichi Nakamura)
931
+
932
+ * Added `informal?`, `success?`, `redirect?`, `client_error?`,
933
+ `server_error?` and `not_found?` helper methods to ease dealing with status
934
+ codes. (Konstantin Haase)
935
+
936
+ * Uses SecureRandom to generate default session secret. (Konstantin Haase)
937
+
938
+ * The `attachment` helper will set Content-Type (if it hasn't been set yet)
939
+ depending on the supplied file name. (Vasiliy Ermolovich)
940
+
941
+ * Conditional requests on `etag` helper now work properly for unsafe HTTP
942
+ methods. (Matthew Schinckel, Konstantin Haase)
943
+
944
+ * The `last_modified` helper does not stop execution and change the status code
945
+ if the status code is something different than 200. (Konstantin Haase)
946
+
947
+ * Added support for If-Unmodified-Since header. (Konstantin Haase)
948
+
949
+ * `Sinatra::Base.run!` now prints to stderr rather than stdout. (Andrew
950
+ Armenia)
951
+
952
+ * `Sinatra::Base.run!` takes a block allowing access to the Rack handler.
953
+ (David Waite)
954
+
955
+ * Automatic `app_file` detection now works in directories containing brackets
956
+ (Konstantin Haase)
957
+
958
+ * Exception objects are now passed to error handlers. (Konstantin Haase)
959
+
960
+ * Improved documentation. (Emanuele Vicentini, Peter Higgins, Takanori
961
+ Ishikawa, Konstantin Haase)
962
+
963
+ * Also specify charset in Content-Type header for JSON. (Konstantin Haase)
964
+
965
+ * Rack handler names will not be converted to lower case internally, this
966
+ allows you to run Sinatra with custom Rack handlers, like Kirk or Mongrel2.
967
+ Example: `ruby app.rb -s Mongrel2` (Konstantin Haase)
968
+
969
+ * Ignore `to_ary` on response bodies. Fixes compatibility to Rails 3.1.
970
+ (Konstantin Haase)
971
+
972
+ * Middleware setup is now distributed across multiple methods, allowing
973
+ Sinatra extensions to easily hook into the setup process. (Konstantin
974
+ Haase)
975
+
976
+ * Internal refactoring and minor performance improvements. (Konstantin Haase)
977
+
978
+ * Move Sinatra::VERSION to separate file, so it can be checked without
979
+ loading Sinatra. (Konstantin Haase)
980
+
981
+ * Command line options now complain if value passed to `-p` is not a valid
982
+ integer. (Konstantin Haase)
983
+
984
+ * Fix handling of broken query params when displaying exceptions. (Luke
985
+ Jahnke)
986
+
987
+ ## 1.2.9 (backports release) / 2013-03-15
988
+
989
+ IMPORTANT: THIS IS THE LAST 1.2.x RELEASE, PLEASE UPGRADE.
990
+
991
+ * Display EOL warning when loading Sinatra. (Konstantin Haase)
992
+
993
+ * Improve documentation. (Anurag Priyam, Konstantin Haase)
994
+
995
+ * Do not modify the load path. (Konstantin Haase)
996
+
997
+ * Display deprecation warning if RUBY_IGNORE_CALLERS is used. (Konstantin Haase)
998
+
999
+ * Add backports library so we can still run on Ruby 1.8.6. (Konstantin Haase)
1000
+
1001
+ ## 1.2.8 (backports release) / 2011-12-30
1002
+
1003
+ Backported from 1.3.2:
1004
+
1005
+ * Fix bug where rendering a second template in the same request after the
1006
+ first one raised an exception skipped the default layout (Nathan Baum)
1007
+
1008
+ ## 1.2.7 (backports release) / 2011-09-30
1009
+
1010
+ Custom changes:
1011
+
1012
+ * Fix Ruby 1.8.6 issue with Accept header parsing. (Konstantin Haase)
1013
+
1014
+ Backported from 1.3.0:
1015
+
1016
+ * Ignore `to_ary` on response bodies. Fixes compatibility to Rails 3.1.
1017
+ (Konstantin Haase)
1018
+
1019
+ * `Sinatra.run!` now prints to stderr rather than stdout. (Andrew Armenia)
1020
+
1021
+ * Automatic `app_file` detection now works in directories containing brackets
1022
+ (Konstantin Haase)
1023
+
1024
+ * Improved documentation. (Emanuele Vicentini, Peter Higgins, Takanori
1025
+ Ishikawa, Konstantin Haase)
1026
+
1027
+ * Also specify charset in Content-Type header for JSON. (Konstantin Haase)
1028
+
1029
+ * Rack handler names will not be converted to lower case internally, this
1030
+ allows you to run Sinatra with custom Rack handlers, like Kirk or Mongrel2.
1031
+ Example: `ruby app.rb -s Mongrel2` (Konstantin Haase)
1032
+
1033
+ * Fix uninitialized instance variable warning. (David Kellum)
1034
+
1035
+ * Command line options now complain if value passed to `-p` is not a valid
1036
+ integer. (Konstantin Haase)
1037
+
1038
+ * Fix handling of broken query params when displaying exceptions. (Luke
1039
+ Jahnke)
1040
+
1041
+ ## 1.2.6 / 2011-05-01
1042
+
1043
+ * Fix broken delegation, backport delegation tests from Sinatra 1.3.
1044
+ (Konstantin Haase)
1045
+
1046
+ ## 1.2.5 / 2011-04-30
1047
+
1048
+ * Restore compatibility with Ruby 1.8.6. (Konstantin Haase)
1049
+
1050
+ ## 1.2.4 / 2011-04-30
1051
+
1052
+ * Sinatra::Application (classic style) does not use a session secret in
1053
+ development mode, so sessions are not invalidated after every request when
1054
+ using Shotgun. (Konstantin Haase)
1055
+
1056
+ * The request object was shared between multiple Sinatra instances in the
1057
+ same middleware chain. This caused issues if any non-sinatra routing
1058
+ happened in-between two of those instances, or running a request twice
1059
+ against an application (described in the README). The caching was reverted.
1060
+ 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)
1061
+
1062
+ * Fixes issues where the top level DSL was interfering with method_missing
1063
+ proxies. This issue surfaced when Rails 3 was used with older Sass versions
1064
+ and Sinatra >= 1.2.0. (Konstantin Haase)
1065
+
1066
+ * Sinatra::Delegator.delegate is now able to delegate any method names, even
1067
+ those containing special characters. This allows better integration into
1068
+ other programming languages on Rubinius (probably on the JVM, too), like
1069
+ Fancy. (Konstantin Haase)
1070
+
1071
+ * Remove HEAD request logic and let Rack::Head handle it instead. (Paolo
1072
+ "Nusco" Perrotta)
1073
+
1074
+ ## 1.2.3 / 2011-04-13
1075
+
1076
+ * This release is compatible with Tilt 1.3, it will still work with Tilt 1.2.2,
1077
+ however, if you want to use a newer Tilt version, you have to upgrade to at
1078
+ least this version of Sinatra. (Konstantin Haase)
1079
+
1080
+ * Helpers dealing with time, like `expires`, handle objects that pretend to be
1081
+ numbers, like `ActiveSupport::Duration`, better. (Konstantin Haase)
1082
+
1083
+ ## 1.2.2 / 2011-04-08
1084
+
1085
+ * The `:provides => :js` condition now matches both `application/javascript`
1086
+ and `text/javascript`. The `:provides => :xml` condition now matches both
1087
+ `application/xml` and `text/xml`. The `Content-Type` header is set
1088
+ accordingly. If the client accepts both, the `application/*` version is
1089
+ preferred, since the `text/*` versions are deprecated. (Konstantin Haase)
1090
+
1091
+ * The `provides` condition now handles wildcards in `Accept` headers correctly.
1092
+ Thus `:provides => :html` matches `text/html`, `text/*` and `*/*`.
1093
+ (Konstantin Haase)
1094
+
1095
+ * When parsing `Accept` headers, `Content-Type` preferences are honored
1096
+ according to RFC 2616 section 14.1. (Konstantin Haase)
1097
+
1098
+ * URIs passed to the `url` helper or `redirect` may now use any schema to be
1099
+ identified as absolute URIs, not only `http` or `https`. (Konstantin Haase)
1100
+
1101
+ * Handles `Content-Type` strings that already contain parameters correctly in
1102
+ `content_type` (example: `content_type "text/plain; charset=utf-16"`).
1103
+ (Konstantin Haase)
1104
+
1105
+ * If a route with an empty pattern is defined (`get("") { ... }`) requests with
1106
+ an empty path info match this route instead of "/". (Konstantin Haase)
1107
+
1108
+ * In development environment, when running under a nested path, the image URIs
1109
+ on the error pages are set properly. (Konstantin Haase)
1110
+
1111
+ ## 1.2.1 / 2011-03-17
1112
+
1113
+ * Use a generated session secret when using `enable :sessions`. (Konstantin
1114
+ Haase)
1115
+
1116
+ * Fixed a bug where the wrong content type was used if no content type was set
1117
+ and a template engine was used with a different engine for the layout with
1118
+ different default content types, say Less embedded in Slim. (Konstantin
1119
+ Haase)
1120
+
1121
+ * README translations improved (Gabriel Andretta, burningTyger, Sylvain Desvé,
1122
+ Gregor Schmidt)
1123
+
1124
+ ## 1.2.0 / 2011-03-03
1125
+
1126
+ * Added `slim` rendering method for rendering Slim templates. (Steve
1127
+ Hodgkiss)
1128
+
1129
+ * The `markaby` rendering method now allows passing a block, making inline
1130
+ usage possible. Requires Tilt 1.2 or newer. (Konstantin Haase)
1131
+
1132
+ * All render methods now take a `:layout_engine` option, allowing to use a
1133
+ layout in a different template language. Even more useful than using this
1134
+ directly (`erb :index, :layout_engine => :haml`) is setting this globally for
1135
+ a template engine that otherwise does not support layouts, like Markdown or
1136
+ Textile (`set :markdown, :layout_engine => :erb`). (Konstantin Haase)
1137
+
1138
+ * Before and after filters now support conditions, both with and without
1139
+ patterns (`before '/api/*', :agent => /Songbird/`). (Konstantin Haase)
1140
+
1141
+ * Added a `url` helper method which constructs absolute URLs. Copes with
1142
+ reverse proxies and Rack handlers correctly. Aliased to `to`, so you can
1143
+ write `redirect to('/foo')`. (Konstantin Haase)
1144
+
1145
+ * If running on 1.9, patterns for routes and filters now support named
1146
+ captures: `get(%r{/hi/(?<name>[^/?#]+)}) { "Hi #{params['name']}" }`.
1147
+ (Steve Price)
1148
+
1149
+ * All rendering methods now take a `:scope` option, which renders them in
1150
+ another context. Note that helpers and instance variables will be
1151
+ unavailable if you use this feature. (Paul Walker)
1152
+
1153
+ * The behavior of `redirect` can now be configured with `absolute_redirects`
1154
+ and `prefixed_redirects`. (Konstantin Haase)
1155
+
1156
+ * `send_file` now allows overriding the Last-Modified header, which defaults
1157
+ to the file's mtime, by passing a `:last_modified` option. (Konstantin Haase)
1158
+
1159
+ * You can use your own template lookup method by defining `find_template`.
1160
+ This allows, among other things, using more than one views folder.
1161
+ (Konstantin Haase)
1162
+
1163
+ * Largely improved documentation. (burningTyger, Vasily Polovnyov, Gabriel
1164
+ Andretta, Konstantin Haase)
1165
+
1166
+ * Improved error handling. (cactus, Konstantin Haase)
1167
+
1168
+ * Skip missing template engines in tests correctly. (cactus)
1169
+
1170
+ * Sinatra now ships with a Gemfile for development dependencies, since it eases
1171
+ supporting different platforms, like JRuby. (Konstantin Haase)
1172
+
1173
+ ## 1.1.4 (backports release) / 2011-04-13
1174
+
1175
+ * Compatible with Tilt 1.3. (Konstantin Haase)
1176
+
1177
+ ## 1.1.3 / 2011-02-20
1178
+
1179
+ * Fixed issues with `user_agent` condition if the user agent header is missing.
1180
+ (Konstantin Haase)
1181
+
1182
+ * Fix some routing tests that have been skipped by accident (Ross A. Baker)
1183
+
1184
+ * Fix rendering issues with Builder and Nokogiri (Konstantin Haase)
1185
+
1186
+ * Replace last_modified helper with better implementation. (cactus,
1187
+ Konstantin Haase)
1188
+
1189
+ * Fix issue with charset not being set when using `provides` condition.
1190
+ (Konstantin Haase)
1191
+
1192
+ * Fix issue with `render` not picking up all alternative file extensions for
1193
+ a rendering engine - it was not possible to register ".html.erb" without
1194
+ tricks. (Konstantin Haase)
1195
+
1196
+ ## 1.1.2 / 2010-10-25
1197
+
1198
+ Like 1.1.1, but with proper CHANGES file.
1199
+
1200
+ ## 1.1.1 / 2010-10-25
1201
+
1202
+ * README has been translated to Russian (Nickolay Schwarz, Vasily Polovnyov)
1203
+ and Portuguese (Luciano Sousa).
1204
+
1205
+ * Nested templates without a `:layout` option can now be used from the layout
1206
+ template without causing an infinite loop. (Konstantin Haase)
1207
+
1208
+ * Inline templates are now encoding aware and can therefore be used with
1209
+ unicode characters on Ruby 1.9. Magic comments at the beginning of the file
1210
+ will be honored. (Konstantin Haase)
1211
+
1212
+ * Default `app_file` is set correctly when running with bundler. Using
1213
+ bundler caused Sinatra not to find the `app_file` and therefore not to find
1214
+ the `views` folder on it's own. (Konstantin Haase)
1215
+
1216
+ * Better handling of Content-Type when using `send_file`: If file extension
1217
+ is unknown, fall back to `application/octet-stream` and do not override
1218
+ content type if it has already been set, except if `:type` is passed
1219
+ explicitly (Konstantin Haase)
1220
+
1221
+ * Path is no longer cached if changed between handlers that do pattern
1222
+ matching. This means you can change `request.path_info` in a pattern
1223
+ matching before filter. (Konstantin Haase)
1224
+
1225
+ * Headers set by cache_control now always set max_age as an Integer, making
1226
+ sure it is compatible with RFC2616. (Konstantin Haase)
1227
+
1228
+ * Further improved handling of string encodings on Ruby 1.9, templates now
1229
+ honor default_encoding and URLs support unicode characters. (Konstantin
1230
+ Haase)
1231
+
1232
+ ## 1.1.0 / 2010-10-24
1233
+
1234
+ * Before and after filters now support pattern matching, including the
1235
+ ability to use captures: "before('/user/:name') { |name| ... }". This
1236
+ avoids manual path checking. No performance loss if patterns are avoided.
1237
+ (Konstantin Haase)
1238
+
1239
+ * It is now possible to render SCSS files with the `scss` method, which
1240
+ behaves exactly like `sass` except for the different file extension and
1241
+ assuming the SCSS syntax. (Pedro Menezes, Konstantin Haase)
1242
+
1243
+ * Added `liquid`, `markdown`, `nokogiri`, `textile`, `rdoc`, `radius`,
1244
+ `markaby`, and `coffee` rendering methods for rendering Liquid, Markdown,
1245
+ Nokogiri, Textile, RDoc, Radius, Markaby and CoffeeScript templates.
1246
+ (Konstantin Haase)
1247
+
1248
+ * Now supports byte-range requests (the HTTP_RANGE header) for static files.
1249
+ Multi-range requests are not supported, however. (Jens Alfke)
1250
+
1251
+ * You can now use #settings method from class and top level for convenience.
1252
+ (Konstantin Haase)
1253
+
1254
+ * Setting multiple values now no longer relies on #to_hash and therefore
1255
+ accepts any Enumerable as parameter. (Simon Rozet)
1256
+
1257
+ * Nested templates default the `layout` option to `false` rather than `true`.
1258
+ This eases the use of partials. If you wanted to render one haml template
1259
+ embedded in another, you had to call `haml :partial, {}, :layout => false`.
1260
+ As you almost never want the partial to be wrapped in the standard layout
1261
+ in this situation, you now only have to call `haml :partial`. Passing in
1262
+ `layout` explicitly is still possible. (Konstantin Haase)
1263
+
1264
+ * If a the return value of one of the render functions is used as a response
1265
+ body and the content type has not been set explicitly, Sinatra chooses a
1266
+ content type corresponding to the rendering engine rather than just using
1267
+ "text/html". (Konstantin Haase)
1268
+
1269
+ * README is now available in Chinese (Wu Jiang), French (Mickael Riga),
1270
+ German (Bernhard Essl, Konstantin Haase, burningTyger), Hungarian (Janos
1271
+ Hardi) and Spanish (Gabriel Andretta). The extremely outdated Japanese
1272
+ README has been updated (Kouhei Yanagita).
1273
+
1274
+ * It is now possible to access Sinatra's template_cache from the outside.
1275
+ (Nick Sutterer)
1276
+
1277
+ * The `last_modified` method now also accepts DateTime instances and makes
1278
+ sure the header will always be set to a string. (Konstantin Haase)
1279
+
1280
+ * 599 now is a legal status code. (Steve Shreeve)
1281
+
1282
+ * This release is compatible with Ruby 1.9.2. Sinatra was trying to read
1283
+ non existent files Ruby added to the call stack. (Shota Fukumori,
1284
+ Konstantin Haase)
1285
+
1286
+ * Prevents a memory leak on 1.8.6 in production mode. Note, however, that
1287
+ this is due to a bug in 1.8.6 and request will have the additional overhead
1288
+ of parsing templates again on that version. It is recommended to use at
1289
+ least Ruby 1.8.7. (Konstantin Haase)
1290
+
1291
+ * Compares last modified date correctly. `last_modified` was halting only
1292
+ when the 'If-Modified-Since' header date was equal to the time specified.
1293
+ Now, it halts when is equal or later than the time specified (Gabriel
1294
+ Andretta).
1295
+
1296
+ * Sinatra is now usable in combination with Rails 3. When mounting a Sinatra
1297
+ application under a subpath in Rails 3, the PATH_INFO is not prefixed with
1298
+ a slash and no routes did match. (José Valim)
1299
+
1300
+ * Better handling of encodings in 1.9, defaults params encoding to UTF-8.
1301
+ (Konstantin Haase)
1302
+
1303
+ * `show_exceptions` handling is now triggered after custom error handlers, if
1304
+ it is set to `:after_handlers`, thus not disabling those handler in
1305
+ development mode. (pangel, Konstantin Haase)
1306
+
1307
+ * Added ability to handle weighted HTTP_ACCEPT headers. (Davide D'Agostino)
1308
+
1309
+ * `send_file` now always respects the `:type` option if set. Previously it
1310
+ was discarded if no matching mime type was found, which made it impossible
1311
+ to directly pass a mime type. (Konstantin Haase)
1312
+
1313
+ * `redirect` always redirects to an absolute URI, even if a relative URI was
1314
+ passed. Ensures compatibility with RFC 2616 section 14.30. (Jean-Philippe
1315
+ Garcia Ballester, Anthony Williams)
1316
+
1317
+ * Broken examples for using Erubis, Haml and Test::Unit in README have been
1318
+ fixed. (Nick Sutterer, Doug Ireton, Jason Stewart, Eric Marden)
1319
+
1320
+ * Sinatra now handles SIGTERM correctly. (Patrick Collison)
1321
+
1322
+ * Fixes an issue with inline templates in modular applications that manually
1323
+ call `run!`. (Konstantin Haase)
1324
+
1325
+ * Spaces after inline template names are now ignored (Konstantin Haase)
1326
+
1327
+ * It's now possible to use Sinatra with different package management
1328
+ systems defining a custom require. (Konstantin Haase)
1329
+
1330
+ * Lighthouse has been dropped in favor of GitHub issues.
1331
+
1332
+ * Tilt is now a dependency and therefore no longer ships bundled with
1333
+ Sinatra. (Ryan Tomayko, Konstantin Haase)
1334
+
1335
+ * Sinatra now depends on Rack 1.1 or higher. Rack 1.0 is no longer supported.
1336
+ (Konstantin Haase)
1337
+
1338
+ ## 1.0 / 2010-03-23
1339
+
1340
+ * It's now possible to register blocks to run after each request using
1341
+ after filters. After filters run at the end of each request, after
1342
+ routes and error handlers. (Jimmy Schementi)
1343
+
1344
+ * Sinatra now uses Tilt <http://github.com/rtomayko/tilt> for rendering
1345
+ templates. This adds support for template caching, consistent
1346
+ template backtraces, and support for new template engines, like
1347
+ mustache and liquid. (Ryan Tomayko)
1348
+
1349
+ * ERB, Erubis, and Haml templates are now compiled the first time
1350
+ they're rendered instead of being string eval'd on each invocation.
1351
+ Benchmarks show a 5x-10x improvement in render time. This also
1352
+ reduces the number of objects created, decreasing pressure on Ruby's
1353
+ GC. (Ryan Tomayko)
1354
+
1355
+ * New 'settings' method gives access to options in both class and request
1356
+ scopes. This replaces the 'options' method. (Chris Wanstrath)
1357
+
1358
+ * New boolean 'reload_templates' setting controls whether template files
1359
+ are reread from disk and recompiled on each request. Template read/compile
1360
+ is cached by default in all environments except development. (Ryan Tomayko)
1361
+
1362
+ * New 'erubis' helper method for rendering ERB template with Erubis. The
1363
+ erubis gem is required. (Dylan Egan)
1364
+
1365
+ * New 'cache_control' helper method provides a convenient way of
1366
+ setting the Cache-Control response header. Takes a variable number
1367
+ of boolean directives followed by a hash of value directives, like
1368
+ this: cache_control :public, :must_revalidate, :max_age => 60
1369
+ (Ryan Tomayko)
1370
+
1371
+ * New 'expires' helper method is like cache_control but takes an
1372
+ integer number of seconds or Time object:
1373
+ expires 300, :public, :must_revalidate
1374
+ (Ryan Tomayko)
1375
+
1376
+ * New request.secure? method for checking for an SSL connection.
1377
+ (Adam Wiggins)
1378
+
1379
+ * Sinatra apps can now be run with a `-o <addr>` argument to specify
1380
+ the address to bind to. (Ryan Tomayko)
1381
+
1382
+ * Rack::Session::Cookie is now added to the middleware pipeline when
1383
+ running in test environments if the :sessions option is set.
1384
+ (Simon Rozet)
1385
+
1386
+ * Route handlers, before filters, templates, error mappings, and
1387
+ middleware are now resolved dynamically up the inheritance hierarchy
1388
+ when needed instead of duplicating the superclass's version when
1389
+ a new Sinatra::Base subclass is created. This should fix a variety
1390
+ of issues with extensions that need to add any of these things
1391
+ to the base class. (Ryan Tomayko)
1392
+
1393
+ * Exception error handlers always override the raise_errors option now.
1394
+ Previously, all exceptions would be raised outside of the application
1395
+ when the raise_errors option was enabled, even if an error handler was
1396
+ defined for that exception. The raise_errors option now controls
1397
+ whether unhandled exceptions are raised (enabled) or if a generic 500
1398
+ error is returned (disabled). (Ryan Tomayko)
1399
+
1400
+ * The X-Cascade response header is set to 'pass' when no matching route
1401
+ is found or all routes pass. (Josh Peek)
1402
+
1403
+ * Filters do not run when serving static files anymore. (Ryan Tomayko)
1404
+
1405
+ * pass takes an optional block to be used as the route handler if no
1406
+ subsequent route matches the request. (Blake Mizerany)
1407
+
1408
+ The following Sinatra features have been obsoleted (removed entirely) in
1409
+ the 1.0 release:
1410
+
1411
+ * The `sinatra/test` library is obsolete. This includes the `Sinatra::Test`
1412
+ module, the `Sinatra::TestHarness` class, and the `get_it`, `post_it`,
1413
+ `put_it`, `delete_it`, and `head_it` helper methods. The
1414
+ [`Rack::Test` library](http://gitrdoc.com/brynary/rack-test) should
1415
+ be used instead.
1416
+
1417
+ * Test framework specific libraries (`sinatra/test/spec`,
1418
+ `sinatra/test/bacon`,`sinatra/test/rspec`, etc.) are obsolete. See
1419
+ http://www.sinatrarb.com/testing.html for instructions on setting up a
1420
+ testing environment under each of these frameworks.
1421
+
1422
+ * `Sinatra::Default` is obsolete; use `Sinatra::Base` instead.
1423
+ `Sinatra::Base` acts more like `Sinatra::Default` in development mode.
1424
+ For example, static file serving and sexy development error pages are
1425
+ enabled by default.
1426
+
1427
+ * Auto-requiring template libraries in the `erb`, `builder`, `haml`,
1428
+ and `sass` methods is obsolete due to thread-safety issues. You must
1429
+ require the template libraries explicitly in your app.
1430
+
1431
+ * The `:views_directory` option to rendering methods is obsolete; use
1432
+ `:views` instead.
1433
+
1434
+ * The `:haml` and `:sass` options to rendering methods are obsolete.
1435
+ Template engine options should be passed in the second Hash argument
1436
+ instead.
1437
+
1438
+ * The `use_in_file_templates` method is obsolete. Use
1439
+ `enable :inline_templates` or `set :inline_templates, 'path/to/file'`
1440
+
1441
+ * The 'media_type' helper method is obsolete. Use 'mime_type' instead.
1442
+
1443
+ * The 'mime' main and class method is obsolete. Use 'mime_type' instead.
1444
+
1445
+ * The request-level `send_data` method is no longer supported.
1446
+
1447
+ * The `Sinatra::Event` and `Sinatra::EventContext` classes are no longer
1448
+ supported. This may effect extensions written for versions prior to 0.9.2.
1449
+ See [Writing Sinatra Extensions](http://www.sinatrarb.com/extensions.html)
1450
+ for the officially supported extensions API.
1451
+
1452
+ * The `set_option` and `set_options` methods are obsolete; use `set`
1453
+ instead.
1454
+
1455
+ * The `:env` setting (`settings.env`) is obsolete; use `:environment`
1456
+ instead.
1457
+
1458
+ * The request level `stop` method is obsolete; use `halt` instead.
1459
+
1460
+ * The request level `entity_tag` method is obsolete; use `etag`
1461
+ instead.
1462
+
1463
+ * The request level `headers` method (HTTP response headers) is obsolete;
1464
+ use `response['Header-Name']` instead.
1465
+
1466
+ * `Sinatra.application` is obsolete; use `Sinatra::Application` instead.
1467
+
1468
+ * Using `Sinatra.application = nil` to reset an application is obsolete.
1469
+ This should no longer be necessary.
1470
+
1471
+ * Using `Sinatra.default_options` to set base configuration items is
1472
+ obsolete; use `Sinatra::Base.set(key, value)` instead.
1473
+
1474
+ * The `Sinatra::ServerError` exception is obsolete. All exceptions raised
1475
+ within a request are now treated as internal server errors and result in
1476
+ a 500 response status.
1477
+
1478
+ * The `:methodoverride' option to enable/disable the POST _method hack is
1479
+ obsolete; use `:method_override` instead.
1480
+
1481
+ ## 0.9.2 / 2009-05-18
1482
+
1483
+ * This version is compatible with Rack 1.0. [Rein Henrichs]
1484
+
1485
+ * The development-mode unhandled exception / error page has been
1486
+ greatly enhanced, functionally and aesthetically. The error
1487
+ page is used when the :show_exceptions option is enabled and an
1488
+ exception propagates outside of a route handler or before filter.
1489
+ [Simon Rozet / Matte Noble / Ryan Tomayko]
1490
+
1491
+ * Backtraces that move through templates now include filenames and
1492
+ line numbers where possible. [#51 / S. Brent Faulkner]
1493
+
1494
+ * All templates now have an app-level option for setting default
1495
+ template options (:haml, :sass, :erb, :builder). The app-level
1496
+ option value must be a Hash if set and is merged with the
1497
+ template options specified to the render method (Base#haml,
1498
+ Base#erb, Base#builder). [S. Brent Faulkner, Ryan Tomayko]
1499
+
1500
+ * The method signature for all template rendering methods has
1501
+ been unified: "def engine(template, options={}, locals={})".
1502
+ The options Hash now takes the generic :views, :layout, and
1503
+ :locals options but also any template-specific options. The
1504
+ generic options are removed before calling the template specific
1505
+ render method. Locals may be specified using either the
1506
+ :locals key in the options hash or a second Hash option to the
1507
+ rendering method. [#191 / Ryan Tomayko]
1508
+
1509
+ * The receiver is now passed to "configure" blocks. This
1510
+ allows for the following idiom in top-level apps:
1511
+ configure { |app| set :foo, app.root + '/foo' }
1512
+ [TJ Holowaychuck / Ryan Tomayko]
1513
+
1514
+ * The "sinatra/test" lib is deprecated and will be removed in
1515
+ Sinatra 1.0. This includes the Sinatra::Test module and
1516
+ Sinatra::TestHarness class in addition to all the framework
1517
+ test helpers that were deprecated in 0.9.1. The Rack::Test
1518
+ lib should be used instead: http://gitrdoc.com/brynary/rack-test
1519
+ [#176 / Simon Rozet]
1520
+
1521
+ * Development mode source file reloading has been removed. The
1522
+ "shotgun" (http://rtomayko.github.com/shotgun/) program can be
1523
+ used to achieve the same basic functionality in most situations.
1524
+ Passenger users should use the "tmp/always_restart.txt"
1525
+ file (http://tinyurl.com/c67o4h). [#166 / Ryan Tomayko]
1526
+
1527
+ * Auto-requiring template libs in the erb, builder, haml, and
1528
+ sass methods is deprecated due to thread-safety issues. You must
1529
+ require the template libs explicitly in your app file. [Simon Rozet]
1530
+
1531
+ * A new Sinatra::Base#route_missing method was added. route_missing
1532
+ is sent when no route matches the request or all route handlers
1533
+ pass. The default implementation forwards the request to the
1534
+ downstream app when running as middleware (i.e., "@app" is
1535
+ non-nil), or raises a NotFound exception when no downstream app
1536
+ is defined. Subclasses can override this method to perform custom
1537
+ route miss logic. [Jon Crosby]
1538
+
1539
+ * A new Sinatra::Base#route_eval method was added. The method
1540
+ yields to the block and throws :halt with the result. Subclasses
1541
+ can override this method to tap into the route execution logic.
1542
+ [TJ Holowaychuck]
1543
+
1544
+ * Fix the "-x" (enable request mutex / locking) command line
1545
+ argument. Passing -x now properly sets the :lock option.
1546
+ [S. Brent Faulkner, Ryan Tomayko]
1547
+
1548
+ * Fix writer ("foo=") and predicate ("foo?") methods in extension
1549
+ modules not being added to the registering class.
1550
+ [#172 / Pat Nakajima]
1551
+
1552
+ * Fix in-file templates when running alongside activesupport and
1553
+ fatal errors when requiring activesupport before sinatra
1554
+ [#178 / Brian Candler]
1555
+
1556
+ * Fix various issues running on Google AppEngine.
1557
+ [Samuel Goebert, Simon Rozet]
1558
+
1559
+ * Fix in-file templates __END__ detection when __END__ exists with
1560
+ other stuff on a line [Yoji Shidara]
1561
+
1562
+ ## 0.9.1.1 / 2009-03-09
1563
+
1564
+ * Fix directory traversal vulnerability in default static files
1565
+ route. See [#177] for more info.
1566
+
1567
+ ## 0.9.1 / 2009-03-01
1568
+
1569
+ * Sinatra now runs under Ruby 1.9.1 [#61]
1570
+
1571
+ * Route patterns (splats, :named, or Regexp captures) are now
1572
+ passed as arguments to the block. [#140]
1573
+
1574
+ * The "helpers" method now takes a variable number of modules
1575
+ along with the normal block syntax. [#133]
1576
+
1577
+ * New request-level #forward method for middleware components: passes
1578
+ the env to the downstream app and merges the response status, headers,
1579
+ and body into the current context. [#126]
1580
+
1581
+ * Requests are now automatically forwarded to the downstream app when
1582
+ running as middleware and no matching route is found or all routes
1583
+ pass.
1584
+
1585
+ * New simple API for extensions/plugins to add DSL-level and
1586
+ request-level methods. Use Sinatra.register(mixin) to extend
1587
+ the DSL with all public methods defined in the mixin module;
1588
+ use Sinatra.helpers(mixin) to make all public methods defined
1589
+ in the mixin module available at the request level. [#138]
1590
+ See http://www.sinatrarb.com/extensions.html for details.
1591
+
1592
+ * Named parameters in routes now capture the "." character. This makes
1593
+ routes like "/:path/:filename" match against requests like
1594
+ "/foo/bar.txt"; in this case, "params[:filename]" is "bar.txt".
1595
+ Previously, the route would not match at all.
1596
+
1597
+ * Added request-level "redirect back" to redirect to the referring
1598
+ URL.
1599
+
1600
+ * Added a new "clean_trace" option that causes backtraces dumped
1601
+ to rack.errors and displayed on the development error page to
1602
+ omit framework and core library backtrace lines. The option is
1603
+ enabled by default. [#77]
1604
+
1605
+ * The ERB output buffer is now available to helpers via the @_out_buf
1606
+ instance variable.
1607
+
1608
+ * It's now much easier to test sessions in unit tests by passing a
1609
+ ":session" option to any of the mock request methods. e.g.,
1610
+ get '/', {}, :session => { 'foo' => 'bar' }
1611
+
1612
+ * The testing framework specific files ('sinatra/test/spec',
1613
+ 'sinatra/test/bacon', 'sinatra/test/rspec', etc.) have been deprecated.
1614
+ See http://sinatrarb.com/testing.html for instructions on setting up
1615
+ a testing environment with these frameworks.
1616
+
1617
+ * The request-level #send_data method from Sinatra 0.3.3 has been added
1618
+ for compatibility but is deprecated.
1619
+
1620
+ * Fix :provides causing crash on any request when request has no
1621
+ Accept header [#139]
1622
+
1623
+ * Fix that ERB templates were evaluated twice per "erb" call.
1624
+
1625
+ * Fix app-level middleware not being run when the Sinatra application is
1626
+ run as middleware.
1627
+
1628
+ * Fixed some issues with running under Rack's CGI handler caused by
1629
+ writing informational stuff to stdout.
1630
+
1631
+ * Fixed that reloading was sometimes enabled when starting from a
1632
+ rackup file [#110]
1633
+
1634
+ * Fixed that "." in route patterns erroneously matched any character
1635
+ instead of a literal ".". [#124]
1636
+
1637
+ ## 0.9.0.4 / 2009-01-25
1638
+
1639
+ * Using halt with more than 1 args causes ArgumentError [#131]
1640
+ * using halt in a before filter doesn't modify response [#127]
1641
+ * Add deprecated Sinatra::EventContext to unbreak plugins [#130]
1642
+ * Give access to GET/POST params in filters [#129]
1643
+ * Preserve non-nested params in nested params hash [#117]
1644
+ * Fix backtrace dump with Rack::Lint [#116]
1645
+
1646
+ ## 0.9.0.3 / 2009-01-21
1647
+
1648
+ * Fall back on mongrel then webrick when thin not found. [#75]
1649
+ * Use :environment instead of :env in test helpers to
1650
+ fix deprecation warnings coming from framework.
1651
+ * Make sinatra/test/rspec work again [#113]
1652
+ * Fix app_file detection on windows [#118]
1653
+ * Fix static files with Rack::Lint in pipeline [#121]
1654
+
1655
+ ## 0.9.0.2 / 2009-01-18
1656
+
1657
+ * Halting a before block should stop processing of routes [#85]
1658
+ * Fix redirect/halt in before filters [#85]
1659
+
1660
+ ## 0.9.0 / 2009-01-18
1661
+
1662
+ * Works with and requires Rack >= 0.9.1
1663
+
1664
+ * Multiple Sinatra applications can now co-exist peacefully within a
1665
+ single process. The new "Sinatra::Base" class can be subclassed to
1666
+ establish a blank-slate Rack application or middleware component.
1667
+ Documentation on using these features is forth-coming; the following
1668
+ provides the basic gist: http://gist.github.com/38605
1669
+
1670
+ * Parameters with subscripts are now parsed into a nested/recursive
1671
+ Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
1672
+ params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
1673
+
1674
+ * Regular expressions may now be used in route patterns; captures are
1675
+ available at "params[:captures]".
1676
+
1677
+ * New ":provides" route condition takes an array of mime types and
1678
+ matches only when an Accept request header is present with a
1679
+ corresponding type. [cypher]
1680
+
1681
+ * New request-level "pass" method; immediately exits the current block
1682
+ and passes control to the next matching route.
1683
+
1684
+ * The request-level "body" method now takes a block; evaluation is
1685
+ deferred until an attempt is made to read the body. The block must
1686
+ return a String or Array.
1687
+
1688
+ * New "route conditions" system for attaching rules for when a route
1689
+ matches. The :agent and :host route options now use this system.
1690
+
1691
+ * New "dump_errors" option controls whether the backtrace is dumped to
1692
+ rack.errors when an exception is raised from a route. The option is
1693
+ enabled by default for top-level apps.
1694
+
1695
+ * Better default "app_file", "root", "public", and "views" location
1696
+ detection; changes to "root" and "app_file" automatically cascade to
1697
+ other options that depend on them.
1698
+
1699
+ * Error mappings are now split into two distinct layers: exception
1700
+ mappings and custom error pages. Exception mappings are registered
1701
+ with "error(Exception)" and are run only when the app raises an
1702
+ exception. Custom error pages are registered with "error(status_code)",
1703
+ where "status_code" is an integer, and are run any time the response
1704
+ has the status code specified. It's also possible to register an error
1705
+ page for a range of status codes: "error(500..599)".
1706
+
1707
+ * In-file templates are now automatically imported from the file that
1708
+ requires 'sinatra'. The use_in_file_templates! method is still available
1709
+ for loading templates from other files.
1710
+
1711
+ * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
1712
+ 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
1713
+ class, which can be used with any test framework. The 'sinatra/test/unit',
1714
+ 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
1715
+ can be required to setup a framework-specific testing environment. See the
1716
+ README for more information.
1717
+
1718
+ * Added support for Bacon (test framework). The 'sinatra/test/bacon' file
1719
+ can be required to setup Sinatra test helpers on Bacon::Context.
1720
+
1721
+ * Deprecated "set_option" and "set_options"; use "set" instead.
1722
+
1723
+ * Deprecated the "env" option ("options.env"); use "environment" instead.
1724
+
1725
+ * Deprecated the request level "stop" method; use "halt" instead.
1726
+
1727
+ * Deprecated the request level "entity_tag" method; use "etag" instead.
1728
+ Both "entity_tag" and "etag" were previously supported.
1729
+
1730
+ * Deprecated the request level "headers" method (HTTP response headers);
1731
+ use "response['Header-Name']" instead.
1732
+
1733
+ * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
1734
+
1735
+ * Deprecated setting Sinatra.application = nil to reset an application.
1736
+ This should no longer be necessary.
1737
+
1738
+ * Deprecated "Sinatra.default_options"; use
1739
+ "Sinatra::Default.set(key, value)" instead.
1740
+
1741
+ * Deprecated the "ServerError" exception. All Exceptions are now
1742
+ treated as internal server errors and result in a 500 response
1743
+ status.
1744
+
1745
+ * Deprecated the "get_it", "post_it", "put_it", "delete_it", and "head_it"
1746
+ test helper methods. Use "get", "post", "put", "delete", and "head",
1747
+ respectively, instead.
1748
+
1749
+ * Removed Event and EventContext classes. Applications are defined in a
1750
+ subclass of Sinatra::Base; each request is processed within an
1751
+ instance.
1752
+
1753
+ ## 0.3.3 / 2009-01-06
1754
+
1755
+ * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
1756
+
1757
+ * Log unhandled exception backtraces to rack.errors.
1758
+
1759
+ * Use RACK_ENV environment variable to establish Sinatra
1760
+ environment when given. Thin sets this when started with
1761
+ the -e argument.
1762
+
1763
+ * BUG: raising Sinatra::NotFound resulted in a 500 response
1764
+ code instead of 404.
1765
+
1766
+ * BUG: use_in_file_templates! fails with CR/LF [#45]
1767
+
1768
+ * BUG: Sinatra detects the app file and root path when run under
1769
+ thin/passenger.
1770
+
1771
+ ## 0.3.2
1772
+
1773
+ * BUG: Static and send_file read entire file into String before
1774
+ sending. Updated to stream with 8K chunks instead.
1775
+
1776
+ * Rake tasks and assets for building basic documentation website.
1777
+ See http://sinatra.rubyforge.org
1778
+
1779
+ * Various minor doc fixes.
1780
+
1781
+ ## 0.3.1
1782
+
1783
+ * Unbreak optional path parameters [jeremyevans]
1784
+
1785
+ ## 0.3.0
1786
+
1787
+ * Add sinatra.gemspec w/ support for github gem builds. Forks can now
1788
+ enable the build gem option in github to get free username-sinatra.gem
1789
+ builds: gem install username-sinatra.gem --source=http://gems.github.com/
1790
+
1791
+ * Require rack-0.4 gem; removes frozen rack dir.
1792
+
1793
+ * Basic RSpec support; require 'sinatra/test/rspec' instead of
1794
+ 'sinatra/test/spec' to use. [avdi]
1795
+
1796
+ * before filters can modify request environment vars used for
1797
+ routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
1798
+ type functionality.
1799
+
1800
+ * In-file templates now uses @@ instead of ## as template separator.
1801
+
1802
+ * Top-level environment test predicates: development?, test?, production?
1803
+
1804
+ * Top-level "set", "enable", and "disable" methods for tweaking
1805
+ app options. [rtomayko]
1806
+
1807
+ * Top-level "use" method for building Rack middleware pipelines
1808
+ leading to app. See README for usage. [rtomayko]
1809
+
1810
+ * New "reload" option - set false to disable reloading in development.
1811
+
1812
+ * New "host" option - host/ip to bind to [cschneid]
1813
+
1814
+ * New "app_file" option - override the file to reload in development
1815
+ mode [cschneid]
1816
+
1817
+ * Development error/not_found page cleanup [sr, adamwiggins]
1818
+
1819
+ * Remove a bunch of core extensions (String#to_param, String#from_param,
1820
+ Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
1821
+
1822
+ * Various grammar and formatting fixes to README; additions on
1823
+ community and contributing [cypher]
1824
+
1825
+ * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
1826
+
1827
+ * Specs, documentation and fixes for splat'n routes [vic]
1828
+
1829
+ * Fix whitespace errors across all source files. [rtomayko]
1830
+
1831
+ * Fix streaming issues with Mongrel (body not closed). [bmizerany]
1832
+
1833
+ * Fix various issues with environment not being set properly (configure
1834
+ blocks not running, error pages not registering, etc.) [cypher]
1835
+
1836
+ * Fix to allow locals to be passed to ERB templates [cschneid]
1837
+
1838
+ * Fix locking issues causing random errors during reload in development.
1839
+
1840
+ * Fix for escaped paths not resolving static files [Matthew Walker]
1841
+
1842
+ ## 0.2.1
1843
+
1844
+ * File upload fix and minor tweaks.
1845
+
1846
+ ## 0.2.0
1847
+
1848
+ * Initial gem release of 0.2 codebase.