neo4j-java-driver 4.1.0.beta.3-java → 4.2.0.beta.0-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: 3df81d3713df9e8be98bc75dc059067e1f7f501da58fabef87ead7732489bb54
4
- data.tar.gz: 84302083a716d864bb62be80b7abbd0f2d4a3ecdd5b525d92b165d28a0d981f1
3
+ metadata.gz: 3bba4b1273d01bb112568454ad5fe1bc62d5e5b36a066a4ec59dd4a9560df386
4
+ data.tar.gz: ec731dc38bf1ba234535b74923d259137a8f91ee7124b4d2a04f5544fe8c534e
5
5
  SHA512:
6
- metadata.gz: b178972b7334e78f656eb0cbc7557137a017efe72d45e327b64966de725b0901e03523f858ef750ceef74941c4da1e85be2235e84dc49b5c457c75c4788c4875
7
- data.tar.gz: b8daa4f79394778ef2233e89e631a8c139c59e2c54cb6e54608c4d49211cedf8c7d58407c00764a02d9f5de977dcc3b39502812b15f5f6bd784c74e8480373e5
6
+ metadata.gz: 19ff03edd2e5b8bd3b0128033f6549e25f0cb0b52e278788e0f4d0d7362e59407a1b7d190f2440d659f364a0044fc20a600d5fde0785e634539a9964834c0b1b
7
+ data.tar.gz: 3ca09e3f3c35b13bd32a231dfd87718774831ea25bd5a075afd8270520892c492248e3f622a5a7c0fa6234a80c44045a953e731c3a7fabb161e503af20f495d7
@@ -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
@@ -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-java-driver_jars.rb', __dir__))
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '4.1.0.beta.3'
5
+ VERSION = '4.2.0.beta.0'
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: 4.1.0.beta.3
4
+ version: 4.2.0.beta.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: 2020-10-12 00:00:00.000000000 Z
11
+ date: 2020-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -282,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
281
  - !ruby/object:Gem::Version
283
282
  version: 1.3.1
284
283
  requirements:
285
- - jar org.neo4j.driver, neo4j-java-driver, 4.1.1
284
+ - jar org.neo4j.driver, neo4j-java-driver, 4.2.0
286
285
  rubygems_version: 3.0.6
287
286
  signing_key:
288
287
  specification_version: 4
@@ -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