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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d39f7102c26a7e8aff35bbb2e0bff24cc4f383a3
4
- data.tar.gz: 04f2ad73f2fe99a55ff14f981474ec2114436d27
3
+ metadata.gz: 70a29e44a1c9f27e779748df801487c7deb524b4
4
+ data.tar.gz: 8b9d4d781708cc4d0c781c7216552b75c51f5936
5
5
  SHA512:
6
- metadata.gz: c26991e87c194a1be4f4a49c237e2ebeaa181b571450a060c936916fc65cbc658fb451a0f58b93a918a2bd9e109ca2393d7b4ba00f2cf1bccdd83078ab081772
7
- data.tar.gz: 8f6fcaa0a955b5c14248de1a4d4587bfe40f47d226abb22499f7d90466f5d0ce830967a0391fe3e8c0f1c51713f19827b19e2a39e539073c7ed0db945ef2d643
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
  ```
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = "3.0.0.alpha.2"
3
+ VERSION = "3.0.0.alpha.3"
4
4
  end
5
5
  end
@@ -29,7 +29,7 @@ module Neo4j::Server
29
29
  def each()
30
30
  data.each do |row|
31
31
  row.each_with_index do |row, i|
32
- yield columns[i].to_sym => row[i]
32
+ yield columns[i].to_sym => row
33
33
  end
34
34
  end
35
35
  end
@@ -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 "!!!!NO data_resource for #{response.body}" unless data_resource
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2013-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty