From 67d5aa83b1ef3830a523ceec82b3e468e2c91c7e Mon Sep 17 00:00:00 2001 From: Wes Freeman Date: Mon, 13 May 2013 17:36:05 -0400 Subject: [PATCH] Releasing 0.4.1 --- build.sbt | 2 +- readme.md | 13 +++++++++++-- src/main/scala/org/anormcypher/Neo4jREST.scala | 12 ++++++------ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/build.sbt b/build.sbt index 85af794..afe1a35 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,6 @@ name := "AnormCypher" -version := "0.4.0" +version := "0.4.1" publishMavenStyle := true diff --git a/readme.md b/readme.md index 444a6f6..87e2167 100644 --- a/readme.md +++ b/readme.md @@ -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" ) ``` @@ -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. diff --git a/src/main/scala/org/anormcypher/Neo4jREST.scala b/src/main/scala/org/anormcypher/Neo4jREST.scala index 6bd952d..d05f37e 100644 --- a/src/main/scala/org/anormcypher/Neo4jREST.scala +++ b/src/main/scala/org/anormcypher/Neo4jREST.scala @@ -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) {