Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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