neo4j-core 8.0.0 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 353e820d731c0fbdc4fb1eaeafef754f4cf3b6d3
4
- data.tar.gz: b4ca7af90f2b5764781269df022b7bbe7e5a81da
3
+ metadata.gz: fc3a6aa69ac1c273a9e39943fb7be6110449a09c
4
+ data.tar.gz: 24d87bca2e72ab8d64d306e3d2f9a5031d7a15e3
5
5
  SHA512:
6
- metadata.gz: af0232a7a5be3d06b709c061177d1176c8dc26269c7cc0ec44a73d890a25cd767129fe3d2edff64fc2a336eddf9d10c0cc1b9637f4f4c0703204d667e0d99108
7
- data.tar.gz: f90d6206356db193ad3df8d88c43c615dd2c3e190907e60b00f4de367bc9bac142debb05001f89b599ff149e5cda58d66fcf15acf566fb0d7a79d2b73a24cca0
6
+ metadata.gz: 9394b771b7f5e28b6dc8bee392b2073aa2952a80369fe76e4ad18e4f9fd4b279a1923c17b4c810ea3554f22504ca0c8bced0edf470440925ba3dc7a3e609ca2a
7
+ data.tar.gz: 9f2dd2c9e276a79d87c0f59a0d53f17d647d96928801aa1981d3b1985aee47a0f735730eb77ac8cd38688ed0d289fdc927b9f1d0f66b16af101b07e7d76338b7
data/README.md CHANGED
@@ -7,12 +7,16 @@ 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 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:
10
+ To make a basic connection to Neo4j to execute Cypher queries, first choose an adaptor. Adaptors for HTTP, Bolt, and Embedded mode (jRuby only) are available. 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
+
16
20
  neo4j_adaptor = Neo4j::Core::CypherSession::Adaptors::Embedded.new('/file/path/to/graph.db')
17
21
 
18
22
  Once you have an adaptor you can create a session like so:
@@ -56,7 +60,6 @@ When doing batched queries, there is also a shortcut for getting a new `Neo4j::C
56
60
  ### 3.0+ Documentation:
57
61
 
58
62
  * http://neo4jrb.readthedocs.org/en/stable/
59
- * https://github.com/neo4jrb/neo4j-core/wiki
60
63
 
61
64
  ### 2.x Documentation
62
65
 
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '8.0.0'
3
+ VERSION = '8.0.1'
4
4
  end
5
5
  end
@@ -185,7 +185,7 @@ module Neo4j
185
185
  @socket.send(message, 0)
186
186
  end
187
187
 
188
- def recvmsg(size, timeout = 10)
188
+ def recvmsg(size, timeout = timeout_option)
189
189
  Timeout.timeout(timeout) do
190
190
  @socket.recv(size).tap do |result|
191
191
  log_message :S, result
@@ -228,6 +228,10 @@ 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
+
231
235
  # Represents messages sent to or received from the server
232
236
  class Message
233
237
  TYPE_CODES = {
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: 8.0.0
4
+ version: 8.0.1
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-16 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday