upgrade scalalib and use new validIf facility
This commit is contained in:
parent
3b16af5a1b
commit
6c04d5b909
|
@ -34,7 +34,7 @@ final class Hand(
|
|||
blur: Boolean = false,
|
||||
lag: Int = 0): IO[Valid[(List[Event], String)]] = fromPov(povRef) {
|
||||
case Pov(g1, color) ⇒ (for {
|
||||
g2 ← (g1.playable).fold(success(g1), failure("Game not playable" wrapNel))
|
||||
g2 ← g1.validIf(g1.playable, "Game not playable")
|
||||
orig ← posAt(origString) toValid "Wrong orig " + origString
|
||||
dest ← posAt(destString) toValid "Wrong dest " + destString
|
||||
promotion = Role promotable promString
|
||||
|
|
|
@ -18,7 +18,7 @@ trait Dependencies {
|
|||
val specs2 = "org.specs2" %% "specs2" % "1.9.2"
|
||||
val casbah = "com.mongodb.casbah" %% "casbah" % "2.1.5-1"
|
||||
val salat = "com.novus" %% "salat-core" % "0.0.8-SNAPSHOT"
|
||||
val scalalib = "com.github.ornicar" %% "scalalib" % "1.33"
|
||||
val scalalib = "com.github.ornicar" %% "scalalib" % "1.34"
|
||||
val config = "com.typesafe" % "config" % "0.4.0"
|
||||
val json = "com.codahale" %% "jerkson" % "0.5.0"
|
||||
val guava = "com.google.guava" % "guava" % "11.0.2"
|
||||
|
|
5
todo
5
todo
|
@ -11,11 +11,6 @@ use POST instead of GET where it makes sense
|
|||
make the wiki static html pages managed by git?
|
||||
guess friend list
|
||||
tournaments http://www.chess.com/tournaments/help.html
|
||||
fix game list translations
|
||||
more infos under realtime games
|
||||
cheater slash timeline
|
||||
best game(s) to watch
|
||||
use twitter tooltip instead of tipsy http://twitter.github.com/bootstrap/javascript.html#tooltip
|
||||
|
||||
next deploy:
|
||||
db.user2.update({},{$unset:{"settings.color":1}}, false, true)
|
||||
|
|
Loading…
Reference in a new issue