Skip to content

HTTPS clone URL

Subversion checkout URL

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