neo4j-ruby-driver 4.4.0.alpha.1 → 4.4.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/loader.rb +3 -2
- data/ruby/neo4j/driver/config.rb +2 -2
- data/ruby/neo4j/driver/internal/messaging/abstract_message_writer.rb +2 -2
- data/ruby/neo4j/driver/internal/messaging/v3/message_writer_v3.rb +11 -16
- data/ruby/neo4j/driver/internal/messaging/v4/message_writer_v4.rb +11 -16
- data/ruby/neo4j/driver/internal/messaging/v41/bolt_protocol_v41.rb +1 -1
- data/ruby/neo4j/driver/internal/messaging/v43/message_writer_v43.rb +12 -17
- data/ruby/neo4j/driver/internal/messaging/v44/message_writer_v44.rb +0 -4
- data/{lib → ruby}/neo4j/driver/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 698039b3b9cd2cf99a79e5a96f23ad4be85aabe2dbf85274b01ec8bf05301658
|
4
|
+
data.tar.gz: cf29ed98589d4e6aac9469d67d3e069696091612d9a0fd8eef2e3993f2ef9a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f2beecb1b73d3394f3ea6259c4664b7aa0400472edba1aafdc02a0b5932cd90e1e5ff2bf8319e6931c341b9e74a0037d4727ceffc4e29138f188fa373aee4b0
|
7
|
+
data.tar.gz: 673f97b1c0eed87beea9f0c1538eb96fe34ff92fdd9b49ef82c9dc9e54b49b0197c98e578ea399023b3b1579774e474d3019527c67ed7a62b5251fdeff078f23
|
data/lib/loader.rb
CHANGED
@@ -7,12 +7,13 @@ class Loader
|
|
7
7
|
loader = Zeitwerk::Loader.new
|
8
8
|
loader.tag = 'neo4j-ruby-driver'
|
9
9
|
loader.push_dir(File.expand_path(__dir__))
|
10
|
-
|
10
|
+
driver_specific_dir = File.dirname(File.dirname(caller_locations(1..1).first.path))
|
11
|
+
loader.push_dir(driver_specific_dir)
|
11
12
|
yield loader if block_given?
|
12
13
|
loader.ignore(File.expand_path('neo4j-*-driver_jars.rb', __dir__))
|
13
14
|
loader.ignore(File.expand_path('neo4j_ruby_driver.rb', __dir__))
|
14
15
|
loader.ignore(File.expand_path('org', __dir__))
|
15
|
-
loader.inflector = Zeitwerk::GemInflector.new(File.expand_path('neo4j/driver',
|
16
|
+
loader.inflector = Zeitwerk::GemInflector.new(File.expand_path('neo4j/driver', driver_specific_dir))
|
16
17
|
loader.setup
|
17
18
|
loader.eager_load
|
18
19
|
end
|
data/ruby/neo4j/driver/config.rb
CHANGED
@@ -38,8 +38,8 @@ module Neo4j
|
|
38
38
|
|
39
39
|
# Console.logger = ::Logger.new(STDOUT, level: :debug)
|
40
40
|
DEFAULTS = {
|
41
|
-
|
42
|
-
logger: ::Logger.new(STDOUT, level: :debug),
|
41
|
+
logger: ::Logger.new(nil),
|
42
|
+
# logger: ::Logger.new(STDOUT, level: :debug),
|
43
43
|
# logger: Console.logger,
|
44
44
|
leaked_sessions_logging: false,
|
45
45
|
max_connection_pool_size: Internal::Async::Pool::PoolSettings::DEFAULT_MAX_CONNECTION_POOL_SIZE,
|
@@ -2,9 +2,9 @@ module Neo4j::Driver
|
|
2
2
|
module Internal
|
3
3
|
module Messaging
|
4
4
|
class AbstractMessageWriter
|
5
|
-
def initialize(packer
|
5
|
+
def initialize(packer)
|
6
6
|
@packer = Internal::Validator.require_non_nil!(packer)
|
7
|
-
@encoders_by_message_signature = Internal::Validator.require_non_nil!(
|
7
|
+
@encoders_by_message_signature = Internal::Validator.require_non_nil!(build_encoders)
|
8
8
|
end
|
9
9
|
|
10
10
|
def write(msg)
|
@@ -3,27 +3,22 @@ module Neo4j::Driver
|
|
3
3
|
module Messaging
|
4
4
|
module V3
|
5
5
|
class MessageWriterV3 < AbstractMessageWriter
|
6
|
-
def initialize(output)
|
7
|
-
super(Common::CommonValuePacker.new(output), build_encoders)
|
8
|
-
end
|
9
|
-
|
10
6
|
private
|
11
7
|
|
12
8
|
def build_encoders
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
result.put(Request::RunWithMetadataMessage::SIGNATURE, Encode::RunWithMetadataMessageEncoder.new)
|
18
|
-
result.put(Request::DiscardAllMessage::SIGNATURE, Encode::DiscardAllMessageEncoder.new)
|
19
|
-
result.put(Request::PullAllMessage::SIGNATURE, Encode::PullAllMessageEncoder.new)
|
9
|
+
{
|
10
|
+
Request::HelloMessage::SIGNATURE => Encode::HelloMessageEncoder.new,
|
11
|
+
Request::GoodbyeMessage::SIGNATURE => Encode::GoodbyeMessageEncoder.new,
|
20
12
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
result.put(Request::ResetMessage::SIGNATURE, Encode::ResetMessageEncoder.new)
|
13
|
+
Request::RunWithMetadataMessage::SIGNATURE => Encode::RunWithMetadataMessageEncoder.new,
|
14
|
+
Request::DiscardAllMessage::SIGNATURE => Encode::DiscardAllMessageEncoder.new,
|
15
|
+
Request::PullAllMessage::SIGNATURE => Encode::PullAllMessageEncoder.new,
|
25
16
|
|
26
|
-
|
17
|
+
Request::BeginMessage::SIGNATURE => Encode::BeginMessageEncoder.new,
|
18
|
+
Request::CommitMessage::SIGNATURE => Encode::CommitMessageEncoder.new,
|
19
|
+
Request::RollbackMessage::SIGNATURE => Encode::RollbackMessageEncoder.new,
|
20
|
+
Request::ResetMessage::SIGNATURE => Encode::ResetMessageEncoder.new,
|
21
|
+
}
|
27
22
|
end
|
28
23
|
end
|
29
24
|
end
|
@@ -3,28 +3,23 @@ module Neo4j::Driver
|
|
3
3
|
module Messaging
|
4
4
|
module V4
|
5
5
|
class MessageWriterV4 < AbstractMessageWriter
|
6
|
-
def initialize(output)
|
7
|
-
super(Common::CommonValuePacker.new(output), build_encoders)
|
8
|
-
end
|
9
|
-
|
10
6
|
private
|
11
7
|
|
12
8
|
def build_encoders
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
result.put(Request::DiscardAllMessage::SIGNATURE, Encode::DiscardAllMessageEncoder.new) # new
|
19
|
-
result.put(Request::PullMessage::SIGNATURE, Encode::PullMessageEncoder.new) # new
|
9
|
+
{
|
10
|
+
Request::HelloMessage::SIGNATURE => Encode::HelloMessageEncoder.new,
|
11
|
+
Request::GoodbyeMessage::SIGNATURE => Encode::GoodbyeMessageEncoder.new,
|
12
|
+
Request::RunWithMetadataMessage::SIGNATURE => Encode::RunWithMetadataMessageEncoder.new,
|
20
13
|
|
21
|
-
|
22
|
-
|
23
|
-
result.put(Request::RollbackMessage::SIGNATURE, Encode::RollbackMessageEncoder.new)
|
14
|
+
Request::DiscardAllMessage::SIGNATURE => Encode::DiscardAllMessageEncoder.new, # new
|
15
|
+
Request::PullMessage::SIGNATURE => Encode::PullMessageEncoder.new, # new
|
24
16
|
|
25
|
-
|
17
|
+
Request::BeginMessage::SIGNATURE => Encode::BeginMessageEncoder.new,
|
18
|
+
Request::CommitMessage::SIGNATURE => Encode::CommitMessageEncoder.new,
|
19
|
+
Request::RollbackMessage::SIGNATURE => Encode::RollbackMessageEncoder.new,
|
26
20
|
|
27
|
-
|
21
|
+
Request::ResetMessage::SIGNATURE => Encode::ResetMessageEncoder.new,
|
22
|
+
}
|
28
23
|
end
|
29
24
|
end
|
30
25
|
end
|
@@ -8,29 +8,24 @@ module Neo4j::Driver
|
|
8
8
|
|
9
9
|
# new messages such as ROUTE
|
10
10
|
class MessageWriterV43 < AbstractMessageWriter
|
11
|
-
def initialize(output)
|
12
|
-
super(Common::CommonValuePacker.new(output), build_encoders)
|
13
|
-
end
|
14
|
-
|
15
11
|
private
|
16
12
|
|
17
13
|
def build_encoders
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
result.put(Request::DiscardMessage::SIGNATURE, Encode::DiscardMessageEncoder.new)
|
25
|
-
result.put(Request::PullMessage::SIGNATURE, Encode::PullMessageEncoder.new)
|
14
|
+
{
|
15
|
+
Request::HelloMessage::SIGNATURE => Encode::HelloMessageEncoder.new,
|
16
|
+
Request::GoodbyeMessage::SIGNATURE => Encode::GoodbyeMessageEncoder.new,
|
17
|
+
Request::RunWithMetadataMessage::SIGNATURE => Encode::RunWithMetadataMessageEncoder.new,
|
18
|
+
Request::RouteMessage::SIGNATURE => Encode::RouteMessageEncoder.new, # new
|
26
19
|
|
27
|
-
|
28
|
-
|
29
|
-
result.put(Request::RollbackMessage::SIGNATURE, Encode::RollbackMessageEncoder.new)
|
20
|
+
Request::DiscardMessage::SIGNATURE => Encode::DiscardMessageEncoder.new,
|
21
|
+
Request::PullMessage::SIGNATURE => Encode::PullMessageEncoder.new,
|
30
22
|
|
31
|
-
|
23
|
+
Request::BeginMessage::SIGNATURE => Encode::BeginMessageEncoder.new,
|
24
|
+
Request::CommitMessage::SIGNATURE => Encode::CommitMessageEncoder.new,
|
25
|
+
Request::RollbackMessage::SIGNATURE => Encode::RollbackMessageEncoder.new,
|
32
26
|
|
33
|
-
|
27
|
+
Request::ResetMessage::SIGNATURE => Encode::ResetMessageEncoder.new,
|
28
|
+
}
|
34
29
|
end
|
35
30
|
end
|
36
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-ruby-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.0.alpha.
|
4
|
+
version: 4.4.0.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -260,7 +260,6 @@ files:
|
|
260
260
|
- lib/neo4j/driver/types/offset_time.rb
|
261
261
|
- lib/neo4j/driver/types/point.rb
|
262
262
|
- lib/neo4j/driver/types/time.rb
|
263
|
-
- lib/neo4j/driver/version.rb
|
264
263
|
- lib/neo4j_ruby_driver.rb
|
265
264
|
- ruby/neo4j/driver.rb
|
266
265
|
- ruby/neo4j/driver/access_mode.rb
|
@@ -489,6 +488,7 @@ files:
|
|
489
488
|
- ruby/neo4j/driver/session_config.rb
|
490
489
|
- ruby/neo4j/driver/transaction_config.rb
|
491
490
|
- ruby/neo4j/driver/values.rb
|
491
|
+
- ruby/neo4j/driver/version.rb
|
492
492
|
homepage: https://github.com/neo4jrb/neo4j-ruby-driver
|
493
493
|
licenses:
|
494
494
|
- MIT
|