Releases: amethyst-framework/amethyst
Releases · amethyst-framework/amethyst
v0.1.7
What's new:
- Totally new views - now without manual arguments specifying - all controller's instance variables can be acessed as a local in views.
- Add
before_action
macros - now you can specify filters for actions - Application classes now can be placed into the modules
- Now you can specify static dirs
- Add
secure
,httponly
,path
anddomain
options for response.cookie - Add
Session::Pool
(thanks to @bararchy ) - Add
button_to
method for views - Fix whole bunch of bugs (thanks to @bararchy for encountering and opening issues)
- Improve perfomance (thanks to @bararchy )
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
v0.1
What's new:
- views for actions (with some magic behind the scene done for you)
- intoduce Rails-like respond_to method
- formats for respond_to ( html and any for now)
- redirect_to method for redirecting available in controllers
- http errors implemented as Crystal exceptions
- controllers perfomance improved
- better mime-types support for static files serving(thanks to crystal-mime)
- numerous bug fixes and improves
Wiki will be updated soon
v0.0.7
What's new:
- reworked middleware support (much faster and flexible now)
- reworked actions implementation
- simple REST routing (GET, POST, PUT, DELETE)
- path, GET and POST params inside actions
- base cookies support
- static files serving
- tools for developers (handy logging middleware)
Also, there are detailed wiki comes!
v0.0.2-pre
First release of Amethyst! Note, this is a preview version, it has poor functionality yet, but it works. The main achievement is framework architecture, that allows Amethyst to grow up fast and unpainly. For now, we have:
- working class-based controllers with actions methods
- simple routing that maps controllers actions
- class-based middleware support
- support of GET method (yet)
As we have a pretty solid base, we can move towards extending a functionality. Goals of next release:
- static files serving
- REST architecture (GET, POST, PUT, DELETE)
- cookies support
- POST and GET parameters