v0.1.3
What's new:
- default routes for controllers - if Amethyst didn't find regular route, it will try to handle default one -
/:controller/:action
- improve and optimize cookies support
- introduce
params
- all params(GET, POST, path) in one place - params (also
query_parameters
,request_parameters
andpath_parameters
)keys can beSymbol
orString
- it is no matter from now(params["id"] == params[:id]
) - add
has_keys?(Array)
for parameters. If at least one key is missing, it will return false - add
HttpMethodNotAllowed
andHttpNotImplemented
Exceptions. In production mode, they will be turned toHttpNotFound
error page. - fix
HttpException
raising in controllers - fix bug with empty values of parameters. Now, by default, all unsetted parameters will be empty string( for example, if controller invoked with path
example.com?id=5&name=
,params
will be""
, notnil
, thanks to @bararchy - fix scope bug when
require "amethyst"
, thanks to @paa001 - improve and add more specs