neo4j-ruby-driver 4.4.2-java → 4.4.5-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/ext/internal/async/internal_async_session.rb +1 -1
- data/jruby/neo4j/driver/ext/internal_driver.rb +2 -2
- data/jruby/neo4j/driver/ext/internal_session.rb +3 -3
- data/jruby/neo4j/driver/version.rb +1 -1
- data/jruby/neo4j/driver.rb +3 -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
- metadata +17 -16
- 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: fd7a4a327ee737e74f00b547eb497bd88e0059ec021f13251c33ab061f25a8cd
|
4
|
+
data.tar.gz: 4e654f45c35269b3641ba3b58e053a1858f2753987365ce1beb2e0e26856a29c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86e2b688151f1014f1f0c17e8a8019bac5acc2143af95054b831ce35df6ee8789b3e4c857f302dc6fe9649d68e60e1d9620ff51524dd3df4ce61c7fad0eaa566
|
7
|
+
data.tar.gz: 15ff012ccef907304311aa61a8a7828cd1e4be31b181102565cf66b442a20c2dded85c3ad89d79f1a3bcb15511f38327befabc4cfcb4719304f5fbf989375945
|
@@ -13,7 +13,7 @@ module Neo4j
|
|
13
13
|
def run_async(statement, parameters = {}, config = {})
|
14
14
|
to_future(
|
15
15
|
java_method(:runAsync, [org.neo4j.driver.Query, org.neo4j.driver.TransactionConfig])
|
16
|
-
.call(to_statement(statement, parameters), to_java_config(Neo4j::Driver::TransactionConfig, config)))
|
16
|
+
.call(to_statement(statement, parameters), to_java_config(Neo4j::Driver::TransactionConfig, **config)))
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -13,12 +13,12 @@ module Neo4j
|
|
13
13
|
|
14
14
|
def session(**session_config)
|
15
15
|
java_method(:session, [org.neo4j.driver.SessionConfig])
|
16
|
-
.call(to_java_config(Neo4j::Driver::SessionConfig, session_config))
|
16
|
+
.call(to_java_config(Neo4j::Driver::SessionConfig, **session_config))
|
17
17
|
end
|
18
18
|
|
19
19
|
def async_session(**session_config)
|
20
20
|
java_method(:asyncSession, [org.neo4j.driver.SessionConfig])
|
21
|
-
.call(to_java_config(Neo4j::Driver::SessionConfig, session_config))
|
21
|
+
.call(to_java_config(Neo4j::Driver::SessionConfig, **session_config))
|
22
22
|
end
|
23
23
|
|
24
24
|
def close_async
|
@@ -17,7 +17,7 @@ module Neo4j
|
|
17
17
|
%i[read write].each do |prefix|
|
18
18
|
define_method("#{prefix}_transaction") do |**config, &block|
|
19
19
|
check do
|
20
|
-
super(->(tx) { Struct::Wrapper.new(reverse_check { block.call(tx) }) }, to_java_config(Neo4j::Driver::TransactionConfig, config)).object
|
20
|
+
super(->(tx) { Struct::Wrapper.new(reverse_check { block.call(tx) }) }, to_java_config(Neo4j::Driver::TransactionConfig, **config)).object
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -27,12 +27,12 @@ module Neo4j
|
|
27
27
|
def run(statement, parameters = {}, config = {})
|
28
28
|
check do
|
29
29
|
java_method(:run, [org.neo4j.driver.Query, org.neo4j.driver.TransactionConfig])
|
30
|
-
.call(to_statement(statement, parameters), to_java_config(Neo4j::Driver::TransactionConfig, config))
|
30
|
+
.call(to_statement(statement, parameters), to_java_config(Neo4j::Driver::TransactionConfig, **config))
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
def begin_transaction(**config)
|
35
|
-
check { super(to_java_config(Neo4j::Driver::TransactionConfig, config)) }
|
35
|
+
check { super(to_java_config(Neo4j::Driver::TransactionConfig, **config)) }
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
data/jruby/neo4j/driver.rb
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support/core_ext/hash/keys'
|
4
|
-
require 'date'
|
5
|
-
require 'loader'
|
6
4
|
require 'neo4j-ruby-driver_jars'
|
7
|
-
|
8
|
-
Loader.load
|
5
|
+
require 'neo4j-ruby-driver_loader'
|
9
6
|
|
10
7
|
module Neo4j
|
11
8
|
module Driver
|
9
|
+
Loader.load
|
10
|
+
|
12
11
|
include_package 'org.neo4j.driver'
|
13
12
|
|
14
13
|
Record = Java::OrgNeo4jDriverInternal::InternalRecord
|
@@ -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'
|
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.5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,7 +72,7 @@ dependencies:
|
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
|
-
name:
|
75
|
+
name: ffaker
|
76
76
|
prerelease: false
|
77
77
|
type: :development
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
|
-
name:
|
89
|
+
name: hoe
|
90
90
|
prerelease: false
|
91
91
|
type: :development
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -100,7 +100,7 @@ dependencies:
|
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
|
-
name: hoe
|
103
|
+
name: hoe-bundler
|
104
104
|
prerelease: false
|
105
105
|
type: :development
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -114,7 +114,7 @@ dependencies:
|
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
|
-
name: hoe-
|
117
|
+
name: hoe-gemspec
|
118
118
|
prerelease: false
|
119
119
|
type: :development
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
|
-
name:
|
131
|
+
name: rake
|
132
132
|
prerelease: false
|
133
133
|
type: :development
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -142,7 +142,7 @@ dependencies:
|
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
|
-
name:
|
145
|
+
name: rspec-its
|
146
146
|
prerelease: false
|
147
147
|
type: :development
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -156,7 +156,7 @@ dependencies:
|
|
156
156
|
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
|
-
name: rspec-
|
159
|
+
name: rspec-mocks
|
160
160
|
prerelease: false
|
161
161
|
type: :development
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -167,17 +167,17 @@ dependencies:
|
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
|
-
- - "
|
170
|
+
- - "<"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
173
|
-
name:
|
172
|
+
version: '2'
|
173
|
+
name: async
|
174
174
|
prerelease: false
|
175
175
|
type: :development
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - "<"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '2'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
@@ -254,7 +254,8 @@ files:
|
|
254
254
|
- jruby/neo4j/driver/ext/run_override.rb
|
255
255
|
- jruby/neo4j/driver/ext/start_end_naming.rb
|
256
256
|
- jruby/neo4j/driver/version.rb
|
257
|
-
- lib/
|
257
|
+
- lib/neo4j-ruby-driver.rb
|
258
|
+
- lib/neo4j-ruby-driver_loader.rb
|
258
259
|
- lib/neo4j/driver/auto_closable.rb
|
259
260
|
- lib/neo4j/driver/exceptions/authentication_exception.rb
|
260
261
|
- lib/neo4j/driver/exceptions/authorization_expired_exception.rb
|
@@ -316,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
317
|
version: '0'
|
317
318
|
requirements:
|
318
319
|
- jar org.neo4j.driver, neo4j-java-driver, 4.4.11
|
319
|
-
rubygems_version: 3.
|
320
|
+
rubygems_version: 3.3.25
|
320
321
|
signing_key:
|
321
322
|
specification_version: 4
|
322
323
|
summary: ''
|
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
|