aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 2251ea92..241abf2c 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -25,6 +25,7 @@ import (
"github.com/macaron-contrib/oauth2"
"github.com/macaron-contrib/session"
"github.com/macaron-contrib/toolbox"
+ "gopkg.in/ini.v1"
api "github.com/gogits/go-gogs-client"
@@ -74,11 +75,13 @@ func checkVersion() {
// Check dependency version.
checkers := []VerChecker{
- {"github.com/Unknwon/macaron", macaron.Version, "0.4.7"},
+ {"github.com/Unknwon/macaron", macaron.Version, "0.5.0"},
{"github.com/macaron-contrib/binding", binding.Version, "0.0.4"},
+ {"github.com/macaron-contrib/cache", cache.Version, "0.0.7"},
{"github.com/macaron-contrib/csrf", csrf.Version, "0.0.1"},
- {"github.com/macaron-contrib/i18n", i18n.Version, "0.0.4"},
- {"github.com/macaron-contrib/session", session.Version, "0.1.0"},
+ {"github.com/macaron-contrib/i18n", i18n.Version, "0.0.5"},
+ {"github.com/macaron-contrib/session", session.Version, "0.1.6"},
+ {"gopkg.in/ini.v1", ini.Version, "1.0.1"},
}
for _, c := range checkers {
ver := strings.Join(strings.Split(c.Version(), ".")[:3], ".")
@@ -126,17 +129,14 @@ func newMacaron() *macaron.Macaron {
Redirect: true,
}))
m.Use(cache.Cacher(cache.Options{
- Adapter: setting.CacheAdapter,
- Interval: setting.CacheInternal,
- Conn: setting.CacheConn,
+ Adapter: setting.CacheAdapter,
+ AdapterConfig: setting.CacheConn,
+ Interval: setting.CacheInternal,
}))
m.Use(captcha.Captchaer(captcha.Options{
SubURL: setting.AppSubUrl,
}))
- m.Use(session.Sessioner(session.Options{
- Provider: setting.SessionProvider,
- Config: *setting.SessionConfig,
- }))
+ m.Use(session.Sessioner(setting.SessionConfig))
m.Use(csrf.Csrfer(csrf.Options{
Secret: setting.SecretKey,
SetCookie: true,