neo4j-ruby-driver 4.4.0 → 4.4.1

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: aad2e30fa3fa23dc95e7db9f27847b1c5382c23600c019d93a7625fc5a66d085
4
- data.tar.gz: 534c14f354f92df7a85b153e1451951ded71863fbbb10c61a50a280a8bf3bea7
3
+ metadata.gz: 6fd1245f505176d11efea03e96cc022216e0e93f93581aaf6b55d6397097cf2d
4
+ data.tar.gz: 7a7394025131851020cfda11949bed86860be9fb599b22efe458e8d79bcbffc2
5
5
  SHA512:
6
- metadata.gz: 909be9c6542e378161b3e9b9c62ad9e45ef08c54f7410b4ea5a2ba3f15267fd445995757f74210aadcaa10f94475f839cddeb2294c23d44a9925e044e23cc162
7
- data.tar.gz: 4d22446e5a24c6f7f99072202bfc4dbab1e222b535c64b1c716a31f4993f9fe0da07c8d5dfbd3f68d793fc1b11f6782f4a6062e3171f41b7b26a8c7260b0966a
6
+ metadata.gz: b77c6e15952c126b67a67fc953c9da825fb8aee8399c8929eb8bc45d43542b0f88ef2d019de39877409c9c5fb73e3d04972ad79dcbda9f8b64a62f47120e6a34
7
+ data.tar.gz: d1a0538ad1ec75804854efaf5d0cd951573f25fb1b976adf0fe606826d87e8141f30453cd77eec1b390201f3d80515d0094840855121f43766e11db5d0d1108e
@@ -4,9 +4,7 @@ module Neo4j::Driver
4
4
  class GraphDatabase
5
5
  class << self
6
6
  extend AutoClosable
7
- extend Synchronizable
8
7
  auto_closable :driver, :routing_driver
9
- sync :driver
10
8
 
11
9
  def driver(uri, auth_token = nil, **config)
12
10
  internal_driver(uri, auth_token, config, Internal::DriverFactory.new)
@@ -10,7 +10,7 @@ module Neo4j::Driver
10
10
 
11
11
  def initialize(address, connector, logger)
12
12
  @attributes = Connection::ChannelAttributes.new
13
- @stream = Connection::Stream.new(connector.connect(address))
13
+ @stream = Connection::Stream.new(connect_to_io_socket(connector, address))
14
14
  @stream.write(Connection::BoltProtocolUtil.handshake_buf)
15
15
  @stream.flush
16
16
  Connection::HandshakeHandler.new(logger).decode(self)
@@ -39,6 +39,10 @@ module Neo4j::Driver
39
39
 
40
40
  private
41
41
 
42
+ def connect_to_io_socket(connector, address)
43
+ Sync { connector.connect(address) }
44
+ end
45
+
42
46
  def bracketless(host)
43
47
  host.delete_prefix('[').delete_suffix(']')
44
48
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '4.4.0'
5
+ VERSION = '4.4.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-ruby-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -500,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
500
500
  - !ruby/object:Gem::Version
501
501
  version: '0'
502
502
  requirements: []
503
- rubygems_version: 3.3.7
503
+ rubygems_version: 3.3.26
504
504
  signing_key:
505
505
  specification_version: 4
506
506
  summary: ''