forked from scalatra/scalatra
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:scalatra/scalatra
- Loading branch information
Showing
29 changed files
with
938 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Credits | ||
|
||
## Committers | ||
|
||
- [Gabriele Renzi](http://www.riffraff.info/) | ||
- [Alan Dipert](http://alan.dipert.org/) | ||
- [Ross A. Baker](http://www.rossabaker.com/) | ||
- [Hiram Chirino](http://hiramchirino.com/) | ||
- [Ivan Porto Carrero](http://flanders.co.nz/) | ||
|
||
## Other contributors | ||
|
||
- [Luke Amdor](http://rubbish.io/) | ||
- [JR Boyens](http://jrboyens.github.com/) | ||
- [Tuomas Kareinen](http://www.iki.fi/kareinen/) | ||
- [Miso Korkiakoski](http://github.com/mwing) | ||
- [Yusuke Kuoka](http://d.hatena.ne.jp/mumoshu/) | ||
- [Yung-Luen Lan](http://yllan.org/) | ||
- [Paul Lambert](http://paulitex.com/) | ||
- [Ted Nyman](http://github.com/tnm) | ||
- [Erik Rozendaal](http://github.com/erikrozendaal) | ||
- [Ivan Willig](http://github.com/iwillig) | ||
- [Phil Wills](http://github.com/philwills) | ||
|
||
## Special thanks | ||
|
||
- [The Sinatra Project](http://www.sinatrarb.com/), whose excellent framework, | ||
test suite, and documentation we've shamelessly copied. | ||
- [Mark Harrah](http://github.com/harrah) for his support on the [sbt mailing | ||
list](http://groups.google.com/group/simple-build-tool) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.scalatra | ||
|
||
class CookiesExample extends ScalatraServlet with CookieSupport { | ||
get("/cookies-example") { | ||
val previous = cookies.get("counter") match { | ||
case Some(v) => v.toInt | ||
case None => 0 | ||
} | ||
cookies.update("counter", (previous+1).toString) | ||
<p> | ||
Hi, you have been on this page {previous} times already | ||
</p> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
* [GH-16](http://github.com/scalatra/scalatra/issues/16): Dealing with multiple servlets/filters which have FileUploadSupport. | ||
* [GH-18](http://github.com/scalatra/scalatra/issues/18): ScalatraTests doesn't track the session cookie correctly across more than 2 requests | ||
* Generate CSRF token once per session instead of once per request. | ||
* [GH-19](http://github.com/scalatra/scalatra/issues/19): Render a File when returned by an action | ||
* [GH-20](http://github.com/scalatra/scalatra/issues/20): Add support for the HTTP HEAD method. ScalatraTests support still pending. | ||
* Upgrade to Jetty 7. | ||
* Concurrency support for dynamic route addition and deletion. | ||
* [GH-25](http://github.com/scalatra/scalatra/issues/25): Decode request body with content encoding | ||
* New socketio module. _API subject to change before 2.0.0_ | ||
* [GH-26](http://github.com/scalatra/scalatra/issues/26): Support options request | ||
* Support for Rails-style path patterns. | ||
* [GH-29](http://github.com/scalatra/scalatra/issues/29): FlashMap should be serializable | ||
* [GH-34](http://github.com/scalatra/scalatra/issues/34): ScalatraTests.addFilter not compatible with Jetty 8 | ||
* [GH-35](http://github.com/scalatra/scalatra/issues/35): Support for POST in ScalatraTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[Scalatra](http://github.com/scalatra/scalatra) is a tiny, [Sinatra](http://sinatrarb.com/)-like web framework for Scala. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import sbt._ | ||
|
||
import java.{util => ju} | ||
import scala.collection.jcl.Conversions._ | ||
import org.apache.ivy.plugins.resolver._ | ||
|
||
trait GenerateChecksums extends BasicManagedProject { | ||
override def ivySbt = { | ||
def setChecksums(resolver: DependencyResolver): Unit = resolver match { | ||
case r: ChainResolver => | ||
r.getResolvers foreach { | ||
case child: DependencyResolver => setChecksums(child) | ||
} | ||
case r: RepositoryResolver => | ||
r.setChecksums("sha1,md5") | ||
} | ||
|
||
val i = super.ivySbt | ||
i.withIvy { ivy => | ||
ivy.getSettings.getResolvers.toList foreach { | ||
case r: DependencyResolver => setChecksums(r) | ||
} | ||
} | ||
i | ||
} | ||
|
||
private implicit def juCollection2Iterable[A](c: ju.Collection[A]): Iterable[A] = { | ||
val list = new ju.ArrayList[A](c.size) | ||
list.addAll(c) | ||
list | ||
} | ||
} |
Oops, something went wrong.