Skip to content

Commit

Permalink
0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Sep 16, 2019
1 parent 8457fb3 commit 587f6c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions cask/src/cask/main/Routes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import language.experimental.macros
trait Routes{

def decorators = Seq.empty[cask.router.RawDecorator]
implicit def executionContext = concurrent.ExecutionContext.Implicits.global
private[this] var metadata0: RoutesEndpointsMetadata[this.type] = null
def caskMetadata =
if (metadata0 != null) metadata0
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/1 - Cask: a Scala HTTP micro-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ via the following coordinates:
```scala
// Mill
ivy"com.lihaoyi::cask:0.2.5"
ivy"com.lihaoyi::cask:0.2.6"
// SBT
"com.lihaoyi" %% "cask" % "0.2.5"
"com.lihaoyi" %% "cask" % "0.2.6"
```
The `./mill` command is just a wrapper around the
Expand Down
1 change: 0 additions & 1 deletion example/websockets/app/src/Websockets.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package app

import concurrent.ExecutionContext.Implicits.global
object Websockets extends cask.MainRoutes{
@cask.websocket("/connect/:userName")
def showUserProfile(userName: String): cask.WebsocketResult = {
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ courtesy of EJ Technologies

## Changelog

### 0.2.6

- Embed `concurrent.ExecutionContext.global` in `cask.Routes` by default, to be
overriden if necessary

### 0.2.5

- Internal refactoring to clean up routing logic
Expand Down

0 comments on commit 587f6c1

Please sign in to comment.