Skip to content

Commit

Permalink
v1.4.1, publish
Browse files Browse the repository at this point in the history
sief committed Feb 18, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7dd9eba commit 0ceb85d
Showing 4 changed files with 51 additions and 11 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -11,12 +11,16 @@ Rate Limit Algorithm
Based on the token bucket algorithm: http://en.wikipedia.org/wiki/Token_bucket


Installation
Getting play-guard
----------

Not available from central repos yet. Just clone the project, checkout v1.4.0 and run "activator publish-local" in "module".
This will allow the sample app to fetch it from your local repo.
To include it in your app, copy the play-guard_2.11-x.x.jar file to your lib folder.
The current stable version is 1.4.1, which is cross-built against Scala 2.10.x and 2.11.x.

Add the following dependency to your build file:

```scala
"com.digitaltangible" %% "play-guard" % "1.4.1"
```

1. GuardFilter
==========
43 changes: 39 additions & 4 deletions module/build.sbt
Original file line number Diff line number Diff line change
@@ -1,15 +1,50 @@
name := """play-guard"""

organization := """com.sief"""
organization := """com.digitaltangible"""

version := "1.4.0"

lazy val root = (project in file(".")).enablePlugins(PlayScala)
version := "1.4.1"

scalaVersion := "2.11.5"

crossScalaVersions := Seq("2.10.4", "2.11.5")

lazy val root = (project in file(".")).enablePlugins(PlayScala)

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.11.6" % "test",
"com.typesafe.akka" %% "akka-testkit" % "2.3.4" % "test"
)


publishMavenStyle := true

publishArtifact in Test := false

publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value endsWith "SNAPSHOT")
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}

pomExtra := <url>https://github.com/sief/play-guard</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:sief/play-guard.git</url>
<connection>scm:git:git@github.com:sief/play-guard.git</connection>
</scm>
<developers>
<developer>
<id>sief</id>
<name>Simon Effing</name>
<url>https://www.linkedin.com/in/simoneffing</url>
</developer>
</developers>
3 changes: 3 additions & 0 deletions module/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -3,4 +3,7 @@ resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releas
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.8")

// for PGP signing
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")


4 changes: 1 addition & 3 deletions samples/play-guard-sample/build.sbt
Original file line number Diff line number Diff line change
@@ -7,7 +7,5 @@ lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.5"

libraryDependencies ++= Seq(
"com.sief" %% "play-guard" % "1.4.0"
"com.digitaltangible" %% "play-guard" % "1.4.1"
)

resolvers ++= Seq("Local" at "file:///Users/simoneffing/.ivy2/local")

0 comments on commit 0ceb85d

Please sign in to comment.