Skip to content

Commit

Permalink
Releasing 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeve committed May 13, 2013
1 parent e8136c2 commit 67d5aa8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "AnormCypher"

version := "0.4.0"
version := "0.4.1"

publishMavenStyle := true

Expand Down
13 changes: 11 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ If you want to use scala 2.9, you need to use version 0.3.x (latest is 0.3.1).

Switch to an empty folder and create a build.sbt file with the following:
``` Scala
resolvers += "anormcypher" at "http://repo.anormcypher.org/"
resolvers ++= Seq(
"anormcypher" at "http://repo.anormcypher.org/",
"Mandubian repository snapshots" at "https://github.com/mandubian/mandubian-mvn/raw/master/snapshots/",
"Mandubian repository releases" at "https://github.com/mandubian/mandubian-mvn/raw/master/releases/"
)


libraryDependencies ++= Seq(
"org.anormcypher" %% "anormcypher" % "0.4.0"
"org.anormcypher" %% "anormcypher" % "0.4.1"
)
```

Expand Down Expand Up @@ -59,6 +64,10 @@ Neo4jREST.setServer("localhost", 7474, "/db/data/")
Neo4jREST.setServer("localhost", 7474, "/db/data/", "username", "password")
```

For 1.8.x or older, you may need to specify a cypher endpoint like so (the default goes to the 1.9/2.0 style endpoint):

Neo4jREST.setServer("localhost", 7474, "/db/data/", "ext/CypherPlugin/graphdb/execute_query")

### Executing Cypher Queries

To start you need to learn how to execute Cypher queries.
Expand Down
12 changes: 6 additions & 6 deletions src/main/scala/org/anormcypher/Neo4jREST.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ object Neo4jREST {
"accept" -> "application/json",
"content-type" -> "application/json",
"X-Stream" -> "true",
"User-Agent" -> "AnormCypher/0.4.0"
"User-Agent" -> "AnormCypher/0.4.1"
)

var baseURL = "http://localhost:7474/db/data/"
var user = ""
var pass = ""
var cypherendpoint = "cypher"
var cypherEndpoint = "cypher"

def setServer(host: String = "localhost", port: Int = 7474, path: String = "/db/data/") {
setServer(host, port, path, "", "")
def setServer(host: String = "localhost", port: Int = 7474, path: String = "/db/data/", endpoint:String = "cypher") {
setServer(host, port, path, "", "", endpoint)
}

def setServer(host: String, port: Int, path: String, username: String, password: String) {
def setServer(host: String, port: Int, path: String, username: String, password: String, endpoint:String) {
baseURL = "http://" + host + ":" + port + path
user = username
pass = password
}

def setCypherEndpoint(endpoint: String) {
cypherendpoint = endpoint;
cypherEndpoint = endpoint;
}

def setURL(url: String) {
Expand Down

0 comments on commit 67d5aa8

Please sign in to comment.