neo4j-core 7.2.3 → 7.2.4

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: 613c0c5ea558e149bea6ed9adfa09c8ed7550b71
4
- data.tar.gz: 1b2d9ca0a7225dc27b8e2d3b078bf0c56812bc89
3
+ metadata.gz: 9b83504d86548fea746417d86450207f9aa601c8
4
+ data.tar.gz: 172d904140a15eb5f54cc7870411ca16acb550e5
5
5
  SHA512:
6
- metadata.gz: 37a99b591cff8dbd264136177d0d7d067a81254b9bcf2804790d898d28f5e2cc089cf1a9490974836a3810b90e8fc3566e01965274ccad627b3639abdd987aa6
7
- data.tar.gz: 45966d65a821151c7c1cab68be9ad039087be141a0609bb2e293c394223e26fbd84db11c7ce5b997f622db9d5422408da12b26e8b25b0159c701873b89e534d7
6
+ metadata.gz: a4c59fc37164dc616338f7c88c843a9a2d4f77b811efcec57496ba55210fd610b1bd4905766f1c4a1a82fa4f7da4b0799498124d8bee20579537dcd6debff838
7
+ data.tar.gz: 7f79c48c199d4a2688ea3e4f567c6320df02bdbcffbac270e5c426197f4b0b4ff4fb04f7ba4037f7d62a8af8a10453b73b9cb9b8f7bfb2ea23b630bf4b8392b5
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 = '7.2.3'
3
+ VERSION = '7.2.4'
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: 7.2.3
4
+ version: 7.2.4
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-08-22 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
@@ -325,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  version: '0'
326
326
  requirements: []
327
327
  rubyforge_project:
328
- rubygems_version: 2.6.12
328
+ rubygems_version: 2.6.13
329
329
  signing_key:
330
330
  specification_version: 4
331
331
  summary: A basic library to work with the graph database Neo4j.