neo4j-java-driver 1.7.1-java → 1.7.3-java
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e81fce8c0fbbb53c241d69d389d080b937a21196083c84d8af4aa08d063d4def
|
4
|
+
data.tar.gz: 98ccbc63152681cba9b0abfacf8f4411a407f35dbdae043090aec840b0d508e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a96853c233c87cb214a655f26ef1eea9207585b4a3a3836719fd5e033572753db5f89df6f69f4396b46c9f543ac9fce572f887c194008bb0b9299dedd2550c2c
|
7
|
+
data.tar.gz: dc69debcd6fdfcd018c367f0b72da7c97d0a04a7685243f20b50539cac0e18edc188bf27056cb96fd33968576dddf87e6857e7940bbdbb179fbe3366b45e723a
|
@@ -17,10 +17,8 @@ module Neo4j
|
|
17
17
|
unit = nil
|
18
18
|
case key.to_s
|
19
19
|
when 'encryption'
|
20
|
-
unless value
|
21
|
-
|
22
|
-
value = nil
|
23
|
-
end
|
20
|
+
method = :without_encryption unless value
|
21
|
+
value = nil
|
24
22
|
when 'timeout'
|
25
23
|
value = java.time.Duration.ofMillis(Driver::Internal::DurationNormalizer.milliseconds(value))
|
26
24
|
when /time(out)?$/
|
@@ -21,12 +21,18 @@ module Neo4j
|
|
21
21
|
def reverse_check
|
22
22
|
yield
|
23
23
|
rescue Neo4j::Driver::Exceptions::ServiceUnavailableException => e
|
24
|
-
raise(e.cause || org.neo4j.driver.v1.exceptions.ServiceUnavailableException.new(e.message))
|
24
|
+
raise(throwable(e.cause) || org.neo4j.driver.v1.exceptions.ServiceUnavailableException.new(e.message))
|
25
25
|
rescue Neo4j::Driver::Exceptions::Neo4jException,
|
26
26
|
Neo4j::Driver::Exceptions::NoSuchRecordException,
|
27
27
|
Neo4j::Driver::Exceptions::UntrustedServerException,
|
28
28
|
Neo4j::Driver::Exceptions::IllegalStateException => e
|
29
|
-
raise(e.cause || e)
|
29
|
+
raise(throwable(e.cause) || e)
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def throwable(e)
|
35
|
+
e if e.is_a? Java::JavaLang::Throwable
|
30
36
|
end
|
31
37
|
end
|
32
38
|
end
|
@@ -4,12 +4,11 @@ module Neo4j
|
|
4
4
|
module Driver
|
5
5
|
module Exceptions
|
6
6
|
class Neo4jException < RuntimeError
|
7
|
-
attr_reader :code, :
|
7
|
+
attr_reader :code, :suppressed
|
8
8
|
|
9
9
|
def initialize(*args)
|
10
10
|
@code = args.shift if args.count > 1
|
11
11
|
message = args.shift
|
12
|
-
@cause = args.shift
|
13
12
|
@suppressed = args.shift
|
14
13
|
super(message)
|
15
14
|
end
|
data/lib/neo4j/driver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-java-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|