neo4j-ruby-driver 4.4.1-java → 4.4.2-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: 925c81127fcf69cbe1dd09e76e718c8f418a8ccf7205cf937674ed8c892e1c83
4
- data.tar.gz: 03e527fb443800d70fe8aae00df23aa66aee6fd2a480dbed98f726e2eddc5c8b
3
+ metadata.gz: be9470ec71cbfdb5b0fe8539f151a3907b29a9162585889c1470bec0df600461
4
+ data.tar.gz: bfbbf892074843ea3d50f51d386183627e28d54c6faa5d5b134234e0f9b6674c
5
5
  SHA512:
6
- metadata.gz: 7105221e31a3bb6639ec340404a37b170e6054a4055a3fcc06cd5530a238edfc96f7700aacbad8edbe51ea2c132d2c288617e36539e6ff1fb333eb635af667b6
7
- data.tar.gz: 7f003beecfc411577e1b4c03ab87e0e65e11bbb602a48426194f9b5a5209b77cc8fb6628c5c1c81206269f2df78aa67b7e534e9ffdaaab9c183b83106223aab0
6
+ metadata.gz: 05f7c4064d07383c2e9b4d751348b913ed13c46ed86b608b08cc51b3a27e276930c6a7a1e3d6ed9e7eec04120a62166b6ef5bf609c7ab6c987f9e17ab5fb9ba5
7
+ data.tar.gz: 8bab6c775b47a3d77491da03a239db1e36ff2d9d255330b5ef7bd249d2bfcfc437148a58e59ee529ed30bd669afe89a855af2d19a03f9891560e23cf67df6a12
data/README.md CHANGED
@@ -56,12 +56,23 @@ $ bin/setup
56
56
  $ rspec spec
57
57
  ```
58
58
 
59
- In case of heap space memory error (`org.neo4j.driver.exceptions.DatabaseException: Java heap space`), you should limit the dbms memory, for example:
59
+ Known errors:
60
+
61
+ 1. In case of heap space memory error (`org.neo4j.driver.exceptions.DatabaseException: Java heap space`), you should limit the dbms memory, for example:
60
62
 
61
63
  ```console
62
64
  $ neoctrl-configure servers/neo4j-enterprise-4.4.5 dbms.memory.pagecache.size=600m dbms.memory.heap.max_size=600m dbms.memory.heap.initial_size=600m dbms.directories.import= dbms.connectors.default_listen_address=::
63
65
  ```
64
66
 
67
+ 2. When using command `pip3 install --user git+https://github.com/klobuczek/boltkit@1.3#egg=boltkit`, if you have m1 mac chip, you may get error when pip3 tries to install `cryptography`. Steps to take in that case (reference https://stackoverflow.com/a/70074869/2559490)
68
+
69
+ ```console
70
+ $ pip uninstall cffi
71
+ $ python -m pip install --upgrade pip
72
+ $ pip install cffi
73
+ $ pip install cryptography
74
+ ```
75
+
65
76
  ## Contributing
66
77
 
67
78
  Suggestions, improvements, bug reports and pull requests are welcome on GitHub at https://github.com/neo4jrb/neo4j-ruby-driver.
@@ -25,7 +25,7 @@ module Neo4j
25
25
  value = nil
26
26
  when 'timeout'
27
27
  value = java.time.Duration.ofMillis(Driver::Internal::DurationNormalizer.milliseconds(value))
28
- when /time(out)?$/
28
+ when /time(out)?$/, 'routing_table_purge_delay'
29
29
  value = Driver::Internal::DurationNormalizer.milliseconds(value) || -1
30
30
  unit = java.util.concurrent.TimeUnit::MILLISECONDS
31
31
  when 'logger'
@@ -0,0 +1,13 @@
1
+ module Neo4j
2
+ module Driver
3
+ module Ext
4
+ module Internal
5
+ module InternalBookmark
6
+ def values
7
+ super.to_set
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '4.4.1'
5
+ VERSION = '4.4.2'
6
6
  end
7
7
  end
@@ -15,6 +15,10 @@ module Neo4j
15
15
  Result = Java::OrgNeo4jDriverInternal::InternalResult
16
16
  Transaction = Java::OrgNeo4jDriverInternal::InternalTransaction
17
17
 
18
+ module Internal
19
+ java_import org.neo4j.driver.internal.DatabaseNameUtil
20
+ end
21
+
18
22
  module Net
19
23
  include_package 'org.neo4j.driver.net'
20
24
  end
@@ -36,6 +40,7 @@ Java::OrgNeo4jDriver::AuthTokens.singleton_class.prepend Neo4j::Driver::Ext::Aut
36
40
  Java::OrgNeo4jDriver::Bookmark.singleton_class.prepend Neo4j::Driver::Ext::Bookmark::ClassMethods
37
41
  Java::OrgNeo4jDriver::GraphDatabase.singleton_class.prepend Neo4j::Driver::Ext::GraphDatabase
38
42
  Java::OrgNeo4jDriver::Query.prepend Neo4j::Driver::Ext::Query
43
+ Java::OrgNeo4jDriverInternal::InternalBookmark.prepend Neo4j::Driver::Ext::Internal::InternalBookmark
39
44
  Java::OrgNeo4jDriverInternal::InternalDriver.prepend Neo4j::Driver::Ext::InternalDriver
40
45
  Java::OrgNeo4jDriverInternal::InternalEntity.include Neo4j::Driver::Ext::InternalEntity
41
46
  Java::OrgNeo4jDriverInternal::InternalNode.prepend Neo4j::Driver::Ext::InternalNode
@@ -8,8 +8,8 @@ module Neo4j
8
8
  class ProtocolException < Neo4jException
9
9
  CODE = "Protocol violation: "
10
10
 
11
- def initialize(message, e)
12
- super("#{CODE}message", e)
11
+ def initialize(message, e = nil)
12
+ super(nil, "#{CODE}#{message}", e)
13
13
  end
14
14
  end
15
15
  end
@@ -67,13 +67,15 @@ module Neo4j::Driver
67
67
  LOCAL_DEFAULT = new(host: 'localhost', port: DEFAULT_PORT)
68
68
 
69
69
  def self.from(address)
70
- address.is_a?(BoltServerAddress) ? address : new(address.host, address.port)
70
+ address.is_a?(BoltServerAddress) ? address : new(host: address.host, port: address.port)
71
71
  end
72
72
 
73
- def eql?(other)
74
- attributes.eql?(other&.attributes)
73
+ def ==(other)
74
+ attributes == other&.attributes
75
75
  end
76
76
 
77
+ alias eql? ==
78
+
77
79
  def to_s
78
80
  "#{host}#{"(#{connection_host})" unless host == connection_host}:#{port}"
79
81
  end
@@ -84,11 +86,9 @@ module Neo4j::Driver
84
86
 
85
87
  # @return stream of unicast addresses.
86
88
  def unicast_stream
87
- [self]
89
+ Set[self]
88
90
  end
89
91
 
90
- private
91
-
92
92
  def attributes
93
93
  [@host, @connection_host, @port]
94
94
  end
@@ -30,10 +30,12 @@ module Neo4j
30
30
  end
31
31
  end
32
32
 
33
- def eql?(other)
34
- other.is_a?(self.class) && self.class.significant_fields.all? { |elem| send(elem).eql?(other.send(elem)) }
33
+ def ==(other)
34
+ other.is_a?(self.class) && self.class.significant_fields.all? { |elem| send(elem) == other.send(elem) }
35
35
  end
36
36
 
37
+ alias eql? ==
38
+
37
39
  def +(numeric)
38
40
  self.class.new(@time + numeric)
39
41
  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.1
4
+ version: 4.4.2
5
5
  platform: java
6
6
  authors:
7
7
  - Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-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
  requirement: !ruby/object:Gem::Requirement
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- name: async
34
- prerelease: false
35
- type: :runtime
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  requirement: !ruby/object:Gem::Requirement
43
29
  requirements:
@@ -69,24 +55,24 @@ dependencies:
69
55
  - !ruby/object:Gem::Dependency
70
56
  requirement: !ruby/object:Gem::Requirement
71
57
  requirements:
72
- - - ">="
58
+ - - '='
73
59
  - !ruby/object:Gem::Version
74
- version: '0'
60
+ version: 0.4.1
75
61
  name: jar-dependencies
76
62
  prerelease: false
77
63
  type: :runtime
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ">="
66
+ - - '='
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: 0.4.1
83
69
  - !ruby/object:Gem::Dependency
84
70
  requirement: !ruby/object:Gem::Requirement
85
71
  requirements:
86
72
  - - ">="
87
73
  - !ruby/object:Gem::Version
88
74
  version: '0'
89
- name: ffaker
75
+ name: async
90
76
  prerelease: false
91
77
  type: :development
92
78
  version_requirements: !ruby/object:Gem::Requirement
@@ -100,7 +86,7 @@ dependencies:
100
86
  - - ">="
101
87
  - !ruby/object:Gem::Version
102
88
  version: '0'
103
- name: hoe
89
+ name: ffaker
104
90
  prerelease: false
105
91
  type: :development
106
92
  version_requirements: !ruby/object:Gem::Requirement
@@ -114,7 +100,7 @@ dependencies:
114
100
  - - ">="
115
101
  - !ruby/object:Gem::Version
116
102
  version: '0'
117
- name: hoe-bundler
103
+ name: hoe
118
104
  prerelease: false
119
105
  type: :development
120
106
  version_requirements: !ruby/object:Gem::Requirement
@@ -128,7 +114,7 @@ dependencies:
128
114
  - - ">="
129
115
  - !ruby/object:Gem::Version
130
116
  version: '0'
131
- name: hoe-gemspec
117
+ name: hoe-bundler
132
118
  prerelease: false
133
119
  type: :development
134
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -142,7 +128,7 @@ dependencies:
142
128
  - - ">="
143
129
  - !ruby/object:Gem::Version
144
130
  version: '0'
145
- name: parallel
131
+ name: hoe-gemspec
146
132
  prerelease: false
147
133
  type: :development
148
134
  version_requirements: !ruby/object:Gem::Requirement
@@ -248,6 +234,7 @@ files:
248
234
  - jruby/neo4j/driver/ext/internal/async/internal_async_session.rb
249
235
  - jruby/neo4j/driver/ext/internal/cluster/routing_table_registry_impl.rb
250
236
  - jruby/neo4j/driver/ext/internal/cursor/disposable_async_result_cursor.rb
237
+ - jruby/neo4j/driver/ext/internal/internal_bookmark.rb
251
238
  - jruby/neo4j/driver/ext/internal/metrics/internal_connection_pool_metrics.rb
252
239
  - jruby/neo4j/driver/ext/internal/summary/internal_result_summary.rb
253
240
  - jruby/neo4j/driver/ext/internal_driver.rb
@@ -328,8 +315,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
315
  - !ruby/object:Gem::Version
329
316
  version: '0'
330
317
  requirements:
331
- - jar org.neo4j.driver, neo4j-java-driver, 4.4.6
332
- rubygems_version: 3.2.29
318
+ - jar org.neo4j.driver, neo4j-java-driver, 4.4.11
319
+ rubygems_version: 3.2.33
333
320
  signing_key:
334
321
  specification_version: 4
335
322
  summary: ''