Skip to content
This repository
Newer
Older
100644 1087 lines (748 sloc) 43.87 kb
bd340e98 » rkh
2013-03-15 set date
1 = 1.3.6 (backport release) / 2013-03-15
63c53680 » rkh
2013-03-15 update changes
2
3 Backported from 1.4.0:
4
5 * Take views option into account for template caching. (Konstantin Haase)
6
a7d5be55 » rkh
2013-03-15 fix changes
7 * Improve documentation (Konstantin Haase)
8
9 * No longer override `define_singleton_method`. (Konstantin Haase)
10
0921d1a9 » rkh
2013-02-25 v1.3.5
11 = 1.3.5 / 2013-02-25
12
13 * Fix for RubyGems 2.0 (Uchio KONDO)
14
15 * Improve documentation (Konstantin Haase)
16
17 = 1.3.4 / 2013-01-26
9a6a6d52 » rkh
2013-01-26 update changes
18
19 * Improve documentation. (Kashyap, Stanislav Chistenko, Konstantin Haase,
20 ymmtmsys, Anurag Priyam)
21
22 * Adjustments to template system to work with Tilt edge. (Konstantin Haase)
23
24 * Fix streaming with latest Rack release. (Konstantin Haase)
25
26 * Fix default content type for Sinatra::Response with latest Rack release.
27 (Konstantin Haase)
28
a7cba14a » rkh
2013-01-26 update changes
29 * Fix regression where + was no longer treated like space. (Ross Boucher)
30
fecbf7e8 » ab9
2013-01-27 Fix indentation
31 * Status, headers and body will be set correctly in an after filter when using
32 halt in a before filter or route. (Konstantin Haase)
345f9e46 » rkh
2013-01-26 update changes
33
7bde5c79 » rkh
2012-08-19 update changes
34 = 1.3.3 / 2012-08-19
35
36 * Improved documentation. (burningTyger, Konstantin Haase, Gabriel Andretta,
37 Anurag Priyam, michelc)
38
39 * No longer modify the load path. (Konstantin Haase)
3d1cf458 » rkh
2012-01-05 update changes
40
41 * When keeping a stream open, set up callback/errback correctly to deal with
42 clients closing the connection. (Konstantin Haase)
43
7bde5c79 » rkh
2012-08-19 update changes
44 * Fix bug where having a query param and a URL param by the same name would
661338f7 » rkh
2012-08-19 fix typo
45 concatenate the two values. (Konstantin Haase)
7bde5c79 » rkh
2012-08-19 update changes
46
a826380b » rkh
2012-08-19 fix typo
47 * Prevent duplicated log output when application is already wrapped in a
7bde5c79 » rkh
2012-08-19 update changes
48 `Rack::CommonLogger`. (Konstantin Haase)
49
50 * Fix issue where `Rack::Link` and Rails were preventing indefinite streaming.
51 (Konstantin Haase)
52
53 * No longer cause warnings when running Ruby with `-w`. (Konstantin Haase)
54
55 * HEAD requests on static files no longer report a Content-Length of 0, but
56 instead the proper length. (Konstantin Haase)
57
58 * When protecting against CSRF attacks, drop the session instead of refusing
59 the request. (Konstantin Haase)
60
0ffb7ce5 » rkh
2012-01-04 set status, headers and body before hitting after filters. fixes #402.
61 * Status, headers and body will be set correctly in an after filter when using
62 halt in a before filter or route. (Konstantin Haase)
63
c4b5bbc8 » rkh
2011-12-30 update changes
64 = 1.3.2 / 2011-12-30
678fdfb8 » rkh
2011-10-14 update changes
65
66 * Don't automatically add `Rack::CommonLogger` if `Rack::Server` is adding it,
67 too. (Konstantin Haase)
68
69 * Setting `logging` to `nil` will avoid setting up `Rack::NullLogger`.
70 (Konstantin Haase)
71
c4b5bbc8 » rkh
2011-12-30 update changes
72 * Route specific params are now available in the block passed to #stream.
73 (Konstantin Haase)
74
75 * Fix bug where rendering a second template in the same request, after the
76 first one raised an exception, skipped the default layout. (Nathan Baum)
77
78 * Fix bug where parameter escaping got enabled when disabling a different
79 protection. (Konstantin Haase)
80
81 * Fix regression: Filters without a pattern may now again manipulate the params
82 hash. (Konstantin Haase)
83
84 * Added examples directory. (Konstantin Haase)
85
86 * Improved documentation. (Gabriel Andretta, Markus Prinz, Erick Zetta, Just
87 Lest, Adam Vaughan, Aleksander Dąbrowski)
88
89 * Improved MagLev support. (Tim Felgentreff)
678fdfb8 » rkh
2011-10-14 update changes
90
a765cce4 » rbq
2011-10-05 fixing changelog (the version in the 1.3.1 release contains no releas…
91 = 1.3.1 / 2011-10-05
0ab52943 » rkh
2011-10-02 bump version
92
91cafec4 » rkh
2011-10-02 add support for more than one callback
93 * Support adding more than one callback to the stream object. (Konstantin
94 Haase)
95
47c11e5f » rkh
2011-10-05 update changes
96 * Fix for infinite loop when streaming on 1.9.2 with Thin from a modular
97 application (Konstantin Haase)
98
04bb502c » rkh
2011-10-01 add missing dates
99 = 1.3.0 / 2011-09-30
59381b54 » rkh
2011-03-18 mind readme and changes
100
555040b5 » rkh
2011-08-22 update changes (1.3.0)
101 * Added `stream` helper method for easily creating streaming APIs, Server
102 Sent Events or even WebSockets. See README for more on that topic.
103 (Konstantin Haase)
104
105 * If a HTTP 1.1 client is redirected from a different verb than GET, use 303
106 instead of 302 by default. You may still pass 302 explicitly. Fixes AJAX
107 redirects in Internet Explorer 9 (to be fair, everyone else is doing it
108 wrong and IE is behaving correct). (Konstantin Haase)
109
59381b54 » rkh
2011-03-18 mind readme and changes
110 * Added support for HTTP PATCH requests. (Konstantin Haase)
111
1f1e58e2 » rkh
2011-09-02 add rack-protection, fixes #310
112 * Use rack-protection to defend against common opportunistic attacks.
c0a9b336 » rkh
2011-09-22 Also mention Jacob Burkhart
113 (Josh Lane, Jacob Burkhart, Konstantin Haase)
1f1e58e2 » rkh
2011-09-02 add rack-protection, fixes #310
114
9ce9e543 » rkh
2011-04-15 add support for creole templates
115 * Support for Creole templates, Creole is a standardized wiki markup,
116 supported by many wiki implementations. (Konstanin Haase)
117
b69917f1 » rkh
2011-04-27 update changes
118 * The `erubis` method has been deprecated. If Erubis is available, Sinatra
119 will automatically use it for rendering ERB templates. `require 'erb'`
120 explicitly to prevent that behavior. (Magnus Holm, Ryan Tomayko, Konstantin
121 Haase)
122
206ee80c » rkh
2011-05-19 note changed url matching in changes
123 * Patterns now match against the escaped URLs rather than the unescaped
124 version. This makes Sinatra confirm with RFC 2396 section 2.2 and RFC 2616
125 section 3.2.3 (escaped reserved characters should not be treated like the
126 unescaped version), meaning that "/:name" will also match `/foo%2Fbar`, but
555040b5 » rkh
2011-08-22 update changes (1.3.0)
127 not `/foo/bar`. To avoid incompatibility, pattern matching has been
128 adjusted. Moreover, since we do no longer need to keep an unescaped version
129 of path_info around, we handle all changes to `env['PATH_INFO']` correctly.
206ee80c » rkh
2011-05-19 note changed url matching in changes
130 (Konstantin Haase)
131
db761b8b » rkh
2011-05-03 let app_file default to the file subclassing Sinatra::Base in modular…
132 * `settings.app_file` now defaults to the file subclassing `Sinatra::Base` in
133 modular applications. (Konstantin Haase)
134
8adf3cab » rkh
2011-03-13 mind the changes
135 * Set up `Rack::Logger` or `Rack::NullLogger` depending on whether logging
136 was enabled or not. Also, expose that logger with the `logger` helper
137 method. (Konstantin Haase)
138
bf6c876c » rkh
2011-06-16 update changes
139 * The sessions setting may be an options hash now. (Konstantin Haase)
0c9e3d86 » rkh
2011-03-19 accept a hash as sessions setting
140
bf6c876c » rkh
2011-06-16 update changes
141 * Important: Ruby 1.8.6 support has been dropped. This version also depends
a0894fa4 » rkh
2011-09-12 wording in CHANGES
142 on at least Rack 1.3.0. This means that it is incompatible with Rails prior
bf6c876c » rkh
2011-06-16 update changes
143 to 3.1.0. Please use 1.2.x if you require an earlier version of Ruby or
144 Rack, which we will continue to supply with bug fixes. (Konstantin Haase)
eb287138 » rkh
2011-03-19 mention dropping 1.8.6 in CHANGES
145
bf6c876c » rkh
2011-06-16 update changes
146 * Renamed `:public` to `:public_folder` to avoid overriding Ruby's built-in
147 `public` method/keyword. `set(:public, ...)` is still possible but shows a
148 warning. (Konstantin Haase)
149
150 * It is now possible to use a different target class for the top level DSL
151 (aka classic style) than `Sinatra::Application` by setting
152 `Delegator.target`. This was mainly introduced to ease testing. (Konstantin
153 Haase)
a6cf359f » rkh
2011-03-21 add Sinatra::Delegator.target and actually test delegation
154
555040b5 » rkh
2011-08-22 update changes (1.3.0)
155 * Error handlers defined for an error class will now also handle subclasses
156 of that class, unless more specific error handlers exist. (Konstantin
157 Haase)
f24ddd49 » rkh
2011-06-05 update changes
158
159 * Error handling respects Exception#code, again. (Konstantin Haase)
160
161 * Changing a setting will merge hashes: `set(:x, :a => 1); set(:x :b => 2)`
555040b5 » rkh
2011-08-22 update changes (1.3.0)
162 will result in `{:a => 1, :b => 2}`. Use `set(:x, {:a => 1}, true)` to
163 avoid this behavior. (Konstantin Haase)
f24ddd49 » rkh
2011-06-05 update changes
164
ec5f6064 » rkh
2011-03-25 document request.accept, request.accept? and request.preferred_type
165 * Added `request.accept?` and `request.preferred_type` to ease dealing with
166 `Accept` headers. (Konstantin Haase)
167
bf6c876c » rkh
2011-06-16 update changes
168 * Added `:static_cache_control` setting to automatically set cache control
169 headers to static files. (Kenichi Nakamura)
170
171 * Added `informal?`, `success?`, `redirect?`, `client_error?`,
172 `server_error?` and `not_found?` helper methods to ease dealing with status
173 codes. (Konstantin Haase)
174
7d238c93 » rkh
2011-05-04 use secure random
175 * Uses SecureRandom to generate default session secret. (Konstantin Haase)
176
555040b5 » rkh
2011-08-22 update changes (1.3.0)
177 * The `attachment` helper will set Content-Type (if it hasn't been set yet)
178 depending on the supplied file name. (Vasiliy Ermolovich)
179
180 * Conditional requests on `etag` helper now work properly for unsafe HTTP
181 methods. (Matthew Schinckel, Konstantin Haase)
182
f54f322b » rkh
2011-09-17 only halt execution in last_modified if status is currently 200 (to c…
183 * The `last_modified` helper does not stop execution and change the status code
184 if the status code is something different than 200. (Konstantin Haase)
185
092157f6 » rkh
2011-09-17 add support for If-Unmodified-Since
186 * Added support for If-Unmodified-Since header. (Konstantin Haase)
187
555040b5 » rkh
2011-08-22 update changes (1.3.0)
188 * `Sinatra::Base.run!` now prints to stderr rather than stdout. (Andrew
189 Armenia)
190
191 * `Sinatra::Base.run!` takes a block allowing access to the Rack handler.
192 (David Waite)
f24ddd49 » rkh
2011-06-05 update changes
193
194 * Automatic `app_file` detection now works in directories containing brackets
195 (Konstantin Haase)
196
555040b5 » rkh
2011-08-22 update changes (1.3.0)
197 * Exception objects are now passed to error handlers. (Konstantin Haase)
198
f24ddd49 » rkh
2011-06-05 update changes
199 * Improved documentation. (Emanuele Vicentini, Peter Higgins, Takanori
200 Ishikawa, Konstantin Haase)
201
202 * Also specify charset in Content-Type header for JSON. (Konstantin Haase)
203
204 * Rack handler names will not be converted to lower case internally, this
205 allows you to run Sinatra with custom Rack handlers, like Kirk or Mongrel2.
206 Example: `ruby app.rb -s Mongrel2` (Konstantin Haase)
207
555040b5 » rkh
2011-08-22 update changes (1.3.0)
208 * Ignore `to_ary` on response bodies. Fixes compatibility to Rails 3.1.
209 (Konstantin Haase)
210
bf6c876c » rkh
2011-06-16 update changes
211 * Middleware setup is now distributed across multiple methods, allowing
212 Sinatra extensions to easily hook into the setup process. (Konstantin
213 Haase)
f24ddd49 » rkh
2011-06-05 update changes
214
215 * Internal refactoring and minor performance improvements. (Konstantin Haase)
216
bf6c876c » rkh
2011-06-16 update changes
217 * Move Sinatra::VERSION to separate file, so it can be checked without
218 loading Sinatra. (Konstantin Haase)
219
555040b5 » rkh
2011-08-22 update changes (1.3.0)
220 * Command line options now complain if value passed to `-p` is not a valid
221 integer. (Konstantin Haase)
222
223 * Fix handling of broken query params when displaying exceptions. (Luke
224 Jahnke)
225
b16355dd » rkh
2013-03-15 add 1.2.9 changes
226 = 1.2.9 (backports release) / 2013-03-15
227
228 IMPORTANT: THIS IS THE LAST 1.2.x RELEASE, PLEASE UPGRADE.
229
230 * Display EOL warning when loading Sinatra. (Konstantin Haase)
231
232 * Improve documentation. (Anurag Priyam, Konstantin Haase)
233
234 * Do not modify the load path. (Konstantin Haase)
235
236 * Display deprecation warning if RUBY_IGNORE_CALLERS is used. (Konstantin Haase)
237
238 * Add backports library so we can still run on Ruby 1.8.6. (Konstantin Haase)
239
9cd57760 » rkh
2011-12-30 add release date for 1.2.8 to CHANGES
240 = 1.2.8 (backports release) / 2011-12-30
678fdfb8 » rkh
2011-10-14 update changes
241
242 Backported from 1.3.2:
243
244 * Fix bug where rendering a second template in the same request after the
245 first one raised an exception skipped the default layout (Nathan Baum)
246
04bb502c » rkh
2011-10-01 add missing dates
247 = 1.2.7 (backports release) / 2011-09-30
f1f56bef » rkh
2011-05-19 add 1.2.7 to changes
248
f24ddd49 » rkh
2011-06-05 update changes
249 Custom changes:
250
1f269845 » rkh
2011-05-20 update changes
251 * Fix Ruby 1.8.6 issue with Accept header parsing. (Konstantin Haase)
252
f24ddd49 » rkh
2011-06-05 update changes
253 Backported from 1.3.0:
254
772a49ee » rkh
2011-08-22 update changes (1.2.7)
255 * Ignore `to_ary` on response bodies. Fixes compatibility to Rails 3.1.
256 (Konstantin Haase)
257
f1f56bef » rkh
2011-05-19 add 1.2.7 to changes
258 * `Sinatra.run!` now prints to stderr rather than stdout. (Andrew Armenia)
259
260 * Automatic `app_file` detection now works in directories containing brackets
261 (Konstantin Haase)
262
263 * Improved documentation. (Emanuele Vicentini, Peter Higgins, Takanori
264 Ishikawa, Konstantin Haase)
265
f24ddd49 » rkh
2011-06-05 update changes
266 * Also specify charset in Content-Type header for JSON. (Konstantin Haase)
267
268 * Rack handler names will not be converted to lower case internally, this
269 allows you to run Sinatra with custom Rack handlers, like Kirk or Mongrel2.
270 Example: `ruby app.rb -s Mongrel2` (Konstantin Haase)
271
272 * Fix uninitialized instance variable warning. (David Kellum)
273
772a49ee » rkh
2011-08-22 update changes (1.2.7)
274 * Command line options now complain if value passed to `-p` is not a valid
275 integer. (Konstantin Haase)
276
277 * Fix handling of broken query params when displaying exceptions. (Luke
278 Jahnke)
279
a059c196 » rkh
2011-05-01 update changes
280 = 1.2.6 / 2011-05-01
281
282 * Fix broken delegation, backport delegation tests from Sinatra 1.3.
283 (Konstantin Haase)
284
285 = 1.2.5 / 2011-04-30
286
287 * Restore compatibility with Ruby 1.8.6. (Konstantin Haase)
288
f42edbfe » rkh
2011-04-30 add 1.2.4 release date
289 = 1.2.4 / 2011-04-30
59e86982 » rkh
2011-04-17 update changes (some commits backported to 1.2.x)
290
f000983e » rkh
2011-04-17 update CHANGES
291 * Sinatra::Application (classic style) does not use a session secret in
292 development mode, so sessions are not invalidated after every request when
293 using Shotgun. (Konstantin Haase)
294
c7601fcf » rkh
2011-04-14 don't cache request object in env, fixes #239
295 * The request object was shared between multiple Sinatra instances in the
296 same middleware chain. This caused issues if any non-sinatra routing
8823dbef » rkh
2011-04-30 update changes
297 happend in-between two of those instances, or running a request twice
298 against an application (described in the README). The caching was reverted.
299 See GH#239 and GH#256 for more infos. (Konstantin Haase)
c7601fcf » rkh
2011-04-14 don't cache request object in env, fixes #239
300
f000983e » rkh
2011-04-17 update CHANGES
301 * Fixes issues where the top level DSL was interfering with method_missing
302 proxies. This issue surfaced when Rails 3 was used with older Sass versions
303 and Sinatra >= 1.2.0. (Konstantin Haase)
304
8823dbef » rkh
2011-04-30 update changes
305 * Sinatra::Delegator.delegate is now able to delegate any method names, even
306 those containing special characters. This allows better integration into
307 other programming languages on Rubinius (probably on the JVM, too), like
308 Fancy. (Konstantin Haase)
309
501c3c36 » rkh
2011-04-27 update changes
310 * Remove HEAD request logic and let Rack::Head handle it instead. (Paolo
311 "Nusco" Perrotta)
312
a7e76392 » rkh
2011-04-13 update changes
313 = 1.2.3 / 2011-04-13
c72fe5a1 » rkh
2011-04-13 update CHANGES
314
315 * This release is compatible with Tilt 1.3, it will still work with Tilt 1.2.2,
316 however, if you want to use a newer Tilt version, you have to upgrade to at
317 least this version of Sinatra. (Konstantin Haase)
318
7e48254f » rkh
2011-04-11 accept values pretending to be a Numeric (like ActiveSupport::Duratio…
319 * Helpers dealing with time, like `expires`, handle objects that pretend to be
730eb455 » rkh
2011-04-11 typo
320 numbers, like `ActiveSupport::Duration`, better. (Konstantin Haase)
7e48254f » rkh
2011-04-11 accept values pretending to be a Numeric (like ActiveSupport::Duratio…
321
aad6efa9 » rkh
2011-04-09 update CHANGES
322 = 1.2.2 / 2011-04-08
df1d7db0 » rkh
2011-03-21 backported to 1.2.x
323
08901b55 » rkh
2011-03-25 update changes
324 * The `:provides => :js` condition now matches both `application/javascript`
325 and `text/javascript`. The `:provides => :xml` condition now matches both
326 `application/xml` and `text/xml`. The `Content-Type` header is set
327 accordingly. If the client accepts both, the `application/*` version is
328 preferred, since the `text/*` versions are deprecated. (Konstantin Haase)
329
330 * The `provides` condition now handles wildcards in `Accept` headers correctly.
331 Thus `:provides => :html` matches `text/html`, `text/*` and `*/*`.
332 (Konstantin Haase)
333
334 * When parsing `Accept` headers, `Content-Type` preferences are honored
335 according to RFC 2616 section 14.1. (Konstantin Haase)
336
bdbe700c » rkh
2011-03-21 fix indentation
337 * URIs passed to the `url` helper or `redirect` may now use any schema to be
338 identified as absolute URIs, not only `http` or `https`. (Konstantin Haase)
df1d7db0 » rkh
2011-03-21 backported to 1.2.x
339
914db7ee » rkh
2011-03-25 Handles `Content-Type` strings that already contain parameters correc…
340 * Handles `Content-Type` strings that already contain parameters correctly in
341 `content_type` (example: `content_type "text/plain; charset=utf-16"`).
342 (Konstantin Haase)
343
49d47025 » rkh
2011-03-30 handle empty route patterns as expected without breaking rails 3 comp…
344 * If a route with an empty pattern is defined (`get("") { ... }`) requests with
44772152 » rkh
2011-03-30 typo
345 an empty path info match this route instead of "/". (Konstantin Haase)
49d47025 » rkh
2011-03-30 handle empty route patterns as expected without breaking rails 3 comp…
346
238eedeb » rkh
2011-04-08 use proper links to images on error pages
347 * In development environment, when running under a nested path, the image URIs
348 on the error pages are set properly. (Konstantin Haase)
349
62fa2cd7 » rkh
2011-03-17 1.2.1 release
350 = 1.2.1 / 2011-03-17
85a63b01 » rkh
2011-03-12 mind the changes
351
93d6e1f3 » rkh
2011-03-13 Switch back to Rack::Session::Cookie, but generate a secret.
352 * Use a generated session secret when using `enable :sessions`. (Konstantin
353 Haase)
85a63b01 » rkh
2011-03-12 mind the changes
354
62fa2cd7 » rkh
2011-03-17 1.2.1 release
355 * Fixed a bug where the wrong content type was used if no content type was set
356 and a template engine was used with a different engine for the layout with
357 different default content types, say Less embedded in Slim. (Konstantin
358 Haase)
359
360 * README translations improved (Gabriel Andretta, burningTyger, Sylvain Desvé,
361 Gregor Schmidt)
aeeb84d9 » rkh
2011-03-14 fix Content Type handling with layout_engine
362
57f34d2e » rkh
2011-03-03 prepare release
363 = 1.2.0 / 2011-03-03
09626e8e » rkh
2010-11-12 Update CHANGES.
364
9dada698 » rkh
2010-12-14 Update CHANGES.
365 * Added `slim` rendering method for rendering Slim templates. (Steve
366 Hodgkiss)
09626e8e » rkh
2010-11-12 Update CHANGES.
367
0ff41a69 » rkh
2010-11-12 Add support for passing a block to the markaby method:
368 * The `markaby` rendering method now allows passing a block, making inline
369 usage possible. Requires Tilt 1.2 or newer. (Konstantin Haase)
370
398d7c38 » rkh
2010-12-25 update CHANGES
371 * All render methods now take a `:layout_engine` option, allowing to use a
372 layout in a different template language. Even more useful than using this
373 directly (`erb :index, :layout_engine => :haml`) is setting this globally for
374 a template engine that otherwise does not support layouts, like Markdown or
375 Textile (`set :markdown, :layout_engine => :erb`). (Konstantin Haase)
376
377 * Before and after filters now support conditions, both with and without
378 patterns (`before '/api/*', :agent => /Songbird/`). (Konstantin Haase)
379
9db223ea » rkh
2011-02-19 update CHANGES
380 * Added a `url` helper method which constructs absolute URLs. Copes with
381 reverse proxies and Rack handlers correctly. Aliased to `to`, so you can
382 write `redirect to('/foo')`. (Konstantin Haase)
383
384 * If running on 1.9, patterns for routes and filters now support named
385 captures: `get(%r{/hi/(?<name>[^/?#]+)}) { "Hi #{params['name']}" }`.
386 (Steve Price)
387
8ca5fa55 » rkh
2011-02-19 Add :scope to CHANGES. Fixes #156.
388 * All rendering methods now take a `:scope` option, which renders them in
389 another context. Note that helpers and instance variables will be
390 unavailable if you use this feature. (Paul Walker)
391
9db223ea » rkh
2011-02-19 update CHANGES
392 * The behavior of `redirect` can now be configured with `absolute_redirects`
393 and `prefixed_redirects`. (Konstantin Haase)
394
398d7c38 » rkh
2010-12-25 update CHANGES
395 * `send_file` now allows overriding the Last-Modified header, which defaults
396 to the file's mtime, by passing a `:last_modified` option. (Konstantin Haase)
397
9f3cfc42 » rkh
2011-02-19 update CHANGES
398 * You can use your own template lookup method by defining `find_template`.
399 This allows, among other things, using more than one views folder.
400 (Konstantin Haase)
401
9db223ea » rkh
2011-02-19 update CHANGES
402 * Largely improved documentation. (burningTyger, Vasily Polovnyov, Gabriel
403 Andretta, Konstantin Haase)
404
9f3cfc42 » rkh
2011-02-19 update CHANGES
405 * Improved error handling. (cactus, Konstantin Haase)
406
9db223ea » rkh
2011-02-19 update CHANGES
407 * Skip missing template engines in tests correctly. (cactus)
408
409 * Sinatra now ships with a Gemfile for development dependencies, since it eases
410 supporting different platforms, like JRuby. (Konstantin Haase)
411
f1f56bef » rkh
2011-05-19 add 1.2.7 to changes
412 = 1.1.4 (backports release) / 2011-04-13
a7e76392 » rkh
2011-04-13 update changes
413
414 * Compatible with Tilt 1.3. (Konstantin Haase)
415
1461f618 » rkh
2011-02-27 add 1.1.3 release date to changes
416 = 1.1.3 / 2011-02-20
9db223ea » rkh
2011-02-19 update CHANGES
417
418 * Fixed issues with `user_agent` condition if the user agent header is missing.
419 (Konstantin Haase)
420
421 * Fix some routing tests that have been skipped by accident (Ross A. Baker)
422
423 * Fix rendering issues with Builder and Nokogiri (Konstantin Haase)
424
425 * Replace last_modified helper with better implementation. (cactus,
426 Konstantin Haase)
427
428 * Fix issue with charset not being set when using `provides` condition.
429 (Konstantin Haase)
430
431 * Fix issue with `render` not picking up all alternative file extensions for
432 a rendering engine - it was not possible to register ".html.erb" without
433 tricks. (Konstantin Haase)
434
398d7c38 » rkh
2010-12-25 update CHANGES
435 = 1.1.2 / 2010-10-25
436
437 Like 1.1.1, but with proper CHANGES file.
438
439 = 1.1.1 / 2010-10-25
9dada698 » rkh
2010-12-14 Update CHANGES.
440
441 * README has been translated to Russian (Nickolay Schwarz, Vasily Polovnyov)
442 and Portuguese (Luciano Sousa).
09626e8e » rkh
2010-11-12 Update CHANGES.
443
444 * Nested templates without a `:layout` option can now be used from the layout
445 template without causing an infinite loop. (Konstantin Haase)
446
9dada698 » rkh
2010-12-14 Update CHANGES.
447 * Inline templates are now encoding aware and can therefore be used with
448 unicode characters on Ruby 1.9. Magic comments at the beginning of the file
449 will be honored. (Konstantin Haase)
450
451 * Default `app_file` is set correctly when running with bundler. Using
452 bundler caused Sinatra not to find the `app_file` and therefore not to find
453 the `views` folder on it's own. (Konstantin Haase)
454
455 * Better handling of Content-Type when using `send_file`: If file extension
456 is unknown, fall back to `application/octet-stream` and do not override
457 content type if it has already been set, except if `:type` is passed
458 explicitly (Konstantin Haase)
459
09626e8e » rkh
2010-11-12 Update CHANGES.
460 * Path is no longer cached if changed between handlers that do pattern
9dada698 » rkh
2010-12-14 Update CHANGES.
461 matching. This means you can change `request.path_info` in a pattern
462 matching before filter. (Konstantin Haase)
09626e8e » rkh
2010-11-12 Update CHANGES.
463
464 * Headers set by cache_control now always set max_age as an Integer, making
465 sure it is compatible with RFC2616. (Konstantin Haase)
466
398d7c38 » rkh
2010-12-25 update CHANGES
467 * Further improved handling of string encodings on Ruby 1.9, templates now
468 honor default_encoding and URLs support unicode characters. (Konstantin
469 Haase)
470
ad648be0 » rkh
2010-10-24 1.1.0 release
471 = 1.1.0 / 2010-10-24
4cab214c » rkh
2010-09-01 Changelog for 1.1
472
fa15c4d4 » rkh
2010-09-10 Readjust latest changelog entries.
473 * Before and after filters now support pattern matching, including the
474 ability to use captures: "before('/user/:name') { |name| ... }". This
475 avoids manual path checking. No performance loss if patterns are avoided.
476 (Konstantin Haase)
4cab214c » rkh
2010-09-01 Changelog for 1.1
477
fa15c4d4 » rkh
2010-09-10 Readjust latest changelog entries.
478 * It is now possible to render SCSS files with the `scss` method, which
479 behaves exactly like `sass` except for the different file extension and
480 assuming the SCSS syntax. (Pedro Menezes, Konstantin Haase)
4cab214c » rkh
2010-09-01 Changelog for 1.1
481
7149810b » rkh
2010-10-11 Add recent changes to CHANGES.
482 * Added `liquid`, `markdown`, `nokogiri`, `textile`, `rdoc`, `radius`,
483 `markaby`, and `coffee` rendering methods for rendering Liquid, Markdown,
484 Nokogiri, Textile, RDoc, Radius, Markaby and CoffeeScript templates.
485 (Konstantin Haase)
486
eafe40d2 » rkh
2010-10-19 reorder changes
487 * Now supports byte-range requests (the HTTP_RANGE header) for static files.
488 Multi-range requests are not supported, however. (Jens Alfke)
489
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
490 * You can now use #settings method from class and top level for convenience.
4cab214c » rkh
2010-09-01 Changelog for 1.1
491 (Konstantin Haase)
492
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
493 * Setting multiple values now no longer relies on #to_hash and therefore
494 accepts any Enumerable as parameter. (Simon Rozet)
4cab214c » rkh
2010-09-01 Changelog for 1.1
495
7149810b » rkh
2010-10-11 Add recent changes to CHANGES.
496 * Nested templates default the `layout` option to `false` rather than `true`.
497 This eases the use of partials. If you wanted to render one haml template
498 embedded in another, you had to call `haml :partial, {}, :layout => false`.
499 As you almost never want the partial to be wrapped in the standard layout
500 in this situation, you now only have to call `haml :partial`. Passing in
501 `layout` explicitly is still possible. (Konstantin Haase)
502
503 * If a the return value of one of the render functions is used as a response
504 body and the content type has not been set explicitly, Sinatra chooses a
505 content type corresponding to the rendering engine rather than just using
506 "text/html". (Konstantin Haase)
507
a8a95ade » rkh
2010-10-24 Update CHANGES
508 * README is now available in Chinese (Wu Jiang), French (Mickael Riga),
509 German (Bernhard Essl, Konstantin Haase, burningTyger), Hungarian (Janos
510 Hardi) and Spanish (Gabriel Andretta). The extremely outdated Japanese
511 README has been updated (Kouhei Yanagita).
4cab214c » rkh
2010-09-01 Changelog for 1.1
512
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
513 * It is now possible to access Sinatra's template_cache from the outside.
514 (Nick Sutterer)
4cab214c » rkh
2010-09-01 Changelog for 1.1
515
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
516 * The `last_modified` method now also accepts DateTime instances and makes
517 sure the header will always be set to a string. (Konstantin Haase)
4cab214c » rkh
2010-09-01 Changelog for 1.1
518
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
519 * 599 now is a legal status code. (Steve Shreeve)
4cab214c » rkh
2010-09-01 Changelog for 1.1
520
521 * This release is compatible with Ruby 1.9.2. Sinatra was trying to read
1c82b9de » burningTyger
2010-10-19 Fixed typos in CHANGES.
522 non existent files Ruby added to the call stack. (Shota Fukumori,
8a3aea14 » rkh
2010-09-02 add Shota Fukumori to the change log
523 Konstantin Haase)
4cab214c » rkh
2010-09-01 Changelog for 1.1
524
1c82b9de » burningTyger
2010-10-19 Fixed typos in CHANGES.
525 * Prevents a memory leak on 1.8.6 in production mode. Note, however, that
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
526 this is due to a bug in 1.8.6 and request will have the additional overhead
527 of parsing templates again on that version. It is recommended to use at
528 least Ruby 1.8.7. (Konstantin Haase)
529
1a6bea57 » rkh
2010-10-09 Mention last_modified changes in README.
530 * Compares last modified date correctly. `last_modified` was halting only
531 when the 'If-Modified-Since' header date was equal to the time specified.
532 Now, it halts when is equal or later than the time specified (Gabriel
533 Andretta).
534
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
535 * Sinatra is now usable in combination with Rails 3. When mounting a Sinatra
536 application under a subpath in Rails 3, the PATH_INFO is not prefixed with
537 a slash and no routes did match. (José Valim)
538
a8a95ade » rkh
2010-10-24 Update CHANGES
539 * Better handling of encodings in 1.9, defaults params encoding to UTF-8.
e51bb77b » rkh
2010-09-10 Update CHANGES.
540 (Konstantin Haase)
541
3ae524e4 » rkh
2010-10-13 Update CHANGES: show_exception behavior changed and we no longer chec…
542 * `show_exeptions` handling is now triggered after custom error handlers, if
543 it is set to `:after_handlers`, thus not disabling those handler in
544 development mode. (pangel, Konstantin Haase)
7149810b » rkh
2010-10-11 Add recent changes to CHANGES.
545
da346eb1 » rkh
2010-09-21 Reorganize CHANGES and add Spanish/French READMEs to it.
546 * Added ability to handle weighted HTTP_ACCEPT headers. (Davide D'Agostino)
547
548 * `send_file` now always respects the `:type` option if set. Previously it
549 was discarded if no matching mime type was found, which made it impossible
550 to directly pass a mime type. (Konstantin Haase)
551
552 * `redirect` always redirects to an absolute URI, even if a relative URI was
553 passed. Ensures compatibility with RFC 2616 section 14.30. (Jean-Philippe
554 Garcia Ballester, Anthony Williams)
555
556 * Broken examples for using Erubis, Haml and Test::Unit in README have been
557 fixed. (Nick Sutterer, Doug Ireton, Jason Stewart, Eric Marden)
558
4cab214c » rkh
2010-09-01 Changelog for 1.1
559 * Sinatra now handles SIGTERM correctly. (Patrick Collison)
560
561 * Fixes an issue with inline templates in modular applications that manually
562 call `run!`. (Konstantin Haase)
563
f96c6ef7 » rkh
2010-09-19 Add latest changes to changelog.
564 * Spaces after inline template names are now ignored (Konstantin Haase)
565
4cab214c » rkh
2010-09-01 Changelog for 1.1
566 * It's now possible to use Sinatra with different package management
567 systems defining a custom require. (Konstantin Haase)
568
569 * Lighthouse has been dropped in favor of GitHub issues.
570
f96c6ef7 » rkh
2010-09-19 Add latest changes to changelog.
571 * Tilt is now a dependency and therefore no longer ships bundled with
572 Sinatra. (Ryan Tomayko, Konstantin Haase)
573
7149810b » rkh
2010-10-11 Add recent changes to CHANGES.
574 * Sinatra now depends on Rack 1.1 or higher. Rack 1.0 is no longer supported.
575 (Konstantin Haase)
576
37eb3a76 » rtomayko
2010-04-02 correct release date in CHANGES file
577 = 1.0 / 2010-03-23
f75bee5a » rtomayko
2009-03-26 Cleanup and refactoring after inheritance changes
578
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
579 * It's now possible to register blocks to run after each request using
580 after filters. After filters run at the end of each request, after
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
581 routes and error handlers. (Jimmy Schementi)
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
582
e3a9f9e3 » rtomayko
2009-10-11 update CHANGES file with recent changes
583 * Sinatra now uses Tilt <http://github.com/rtomayko/tilt> for rendering
584 templates. This adds support for template caching, consistent
585 template backtraces, and support for new template engines, like
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
586 mustache and liquid. (Ryan Tomayko)
587
f5efc370 » rtomayko
2010-03-07 add a note about template compilation to CHANGES
588 * ERB, Erubis, and Haml templates are now compiled the first time
589 they're rendered instead of being string eval'd on each invocation.
590 Benchmarks show a 5x-10x improvement in render time. This also
591 reduces the number of objects created, decreasing pressure on Ruby's
592 GC. (Ryan Tomayko)
593
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
594 * New 'settings' method gives access to options in both class and request
595 scopes. This replaces the 'options' method. (Chris Wanstrath)
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
596
f889c75c » rtomayko
2010-01-28 reload_templates setting; on by default in :development [#321]
597 * New boolean 'reload_templates' setting controls whether template files
598 are reread from disk and recompiled on each request. Template read/compile
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
599 is cached by default in all environments except development. (Ryan Tomayko)
f889c75c » rtomayko
2010-01-28 reload_templates setting; on by default in :development [#321]
600
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
601 * New 'erubis' helper method for rendering ERB template with Erubis. The
602 erubis gem is required. (Dylan Egan)
e3a9f9e3 » rtomayko
2009-10-11 update CHANGES file with recent changes
603
604 * New 'cache_control' helper method provides a convenient way of
605 setting the Cache-Control response header. Takes a variable number
606 of boolean directives followed by a hash of value directives, like
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
607 this: cache_control :public, :must_revalidate, :max_age => 60
608 (Ryan Tomayko)
e3a9f9e3 » rtomayko
2009-10-11 update CHANGES file with recent changes
609
ce3a8a89 » rtomayko
2010-01-28 rearrange a couple of bullets in CHANGES for easier reading
610 * New 'expires' helper method is like cache_control but takes an
611 integer number of seconds or Time object:
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
612 expires 300, :public, :must_revalidate
613 (Ryan Tomayko)
614
615 * New request.secure? method for checking for an SSL connection.
616 (Adam Wiggins)
ce3a8a89 » rtomayko
2010-01-28 rearrange a couple of bullets in CHANGES for easier reading
617
4d616071 » sr
2010-03-01 update README/CHANGES re. -o
618 * Sinatra apps can now be run with a `-o <addr>` argument to specify
1b8fda82 » sr
2010-01-29 attribute to the right person
619 the address to bind to. (Ryan Tomayko)
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
620
e3a9f9e3 » rtomayko
2009-10-11 update CHANGES file with recent changes
621 * Rack::Session::Cookie is now added to the middleware pipeline when
622 running in test environments if the :sessions option is set.
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
623 (Simon Rozet)
e3a9f9e3 » rtomayko
2009-10-11 update CHANGES file with recent changes
624
f75bee5a » rtomayko
2009-03-26 Cleanup and refactoring after inheritance changes
625 * Route handlers, before filters, templates, error mappings, and
626 middleware are now resolved dynamically up the inheritance hierarchy
627 when needed instead of duplicating the superclass's version when
628 a new Sinatra::Base subclass is created. This should fix a variety
629 of issues with extensions that need to add any of these things
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
630 to the base class. (Ryan Tomayko)
f75bee5a » rtomayko
2009-03-26 Cleanup and refactoring after inheritance changes
631
4e719595 » rtomayko
2010-03-04 error handlers always override raise_errors option
632 * Exception error handlers always override the raise_errors option now.
633 Previously, all exceptions would be raised outside of the application
634 when the raise_errors option was enabled, even if an error handler was
635 defined for that exception. The raise_errors option now controls
636 whether unhandled exceptions are raised (enabled) or if a generic 500
637 error is returned (disabled). (Ryan Tomayko)
638
45ba561f » rtomayko
2010-01-29 attribute people in CHANGES
639 * The X-Cascade response header is set to 'pass' when no matching route
640 is found or all routes pass. (Josh Peek)
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
641
f6fc751c » sr
2010-03-01 update CHANGES re. filters and static files
642 * Filters do not run when serving static files anymore. (Ryan Tomayko)
643
8a7dd92e » Blake Mizerany
2010-03-10 mention pass blocks in CHANGES
644 * pass takes an optional block to be used as the route handler if no
645 subsequent route matches the request. (Blake Mizerany)
646
79a99939 » rtomayko
2010-01-29 note that Sinatra::Default is obsolete in CHANGES
647 The following Sinatra features have been obsoleted (removed entirely) in
648 the 1.0 release:
649
650 * The `sinatra/test` library is obsolete. This includes the `Sinatra::Test`
651 module, the `Sinatra::TestHarness` class, and the `get_it`, `post_it`,
652 `put_it`, `delete_it`, and `head_it` helper methods. The
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
653 [`Rack::Test` library](http://gitrdoc.com/brynary/rack-test) should
654 be used instead.
655
656 * Test framework specific libraries (`sinatra/test/spec`,
79a99939 » rtomayko
2010-01-29 note that Sinatra::Default is obsolete in CHANGES
657 `sinatra/test/bacon`,`sinatra/test/rspec`, etc.) are obsolete. See
658 http://www.sinatrarb.com/testing.html for instructions on setting up a
659 testing environment under each of these frameworks.
660
661 * `Sinatra::Default` is obsolete; use `Sinatra::Base` instead.
662 `Sinatra::Base` acts more like `Sinatra::Default` in development mode.
663 For example, static file serving and sexy development error pages are
664 enabled by default.
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
665
666 * Auto-requiring template libraries in the `erb`, `builder`, `haml`,
667 and `sass` methods is obsolete due to thread-safety issues. You must
668 require the template libraries explicitly in your app.
669
670 * The `:views_directory` option to rendering methods is obsolete; use
671 `:views` instead.
672
673 * The `:haml` and `:sass` options to rendering methods are obsolete.
674 Template engine options should be passed in the second Hash argument
675 instead.
676
f942ad76 » sr
2010-01-29 add inline_templates to CHANGES
677 * The `use_in_file_templates` method is obsolete. Use
678 `enable :inline_templates` or `set :inline_templates, 'path/to/file'`
679
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
680 * The 'media_type' helper method is obsolete. Use 'mime_type' instead.
681
79a99939 » rtomayko
2010-01-29 note that Sinatra::Default is obsolete in CHANGES
682 * The 'mime' main and class method is obsolete. Use 'mime_type' instead.
683
e14c700b » rtomayko
2009-12-13 Update CHANGES with new features and obsoletions
684 * The request-level `send_data` method is no longer supported.
685
686 * The `Sinatra::Event` and `Sinatra::EventContext` classes are no longer
687 supported. This may effect extensions written for versions prior to 0.9.2.
688 See [Writing Sinatra Extensions](http://www.sinatrarb.com/extensions.html)
689 for the officially supported extensions API.
690
691 * The `set_option` and `set_options` methods are obsolete; use `set`
692 instead.
693
694 * The `:env` setting (`settings.env`) is obsolete; use `:environment`
695 instead.
696
697 * The request level `stop` method is obsolete; use `halt` instead.
698
699 * The request level `entity_tag` method is obsolete; use `etag`
700 instead.
701
702 * The request level `headers` method (HTTP response headers) is obsolete;
703 use `response['Header-Name']` instead.
704
705 * `Sinatra.application` is obsolete; use `Sinatra::Application` instead.
706
707 * Using `Sinatra.application = nil` to reset an application is obsolete.
708 This should no longer be necessary.
709
710 * Using `Sinatra.default_options` to set base configuration items is
711 obsolete; use `Sinatra::Base.set(key, value)` instead.
712
713 * The `Sinatra::ServerError` exception is obsolete. All exceptions raised
714 within a request are now treated as internal server errors and result in
715 a 500 response status.
716
3cfd06ad » vangberg
2010-02-04 add :methodoverride => :method_override to CHANGES
717 * The `:methodoverride' option to enable/disable the POST _method hack is
718 obsolete; use `:method_override` instead.
719
3d2988c6 » rtomayko
2009-05-18 Forgot to add release date for 0.9.2 in CHANGES
720 = 0.9.2 / 2009-05-18
13fc79d3 » rtomayko
2009-03-24 Remove support for source file reloading [#166]
721
5d6ac2a0 » rtomayko
2009-04-26 update CHANGES for 0.9.2 (perhaps 1.0) release
722 * This version is compatible with Rack 1.0. [Rein Henrichs]
723
724 * The development-mode unhandled exception / error page has been
725 greatly enhanced, functionally and aesthetically. The error
726 page is used when the :show_exceptions option is enabled and an
727 exception propagates outside of a route handler or before filter.
728 [Simon Rozet / Matte Noble / Ryan Tomayko]
729
730 * Backtraces that move through templates now include filenames and
731 line numbers where possible. [#51 / S. Brent Faulkner]
732
733 * All templates now have an app-level option for setting default
734 template options (:haml, :sass, :erb, :builder). The app-level
735 option value must be a Hash if set and is merged with the
736 template options specified to the render method (Base#haml,
737 Base#erb, Base#builder). [S. Brent Faulkner, Ryan Tomayko]
738
739 * The method signature for all template rendering methods has
740 been unified: "def engine(template, options={}, locals={})".
741 The options Hash now takes the generic :views, :layout, and
742 :locals options but also any template-specific options. The
743 generic options are removed before calling the template specific
744 render method. Locals may be specified using either the
745 :locals key in the options hash or a second Hash option to the
746 rendering method. [#191 / Ryan Tomayko]
747
748 * The receiver is now passed to "configure" blocks. This
749 allows for the following idiom in top-level apps:
750 configure { |app| set :foo, app.root + '/foo' }
751 [TJ Holowaychuck / Ryan Tomayko]
752
753 * The "sinatra/test" lib is deprecated and will be removed in
754 Sinatra 1.0. This includes the Sinatra::Test module and
755 Sinatra::TestHarness class in addition to all the framework
756 test helpers that were deprecated in 0.9.1. The Rack::Test
757 lib should be used instead: http://gitrdoc.com/brynary/rack-test
758 [#176 / Simon Rozet]
759
13fc79d3 » rtomayko
2009-03-24 Remove support for source file reloading [#166]
760 * Development mode source file reloading has been removed. The
761 "shotgun" (http://rtomayko.github.com/shotgun/) program can be
762 used to achieve the same basic functionality in most situations.
763 Passenger users should use the "tmp/always_restart.txt"
5d6ac2a0 » rtomayko
2009-04-26 update CHANGES for 0.9.2 (perhaps 1.0) release
764 file (http://tinyurl.com/c67o4h). [#166 / Ryan Tomayko]
765
b48ed22b » rtomayko
2009-05-18 Add note about auto-require deprecation to CHANGES
766 * Auto-requiring template libs in the erb, builder, haml, and
767 sass methods is deprecated due to thread-safety issues. You must
768 require the template libs explicitly in your app file. [Simon Rozet]
769
5d6ac2a0 » rtomayko
2009-04-26 update CHANGES for 0.9.2 (perhaps 1.0) release
770 * A new Sinatra::Base#route_missing method was added. route_missing
771 is sent when no route matches the request or all route handlers
772 pass. The default implementation forwards the request to the
773 downstream app when running as middleware (i.e., "@app" is
774 non-nil), or raises a NotFound exception when no downstream app
775 is defined. Subclasses can override this method to perform custom
776 route miss logic. [Jon Crosby]
777
778 * A new Sinatra::Base#route_eval method was added. The method
779 yields to the block and throws :halt with the result. Subclasses
780 can override this method to tap into the route execution logic.
781 [TJ Holowaychuck]
782
783 * Fix the "-x" (enable request mutex / locking) command line
784 argument. Passing -x now properly sets the :lock option.
785 [S. Brent Faulkner, Ryan Tomayko]
786
787 * Fix writer ("foo=") and predicate ("foo?") methods in extension
788 modules not being added to the registering class.
789 [#172 / Pat Nakajima]
790
791 * Fix in-file templates when running alongside activesupport and
792 fatal errors when requiring activesupport before sinatra
793 [#178 / Brian Candler]
794
795 * Fix various issues running on Google AppEngine.
796 [Samuel Goebert, Simon Rozet]
797
798 * Fix in-file templates __END__ detection when __END__ exists with
799 other stuff on a line [Yoji Shidara]
13fc79d3 » rtomayko
2009-03-24 Remove support for source file reloading [#166]
800
0f02bafe » rtomayko
2009-03-09 0.9.1.1 security release
801 = 0.9.1.1 / 2009-03-09
802
803 * Fix directory traversal vulnerability in default static files
804 route. See [#177] for more info.
805
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
806 = 0.9.1 / 2009-03-01
41c8aeb3 » rtomayko
2009-02-02 Bring CHANGES file up to date with last week of stuff
807
808 * Sinatra now runs under Ruby 1.9.1 [#61]
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
809
41c8aeb3 » rtomayko
2009-02-02 Bring CHANGES file up to date with last week of stuff
810 * Route patterns (splats, :named, or Regexp captures) are now
811 passed as arguments to the block. [#140]
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
812
41c8aeb3 » rtomayko
2009-02-02 Bring CHANGES file up to date with last week of stuff
813 * The "helpers" method now takes a variable number of modules
814 along with the normal block syntax. [#133]
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
815
cf32f2e6 » rtomayko
2009-02-22 Middleware enhancements: automatic and explicit forward to downstream [
816 * New request-level #forward method for middleware components: passes
817 the env to the downstream app and merges the response status, headers,
0e1fd227 » rtomayko
2009-03-01 Misc additions to the CHANGES file
818 and body into the current context. [#126]
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
819
cf32f2e6 » rtomayko
2009-02-22 Middleware enhancements: automatic and explicit forward to downstream [
820 * Requests are now automatically forwarded to the downstream app when
821 running as middleware and no matching route is found or all routes
822 pass.
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
823
41c8aeb3 » rtomayko
2009-02-02 Bring CHANGES file up to date with last week of stuff
824 * New simple API for extensions/plugins to add DSL-level and
825 request-level methods. Use Sinatra.register(mixin) to extend
826 the DSL with all public methods defined in the mixin module;
827 use Sinatra.helpers(mixin) to make all public methods defined
828 in the mixin module available at the request level. [#138]
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
829 See http://www.sinatrarb.com/extensions.html for details.
830
831 * Named parameters in routes now capture the "." character. This makes
832 routes like "/:path/:filename" match against requests like
833 "/foo/bar.txt"; in this case, "params[:filename]" is "bar.txt".
834 Previously, the route would not match at all.
835
836 * Added request-level "redirect back" to redirect to the referring
837 URL.
838
41c8aeb3 » rtomayko
2009-02-02 Bring CHANGES file up to date with last week of stuff
839 * Added a new "clean_trace" option that causes backtraces dumped
840 to rack.errors and displayed on the development error page to
841 omit framework and core library backtrace lines. The option is
842 enabled by default. [#77]
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
843
090c4d79 » rtomayko
2009-02-21 Fix weirdness with partials in ERB [#158]
844 * The ERB output buffer is now available to helpers via the @_out_buf
845 instance variable.
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
846
847 * It's now much easier to test sessions in unit tests by passing a
848 ":session" option to any of the mock request methods. e.g.,
849 get '/', {}, :session => { 'foo' => 'bar' }
850
2f377e26 » rtomayko
2009-03-01 Trim down Testing section in the README; link to doc site instead
851 * The testing framework specific files ('sinatra/test/spec',
852 'sinatra/test/bacon', 'sinatra/test/rspec', etc.) have been deprecated.
853 See http://sinatrarb.com/testing.html for instructions on setting up
854 a testing environment with these frameworks.
855
a9e9f002 » rtomayko
2009-02-21 Add send_data back in but deprecate [#143]
856 * The request-level #send_data method from Sinatra 0.3.3 has been added
857 for compatibility but is deprecated.
41c8aeb3 » rtomayko
2009-02-02 Bring CHANGES file up to date with last week of stuff
858
987d622a » rtomayko
2009-02-27 Bump version to 0.9.1 and update CHANGES file
859 * Fix :provides causing crash on any request when request has no
860 Accept header [#139]
861
862 * Fix that ERB templates were evaluated twice per "erb" call.
863
864 * Fix app-level middleware not being run when the Sinatra application is
865 run as middleware.
866
867 * Fixed some issues with running under Rack's CGI handler caused by
868 writing informational stuff to stdout.
869
0e1fd227 » rtomayko
2009-03-01 Misc additions to the CHANGES file
870 * Fixed that reloading was sometimes enabled when starting from a
871 rackup file [#110]
872
873 * Fixed that "." in route patterns erroneously matched any character
874 instead of a literal ".". [#124]
875
f99015db » rtomayko
2009-01-28 Bring in CHANGES additions from 0.9.0.x branch
876 = 0.9.0.4 / 2009-01-25
877
878 * Using halt with more than 1 args causes ArgumentError [#131]
879 * using halt in a before filter doesn't modify response [#127]
880 * Add deprecated Sinatra::EventContext to unbreak plugins [#130]
881 * Give access to GET/POST params in filters [#129]
882 * Preserve non-nested params in nested params hash [#117]
883 * Fix backtrace dump with Rack::Lint [#116]
884
885 = 0.9.0.3 / 2009-01-21
886
887 * Fall back on mongrel then webrick when thin not found. [#75]
888 * Use :environment instead of :env in test helpers to
889 fix deprecation warnings coming from framework.
890 * Make sinatra/test/rspec work again [#113]
891 * Fix app_file detection on windows [#118]
892 * Fix static files with Rack::Lint in pipeline [#121]
893
894 = 0.9.0.2 / 2009-01-18
895
896 * Halting a before block should stop processing of routes [#85]
897 * Fix redirect/halt in before filters [#85]
898
968194db » rtomayko
2009-01-18 0.9.0 release
899 = 0.9.0 / 2009-01-18
ccb653fa » rtomayko
2009-01-06 Update CHANGES file with hoboken notes
900
17cb177e » cypher
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
901 * Works with and requires Rack >= 0.9.1
902
903 * Multiple Sinatra applications can now co-exist peacefully within a
904 single process. The new "Sinatra::Base" class can be subclassed to
905 establish a blank-slate Rack application or middleware component.
906 Documentation on using these features is forth-coming; the following
907 provides the basic gist: http://gist.github.com/38605
908
1fa9807f » foca
2009-01-15 Nested params (e.g., "post[title]=Hello") [#70]
909 * Parameters with subscripts are now parsed into a nested/recursive
910 Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
911 params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
912
17cb177e » cypher
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
913 * Regular expressions may now be used in route pattens; captures are
914 available at "params[:captures]".
b5faa571 » rtomayko
2009-01-09 Dump backtrace to rack.errors on unhandled exception
915
38778edd » cypher
2009-01-07 Add filtering support for Accept HTTP header.
916 * New ":provides" route condition takes an array of mime types and
917 matches only when an Accept request header is present with a
918 corresponding type. [cypher]
919
17cb177e » cypher
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
920 * New request-level "pass" method; immediately exits the current block
921 and passes control to the next matching route.
ccb653fa » rtomayko
2009-01-06 Update CHANGES file with hoboken notes
922
923 * The request-level "body" method now takes a block; evaluation is
924 deferred until an attempt is made to read the body. The block must
925 return a String or Array.
926
927 * New "route conditions" system for attaching rules for when a route
928 matches. The :agent and :host route options now use this system.
929
17cb177e » cypher
2009-01-11 README and CHANGES tweaks for 0.9.0 release (#63)
930 * New "dump_errors" option controls whether the backtrace is dumped to
931 rack.errors when an exception is raised from a route. The option is
932 enabled by default for top-level apps.
933
934 * Better default "app_file", "root", "public", and "views" location
935 detection; changes to "root" and "app_file" automatically cascade to
936 other options that depend on them.
ccb653fa » rtomayko
2009-01-06 Update CHANGES file with hoboken notes
937
938 * Error mappings are now split into two distinct layers: exception
939 mappings and custom error pages. Exception mappings are registered
940 with "error(Exception)" and are run only when the app raises an
941 exception. Custom error pages are registered with "error(status_code)",
942 where "status_code" is an integer, and are run any time the response
943 has the status code specified. It's also possible to register an error
944 page for a range of status codes: "error(500..599)".
945
968194db » rtomayko
2009-01-18 0.9.0 release
946 * In-file templates are now automatically imported from the file that
947 requires 'sinatra'. The use_in_file_templates! method is still available
948 for loading templates from other files.
949
c2849ff5 » rtomayko
2009-01-15 Note sinatra/test modifications in CHANGES file
950 * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
951 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
952 class, which can be used with any test framework. The 'sinatra/test/unit',
953 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
954 can be required to setup a framework-specific testing environment. See the
955 README for more information.
956
1fb5b99d » dylanegan
2009-01-09 Bacon support
957 * Added support for Bacon (test framework). The 'sinatra/test/bacon' file
958 can be required to setup Sinatra test helpers on Bacon::Context.
959
ccb653fa » rtomayko
2009-01-06 Update CHANGES file with hoboken notes
960 * Deprecated "set_option" and "set_options"; use "set" instead.
961
962 * Deprecated the "env" option ("options.env"); use "environment" instead.
963
964 * Deprecated the request level "stop" method; use "halt" instead.
965
966 * Deprecated the request level "entity_tag" method; use "etag" instead.
967 Both "entity_tag" and "etag" were previously supported.
968
969 * Deprecated the request level "headers" method (HTTP response headers);
970 use "response['Header-Name']" instead.
971
972 * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
973
974 * Deprecated setting Sinatra.application = nil to reset an application.
975 This should no longer be necessary.
976
977 * Deprecated "Sinatra.default_options"; use
978 "Sinatra::Default.set(key, value)" instead.
979
980 * Deprecated the "ServerError" exception. All Exceptions are now
981 treated as internal server errors and result in a 500 response
982 status.
983
91922b78 » rtomayko
2009-01-13 Deprecate get_it, post_it, etc. test helpers with warnings
984 * Deprecated the "get_it", "post_it", "put_it", "delete_it", and "head_it"
985 test helper methods. Use "get", "post", "put", "delete", and "head",
986 respectively, instead.
987
ccb653fa » rtomayko
2009-01-06 Update CHANGES file with hoboken notes
988 * Removed Event and EventContext classes. Applications are defined in a
989 subclass of Sinatra::Base; each request is processed within an
990 instance.
991
992 = 0.3.3 / 2009-01-06
993
994 * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
995
996 * Log unhandled exception backtraces to rack.errors.
997
998 * Use RACK_ENV environment variable to establish Sinatra
999 environment when given. Thin sets this when started with
1000 the -e argument.
1001
1002 * BUG: raising Sinatra::NotFound resulted in a 500 response
1003 code instead of 404.
1004
1005 * BUG: use_in_file_templates! fails with CR/LF (#45)
1006
1007 * BUG: Sinatra detects the app file and root path when run under
1008 thin/passenger.
1009
1010 = 0.3.2
1011
1012 * BUG: Static and send_file read entire file into String before
1013 sending. Updated to stream with 8K chunks instead.
1014
1015 * Rake tasks and assets for building basic documentation website.
1016 See http://sinatra.rubyforge.org
1017
1018 * Various minor doc fixes.
1019
1020 = 0.3.1
1021
1022 * Unbreak optional path parameters [jeremyevans]
1023
1024 = 0.3.0
1025
1026 * Add sinatra.gemspec w/ support for github gem builds. Forks can now
1027 enable the build gem option in github to get free username-sinatra.gem
1028 builds: gem install username-sinatra.gem --source=http://gems.github.com/
1029
1030 * Require rack-0.4 gem; removes frozen rack dir.
1031
1032 * Basic RSpec support; require 'sinatra/test/rspec' instead of
1033 'sinatra/test/spec' to use. [avdi]
1034
1035 * before filters can modify request environment vars used for
1036 routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
1037 type functionality.
1038
1039 * In-file templates now uses @@ instead of ## as template separator.
1040
1041 * Top-level environment test predicates: development?, test?, production?
1042
1043 * Top-level "set", "enable", and "disable" methods for tweaking
1044 app options. [rtomayko]
1045
1046 * Top-level "use" method for building Rack middleware pipelines
1047 leading to app. See README for usage. [rtomayko]
1048
1049 * New "reload" option - set false to disable reloading in development.
1050
1051 * New "host" option - host/ip to bind to [cschneid]
1052
1053 * New "app_file" option - override the file to reload in development
1054 mode [cschneid]
1055
1056 * Development error/not_found page cleanup [sr, adamwiggins]
1057
1058 * Remove a bunch of core extensions (String#to_param, String#from_param,
1059 Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
1060
1061 * Various grammar and formatting fixes to README; additions on
1062 community and contributing [cypher]
1063
1064 * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
1065
1066 * Specs, documentation and fixes for splat'n routes [vic]
1067
1068 * Fix whitespace errors across all source files. [rtomayko]
1069
1070 * Fix streaming issues with Mongrel (body not closed). [bmizerany]
1071
1072 * Fix various issues with environment not being set properly (configure
1073 blocks not running, error pages not registering, etc.) [cypher]
1074
1075 * Fix to allow locals to be passed to ERB templates [cschneid]
1076
1077 * Fix locking issues causing random errors during reload in development.
1078
1079 * Fix for escaped paths not resolving static files [Matthew Walker]
1080
1081 = 0.2.1
1082
1083 * File upload fix and minor tweaks.
1084
1085 = 0.2.0
1086
1087 * Initial gem release of 0.2 codebase.
Something went wrong with that request. Please try again.