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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fd1245f505176d11efea03e96cc022216e0e93f93581aaf6b55d6397097cf2d
4
- data.tar.gz: 7a7394025131851020cfda11949bed86860be9fb599b22efe458e8d79bcbffc2
3
+ metadata.gz: 189b807bb94a38f3f8692f928c5d506b9c20031f87270fdf84967b809f55b727
4
+ data.tar.gz: a8273bbd0ec0f9904e9a7cfa429c783ed2aef97bd53a9fc197d88adaaa3b5336
5
5
  SHA512:
6
- metadata.gz: b77c6e15952c126b67a67fc953c9da825fb8aee8399c8929eb8bc45d43542b0f88ef2d019de39877409c9c5fb73e3d04972ad79dcbda9f8b64a62f47120e6a34
7
- data.tar.gz: d1a0538ad1ec75804854efaf5d0cd951573f25fb1b976adf0fe606826d87e8141f30453cd77eec1b390201f3d80515d0094840855121f43766e11db5d0d1108e
6
+ metadata.gz: 7cb86a703d6809803998584857dc6f4eb7e63d9da590a5d52ee195235d0cb3ca4b87fc6bcb1b260ac0df97c5ed0998ded6f421bcd757b0964f1df3f21768ba35
7
+ data.tar.gz: cae94b97ff22f109e4682330fff10506b7fe903d4ea9a7c9b597e90f15b71c3bc0c8cee0a68312fc4581e6ade66f5794115da75e98787c097df057ad7cccdeeb
@@ -0,0 +1,5 @@
1
+ # This file is here so that there is a file with the same name as the gem that
2
+ # can be required by Bundler.require. Applications should normally
3
+ # require 'neo4j/driver'.
4
+
5
+ require 'neo4j/driver'
@@ -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
@@ -1,15 +1,4 @@
1
- # frozen_string_literal: true
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.trace_or_debug('Another fatal error occurred in the pipeline', error)
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.trace_or_debug('Fatal error occurred in the pipeline', error)
52
+ @error_log.debug('Fatal error occurred in the pipeline', error)
53
53
  end
54
54
  end
55
55
 
@@ -111,7 +111,7 @@ module Neo4j::Driver
111
111
  handler.on_failure(@current_error)
112
112
  end
113
113
 
114
- @error_log.trace_or_debug('Closing channel because of a failure', error)
114
+ @error_log.debug('Closing channel because of a failure', error)
115
115
  @channel.close
116
116
  end
117
117
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '4.4.1'
5
+ VERSION = '4.4.4'
6
6
  end
7
7
  end
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 'date'
12
- require 'loader'
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.1
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-01-11 00:00:00.000000000 Z
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/loader.rb
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