neo4j-java-driver 1.7.3-java → 1.7.4-java

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: e81fce8c0fbbb53c241d69d389d080b937a21196083c84d8af4aa08d063d4def
4
- data.tar.gz: 98ccbc63152681cba9b0abfacf8f4411a407f35dbdae043090aec840b0d508e5
3
+ metadata.gz: 0a39ad35198a8958f2857bfcfb6040ffffeee0338fee2105ff2ca4e4f98f162b
4
+ data.tar.gz: 5f617ac0e6a69992f8febe4ec4ed115383c8088b4732bf33c3607aa9994d8c96
5
5
  SHA512:
6
- metadata.gz: a96853c233c87cb214a655f26ef1eea9207585b4a3a3836719fd5e033572753db5f89df6f69f4396b46c9f543ac9fce572f887c194008bb0b9299dedd2550c2c
7
- data.tar.gz: dc69debcd6fdfcd018c367f0b72da7c97d0a04a7685243f20b50539cac0e18edc188bf27056cb96fd33968576dddf87e6857e7940bbdbb179fbe3366b45e723a
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '1.7.3'
5
+ VERSION = '1.7.4'
6
6
  end
7
7
  end
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.3
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: 2020-10-12 00:00:00.000000000 Z
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