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