neo4j-java-driver 4.1.0.beta.2-java → 4.3.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/ext/auth_tokens.rb +1 -1
- data/jruby/neo4j/driver/ext/config_converter.rb +3 -5
- data/jruby/neo4j/driver/ext/neo_converter.rb +5 -3
- data/lib/loader.rb +1 -1
- data/lib/neo4j/driver/internal/duration_normalizer.rb +2 -1
- data/lib/neo4j/driver/version.rb +1 -1
- data/lib/neo4j_ruby_driver.rb +1 -0
- metadata +19 -20
- 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: 4994dc680ba3cabb50d4a43bad5f5bdae465187f134e9d4200db7c74f9738440
|
4
|
+
data.tar.gz: 342c65dee92f9c271e10ef75674584712745068e8192656a62cc5ff501012df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e2ca8031c98c137a1c5d963e213734dddfe888ab452b5bd1d64988c603bd58fdbf3d97bcdf05686f98cc4d10585eaf522311a017ab2cef4d7a164331680a75
|
7
|
+
data.tar.gz: 06ed87adc45817031f402d9e546b8fb9bdaf05084cd3c92d4f7a63e1988543e86decaba4581aa09daa94320024d8a6015da561c4fdeaf09f73e833a0fb97da32
|
@@ -9,7 +9,7 @@ module Neo4j
|
|
9
9
|
private
|
10
10
|
|
11
11
|
def to_java_config(builder_class, **hash)
|
12
|
-
hash.reduce(builder_class.builder) { |object, key_value| object.send(*config_method(*key_value)) }.build
|
12
|
+
hash.compact.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)?$/
|
@@ -16,8 +16,6 @@ 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)
|
@@ -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
|
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__))
|
@@ -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
data/lib/neo4j_ruby_driver.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.
|
4
|
+
version: 4.3.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:
|
11
|
+
date: 2021-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -17,8 +17,8 @@ dependencies:
|
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: '0'
|
19
19
|
name: activesupport
|
20
|
-
type: :runtime
|
21
20
|
prerelease: false
|
21
|
+
type: :runtime
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
@@ -31,8 +31,8 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.1.10
|
33
33
|
name: zeitwerk
|
34
|
-
type: :runtime
|
35
34
|
prerelease: false
|
35
|
+
type: :runtime
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
@@ -45,8 +45,8 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
name: jar-dependencies
|
48
|
-
type: :runtime
|
49
48
|
prerelease: false
|
49
|
+
type: :runtime
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
@@ -59,8 +59,8 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
name: ffaker
|
62
|
-
type: :development
|
63
62
|
prerelease: false
|
63
|
+
type: :development
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
@@ -73,8 +73,8 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
name: hoe
|
76
|
-
type: :development
|
77
76
|
prerelease: false
|
77
|
+
type: :development
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
@@ -87,8 +87,8 @@ dependencies:
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
name: hoe-bundler
|
90
|
-
type: :development
|
91
90
|
prerelease: false
|
91
|
+
type: :development
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
@@ -101,8 +101,8 @@ dependencies:
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
name: hoe-gemspec
|
104
|
-
type: :development
|
105
104
|
prerelease: false
|
105
|
+
type: :development
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
@@ -115,8 +115,8 @@ dependencies:
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
name: parallel
|
118
|
-
type: :development
|
119
118
|
prerelease: false
|
119
|
+
type: :development
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
@@ -129,8 +129,8 @@ dependencies:
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
name: rake
|
132
|
-
type: :development
|
133
132
|
prerelease: false
|
133
|
+
type: :development
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
@@ -143,8 +143,8 @@ dependencies:
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
name: rspec-its
|
146
|
-
type: :development
|
147
146
|
prerelease: false
|
147
|
+
type: :development
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ">="
|
@@ -157,8 +157,8 @@ dependencies:
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
159
|
name: rspec-mocks
|
160
|
-
type: :development
|
161
160
|
prerelease: false
|
161
|
+
type: :development
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - ">="
|
@@ -171,8 +171,8 @@ dependencies:
|
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0'
|
173
173
|
name: ruby-maven
|
174
|
-
type: :development
|
175
174
|
prerelease: false
|
175
|
+
type: :development
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - ">="
|
@@ -188,8 +188,8 @@ dependencies:
|
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '7'
|
190
190
|
name: rdoc
|
191
|
-
type: :development
|
192
191
|
prerelease: false
|
192
|
+
type: :development
|
193
193
|
version_requirements: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
195
|
- - ">="
|
@@ -249,7 +249,6 @@ files:
|
|
249
249
|
- lib/neo4j/driver/exceptions/transient_exception.rb
|
250
250
|
- lib/neo4j/driver/exceptions/untrusted_server_exception.rb
|
251
251
|
- lib/neo4j/driver/internal/duration_normalizer.rb
|
252
|
-
- lib/neo4j/driver/internal/ruby_signature.rb
|
253
252
|
- lib/neo4j/driver/internal/validator.rb
|
254
253
|
- lib/neo4j/driver/types/bytes.rb
|
255
254
|
- lib/neo4j/driver/types/local_date_time.rb
|
@@ -278,12 +277,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
278
277
|
version: '2.5'
|
279
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
279
|
requirements:
|
281
|
-
- - "
|
280
|
+
- - ">="
|
282
281
|
- !ruby/object:Gem::Version
|
283
|
-
version:
|
282
|
+
version: '0'
|
284
283
|
requirements:
|
285
|
-
- jar org.neo4j.driver, neo4j-java-driver, 4.
|
286
|
-
rubygems_version: 3.
|
284
|
+
- jar org.neo4j.driver, neo4j-java-driver, 4.3.2
|
285
|
+
rubygems_version: 3.1.6
|
287
286
|
signing_key:
|
288
287
|
specification_version: 4
|
289
288
|
summary: ''
|
@@ -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
|