neo4j-core 7.2.4 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -5
- data/lib/neo4j-core.rb +1 -1
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j/core/cypher_session/adaptors/bolt.rb +1 -5
- data/lib/neo4j/core/rake_tasks_deprecation.rake +14 -0
- data/neo4j-core.gemspec +1 -1
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 353e820d731c0fbdc4fb1eaeafef754f4cf3b6d3
|
4
|
+
data.tar.gz: b4ca7af90f2b5764781269df022b7bbe7e5a81da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af0232a7a5be3d06b709c061177d1176c8dc26269c7cc0ec44a73d890a25cd767129fe3d2edff64fc2a336eddf9d10c0cc1b9637f4f4c0703204d667e0d99108
|
7
|
+
data.tar.gz: f90d6206356db193ad3df8d88c43c615dd2c3e190907e60b00f4de367bc9bac142debb05001f89b599ff149e5cda58d66fcf15acf566fb0d7a79d2b73a24cca0
|
data/README.md
CHANGED
@@ -7,16 +7,12 @@ It can be used standalone without the neo4j gem.
|
|
7
7
|
|
8
8
|
### Executing Cypher queries
|
9
9
|
|
10
|
-
To make a basic connection to Neo4j to execute Cypher queries, first choose an adaptor. Adaptors for HTTP
|
10
|
+
To make a basic connection to Neo4j to execute Cypher queries, first choose an adaptor. Adaptors for HTTP and Embedded mode (jRuby only) are available (support for Neo4j 3.0's [Bolt protocol](http://alpha.neohq.net/docs/server-manual/bolt.html) is planned). You can create an adaptor like:
|
11
11
|
|
12
12
|
http_adaptor = Neo4j::Core::CypherSession::Adaptors::HTTP.new('http://neo4j:pass@localhost:7474')
|
13
13
|
|
14
14
|
# or
|
15
15
|
|
16
|
-
bolt_adaptor = Neo4j::Core::CypherSession::Adaptors::Bolt.new('http://neo4j:pass@localhost:7474', timeout: 10)
|
17
|
-
|
18
|
-
# or
|
19
|
-
|
20
16
|
neo4j_adaptor = Neo4j::Core::CypherSession::Adaptors::Embedded.new('/file/path/to/graph.db')
|
21
17
|
|
22
18
|
Once you have an adaptor you can create a session like so:
|
@@ -60,6 +56,7 @@ When doing batched queries, there is also a shortcut for getting a new `Neo4j::C
|
|
60
56
|
### 3.0+ Documentation:
|
61
57
|
|
62
58
|
* http://neo4jrb.readthedocs.org/en/stable/
|
59
|
+
* https://github.com/neo4jrb/neo4j-core/wiki
|
63
60
|
|
64
61
|
### 2.x Documentation
|
65
62
|
|
data/lib/neo4j-core.rb
CHANGED
data/lib/neo4j-core/version.rb
CHANGED
@@ -185,7 +185,7 @@ module Neo4j
|
|
185
185
|
@socket.send(message, 0)
|
186
186
|
end
|
187
187
|
|
188
|
-
def recvmsg(size, timeout =
|
188
|
+
def recvmsg(size, timeout = 10)
|
189
189
|
Timeout.timeout(timeout) do
|
190
190
|
@socket.recv(size).tap do |result|
|
191
191
|
log_message :S, result
|
@@ -228,10 +228,6 @@ module Neo4j
|
|
228
228
|
[].tap { |r| while arg = unpacker.unpack_value!; r << arg; end }
|
229
229
|
end
|
230
230
|
|
231
|
-
def timeout_option
|
232
|
-
@options.fetch(:timeout) { 10 }
|
233
|
-
end
|
234
|
-
|
235
231
|
# Represents messages sent to or received from the server
|
236
232
|
class Message
|
237
233
|
TYPE_CODES = {
|
@@ -0,0 +1,14 @@
|
|
1
|
+
namespace :neo4j do
|
2
|
+
%i[install start start_no_wait console shell config stop info indexes constraints
|
3
|
+
restart reset_yes_i_am_sure change_password enable_auth disable_auth].each do |task_name|
|
4
|
+
task task_name do |_, _args|
|
5
|
+
puts <<-INFO
|
6
|
+
The `neo4j-rake_tasks` gem is no longer a dependency of the `neo4j-core` gem.
|
7
|
+
If you would like to use the rake tasks, you will need to explicitly include the `neo4j-rake_tasks` gem in your project.
|
8
|
+
Please note that the `neo4j-rake_tasks` gem is only for development and test environments (NOT for production).
|
9
|
+
Be sure to require the `neo4j-rake_tasks` gem AFTER the `neo4j-core` and `neo4j` gems.
|
10
|
+
For more details see the Neo4j.rb documentation
|
11
|
+
INFO
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/neo4j-core.gemspec
CHANGED
@@ -32,11 +32,11 @@ Neo4j-core provides classes and methods to work with the graph database Neo4j.
|
|
32
32
|
s.add_dependency('activesupport', '>= 4.0')
|
33
33
|
s.add_dependency('multi_json')
|
34
34
|
s.add_dependency('faraday_middleware-multi_json')
|
35
|
-
s.add_dependency('neo4j-rake_tasks', '>= 0.3.0')
|
36
35
|
|
37
36
|
s.add_development_dependency('pry')
|
38
37
|
s.add_development_dependency('yard')
|
39
38
|
s.add_development_dependency('simplecov')
|
39
|
+
s.add_development_dependency('neo4j-rake_tasks', '>= 0.3.0')
|
40
40
|
|
41
41
|
if RUBY_PLATFORM == 'java'
|
42
42
|
s.add_dependency('neo4j-community', '>= 2.1.1')
|
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:
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge, Chris Grigg, Brian Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -123,21 +123,21 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: pry
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0
|
132
|
-
type: :
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0
|
138
|
+
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: yard
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -165,19 +165,19 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: neo4j-rake_tasks
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 0.3.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 0.3.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rubocop
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -286,6 +286,7 @@ files:
|
|
286
286
|
- lib/neo4j/core/label.rb
|
287
287
|
- lib/neo4j/core/node.rb
|
288
288
|
- lib/neo4j/core/path.rb
|
289
|
+
- lib/neo4j/core/rake_tasks_deprecation.rake
|
289
290
|
- lib/neo4j/core/relationship.rb
|
290
291
|
- lib/neo4j/core/wrappable.rb
|
291
292
|
- lib/neo4j/entity_equality.rb
|