neo4j-ruby-driver 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/ffi/neo4j/driver/config.rb +8 -1
- data/ffi/neo4j/driver/internal/driver_factory.rb +5 -3
- data/lib/neo4j/driver/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 285f1e745b1c40e78643541afbda39871b35e261b80f2a11c5a1282339dd9a73
|
4
|
+
data.tar.gz: 22fde4ee4e1a5ccb729063a1d4bf96ebd51af261c73e9739325fa4817d9109d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c044349f323e3aad1215ccbd28b9a4f9f750ae6e0ca0e3ecdaeb4601122fb016169552ab47e4de63b753a0b77eff29c37f4a1b1e56fa9d4486132f9efa599fc
|
7
|
+
data.tar.gz: dcc9281e5572ca88fb7a8073f1ab7a145209d9a7c055af62c0b985e87e3eeac59a5e5e6fc8beb533c6cf9b1ee217a8538d49460010f0d849d7243588987dc860
|
data/README.md
CHANGED
@@ -26,13 +26,13 @@ Or install it yourself as:
|
|
26
26
|
|
27
27
|
### neo4j-ruby-driver
|
28
28
|
|
29
|
-
As a prerequisite
|
29
|
+
As a prerequisite seabolt must be installed.
|
30
30
|
|
31
31
|
On macOS
|
32
32
|
|
33
33
|
$ brew install michael-simons/homebrew-seabolt/seabolt
|
34
34
|
|
35
|
-
On other systems please follow the instructions to install either from package or source. Make sure the libseabolt17 ends up in a system lib path e.g. /usr/local/lib
|
35
|
+
On other systems please follow the instructions to install [seabolt](https://github.com/neo4j-drivers/seabolt) either from package or source. Make sure the libseabolt17 ends up in a system lib path e.g. /usr/local/lib
|
36
36
|
|
37
37
|
Add this line to your application's Gemfile:
|
38
38
|
|
@@ -61,14 +61,12 @@ This gem includes 2 different implementations: java driver based and another one
|
|
61
61
|
|
62
62
|
For java driver based:
|
63
63
|
|
64
|
-
$ bin/setup
|
64
|
+
$ driver=java bin/setup
|
65
65
|
|
66
|
-
FFI based same as above but with
|
66
|
+
FFI based same as above but with driver variable set:
|
67
67
|
|
68
|
-
$
|
68
|
+
$ bin/setup
|
69
69
|
|
70
|
-
Please note that seabolt has to be installed separately: https://github.com/neo4j-drivers/seabolt
|
71
|
-
|
72
70
|
## Testing
|
73
71
|
|
74
72
|
To run the tests the following tools need to be installed:
|
data/ffi/neo4j/driver/config.rb
CHANGED
@@ -10,6 +10,13 @@ module Neo4j
|
|
10
10
|
end
|
11
11
|
|
12
12
|
class << self
|
13
|
+
# How can following Java config options be expressed in seabolt:
|
14
|
+
# withLeakedSessionsLogging
|
15
|
+
# withConnectionLivenessCheckTimeout
|
16
|
+
# withTrustStrategy TRUST_ALL_CERTIFICATES, TRUST_CUSTOM_CA_SIGNED_CERTIFICATES, TRUST_SYSTEM_CA_SIGNED_CERTIFICATE
|
17
|
+
# and in the reverse what those seabolt options correspond to in java:
|
18
|
+
# BoltConfig_set_user_agent
|
19
|
+
|
13
20
|
def default_config
|
14
21
|
{
|
15
22
|
logger: ActiveSupport::Logger.new(STDOUT, level: ::Logger::ERROR), # :set_log
|
@@ -23,7 +30,7 @@ module Neo4j
|
|
23
30
|
connection_timeout: 30.seconds, # BoltSocketOptions_set_connect_timeout
|
24
31
|
max_transaction_retry_time: Internal::Retry::ExponentialBackoffRetryLogic::DEFAULT_MAX_RETRY_TIME,
|
25
32
|
#resolver: nil # :set_address_resolver
|
26
|
-
#
|
33
|
+
keep_alive: true, # BoltSocketOptions_set_keep_alive
|
27
34
|
# ???? BoltConfig_set_user_agent
|
28
35
|
}
|
29
36
|
end
|
@@ -54,15 +54,17 @@ module Neo4j
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def set_socket_options(bolt_config, config)
|
57
|
-
socket_options =
|
57
|
+
socket_options = Bolt::SocketOptions.create
|
58
58
|
config.each do |key, value|
|
59
59
|
case key
|
60
60
|
when :connection_timeout
|
61
|
-
check_error Bolt::SocketOptions.set_connect_timeout(socket_options
|
61
|
+
check_error Bolt::SocketOptions.set_connect_timeout(socket_options,
|
62
62
|
DurationNormalizer.milliseconds(value))
|
63
|
+
when :keep_alive
|
64
|
+
check_error Bolt::SocketOptions.set_keep_alive(socket_options, value ? 1 : 0)
|
63
65
|
end
|
64
66
|
end
|
65
|
-
check_error Bolt::Config.set_socket_options(bolt_config, socket_options)
|
67
|
+
check_error Bolt::Config.set_socket_options(bolt_config, socket_options)
|
66
68
|
end
|
67
69
|
|
68
70
|
def routing_context(uri)
|
data/lib/neo4j/driver/version.rb
CHANGED
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-ruby-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ">="
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '0'
|
19
|
-
name: activesupport
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: zeitwerk
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 2.1.10
|
33
|
-
name: zeitwerk
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -39,12 +39,12 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.1.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: ffi
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - ">="
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
|
-
name: ffi
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -53,12 +53,12 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: recursive-open-struct
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
59
|
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
|
-
name: recursive-open-struct
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -67,12 +67,12 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
name: ffaker
|
70
71
|
requirement: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
73
|
- - ">="
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
|
-
name: ffaker
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -81,12 +81,12 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
+
name: hoe
|
84
85
|
requirement: !ruby/object:Gem::Requirement
|
85
86
|
requirements:
|
86
87
|
- - ">="
|
87
88
|
- !ruby/object:Gem::Version
|
88
89
|
version: '0'
|
89
|
-
name: hoe
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -95,12 +95,12 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
+
name: hoe-bundler
|
98
99
|
requirement: !ruby/object:Gem::Requirement
|
99
100
|
requirements:
|
100
101
|
- - ">="
|
101
102
|
- !ruby/object:Gem::Version
|
102
103
|
version: '0'
|
103
|
-
name: hoe-bundler
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,12 +109,12 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
+
name: hoe-gemspec
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
114
|
requirements:
|
114
115
|
- - ">="
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: '0'
|
117
|
-
name: hoe-gemspec
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -123,12 +123,12 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
+
name: parallel
|
126
127
|
requirement: !ruby/object:Gem::Requirement
|
127
128
|
requirements:
|
128
129
|
- - ">="
|
129
130
|
- !ruby/object:Gem::Version
|
130
131
|
version: '0'
|
131
|
-
name: parallel
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -137,12 +137,12 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
140
141
|
requirement: !ruby/object:Gem::Requirement
|
141
142
|
requirements:
|
142
143
|
- - ">="
|
143
144
|
- !ruby/object:Gem::Version
|
144
145
|
version: '0'
|
145
|
-
name: rake
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -151,12 +151,12 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec-its
|
154
155
|
requirement: !ruby/object:Gem::Requirement
|
155
156
|
requirements:
|
156
157
|
- - ">="
|
157
158
|
- !ruby/object:Gem::Version
|
158
159
|
version: '0'
|
159
|
-
name: rspec-its
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -165,12 +165,12 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
+
name: rspec-mocks
|
168
169
|
requirement: !ruby/object:Gem::Requirement
|
169
170
|
requirements:
|
170
171
|
- - ">="
|
171
172
|
- !ruby/object:Gem::Version
|
172
173
|
version: '0'
|
173
|
-
name: rspec-mocks
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -179,6 +179,7 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
+
name: rdoc
|
182
183
|
requirement: !ruby/object:Gem::Requirement
|
183
184
|
requirements:
|
184
185
|
- - ">="
|
@@ -187,7 +188,6 @@ dependencies:
|
|
187
188
|
- - "<"
|
188
189
|
- !ruby/object:Gem::Version
|
189
190
|
version: '7'
|
190
|
-
name: rdoc
|
191
191
|
type: :development
|
192
192
|
prerelease: false
|
193
193
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -319,7 +319,7 @@ licenses:
|
|
319
319
|
- MIT
|
320
320
|
metadata:
|
321
321
|
homepage_uri: https://github.com/neo4jrb/neo4j-ruby-driver
|
322
|
-
post_install_message:
|
322
|
+
post_install_message:
|
323
323
|
rdoc_options:
|
324
324
|
- "--main"
|
325
325
|
- README.md
|
@@ -337,8 +337,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
337
337
|
- !ruby/object:Gem::Version
|
338
338
|
version: '0'
|
339
339
|
requirements: []
|
340
|
-
rubygems_version: 3.
|
341
|
-
signing_key:
|
340
|
+
rubygems_version: 3.1.2
|
341
|
+
signing_key:
|
342
342
|
specification_version: 4
|
343
343
|
summary: ''
|
344
344
|
test_files: []
|