Skip to content

Commit

Permalink
Extracted props into hprops
Browse files Browse the repository at this point in the history
  • Loading branch information
nkpart committed Feb 24, 2010
1 parent 47a5dba commit 264b2e7
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 229 deletions.
2 changes: 1 addition & 1 deletion project/build.properties
@@ -1,6 +1,6 @@
#Project properties
#Wed Feb 03 09:29:37 EST 2010
project.organization=prohax
project.organization=nkpart
project.name=sage
sbt.version=0.6.10
project.version=0.1
Expand Down
14 changes: 8 additions & 6 deletions project/build/sage.scala
@@ -1,12 +1,12 @@
import sbt._

class SageProject(info: ProjectInfo) extends DefaultProject(info) {

Credentials.add("Secure Area", "localhost", "admin", "admin123")

override def managedStyle = ManagedStyle.Maven
val publishTo = "Secure Area" at "http://localhost:8080/"

//
// Credentials.add("Secure Area", "localhost", "admin", "admin123")
//
// override def managedStyle = ManagedStyle.Maven
// val publishTo = "Secure Area" at "http://localhost:8080/"
//

val snapshots = "scala-tools snapshots" at "http://www.scala-tools.org/repo-snapshots"
val scalatest = "org.scalatest" % "scalatest" % "1.0.1-for-scala-2.8.0.Beta1-RC7-with-test-interfaces-0.3-SNAPSHOT" % "test"
Expand All @@ -18,4 +18,6 @@ class SageProject(info: ProjectInfo) extends DefaultProject(info) {

val scalaz_core = "com.googlecode.scalaz" % "scalaz-core_2.8.0.Beta1" % "5.0-SNAPSHOT"
val scalaz_http = "com.googlecode.scalaz" % "scalaz-http_2.8.0.Beta1" % "5.0-SNAPSHOT"

val hprops = "nkpart" %% "hprops" % "0.1"
}
61 changes: 0 additions & 61 deletions src/main/scala/props/FunctionWs.scala

This file was deleted.

37 changes: 0 additions & 37 deletions src/main/scala/props/Instances.scala

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/scala/props/MA.scala

This file was deleted.

50 changes: 0 additions & 50 deletions src/main/scala/props/Property.scala

This file was deleted.

45 changes: 0 additions & 45 deletions src/main/scala/props/PropsDSL.scala

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/scala/props/package.scala

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/scala/sage/EntityBase.scala
@@ -1,6 +1,6 @@
package sage

import props._
import hprops._
import scalaz._
import Scalaz._
import com.google.appengine.api.datastore._
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/sage/EntityProperties.scala
@@ -1,6 +1,6 @@
package sage

import props._
import hprops._
import scalaz._
import Scalaz._
import com.google.appengine.api.datastore._
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/sage/http/Postable.scala
@@ -1,7 +1,7 @@
package sage
package http

import props._
import hprops._
import scalaz.http.request._
import scalaz._
import Scalaz._
Expand All @@ -11,7 +11,7 @@ import metascala.HLists._
trait StringW {
val str: String

import props._
import hprops._

def as[T](implicit p: Postable[T]) = new ReadUpdate[Request[Stream], T] {
def get(r: Request[Stream]) = (r |! str).map(_.mkString).toSuccess(missing(str).wrapNel) >>= (v => p.read(v).toSuccess(invalid(str).wrapNel))
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/sage/package.scala
@@ -1,7 +1,7 @@
import sage.EntityImplicits
import scalaz._
import Scalaz._
import props._
import hprops._

import metascala.HLists._

Expand All @@ -10,4 +10,4 @@ package object sage extends
with FunctionWs
with FindDSLImplicits
with EntityProperties
with PropsDSL
with HPropsDSL
2 changes: 1 addition & 1 deletion src/test/scala/sage/PropertySpec.scala
@@ -1,6 +1,6 @@
package sage

import props._
import hprops._
import scalaz._
import Scalaz._
import org.scalatest._
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/sage/RequestSpec.scala
Expand Up @@ -2,7 +2,7 @@ package sage

import metascala.HLists._

import props._
import hprops._
import scalaz._
import Scalaz._

Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/sage/spec1.scala
Expand Up @@ -5,7 +5,7 @@ import metascala.HLists._
import scalaz._
import Scalaz._

import props._
import hprops._
import org.scalatest._
import org.scalatest.matchers.ShouldMatchers

Expand Down

0 comments on commit 264b2e7

Please sign in to comment.