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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da2476dd1add81741c8ddc587c2e7c44e9c8e362
4
- data.tar.gz: 5134196c724baeeda491791048c798b9ba6e1494
3
+ metadata.gz: 7bff1b5e133b327cc05c3d522dfbfffe2811a724
4
+ data.tar.gz: 71c01116ac68358fc9f9c635723c1967d8df865c
5
5
  SHA512:
6
- metadata.gz: 90134c87d0d6c0fdc09b5f69720e4b60a636ed73ac572fb9d412d404914264f03a017b70492a748c7c9cdefa883779e49fdc4db7ae2b1aa27a50601a80054325
7
- data.tar.gz: 61b9f6feac7bba4293251f6459d3bd2443872a4f3ca52748860064af80d27a43d164dd4d8acd3e62ba6e1a1612653c4e1fca963fe6e9a53f8ab55cba8493a5b0
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('http://neo4j:pass@localhost:7474', timeout: 10)
16
+ bolt_adaptor = Neo4j::Core::CypherSession::Adaptors::Bolt.new('bolt://neo4j:pass@localhost:7687', timeout: 10)
17
17
 
18
18
  # or
19
19
 
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '8.1.2'
3
+ VERSION = '8.1.3'
4
4
  end
5
5
  end
@@ -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.body)
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.body)
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!(response_body)
77
- return if !response_body.is_a?(Hash) || !response_body.key?(:errors)
78
-
79
- message = response_body[:errors].map { |error| "#{error[:code]}: #{error[:message]}" }.join("\n ")
80
-
81
- fail CypherSession::ConnectionFailedError, "Connection failure: \n #{message}"
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
@@ -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
- "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",
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.2
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-03-27 00:00:00.000000000 Z
11
+ date: 2018-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport