neo4j-java-driver 1.7.1-java → 4.2.0.beta.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jruby/neo4j/driver.rb +15 -13
- data/jruby/neo4j/driver/ext/bookmark.rb +22 -0
- data/jruby/neo4j/driver/ext/config_converter.rb +6 -6
- data/jruby/neo4j/driver/ext/exception_checkable.rb +11 -5
- data/jruby/neo4j/driver/ext/exception_mapper.rb +13 -10
- data/jruby/neo4j/driver/ext/graph_database.rb +3 -3
- data/jruby/neo4j/driver/ext/internal_driver.rb +9 -3
- data/jruby/neo4j/driver/ext/{internal_statement_result.rb → internal_result.rb} +2 -2
- data/jruby/neo4j/driver/ext/{network_session.rb → internal_session.rb} +2 -2
- data/jruby/neo4j/driver/ext/{explicit_transaction.rb → internal_transaction.rb} +9 -1
- data/jruby/neo4j/driver/ext/logger.rb +2 -2
- data/jruby/neo4j/driver/ext/map_converter.rb +1 -1
- data/jruby/neo4j/driver/ext/neo_converter.rb +6 -4
- data/jruby/neo4j/driver/ext/{statement.rb → query.rb} +1 -1
- data/jruby/neo4j/driver/ext/run_override.rb +1 -1
- data/lib/loader.rb +1 -1
- data/lib/neo4j/driver/auto_closable.rb +2 -2
- data/lib/neo4j/driver/exceptions/neo4j_exception.rb +1 -2
- data/lib/neo4j/driver/exceptions/result_consumed_exception.rb +10 -0
- data/lib/neo4j/driver/internal/duration_normalizer.rb +2 -1
- data/lib/neo4j/driver/version.rb +1 -1
- metadata +11 -10
- data/lib/neo4j/driver/internal/ruby_signature.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bba4b1273d01bb112568454ad5fe1bc62d5e5b36a066a4ec59dd4a9560df386
|
4
|
+
data.tar.gz: ec731dc38bf1ba234535b74923d259137a8f91ee7124b4d2a04f5544fe8c534e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ff03edd2e5b8bd3b0128033f6549e25f0cb0b52e278788e0f4d0d7362e59407a1b7d190f2440d659f364a0044fc20a600d5fde0785e634539a9964834c0b1b
|
7
|
+
data.tar.gz: 3ca09e3f3c35b13bd32a231dfd87718774831ea25bd5a075afd8270520892c492248e3f622a5a7c0fa6234a80c44045a953e731c3a7fabb161e503af20f495d7
|
data/jruby/neo4j/driver.rb
CHANGED
@@ -7,18 +7,18 @@ require 'neo4j-java-driver_jars'
|
|
7
7
|
|
8
8
|
module Neo4j
|
9
9
|
module Driver
|
10
|
-
include_package 'org.neo4j.driver
|
10
|
+
include_package 'org.neo4j.driver'
|
11
11
|
|
12
12
|
Record = Java::OrgNeo4jDriverInternal::InternalRecord
|
13
|
-
|
14
|
-
Transaction = Java::OrgNeo4jDriverInternal::
|
13
|
+
Result = Java::OrgNeo4jDriverInternal::InternalResult
|
14
|
+
Transaction = Java::OrgNeo4jDriverInternal::InternalTransaction
|
15
15
|
|
16
16
|
module Net
|
17
|
-
include_package 'org.neo4j.driver.
|
17
|
+
include_package 'org.neo4j.driver.net'
|
18
18
|
end
|
19
19
|
|
20
20
|
module Summary
|
21
|
-
include_package 'org.neo4j.driver.
|
21
|
+
include_package 'org.neo4j.driver.summary'
|
22
22
|
end
|
23
23
|
|
24
24
|
module Types
|
@@ -28,7 +28,7 @@ module Neo4j
|
|
28
28
|
Relationship = Java::OrgNeo4jDriverInternal::InternalRelationship
|
29
29
|
end
|
30
30
|
|
31
|
-
# Workaround for missing zeitwerk support
|
31
|
+
# Workaround for missing zeitwerk support as of jruby-9.2.13.0
|
32
32
|
module Ext
|
33
33
|
module Internal
|
34
34
|
module Summary
|
@@ -41,6 +41,11 @@ end
|
|
41
41
|
|
42
42
|
Loader.load
|
43
43
|
|
44
|
+
Java::OrgNeo4jDriver::AuthTokens.singleton_class.prepend Neo4j::Driver::Ext::AuthTokens
|
45
|
+
Java::OrgNeo4jDriver::Bookmark.singleton_class.prepend Neo4j::Driver::Ext::Bookmark::ClassMethods
|
46
|
+
Java::OrgNeo4jDriver::GraphDatabase.singleton_class.prepend Neo4j::Driver::Ext::GraphDatabase
|
47
|
+
Java::OrgNeo4jDriver::Query.prepend Neo4j::Driver::Ext::Query
|
48
|
+
Java::OrgNeo4jDriverInternal::InternalBookmark.include Neo4j::Driver::Ext::Bookmark::InstanceMethods
|
44
49
|
Java::OrgNeo4jDriverInternal::InternalDriver.prepend Neo4j::Driver::Ext::InternalDriver
|
45
50
|
Java::OrgNeo4jDriverInternal::InternalEntity.include Neo4j::Driver::Ext::InternalEntity
|
46
51
|
Java::OrgNeo4jDriverInternal::InternalNode.prepend Neo4j::Driver::Ext::InternalNode
|
@@ -48,12 +53,9 @@ Java::OrgNeo4jDriverInternal::InternalPath.include Neo4j::Driver::Ext::StartEndN
|
|
48
53
|
Java::OrgNeo4jDriverInternal::InternalPath::SelfContainedSegment.include Neo4j::Driver::Ext::StartEndNaming
|
49
54
|
Java::OrgNeo4jDriverInternal::InternalRecord.prepend Neo4j::Driver::Ext::InternalRecord
|
50
55
|
Java::OrgNeo4jDriverInternal::InternalRelationship.prepend Neo4j::Driver::Ext::InternalRelationship
|
51
|
-
Java::OrgNeo4jDriverInternal::
|
52
|
-
Java::OrgNeo4jDriverInternal::
|
53
|
-
Java::OrgNeo4jDriverInternal::
|
56
|
+
Java::OrgNeo4jDriverInternal::InternalResult.prepend Neo4j::Driver::Ext::InternalResult
|
57
|
+
Java::OrgNeo4jDriverInternal::InternalSession.prepend Neo4j::Driver::Ext::InternalSession
|
58
|
+
Java::OrgNeo4jDriverInternal::InternalTransaction.prepend Neo4j::Driver::Ext::InternalTransaction
|
54
59
|
Java::OrgNeo4jDriverInternalSummary::InternalResultSummary.prepend Neo4j::Driver::Ext::Internal::Summary::InternalResultSummary
|
55
60
|
Java::OrgNeo4jDriverInternalValue::ValueAdapter.include Neo4j::Driver::Ext::RubyConverter
|
56
|
-
Java::
|
57
|
-
Java::OrgNeo4jDriverV1::GraphDatabase.singleton_class.prepend Neo4j::Driver::Ext::GraphDatabase
|
58
|
-
Java::OrgNeo4jDriverV1::Statement.prepend Neo4j::Driver::Ext::Statement
|
59
|
-
Java::OrgNeo4jDriverV1Exceptions::Neo4jException.include Neo4j::Driver::Ext::ExceptionMapper
|
61
|
+
Java::OrgNeo4jDriverExceptions::Neo4jException.include Neo4j::Driver::Ext::ExceptionMapper
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Neo4j
|
4
|
+
module Driver
|
5
|
+
module Ext
|
6
|
+
module Bookmark
|
7
|
+
module ClassMethods
|
8
|
+
def from(values)
|
9
|
+
super(java.util.HashSet.new(values))
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module InstanceMethods
|
14
|
+
extend ActiveSupport::Concern
|
15
|
+
included do
|
16
|
+
delegate :to_set, to: :values
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -8,8 +8,8 @@ module Neo4j
|
|
8
8
|
|
9
9
|
private
|
10
10
|
|
11
|
-
def to_java_config(builder_class, hash)
|
12
|
-
hash
|
11
|
+
def to_java_config(builder_class, **hash)
|
12
|
+
hash.reduce(builder_class.builder) { |object, key_value| object.send(*config_method(*key_value)) }.build
|
13
13
|
end
|
14
14
|
|
15
15
|
def config_method(key, value)
|
@@ -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)?$/
|
@@ -32,6 +30,8 @@ module Neo4j
|
|
32
30
|
when 'resolver'
|
33
31
|
proc = value
|
34
32
|
value = ->(address) { java.util.HashSet.new(proc.call(address)) }
|
33
|
+
when 'bookmarks'
|
34
|
+
return [method, *value]
|
35
35
|
else
|
36
36
|
value = to_neo(value, skip_unknown: true)
|
37
37
|
end
|
@@ -6,11 +6,11 @@ module Neo4j
|
|
6
6
|
module ExceptionCheckable
|
7
7
|
def check
|
8
8
|
yield
|
9
|
-
rescue Java::
|
9
|
+
rescue Java::OrgNeo4jDriverExceptions::Neo4jException => e
|
10
10
|
e.reraise
|
11
|
-
rescue Java::
|
11
|
+
rescue Java::OrgNeo4jDriverExceptions::NoSuchRecordException => e
|
12
12
|
raise Neo4j::Driver::Exceptions::NoSuchRecordException, e.message
|
13
|
-
rescue Java::
|
13
|
+
rescue Java::OrgNeo4jDriverExceptions::UntrustedServerException => e
|
14
14
|
raise Neo4j::Driver::Exceptions::UntrustedServerException, e.message
|
15
15
|
rescue Java::JavaLang::IllegalStateException => e
|
16
16
|
raise Neo4j::Driver::Exceptions::IllegalStateException, e.message
|
@@ -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 ||
|
24
|
+
raise(throwable(e.cause) || Java::OrgNeo4jDriverExceptions::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
|
@@ -1,14 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
java_import org.neo4j.driver.
|
4
|
-
java_import org.neo4j.driver.
|
5
|
-
java_import org.neo4j.driver.
|
6
|
-
java_import org.neo4j.driver.
|
7
|
-
java_import org.neo4j.driver.
|
8
|
-
java_import org.neo4j.driver.
|
9
|
-
java_import org.neo4j.driver.
|
10
|
-
java_import org.neo4j.driver.
|
11
|
-
java_import org.neo4j.driver.
|
3
|
+
java_import org.neo4j.driver.exceptions.AuthenticationException
|
4
|
+
java_import org.neo4j.driver.exceptions.ClientException
|
5
|
+
java_import org.neo4j.driver.exceptions.DatabaseException
|
6
|
+
java_import org.neo4j.driver.exceptions.ProtocolException
|
7
|
+
java_import org.neo4j.driver.exceptions.ResultConsumedException
|
8
|
+
java_import org.neo4j.driver.exceptions.SecurityException
|
9
|
+
java_import org.neo4j.driver.exceptions.ServiceUnavailableException
|
10
|
+
java_import org.neo4j.driver.exceptions.SessionExpiredException
|
11
|
+
java_import org.neo4j.driver.exceptions.TransientException
|
12
|
+
java_import org.neo4j.driver.exceptions.UntrustedServerException
|
12
13
|
|
13
14
|
module Neo4j
|
14
15
|
module Driver
|
@@ -23,7 +24,7 @@ module Neo4j
|
|
23
24
|
end
|
24
25
|
|
25
26
|
def arguments
|
26
|
-
[code, message,
|
27
|
+
[code, message, suppressed.map(&method(:mapped_exception))]
|
27
28
|
end
|
28
29
|
|
29
30
|
private
|
@@ -32,6 +33,8 @@ module Neo4j
|
|
32
33
|
case exception
|
33
34
|
when AuthenticationException
|
34
35
|
Neo4j::Driver::Exceptions::AuthenticationException
|
36
|
+
when ResultConsumedException
|
37
|
+
Neo4j::Driver::Exceptions::ResultConsumedException
|
35
38
|
when ClientException
|
36
39
|
Neo4j::Driver::Exceptions::ClientException
|
37
40
|
when DatabaseException
|
@@ -10,14 +10,14 @@ module Neo4j
|
|
10
10
|
|
11
11
|
auto_closable :driver, :routing_driver
|
12
12
|
|
13
|
-
def driver(uri, auth_token = Neo4j::Driver::AuthTokens.none, config
|
13
|
+
def driver(uri, auth_token = Neo4j::Driver::AuthTokens.none, **config)
|
14
14
|
check do
|
15
|
-
java_method(:driver, [java.lang.String, org.neo4j.driver.
|
15
|
+
java_method(:driver, [java.lang.String, org.neo4j.driver.AuthToken, org.neo4j.driver.Config])
|
16
16
|
.call(uri.to_s, auth_token, to_java_config(Neo4j::Driver::Config, config))
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
def routing_driver(routing_uris, auth_token, config)
|
20
|
+
def routing_driver(routing_uris, auth_token, **config)
|
21
21
|
check do
|
22
22
|
super(routing_uris.map { |uri| java.net.URI.create(uri.to_s) }, auth_token,
|
23
23
|
to_java_config(Neo4j::Driver::Config, config))
|
@@ -5,12 +5,18 @@ module Neo4j
|
|
5
5
|
module Ext
|
6
6
|
module InternalDriver
|
7
7
|
extend AutoClosable
|
8
|
+
include ConfigConverter
|
9
|
+
include ExceptionCheckable
|
8
10
|
|
9
11
|
auto_closable :session
|
10
12
|
|
11
|
-
def session(
|
12
|
-
java_method(:session, [org.neo4j.driver.
|
13
|
-
.call(
|
13
|
+
def session(**session_config)
|
14
|
+
java_method(:session, [org.neo4j.driver.SessionConfig])
|
15
|
+
.call(to_java_config(Neo4j::Driver::SessionConfig, session_config))
|
16
|
+
end
|
17
|
+
|
18
|
+
def verify_connectivity
|
19
|
+
check { super }
|
14
20
|
end
|
15
21
|
end
|
16
22
|
end
|
@@ -3,12 +3,12 @@
|
|
3
3
|
module Neo4j
|
4
4
|
module Driver
|
5
5
|
module Ext
|
6
|
-
module
|
6
|
+
module InternalResult
|
7
7
|
include Enumerable
|
8
8
|
include ExceptionCheckable
|
9
9
|
include InternalKeys
|
10
10
|
|
11
|
-
%i[has_next? next single consume
|
11
|
+
%i[has_next? next single consume peek].each do |method|
|
12
12
|
define_method(method) do |*args, &block|
|
13
13
|
check { super(*args, &block) }
|
14
14
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Neo4j
|
4
4
|
module Driver
|
5
5
|
module Ext
|
6
|
-
module
|
6
|
+
module InternalSession
|
7
7
|
extend AutoClosable
|
8
8
|
include ConfigConverter
|
9
9
|
include ExceptionCheckable
|
@@ -26,7 +26,7 @@ module Neo4j
|
|
26
26
|
|
27
27
|
def run(statement, parameters = {}, config = {})
|
28
28
|
check do
|
29
|
-
java_method(:run, [org.neo4j.driver.
|
29
|
+
java_method(:run, [org.neo4j.driver.Query, org.neo4j.driver.TransactionConfig])
|
30
30
|
.call(to_statement(statement, parameters), to_java_config(Neo4j::Driver::TransactionConfig, config))
|
31
31
|
end
|
32
32
|
end
|
@@ -3,13 +3,21 @@
|
|
3
3
|
module Neo4j
|
4
4
|
module Driver
|
5
5
|
module Ext
|
6
|
-
module
|
6
|
+
module InternalTransaction
|
7
7
|
include ExceptionCheckable
|
8
8
|
include RunOverride
|
9
9
|
|
10
10
|
def run(statement, parameters = {})
|
11
11
|
check { super(to_statement(statement, parameters)) }
|
12
12
|
end
|
13
|
+
|
14
|
+
def commit
|
15
|
+
check { super }
|
16
|
+
end
|
17
|
+
|
18
|
+
# def rollback
|
19
|
+
# check { super }
|
20
|
+
# end
|
13
21
|
end
|
14
22
|
end
|
15
23
|
end
|
@@ -5,7 +5,7 @@ module Neo4j
|
|
5
5
|
module Ext
|
6
6
|
module MapConverter
|
7
7
|
def to_h
|
8
|
-
java_method(:asMap, [
|
8
|
+
java_method(:asMap, [java.util.function.Function]).call(&:itself).to_hash
|
9
9
|
.transform_values!(&:as_ruby_object).symbolize_keys!
|
10
10
|
end
|
11
11
|
end
|
@@ -16,14 +16,12 @@ module Neo4j
|
|
16
16
|
object.map(&method(:to_neo))
|
17
17
|
when Types::Bytes
|
18
18
|
object.to_java_bytes
|
19
|
-
when Date
|
20
|
-
Java::JavaTime::LocalDate.of(object.year, object.month, object.day)
|
21
19
|
when ActiveSupport::Duration
|
22
20
|
Java::OrgNeo4jDriverInternal::InternalIsoDuration.new(
|
23
21
|
*Driver::Internal::DurationNormalizer.normalize(object)
|
24
22
|
)
|
25
23
|
when Types::Point
|
26
|
-
Java::
|
24
|
+
Java::OrgNeo4jDriver::Values.point(object.srid, *object.coordinates)
|
27
25
|
when Types::OffsetTime
|
28
26
|
Java::JavaTime::OffsetTime.of(object.hour, object.min, object.sec,
|
29
27
|
object.nsec, Java::JavaTime::ZoneOffset.of_total_seconds(object.utc_offset))
|
@@ -34,8 +32,12 @@ module Neo4j
|
|
34
32
|
object.nsec)
|
35
33
|
when ActiveSupport::TimeWithZone
|
36
34
|
to_zoned_date_time(object, object.time_zone.tzinfo.identifier)
|
37
|
-
when Time
|
35
|
+
when Time, DateTime
|
38
36
|
to_zoned_date_time(object, object.formatted_offset)
|
37
|
+
when Date
|
38
|
+
Java::JavaTime::LocalDate.of(object.year, object.month, object.day)
|
39
|
+
when Symbol
|
40
|
+
object.to_s
|
39
41
|
when nil, true, false, Integer, Float, String
|
40
42
|
object
|
41
43
|
else
|
@@ -14,7 +14,7 @@ module Neo4j
|
|
14
14
|
|
15
15
|
def to_statement(text, parameters)
|
16
16
|
Neo4j::Driver::Internal::Validator.require_hash_parameters!(parameters)
|
17
|
-
Neo4j::Driver::
|
17
|
+
Neo4j::Driver::Query.new(text, to_neo(parameters || {}))
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
data/lib/loader.rb
CHANGED
@@ -8,7 +8,7 @@ class Loader
|
|
8
8
|
loader.tag = 'neo4j-ruby-driver'
|
9
9
|
loader.push_dir(File.expand_path(__dir__))
|
10
10
|
loader.push_dir(File.dirname(File.dirname(caller_locations(1..1).first.path)))
|
11
|
-
loader.ignore(File.expand_path('neo4j
|
11
|
+
loader.ignore(File.expand_path('neo4j-*-driver_jars.rb', __dir__))
|
12
12
|
loader.ignore(File.expand_path('neo4j_ruby_driver.rb', __dir__))
|
13
13
|
loader.ignore(File.expand_path('org', __dir__))
|
14
14
|
loader.inflector = Zeitwerk::GemInflector.new(File.expand_path('neo4j/driver', __dir__))
|
@@ -12,8 +12,8 @@ module Neo4j
|
|
12
12
|
def with_block_definer(methods)
|
13
13
|
Module.new do
|
14
14
|
methods.each do |method|
|
15
|
-
define_method(method) do |*args, &block|
|
16
|
-
closable = super(*args)
|
15
|
+
define_method(method) do |*args, **kwargs, &block|
|
16
|
+
closable = super(*args, **kwargs)
|
17
17
|
if block
|
18
18
|
begin
|
19
19
|
block.arity.zero? ? closable.instance_eval(&block) : block.call(closable)
|
@@ -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
|
@@ -6,7 +6,8 @@ module Neo4j
|
|
6
6
|
module DurationNormalizer
|
7
7
|
class << self
|
8
8
|
def normalize(object)
|
9
|
-
parts = object.parts
|
9
|
+
parts = object.parts.to_h
|
10
|
+
parts.default = 0
|
10
11
|
months_i, months_remainder_seconds = divmod(months(parts), ActiveSupport::Duration::SECONDS_PER_MONTH)
|
11
12
|
months_days, months_remainder_seconds =
|
12
13
|
months_remainder_seconds.divmod(ActiveSupport::Duration::SECONDS_PER_DAY)
|
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:
|
4
|
+
version: 4.2.0.beta.0
|
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-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,10 +211,10 @@ files:
|
|
211
211
|
- README.md
|
212
212
|
- jruby/neo4j/driver.rb
|
213
213
|
- jruby/neo4j/driver/ext/auth_tokens.rb
|
214
|
+
- jruby/neo4j/driver/ext/bookmark.rb
|
214
215
|
- jruby/neo4j/driver/ext/config_converter.rb
|
215
216
|
- jruby/neo4j/driver/ext/exception_checkable.rb
|
216
217
|
- jruby/neo4j/driver/ext/exception_mapper.rb
|
217
|
-
- jruby/neo4j/driver/ext/explicit_transaction.rb
|
218
218
|
- jruby/neo4j/driver/ext/graph_database.rb
|
219
219
|
- jruby/neo4j/driver/ext/internal/summary/internal_result_summary.rb
|
220
220
|
- jruby/neo4j/driver/ext/internal_driver.rb
|
@@ -223,15 +223,16 @@ files:
|
|
223
223
|
- jruby/neo4j/driver/ext/internal_node.rb
|
224
224
|
- jruby/neo4j/driver/ext/internal_record.rb
|
225
225
|
- jruby/neo4j/driver/ext/internal_relationship.rb
|
226
|
-
- jruby/neo4j/driver/ext/
|
226
|
+
- jruby/neo4j/driver/ext/internal_result.rb
|
227
|
+
- jruby/neo4j/driver/ext/internal_session.rb
|
228
|
+
- jruby/neo4j/driver/ext/internal_transaction.rb
|
227
229
|
- jruby/neo4j/driver/ext/logger.rb
|
228
230
|
- jruby/neo4j/driver/ext/map_converter.rb
|
229
231
|
- jruby/neo4j/driver/ext/neo_converter.rb
|
230
|
-
- jruby/neo4j/driver/ext/
|
232
|
+
- jruby/neo4j/driver/ext/query.rb
|
231
233
|
- jruby/neo4j/driver/ext/ruby_converter.rb
|
232
234
|
- jruby/neo4j/driver/ext/run_override.rb
|
233
235
|
- jruby/neo4j/driver/ext/start_end_naming.rb
|
234
|
-
- jruby/neo4j/driver/ext/statement.rb
|
235
236
|
- lib/loader.rb
|
236
237
|
- lib/neo4j/driver/auto_closable.rb
|
237
238
|
- lib/neo4j/driver/exceptions/authentication_exception.rb
|
@@ -241,13 +242,13 @@ files:
|
|
241
242
|
- lib/neo4j/driver/exceptions/neo4j_exception.rb
|
242
243
|
- lib/neo4j/driver/exceptions/no_such_record_exception.rb
|
243
244
|
- lib/neo4j/driver/exceptions/protocol_exception.rb
|
245
|
+
- lib/neo4j/driver/exceptions/result_consumed_exception.rb
|
244
246
|
- lib/neo4j/driver/exceptions/security_exception.rb
|
245
247
|
- lib/neo4j/driver/exceptions/service_unavailable_exception.rb
|
246
248
|
- lib/neo4j/driver/exceptions/session_expired_exception.rb
|
247
249
|
- lib/neo4j/driver/exceptions/transient_exception.rb
|
248
250
|
- lib/neo4j/driver/exceptions/untrusted_server_exception.rb
|
249
251
|
- lib/neo4j/driver/internal/duration_normalizer.rb
|
250
|
-
- lib/neo4j/driver/internal/ruby_signature.rb
|
251
252
|
- lib/neo4j/driver/internal/validator.rb
|
252
253
|
- lib/neo4j/driver/types/bytes.rb
|
253
254
|
- lib/neo4j/driver/types/local_date_time.rb
|
@@ -276,11 +277,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
276
277
|
version: '2.5'
|
277
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
279
|
requirements:
|
279
|
-
- - "
|
280
|
+
- - ">"
|
280
281
|
- !ruby/object:Gem::Version
|
281
|
-
version:
|
282
|
+
version: 1.3.1
|
282
283
|
requirements:
|
283
|
-
- jar org.neo4j.driver, neo4j-java-driver,
|
284
|
+
- jar org.neo4j.driver, neo4j-java-driver, 4.2.0
|
284
285
|
rubygems_version: 3.0.6
|
285
286
|
signing_key:
|
286
287
|
specification_version: 4
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Neo4j
|
4
|
-
module Driver
|
5
|
-
module Internal
|
6
|
-
module RubySignature
|
7
|
-
class << self
|
8
|
-
def session(args)
|
9
|
-
[
|
10
|
-
args.empty? || args.first.is_a?(String) ? Neo4j::Driver::AccessMode::WRITE : args.shift, # mode
|
11
|
-
args # bookmarks
|
12
|
-
]
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|