neo4j-core 3.0.0.alpha.2 → 3.0.0.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j-server/cypher_response.rb +1 -1
- data/lib/neo4j-server/cypher_session.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70a29e44a1c9f27e779748df801487c7deb524b4
|
4
|
+
data.tar.gz: 8b9d4d781708cc4d0c781c7216552b75c51f5936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e9eb2dd2c8a3a40f42a48c8ecbaf06631f81e10da8eba7be4870e7784fd1e6bac6d4ac2b8c577c7b9f0f583b7a0fc78f441b6bce2b262e89bf738cb958f8b8a
|
7
|
+
data.tar.gz: cf8fa1ffd5d4a5823999ed82889b553c700871fe4554ccb70e43a1906c514c91d3c2cf924599469c7c0322c1a78f63a0d28c39a7a8a7edcbb8a5605b888b3494
|
data/README.md
CHANGED
@@ -15,8 +15,19 @@ Do not use this gem in production.
|
|
15
15
|
|
16
16
|
You need to install the Neo4j server. This can be done by included Rake file.
|
17
17
|
|
18
|
-
Example
|
19
18
|
|
19
|
+
Install the gem:
|
20
|
+
```
|
21
|
+
gem install neo4j-core --pre
|
22
|
+
```
|
23
|
+
|
24
|
+
Create a Rakefile with the following content:
|
25
|
+
|
26
|
+
```
|
27
|
+
require 'neo4j/tasks/neo4j_server'
|
28
|
+
```
|
29
|
+
|
30
|
+
Install and start neo4j:
|
20
31
|
```
|
21
32
|
rake neo4j:install[community-2.0.0]
|
22
33
|
rake neo4j:start
|
@@ -35,8 +46,10 @@ There are currently two available types of session, one for connecting to a neo4
|
|
35
46
|
and one for connecting to the embedded Neo4j database (which requires JRuby).
|
36
47
|
|
37
48
|
Using the Neo4j Server: `:server_db`
|
49
|
+
Open a IRB/Pry session:
|
38
50
|
|
39
51
|
```ruby
|
52
|
+
require 'neo4j-core'
|
40
53
|
# Using Neo4j Server Cypher Database
|
41
54
|
session = Neo4j::Session.open(:server_db, "http://localhost:7474")
|
42
55
|
```
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -28,7 +28,7 @@ module Neo4j::Server
|
|
28
28
|
response = HTTParty.get(data_url)
|
29
29
|
expect_response_code(response,200)
|
30
30
|
data_resource = JSON.parse(response.body)
|
31
|
-
raise "
|
31
|
+
raise "No data_resource for #{response.body}" unless data_resource
|
32
32
|
# store the resource data
|
33
33
|
init_resource_data(data_resource, data_url)
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.alpha.
|
4
|
+
version: 3.0.0.alpha.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|