neo4j-core 8.1.2 → 8.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j/core/cypher_session/adaptors/http.rb +9 -8
- data/neo4j-core.gemspec +5 -5
- 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: 7bff1b5e133b327cc05c3d522dfbfffe2811a724
|
4
|
+
data.tar.gz: 71c01116ac68358fc9f9c635723c1967d8df865c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c04b43cb750da40057cada8e07d845ac5e73863bd95b06931db3e84c70bbf58a82e77cfcb9898a007a0762439ffbd10226cd63ab2794706f07cb640344b7148a
|
7
|
+
data.tar.gz: 292407a0e8c103ef5a70f4b70a221f783e0ac1a6612a7fb7faac8697aac2c60b7aea05572d73a9b8ca82f171d4100436e5141628f37d8c6ccd71763e2c0be055
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ To make a basic connection to Neo4j to execute Cypher queries, first choose an a
|
|
13
13
|
|
14
14
|
# or
|
15
15
|
|
16
|
-
bolt_adaptor = Neo4j::Core::CypherSession::Adaptors::Bolt.new('
|
16
|
+
bolt_adaptor = Neo4j::Core::CypherSession::Adaptors::Bolt.new('bolt://neo4j:pass@localhost:7687', timeout: 10)
|
17
17
|
|
18
18
|
# or
|
19
19
|
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -49,7 +49,7 @@ module Neo4j
|
|
49
49
|
def indexes(_session)
|
50
50
|
response = @requestor.get('db/data/schema/index')
|
51
51
|
|
52
|
-
check_for_schema_response_error!(response
|
52
|
+
check_for_schema_response_error!(response)
|
53
53
|
list = response.body || []
|
54
54
|
|
55
55
|
list.map do |item|
|
@@ -64,7 +64,7 @@ module Neo4j
|
|
64
64
|
def constraints(_session, _label = nil, _options = {})
|
65
65
|
response = @requestor.get('db/data/schema/constraint')
|
66
66
|
|
67
|
-
check_for_schema_response_error!(response
|
67
|
+
check_for_schema_response_error!(response)
|
68
68
|
list = response.body || []
|
69
69
|
list.map do |item|
|
70
70
|
{type: CONSTRAINT_TYPES[item[:type]],
|
@@ -73,12 +73,13 @@ module Neo4j
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
def check_for_schema_response_error!(
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
def check_for_schema_response_error!(response)
|
77
|
+
if response.body.is_a?(Hash) && response.body.key?(:errors)
|
78
|
+
message = response.body[:errors].map { |error| "#{error[:code]}: #{error[:message]}" }.join("\n ")
|
79
|
+
fail CypherSession::ConnectionFailedError, "Connection failure: \n #{message}"
|
80
|
+
elsif !response.success?
|
81
|
+
fail CypherSession::ConnectionFailedError, "Connection failure: \n status: #{response.status} \n #{response.body}"
|
82
|
+
end
|
82
83
|
end
|
83
84
|
|
84
85
|
def self.transaction_class
|
data/neo4j-core.gemspec
CHANGED
@@ -23,11 +23,11 @@ Neo4j-core provides classes and methods to work with the graph database Neo4j.
|
|
23
23
|
s.has_rdoc = true
|
24
24
|
s.extra_rdoc_files = %w[README.md]
|
25
25
|
s.rdoc_options = ['--quiet', '--title', 'Neo4j::Core', '--line-numbers', '--main', 'README.rdoc', '--inline-source']
|
26
|
-
s.metadata
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
s.metadata = {
|
27
|
+
'homepage_uri' => 'http://neo4jrb.io/',
|
28
|
+
'changelog_uri' => 'https://github.com/neo4jrb/neo4j-core/blob/master/CHANGELOG.md',
|
29
|
+
'source_code_uri' => 'https://github.com/neo4jrb/neo4j-core/',
|
30
|
+
'bug_tracker_uri' => 'https://github.com/neo4jrb/neo4j-core/issues'
|
31
31
|
}
|
32
32
|
|
33
33
|
|
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.1.
|
4
|
+
version: 8.1.3
|
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: 2018-
|
11
|
+
date: 2018-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|