Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 567 lines (399 sloc) 23.049 kb
4cab214 @rkh Changelog for 1.1
rkh authored
1 = 1.1 / Not Yet Released
2
3 * Before and after filters now support pattern matching, including the ability
4 to use captures: "before('/user/:name') { |name| ... }". This avoids manual
5 path checking. No performance loss if patterns are avoided. (Konstantin Haase)
6
7 * Setting multiple values now no longer relies on #to_hash and therefore accepts
8 any Enumerable as parameter. (Simon Rozet)
9
10 * It is now possible to access Sinatra's template_cache from the outside.
11 (Nick Sutterer)
12
13 * It is now possible to render SCSS files with the `scss` method, which behaves
14 exactly like `sass` except for the different file extension and assuming the
15 SCSS syntax. (Pedro Menezes, Konstantin Haase)
16
17 * Broken examples for using Erubis and Haml in README have been fixed.
18 (Nick Sutterer, Doug Ireton, Jason Stewart)
19
20 * Sinatra is now able to use Tilt versions including numbers > 9, as in 0.10.
21 (Konstantin Haase)
22
23 * The `last_modified` method now also accepts DateTime instances and makes sure
24 the header will always be set to a string. (Konstantin Haase)
25
26 * `send_file` now always respects the `:type` option if set. Previously it was
27 discarded if no matching mime type was found, which made it impossible to
28 directly pass a mime type. (Konstantin Haase)
29
30 * `redirect` always redirects to an absolute URI, even if a relative URI was passed.
f2a1dc0 @rkh Add Anthony Williams to the change log.
rkh authored
31 Ensures compatibility with RFC 2616 section 14.30.
32 (Jean-Philippe Garcia Ballester, Anthony Williams)
4cab214 @rkh Changelog for 1.1
rkh authored
33
34 * Added ability to handle weighted HTTP_ACCEPT headers. (Davide D'Agostino)
35
36 * README is now available in German. (Bernhard Essl)
37
38 * This release is compatible with Ruby 1.9.2. Sinatra was trying to read
8a3aea1 @rkh add Shota Fukumori to the change log
rkh authored
39 none existent files Ruby added to the call stack. (Shota Fukumori,
40 Konstantin Haase)
4cab214 @rkh Changelog for 1.1
rkh authored
41
42 * This release is now usable in combination with Rails 3. When mounting
43 a Sinatra application under a subpath in Rails 3, the PATH_INFO is not
44 prefixed with a slash and no routes did match. (José Valim)
45
46 * Sinatra now handles SIGTERM correctly. (Patrick Collison)
47
48 * Fixes an issue with inline templates in modular applications that manually
49 call `run!`. (Konstantin Haase)
50
51 * It's now possible to use Sinatra with different package management
52 systems defining a custom require. (Konstantin Haase)
53
54 * Lighthouse has been dropped in favor of GitHub issues.
55
37eb3a7 @rtomayko correct release date in CHANGES file
rtomayko authored
56 = 1.0 / 2010-03-23
f75bee5 @rtomayko Cleanup and refactoring after inheritance changes
rtomayko authored
57
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
58 * It's now possible to register blocks to run after each request using
59 after filters. After filters run at the end of each request, after
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
60 routes and error handlers. (Jimmy Schementi)
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
61
e3a9f9e @rtomayko update CHANGES file with recent changes
rtomayko authored
62 * Sinatra now uses Tilt <http://github.com/rtomayko/tilt> for rendering
63 templates. This adds support for template caching, consistent
64 template backtraces, and support for new template engines, like
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
65 mustache and liquid. (Ryan Tomayko)
66
f5efc37 @rtomayko add a note about template compilation to CHANGES
rtomayko authored
67 * ERB, Erubis, and Haml templates are now compiled the first time
68 they're rendered instead of being string eval'd on each invocation.
69 Benchmarks show a 5x-10x improvement in render time. This also
70 reduces the number of objects created, decreasing pressure on Ruby's
71 GC. (Ryan Tomayko)
72
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
73 * New 'settings' method gives access to options in both class and request
74 scopes. This replaces the 'options' method. (Chris Wanstrath)
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
75
f889c75 @rtomayko reload_templates setting; on by default in :development [#321]
rtomayko authored
76 * New boolean 'reload_templates' setting controls whether template files
77 are reread from disk and recompiled on each request. Template read/compile
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
78 is cached by default in all environments except development. (Ryan Tomayko)
f889c75 @rtomayko reload_templates setting; on by default in :development [#321]
rtomayko authored
79
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
80 * New 'erubis' helper method for rendering ERB template with Erubis. The
81 erubis gem is required. (Dylan Egan)
e3a9f9e @rtomayko update CHANGES file with recent changes
rtomayko authored
82
83 * New 'cache_control' helper method provides a convenient way of
84 setting the Cache-Control response header. Takes a variable number
85 of boolean directives followed by a hash of value directives, like
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
86 this: cache_control :public, :must_revalidate, :max_age => 60
87 (Ryan Tomayko)
e3a9f9e @rtomayko update CHANGES file with recent changes
rtomayko authored
88
ce3a8a8 @rtomayko rearrange a couple of bullets in CHANGES for easier reading
rtomayko authored
89 * New 'expires' helper method is like cache_control but takes an
90 integer number of seconds or Time object:
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
91 expires 300, :public, :must_revalidate
92 (Ryan Tomayko)
93
94 * New request.secure? method for checking for an SSL connection.
95 (Adam Wiggins)
ce3a8a8 @rtomayko rearrange a couple of bullets in CHANGES for easier reading
rtomayko authored
96
4d61607 @sr update README/CHANGES re. -o
sr authored
97 * Sinatra apps can now be run with a `-o <addr>` argument to specify
1b8fda8 @sr attribute to the right person
sr authored
98 the address to bind to. (Ryan Tomayko)
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
99
e3a9f9e @rtomayko update CHANGES file with recent changes
rtomayko authored
100 * Rack::Session::Cookie is now added to the middleware pipeline when
101 running in test environments if the :sessions option is set.
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
102 (Simon Rozet)
e3a9f9e @rtomayko update CHANGES file with recent changes
rtomayko authored
103
f75bee5 @rtomayko Cleanup and refactoring after inheritance changes
rtomayko authored
104 * Route handlers, before filters, templates, error mappings, and
105 middleware are now resolved dynamically up the inheritance hierarchy
106 when needed instead of duplicating the superclass's version when
107 a new Sinatra::Base subclass is created. This should fix a variety
108 of issues with extensions that need to add any of these things
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
109 to the base class. (Ryan Tomayko)
f75bee5 @rtomayko Cleanup and refactoring after inheritance changes
rtomayko authored
110
4e71959 @rtomayko error handlers always override raise_errors option
rtomayko authored
111 * Exception error handlers always override the raise_errors option now.
112 Previously, all exceptions would be raised outside of the application
113 when the raise_errors option was enabled, even if an error handler was
114 defined for that exception. The raise_errors option now controls
115 whether unhandled exceptions are raised (enabled) or if a generic 500
116 error is returned (disabled). (Ryan Tomayko)
117
45ba561 @rtomayko attribute people in CHANGES
rtomayko authored
118 * The X-Cascade response header is set to 'pass' when no matching route
119 is found or all routes pass. (Josh Peek)
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
120
f6fc751 @sr update CHANGES re. filters and static files
sr authored
121 * Filters do not run when serving static files anymore. (Ryan Tomayko)
122
8a7dd92 mention pass blocks in CHANGES
Blake Mizerany authored
123 * pass takes an optional block to be used as the route handler if no
124 subsequent route matches the request. (Blake Mizerany)
125
79a9993 @rtomayko note that Sinatra::Default is obsolete in CHANGES
rtomayko authored
126 The following Sinatra features have been obsoleted (removed entirely) in
127 the 1.0 release:
128
129 * The `sinatra/test` library is obsolete. This includes the `Sinatra::Test`
130 module, the `Sinatra::TestHarness` class, and the `get_it`, `post_it`,
131 `put_it`, `delete_it`, and `head_it` helper methods. The
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
132 [`Rack::Test` library](http://gitrdoc.com/brynary/rack-test) should
133 be used instead.
134
135 * Test framework specific libraries (`sinatra/test/spec`,
79a9993 @rtomayko note that Sinatra::Default is obsolete in CHANGES
rtomayko authored
136 `sinatra/test/bacon`,`sinatra/test/rspec`, etc.) are obsolete. See
137 http://www.sinatrarb.com/testing.html for instructions on setting up a
138 testing environment under each of these frameworks.
139
140 * `Sinatra::Default` is obsolete; use `Sinatra::Base` instead.
141 `Sinatra::Base` acts more like `Sinatra::Default` in development mode.
142 For example, static file serving and sexy development error pages are
143 enabled by default.
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
144
145 * Auto-requiring template libraries in the `erb`, `builder`, `haml`,
146 and `sass` methods is obsolete due to thread-safety issues. You must
147 require the template libraries explicitly in your app.
148
149 * The `:views_directory` option to rendering methods is obsolete; use
150 `:views` instead.
151
152 * The `:haml` and `:sass` options to rendering methods are obsolete.
153 Template engine options should be passed in the second Hash argument
154 instead.
155
f942ad7 @sr add inline_templates to CHANGES
sr authored
156 * The `use_in_file_templates` method is obsolete. Use
157 `enable :inline_templates` or `set :inline_templates, 'path/to/file'`
158
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
159 * The 'media_type' helper method is obsolete. Use 'mime_type' instead.
160
79a9993 @rtomayko note that Sinatra::Default is obsolete in CHANGES
rtomayko authored
161 * The 'mime' main and class method is obsolete. Use 'mime_type' instead.
162
e14c700 @rtomayko Update CHANGES with new features and obsoletions
rtomayko authored
163 * The request-level `send_data` method is no longer supported.
164
165 * The `Sinatra::Event` and `Sinatra::EventContext` classes are no longer
166 supported. This may effect extensions written for versions prior to 0.9.2.
167 See [Writing Sinatra Extensions](http://www.sinatrarb.com/extensions.html)
168 for the officially supported extensions API.
169
170 * The `set_option` and `set_options` methods are obsolete; use `set`
171 instead.
172
173 * The `:env` setting (`settings.env`) is obsolete; use `:environment`
174 instead.
175
176 * The request level `stop` method is obsolete; use `halt` instead.
177
178 * The request level `entity_tag` method is obsolete; use `etag`
179 instead.
180
181 * The request level `headers` method (HTTP response headers) is obsolete;
182 use `response['Header-Name']` instead.
183
184 * `Sinatra.application` is obsolete; use `Sinatra::Application` instead.
185
186 * Using `Sinatra.application = nil` to reset an application is obsolete.
187 This should no longer be necessary.
188
189 * Using `Sinatra.default_options` to set base configuration items is
190 obsolete; use `Sinatra::Base.set(key, value)` instead.
191
192 * The `Sinatra::ServerError` exception is obsolete. All exceptions raised
193 within a request are now treated as internal server errors and result in
194 a 500 response status.
195
3cfd06a @vangberg add :methodoverride => :method_override to CHANGES
vangberg authored
196 * The `:methodoverride' option to enable/disable the POST _method hack is
197 obsolete; use `:method_override` instead.
198
3d2988c @rtomayko Forgot to add release date for 0.9.2 in CHANGES
rtomayko authored
199 = 0.9.2 / 2009-05-18
13fc79d @rtomayko Remove support for source file reloading [#166]
rtomayko authored
200
5d6ac2a @rtomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
201 * This version is compatible with Rack 1.0. [Rein Henrichs]
202
203 * The development-mode unhandled exception / error page has been
204 greatly enhanced, functionally and aesthetically. The error
205 page is used when the :show_exceptions option is enabled and an
206 exception propagates outside of a route handler or before filter.
207 [Simon Rozet / Matte Noble / Ryan Tomayko]
208
209 * Backtraces that move through templates now include filenames and
210 line numbers where possible. [#51 / S. Brent Faulkner]
211
212 * All templates now have an app-level option for setting default
213 template options (:haml, :sass, :erb, :builder). The app-level
214 option value must be a Hash if set and is merged with the
215 template options specified to the render method (Base#haml,
216 Base#erb, Base#builder). [S. Brent Faulkner, Ryan Tomayko]
217
218 * The method signature for all template rendering methods has
219 been unified: "def engine(template, options={}, locals={})".
220 The options Hash now takes the generic :views, :layout, and
221 :locals options but also any template-specific options. The
222 generic options are removed before calling the template specific
223 render method. Locals may be specified using either the
224 :locals key in the options hash or a second Hash option to the
225 rendering method. [#191 / Ryan Tomayko]
226
227 * The receiver is now passed to "configure" blocks. This
228 allows for the following idiom in top-level apps:
229 configure { |app| set :foo, app.root + '/foo' }
230 [TJ Holowaychuck / Ryan Tomayko]
231
232 * The "sinatra/test" lib is deprecated and will be removed in
233 Sinatra 1.0. This includes the Sinatra::Test module and
234 Sinatra::TestHarness class in addition to all the framework
235 test helpers that were deprecated in 0.9.1. The Rack::Test
236 lib should be used instead: http://gitrdoc.com/brynary/rack-test
237 [#176 / Simon Rozet]
238
13fc79d @rtomayko Remove support for source file reloading [#166]
rtomayko authored
239 * Development mode source file reloading has been removed. The
240 "shotgun" (http://rtomayko.github.com/shotgun/) program can be
241 used to achieve the same basic functionality in most situations.
242 Passenger users should use the "tmp/always_restart.txt"
5d6ac2a @rtomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
243 file (http://tinyurl.com/c67o4h). [#166 / Ryan Tomayko]
244
b48ed22 @rtomayko Add note about auto-require deprecation to CHANGES
rtomayko authored
245 * Auto-requiring template libs in the erb, builder, haml, and
246 sass methods is deprecated due to thread-safety issues. You must
247 require the template libs explicitly in your app file. [Simon Rozet]
248
5d6ac2a @rtomayko update CHANGES for 0.9.2 (perhaps 1.0) release
rtomayko authored
249 * A new Sinatra::Base#route_missing method was added. route_missing
250 is sent when no route matches the request or all route handlers
251 pass. The default implementation forwards the request to the
252 downstream app when running as middleware (i.e., "@app" is
253 non-nil), or raises a NotFound exception when no downstream app
254 is defined. Subclasses can override this method to perform custom
255 route miss logic. [Jon Crosby]
256
257 * A new Sinatra::Base#route_eval method was added. The method
258 yields to the block and throws :halt with the result. Subclasses
259 can override this method to tap into the route execution logic.
260 [TJ Holowaychuck]
261
262 * Fix the "-x" (enable request mutex / locking) command line
263 argument. Passing -x now properly sets the :lock option.
264 [S. Brent Faulkner, Ryan Tomayko]
265
266 * Fix writer ("foo=") and predicate ("foo?") methods in extension
267 modules not being added to the registering class.
268 [#172 / Pat Nakajima]
269
270 * Fix in-file templates when running alongside activesupport and
271 fatal errors when requiring activesupport before sinatra
272 [#178 / Brian Candler]
273
274 * Fix various issues running on Google AppEngine.
275 [Samuel Goebert, Simon Rozet]
276
277 * Fix in-file templates __END__ detection when __END__ exists with
278 other stuff on a line [Yoji Shidara]
13fc79d @rtomayko Remove support for source file reloading [#166]
rtomayko authored
279
0f02baf @rtomayko 0.9.1.1 security release
rtomayko authored
280 = 0.9.1.1 / 2009-03-09
281
282 * Fix directory traversal vulnerability in default static files
283 route. See [#177] for more info.
284
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
285 = 0.9.1 / 2009-03-01
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
286
287 * Sinatra now runs under Ruby 1.9.1 [#61]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
288
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
289 * Route patterns (splats, :named, or Regexp captures) are now
290 passed as arguments to the block. [#140]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
291
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
292 * The "helpers" method now takes a variable number of modules
293 along with the normal block syntax. [#133]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
294
cf32f2e @rtomayko Middleware enhancements: automatic and explicit forward to downstream…
rtomayko authored
295 * New request-level #forward method for middleware components: passes
296 the env to the downstream app and merges the response status, headers,
0e1fd22 @rtomayko Misc additions to the CHANGES file
rtomayko authored
297 and body into the current context. [#126]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
298
cf32f2e @rtomayko Middleware enhancements: automatic and explicit forward to downstream…
rtomayko authored
299 * Requests are now automatically forwarded to the downstream app when
300 running as middleware and no matching route is found or all routes
301 pass.
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
302
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
303 * New simple API for extensions/plugins to add DSL-level and
304 request-level methods. Use Sinatra.register(mixin) to extend
305 the DSL with all public methods defined in the mixin module;
306 use Sinatra.helpers(mixin) to make all public methods defined
307 in the mixin module available at the request level. [#138]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
308 See http://www.sinatrarb.com/extensions.html for details.
309
310 * Named parameters in routes now capture the "." character. This makes
311 routes like "/:path/:filename" match against requests like
312 "/foo/bar.txt"; in this case, "params[:filename]" is "bar.txt".
313 Previously, the route would not match at all.
314
315 * Added request-level "redirect back" to redirect to the referring
316 URL.
317
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
318 * Added a new "clean_trace" option that causes backtraces dumped
319 to rack.errors and displayed on the development error page to
320 omit framework and core library backtrace lines. The option is
321 enabled by default. [#77]
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
322
090c4d7 @rtomayko Fix weirdness with partials in ERB [#158]
rtomayko authored
323 * The ERB output buffer is now available to helpers via the @_out_buf
324 instance variable.
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
325
326 * It's now much easier to test sessions in unit tests by passing a
327 ":session" option to any of the mock request methods. e.g.,
328 get '/', {}, :session => { 'foo' => 'bar' }
329
2f377e2 @rtomayko Trim down Testing section in the README; link to doc site instead
rtomayko authored
330 * The testing framework specific files ('sinatra/test/spec',
331 'sinatra/test/bacon', 'sinatra/test/rspec', etc.) have been deprecated.
332 See http://sinatrarb.com/testing.html for instructions on setting up
333 a testing environment with these frameworks.
334
a9e9f00 @rtomayko Add send_data back in but deprecate [#143]
rtomayko authored
335 * The request-level #send_data method from Sinatra 0.3.3 has been added
336 for compatibility but is deprecated.
41c8aeb @rtomayko Bring CHANGES file up to date with last week of stuff
rtomayko authored
337
987d622 @rtomayko Bump version to 0.9.1 and update CHANGES file
rtomayko authored
338 * Fix :provides causing crash on any request when request has no
339 Accept header [#139]
340
341 * Fix that ERB templates were evaluated twice per "erb" call.
342
343 * Fix app-level middleware not being run when the Sinatra application is
344 run as middleware.
345
346 * Fixed some issues with running under Rack's CGI handler caused by
347 writing informational stuff to stdout.
348
0e1fd22 @rtomayko Misc additions to the CHANGES file
rtomayko authored
349 * Fixed that reloading was sometimes enabled when starting from a
350 rackup file [#110]
351
352 * Fixed that "." in route patterns erroneously matched any character
353 instead of a literal ".". [#124]
354
f99015d @rtomayko Bring in CHANGES additions from 0.9.0.x branch
rtomayko authored
355 = 0.9.0.4 / 2009-01-25
356
357 * Using halt with more than 1 args causes ArgumentError [#131]
358 * using halt in a before filter doesn't modify response [#127]
359 * Add deprecated Sinatra::EventContext to unbreak plugins [#130]
360 * Give access to GET/POST params in filters [#129]
361 * Preserve non-nested params in nested params hash [#117]
362 * Fix backtrace dump with Rack::Lint [#116]
363
364 = 0.9.0.3 / 2009-01-21
365
366 * Fall back on mongrel then webrick when thin not found. [#75]
367 * Use :environment instead of :env in test helpers to
368 fix deprecation warnings coming from framework.
369 * Make sinatra/test/rspec work again [#113]
370 * Fix app_file detection on windows [#118]
371 * Fix static files with Rack::Lint in pipeline [#121]
372
373 = 0.9.0.2 / 2009-01-18
374
375 * Halting a before block should stop processing of routes [#85]
376 * Fix redirect/halt in before filters [#85]
377
968194d @rtomayko 0.9.0 release
rtomayko authored
378 = 0.9.0 / 2009-01-18
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
379
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
380 * Works with and requires Rack >= 0.9.1
381
382 * Multiple Sinatra applications can now co-exist peacefully within a
383 single process. The new "Sinatra::Base" class can be subclassed to
384 establish a blank-slate Rack application or middleware component.
385 Documentation on using these features is forth-coming; the following
386 provides the basic gist: http://gist.github.com/38605
387
1fa9807 @foca Nested params (e.g., "post[title]=Hello") [#70]
foca authored
388 * Parameters with subscripts are now parsed into a nested/recursive
389 Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
390 params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
391
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
392 * Regular expressions may now be used in route pattens; captures are
393 available at "params[:captures]".
b5faa57 @rtomayko Dump backtrace to rack.errors on unhandled exception
rtomayko authored
394
38778ed @cypher Add filtering support for Accept HTTP header.
cypher authored
395 * New ":provides" route condition takes an array of mime types and
396 matches only when an Accept request header is present with a
397 corresponding type. [cypher]
398
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
399 * New request-level "pass" method; immediately exits the current block
400 and passes control to the next matching route.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
401
402 * The request-level "body" method now takes a block; evaluation is
403 deferred until an attempt is made to read the body. The block must
404 return a String or Array.
405
406 * New "route conditions" system for attaching rules for when a route
407 matches. The :agent and :host route options now use this system.
408
17cb177 @cypher README and CHANGES tweaks for 0.9.0 release (#63)
cypher authored
409 * New "dump_errors" option controls whether the backtrace is dumped to
410 rack.errors when an exception is raised from a route. The option is
411 enabled by default for top-level apps.
412
413 * Better default "app_file", "root", "public", and "views" location
414 detection; changes to "root" and "app_file" automatically cascade to
415 other options that depend on them.
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
416
417 * Error mappings are now split into two distinct layers: exception
418 mappings and custom error pages. Exception mappings are registered
419 with "error(Exception)" and are run only when the app raises an
420 exception. Custom error pages are registered with "error(status_code)",
421 where "status_code" is an integer, and are run any time the response
422 has the status code specified. It's also possible to register an error
423 page for a range of status codes: "error(500..599)".
424
968194d @rtomayko 0.9.0 release
rtomayko authored
425 * In-file templates are now automatically imported from the file that
426 requires 'sinatra'. The use_in_file_templates! method is still available
427 for loading templates from other files.
428
c2849ff @rtomayko Note sinatra/test modifications in CHANGES file
rtomayko authored
429 * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
430 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
431 class, which can be used with any test framework. The 'sinatra/test/unit',
432 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
433 can be required to setup a framework-specific testing environment. See the
434 README for more information.
435
1fb5b99 @dylanegan Bacon support
dylanegan authored
436 * Added support for Bacon (test framework). The 'sinatra/test/bacon' file
437 can be required to setup Sinatra test helpers on Bacon::Context.
438
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
439 * Deprecated "set_option" and "set_options"; use "set" instead.
440
441 * Deprecated the "env" option ("options.env"); use "environment" instead.
442
443 * Deprecated the request level "stop" method; use "halt" instead.
444
445 * Deprecated the request level "entity_tag" method; use "etag" instead.
446 Both "entity_tag" and "etag" were previously supported.
447
448 * Deprecated the request level "headers" method (HTTP response headers);
449 use "response['Header-Name']" instead.
450
451 * Deprecated "Sinatra.application"; use "Sinatra::Application" instead.
452
453 * Deprecated setting Sinatra.application = nil to reset an application.
454 This should no longer be necessary.
455
456 * Deprecated "Sinatra.default_options"; use
457 "Sinatra::Default.set(key, value)" instead.
458
459 * Deprecated the "ServerError" exception. All Exceptions are now
460 treated as internal server errors and result in a 500 response
461 status.
462
91922b7 @rtomayko Deprecate get_it, post_it, etc. test helpers with warnings
rtomayko authored
463 * Deprecated the "get_it", "post_it", "put_it", "delete_it", and "head_it"
464 test helper methods. Use "get", "post", "put", "delete", and "head",
465 respectively, instead.
466
ccb653f @rtomayko Update CHANGES file with hoboken notes
rtomayko authored
467 * Removed Event and EventContext classes. Applications are defined in a
468 subclass of Sinatra::Base; each request is processed within an
469 instance.
470
471 = 0.3.3 / 2009-01-06
472
473 * Pin to Rack 0.4.0 (this is the last release on Rack 0.4)
474
475 * Log unhandled exception backtraces to rack.errors.
476
477 * Use RACK_ENV environment variable to establish Sinatra
478 environment when given. Thin sets this when started with
479 the -e argument.
480
481 * BUG: raising Sinatra::NotFound resulted in a 500 response
482 code instead of 404.
483
484 * BUG: use_in_file_templates! fails with CR/LF (#45)
485
486 * BUG: Sinatra detects the app file and root path when run under
487 thin/passenger.
488
489 = 0.3.2
490
491 * BUG: Static and send_file read entire file into String before
492 sending. Updated to stream with 8K chunks instead.
493
494 * Rake tasks and assets for building basic documentation website.
495 See http://sinatra.rubyforge.org
496
497 * Various minor doc fixes.
498
499 = 0.3.1
500
501 * Unbreak optional path parameters [jeremyevans]
502
503 = 0.3.0
504
505 * Add sinatra.gemspec w/ support for github gem builds. Forks can now
506 enable the build gem option in github to get free username-sinatra.gem
507 builds: gem install username-sinatra.gem --source=http://gems.github.com/
508
509 * Require rack-0.4 gem; removes frozen rack dir.
510
511 * Basic RSpec support; require 'sinatra/test/rspec' instead of
512 'sinatra/test/spec' to use. [avdi]
513
514 * before filters can modify request environment vars used for
515 routing (e.g., PATH_INFO, REQUEST_METHOD, etc.) for URL rewriting
516 type functionality.
517
518 * In-file templates now uses @@ instead of ## as template separator.
519
520 * Top-level environment test predicates: development?, test?, production?
521
522 * Top-level "set", "enable", and "disable" methods for tweaking
523 app options. [rtomayko]
524
525 * Top-level "use" method for building Rack middleware pipelines
526 leading to app. See README for usage. [rtomayko]
527
528 * New "reload" option - set false to disable reloading in development.
529
530 * New "host" option - host/ip to bind to [cschneid]
531
532 * New "app_file" option - override the file to reload in development
533 mode [cschneid]
534
535 * Development error/not_found page cleanup [sr, adamwiggins]
536
537 * Remove a bunch of core extensions (String#to_param, String#from_param,
538 Hash#from_params, Hash#to_params, Hash#symbolize_keys, Hash#pass)
539
540 * Various grammar and formatting fixes to README; additions on
541 community and contributing [cypher]
542
543 * Build RDoc using Hanna template: http://sinatrarb.rubyforge.org/api
544
545 * Specs, documentation and fixes for splat'n routes [vic]
546
547 * Fix whitespace errors across all source files. [rtomayko]
548
549 * Fix streaming issues with Mongrel (body not closed). [bmizerany]
550
551 * Fix various issues with environment not being set properly (configure
552 blocks not running, error pages not registering, etc.) [cypher]
553
554 * Fix to allow locals to be passed to ERB templates [cschneid]
555
556 * Fix locking issues causing random errors during reload in development.
557
558 * Fix for escaped paths not resolving static files [Matthew Walker]
559
560 = 0.2.1
561
562 * File upload fix and minor tweaks.
563
564 = 0.2.0
565
566 * Initial gem release of 0.2 codebase.
Something went wrong with that request. Please try again.