CHANGES in bmizerany-sinatra-0.8.9 vs CHANGES in bmizerany-sinatra-0.8.10
- old
+ new
@@ -6,10 +6,14 @@
single process. The new "Sinatra::Base" class can be subclassed to
establish a blank-slate Rack application or middleware component.
Documentation on using these features is forth-coming; the following
provides the basic gist: http://gist.github.com/38605
+ * Parameters with subscripts are now parsed into a nested/recursive
+ Hash structure. e.g., "post[title]=Hello&post[body]=World" yields
+ params: {'post' => {'title' => 'Hello', 'body' => 'World'}}.
+
* Regular expressions may now be used in route pattens; captures are
available at "params[:captures]".
* New ":provides" route condition takes an array of mime types and
matches only when an Accept request header is present with a
@@ -38,9 +42,16 @@
with "error(Exception)" and are run only when the app raises an
exception. Custom error pages are registered with "error(status_code)",
where "status_code" is an integer, and are run any time the response
has the status code specified. It's also possible to register an error
page for a range of status codes: "error(500..599)".
+
+ * Sinatra's testing support is no longer dependent on Test::Unit. Requiring
+ 'sinatra/test' adds the Sinatra::Test module and Sinatra::TestHarness
+ class, which can be used with any test framework. The 'sinatra/test/unit',
+ 'sinatra/test/spec', 'sinatra/test/rspec', or 'sinatra/test/bacon' files
+ can be required to setup a framework-specific testing environment. See the
+ README for more information.
* Added support for Bacon (test framework). The 'sinatra/test/bacon' file
can be required to setup Sinatra test helpers on Bacon::Context.
* Deprecated "set_option" and "set_options"; use "set" instead.