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: 8dfc028b9d5569edcb8b490d9f748211ab389b0cca5ff41dd6adb087bf5b9cc2
4
- data.tar.gz: c4674df8e08709b345664788bcbaf7c5c580fe2dadc7ae3c6287548f0a2cde3d
3
+ metadata.gz: e81fce8c0fbbb53c241d69d389d080b937a21196083c84d8af4aa08d063d4def
4
+ data.tar.gz: 98ccbc63152681cba9b0abfacf8f4411a407f35dbdae043090aec840b0d508e5
5
5
  SHA512:
6
- metadata.gz: e624744ffe0cde45b2bc18f043ecf2e196ee9ec692c13f543f4bc512d17d7af4ac2be239b4e3c885adddeed7af545ff560f6a41f325a609dd44dcf17058c5676
7
- data.tar.gz: aa2adb68ead5f0cde84d364dd0e25084921651025b7b77d663b8b86460be295631dfe67f51334553e2df6c8ab0e16e6b132f2eb70dad278cccc77c4421b5bcd6
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
- method = :without_encryption
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
@@ -23,7 +23,7 @@ module Neo4j
23
23
  end
24
24
 
25
25
  def arguments
26
- [code, message, self, suppressed.map(&method(:mapped_exception))]
26
+ [code, message, suppressed.map(&method(:mapped_exception))]
27
27
  end
28
28
 
29
29
  private
@@ -4,12 +4,11 @@ module Neo4j
4
4
  module Driver
5
5
  module Exceptions
6
6
  class Neo4jException < RuntimeError
7
- attr_reader :code, :cause, :suppressed
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '1.7.1'
5
+ VERSION = '1.7.3'
6
6
  end
7
7
  end
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.1
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-09-08 00:00:00.000000000 Z
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