neo4j-ruby-driver 4.4.1 → 4.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neo4j-ruby-driver.rb +5 -0
- data/lib/neo4j-ruby-driver_loader.rb +31 -0
- data/lib/neo4j_ruby_driver.rb +2 -13
- data/ruby/neo4j/driver/internal/async/inbound/channel_error_handler.rb +2 -2
- data/ruby/neo4j/driver/internal/async/inbound/inbound_message_dispatcher.rb +1 -1
- data/ruby/neo4j/driver/version.rb +1 -1
- data/ruby/neo4j/driver.rb +4 -5
- metadata +4 -17
- data/lib/loader.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 189b807bb94a38f3f8692f928c5d506b9c20031f87270fdf84967b809f55b727
|
4
|
+
data.tar.gz: a8273bbd0ec0f9904e9a7cfa429c783ed2aef97bd53a9fc197d88adaaa3b5336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cb86a703d6809803998584857dc6f4eb7e63d9da590a5d52ee195235d0cb3ca4b87fc6bcb1b260ac0df97c5ed0998ded6f421bcd757b0964f1df3f21768ba35
|
7
|
+
data.tar.gz: cae94b97ff22f109e4682330fff10506b7fe903d4ea9a7c9b597e90f15b71c3bc0c8cee0a68312fc4581e6ade66f5794115da75e98787c097df057ad7cccdeeb
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/concern'
|
4
|
+
require 'active_support/core_ext/hash/indifferent_access'
|
5
|
+
require 'active_support/isolated_execution_state' if Gem::Requirement.create('>= 7').satisfied_by?(Gem.loaded_specs["activesupport"].version) # TODO: this should not be necessary https://github.com/rails/rails/issues/43851
|
6
|
+
require 'active_support/core_ext/numeric/time'
|
7
|
+
require 'active_support/duration'
|
8
|
+
require 'active_support/time'
|
9
|
+
require 'date'
|
10
|
+
require 'uri'
|
11
|
+
require 'zeitwerk'
|
12
|
+
|
13
|
+
module Neo4j
|
14
|
+
module Driver
|
15
|
+
class Loader
|
16
|
+
def self.load
|
17
|
+
loader = Zeitwerk::Loader.new
|
18
|
+
loader.tag = 'neo4j-ruby-driver'
|
19
|
+
loader.push_dir(File.expand_path(__dir__))
|
20
|
+
driver_specific_dir = File.dirname(File.dirname(caller_locations(1..1).first.path))
|
21
|
+
loader.push_dir(driver_specific_dir)
|
22
|
+
yield loader if block_given?
|
23
|
+
loader.ignore(File.expand_path('neo4j*ruby*driver*.rb', __dir__))
|
24
|
+
loader.ignore(File.expand_path('org', __dir__))
|
25
|
+
loader.inflector = Zeitwerk::GemInflector.new(File.expand_path('neo4j/driver', driver_specific_dir))
|
26
|
+
loader.setup
|
27
|
+
loader.eager_load
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/neo4j_ruby_driver.rb
CHANGED
@@ -1,15 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# This file is for backwards compatibility only.
|
2
|
+
# Applications should require 'neo4j/driver'.
|
2
3
|
|
3
|
-
module Neo4j
|
4
|
-
module Driver
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
require 'active_support/concern'
|
9
|
-
require 'active_support/core_ext/hash/indifferent_access'
|
10
|
-
require 'active_support/isolated_execution_state' if Gem::Requirement.create('>= 7').satisfied_by?(Gem.loaded_specs["activesupport"].version) # TODO: this should not be necessary https://github.com/rails/rails/issues/43851
|
11
|
-
require 'active_support/core_ext/numeric/time'
|
12
|
-
require 'active_support/duration'
|
13
|
-
require 'active_support/time'
|
14
4
|
require 'neo4j/driver'
|
15
|
-
require 'uri'
|
@@ -37,7 +37,7 @@ module Neo4j::Driver
|
|
37
37
|
|
38
38
|
def exception_caught(ctx, error)
|
39
39
|
if @failed
|
40
|
-
@error_log.
|
40
|
+
@error_log.debug('Another fatal error occurred in the pipeline', error)
|
41
41
|
else
|
42
42
|
@failed = true
|
43
43
|
log_unexpected_error_warning(error)
|
@@ -49,7 +49,7 @@ module Neo4j::Driver
|
|
49
49
|
|
50
50
|
def log_unexpected_error_warning(error)
|
51
51
|
unless error.is_a?(Exceptions::ConnectionReadTimeoutException)
|
52
|
-
@error_log.
|
52
|
+
@error_log.debug('Fatal error occurred in the pipeline', error)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
data/ruby/neo4j/driver.rb
CHANGED
@@ -6,15 +6,14 @@ require 'active_support/logger'
|
|
6
6
|
require 'async/io'
|
7
7
|
require 'async/io/stream'
|
8
8
|
require 'async/queue'
|
9
|
-
require 'connection_pool'
|
10
9
|
require 'bigdecimal'
|
11
|
-
require '
|
12
|
-
require '
|
13
|
-
|
14
|
-
Loader.load
|
10
|
+
require 'connection_pool'
|
11
|
+
require 'neo4j-ruby-driver_loader'
|
15
12
|
|
16
13
|
module Neo4j
|
17
14
|
module Driver
|
15
|
+
Loader.load
|
16
|
+
|
18
17
|
Record = Neo4j::Driver::Internal::InternalRecord
|
19
18
|
Result = Neo4j::Driver::Internal::InternalResult
|
20
19
|
Transaction = Neo4j::Driver::Internal::InternalTransaction
|
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.
|
4
|
+
version: 4.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: async
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: ffaker
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -209,7 +195,8 @@ extra_rdoc_files:
|
|
209
195
|
files:
|
210
196
|
- LICENSE.txt
|
211
197
|
- README.md
|
212
|
-
- lib/
|
198
|
+
- lib/neo4j-ruby-driver.rb
|
199
|
+
- lib/neo4j-ruby-driver_loader.rb
|
213
200
|
- lib/neo4j/driver/auto_closable.rb
|
214
201
|
- lib/neo4j/driver/exceptions/authentication_exception.rb
|
215
202
|
- lib/neo4j/driver/exceptions/authorization_expired_exception.rb
|
data/lib/loader.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'zeitwerk'
|
4
|
-
|
5
|
-
class Loader
|
6
|
-
def self.load
|
7
|
-
loader = Zeitwerk::Loader.new
|
8
|
-
loader.tag = 'neo4j-ruby-driver'
|
9
|
-
loader.push_dir(File.expand_path(__dir__))
|
10
|
-
driver_specific_dir = File.dirname(File.dirname(caller_locations(1..1).first.path))
|
11
|
-
loader.push_dir(driver_specific_dir)
|
12
|
-
yield loader if block_given?
|
13
|
-
loader.ignore(File.expand_path('neo4j-*-driver_jars.rb', __dir__))
|
14
|
-
loader.ignore(File.expand_path('neo4j_ruby_driver.rb', __dir__))
|
15
|
-
loader.ignore(File.expand_path('org', __dir__))
|
16
|
-
loader.inflector = Zeitwerk::GemInflector.new(File.expand_path('neo4j/driver', driver_specific_dir))
|
17
|
-
loader.setup
|
18
|
-
loader.eager_load
|
19
|
-
end
|
20
|
-
end
|