Skip to content

v0.1.3

Compare
Choose a tag to compare
@Codcore Codcore released this 18 Jun 19:36

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 and path_parameters)keys can be Symbol or String - 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 and HttpNotImplemented Exceptions. In production mode, they will be turned to HttpNotFound 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 "", not nil , thanks to @bararchy
  • fix scope bug when require "amethyst", thanks to @paa001
  • improve and add more specs