neo4j-java-driver 1.7.3-java → 1.7.4-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a39ad35198a8958f2857bfcfb6040ffffeee0338fee2105ff2ca4e4f98f162b
|
|
4
|
+
data.tar.gz: 5f617ac0e6a69992f8febe4ec4ed115383c8088b4732bf33c3607aa9994d8c96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59aa3597d96b34851293e27c49dee3d9d52d5a604112f35274f1dc5477fa87f1c5c27977d36e345ec413d195b1b4b128c6fa12c248d90c234bc88d9a9176f8bb
|
|
7
|
+
data.tar.gz: de8450ea68258da74d9e17274a12f2d7f83129fbd06a8e9eb497847cd487aa3a5ae3a1a8af4a4d10733bf1565b4cb645bee6caf28692bbce9269a05867e0ce12
|
|
@@ -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
|
|
@@ -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
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: 1.7.
|
|
4
|
+
version: 1.7.4
|
|
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-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|