Donations Summary Update and a small fix

This commit is contained in:
Gerasimos Maropoulos 2016-09-12 23:25:17 +03:00
parent 3d70d13298
commit 787425e5c5
4 changed files with 18 additions and 7 deletions

View File

@ -25,7 +25,8 @@ I'm grateful for all the generous donations. Iris is fully funded by these dona
#### Donors
- [Ryan Brooks](https://github.com/ryanbyyc) donated 50 EUR at May 11
- Anonymous(Currently) donated 20 EUR at September 11
- [Juan Sebastián Suárez Valencia](https://github.com/Juanses) donated 20 EUR at September 11
> The name of the donator added after his/her permission.
#### Report, so far

View File

@ -2,6 +2,10 @@
**How to upgrade**: remove your `$GOPATH/src/github.com/kataras/iris` folder, open your command-line and execute this command: `go get -u github.com/kataras/iris`.
## 4.2.1 -> 4.2.2
- Fix [sessiondb issue 416](https://github.com/kataras/iris/issues/416)
## 4.2.0 -> 4.2.1
- **CHANGE**: No front-end changes if you used the default response engines before. Response Engines to Serializers, `iris.ResponseEngine` `serializer.Serializer`, comes from `kataras/go-serializer` which is installed automatically when you upgrade iris with `-u` flag.

View File

@ -18,7 +18,7 @@
<br/>
<a href="https://github.com/kataras/iris/releases"><img src="https://img.shields.io/badge/%20version%20-%204.2.1%20-blue.svg?style=flat-square" alt="Releases"></a>
<a href="https://github.com/kataras/iris/releases"><img src="https://img.shields.io/badge/%20version%20-%204.2.2%20-blue.svg?style=flat-square" alt="Releases"></a>
<a href="https://github.com/iris-contrib/examples"><img src="https://img.shields.io/badge/%20examples-repository-3362c2.svg?style=flat-square" alt="Examples"></a>
@ -178,7 +178,7 @@ I recommend writing your API tests using this new library, [httpexpect](https://
Versioning
------------
Current: **v4.2.1**
Current: **v4.2.2**
> Iris is an active project
@ -221,7 +221,7 @@ License can be found [here](LICENSE).
[Travis]: http://travis-ci.org/kataras/iris
[License Widget]: https://img.shields.io/badge/license-MIT%20%20License%20-E91E63.svg?style=flat-square
[License]: https://github.com/kataras/iris/blob/master/LICENSE
[Release Widget]: https://img.shields.io/badge/release-v4.2.1-blue.svg?style=flat-square
[Release Widget]: https://img.shields.io/badge/release-v4.2.2-blue.svg?style=flat-square
[Release]: https://github.com/kataras/iris/releases
[Chat Widget]: https://img.shields.io/badge/community-chat-00BCD4.svg?style=flat-square
[Chat]: https://kataras.rocket.chat/channel/iris

12
iris.go
View File

@ -78,7 +78,7 @@ import (
const (
// Version of the iris
Version = "4.2.1"
Version = "4.2.2"
banner = ` _____ _
|_ _| (_)
@ -236,6 +236,9 @@ func New(setters ...OptionSetter) *Framework {
s.Available = make(chan bool)
}
// set empty sessions , look .initialize for its Init
s.sessions = sessions.Empty()
return s
}
@ -273,8 +276,11 @@ func (s *Framework) initialize() {
s.Logger.Panic(err) // panic on templates loading before listening if we have an error.
}
}
// set the sessions
s.sessions = sessions.New(sessions.Config(s.Config.Sessions))
// init, starts the session manager if the Cookie configuration field is not empty
if s.Config.Sessions.Cookie != "" {
s.sessions.Init(sessions.Config(s.Config.Sessions))
}
if s.Config.Websocket.Endpoint != "" {
// register the websocket server and listen to websocket connections when/if $instance.Websocket.OnConnection called by the dev