neo4j-java-driver 0.2.0-java → 0.2.1-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: 1bdf27c962cb244f14fb20db18054c7796339860b4b17dc3bb5922130d392f99
4
- data.tar.gz: ddc24ae83bd8673fff646775ecaa96b0de33db1a63ae1cffe963f2bc82424cb2
3
+ metadata.gz: 5363254045012f170cd5a9152edcea3280be401044ecc7fd907c70067a8bbdf1
4
+ data.tar.gz: cb24ad387e7bfd72afda44c24a805e0ea1c4b57927be67d60a549bd5962433c5
5
5
  SHA512:
6
- metadata.gz: 8efab4fc0fbc83dd2259f49eef7fa60465c85eb2dad646430786d9a2fb4b4aee2a5440c7eda376214ad3116a485639085faf1caa7a16eef2d5c38861ba9e5d95
7
- data.tar.gz: d8e4a0d4c06f5e1b7cf73068aa9572297afdb8e90f82723bb87ca1ace7fc641d0376327e2f8791bc698f0a54a814522eafb8c6aa5f68797b925f981aa1f85256
6
+ metadata.gz: 1e7ee301e9224cc98baff9115ef2ae2ee41c1eda96cc73c8c33efcf3fb5a05c6736d7f21eb54fda75106c7f06279bf65e7ceaf6d4663342e5e738c005a8e9cea
7
+ data.tar.gz: 0b06974885f9fb77c4dfc7d60b29a2836458d1f97020c309368f2680e0c7e60159ab6043308c4bbeba52de36900f361a73e0cadcd618cb5ee283e53959d7d1a8
@@ -37,7 +37,8 @@ module Neo4j
37
37
  value = nil
38
38
  end
39
39
  when /Time(out)?$/i
40
- unit = java.util.concurrent.TimeUnit::SECONDS
40
+ value = Driver::Internal::DurationNormalizer.milliseconds(value)
41
+ unit = java.util.concurrent.TimeUnit::MILLISECONDS
41
42
  when 'logger'
42
43
  method = :with_logging
43
44
  value = Neo4j::Driver::Ext::Logger.new(value)
@@ -16,6 +16,10 @@ module Neo4j
16
16
  [months_i, days_i, seconds_i, nonanoseconds.round]
17
17
  end
18
18
 
19
+ def milliseconds(duration)
20
+ duration.in_milliseconds.round
21
+ end
22
+
19
23
  private
20
24
 
21
25
  def divmod(number, factor)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -14,6 +14,7 @@ end
14
14
  # End workaround
15
15
 
16
16
  require 'active_support/core_ext/hash/indifferent_access'
17
+ require 'active_support/core_ext/numeric/time'
17
18
  require 'active_support/duration'
18
19
  require 'active_support/time'
19
20
  require 'neo4j/driver'
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: 0.2.0
4
+ version: 0.2.1
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-01-07 00:00:00.000000000 Z
11
+ date: 2020-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement