neo4j-core 8.0.2 → 8.0.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d8cb5d66d31e972455f6cf54023c7e0c3fb56fc
|
4
|
+
data.tar.gz: 78103a5004ca85ed66109d543b796709702da442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02e99a87d11fb62b138b74781d19fa0806808c093514f2219dc247ba9e4879d47029d34faece54af400c0ec217016599e8e5b74a3ba282a61436182e76a650a1
|
7
|
+
data.tar.gz: 1f4af28e7273ce88e881764ac0fc81d81c884fe056b5d10f70c9512900356c693dec483ecec931f0effa3fe6e4ea93b0d4f7098d26bc7b77649c2a73c6031740
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -15,20 +15,14 @@ module Neo4j
|
|
15
15
|
Neo4j::Core::CypherSession::Transactions::Base
|
16
16
|
end
|
17
17
|
|
18
|
-
%w[
|
19
|
-
version
|
20
|
-
].each do |method, &_block|
|
21
|
-
define_method(method) do |*args, &block|
|
22
|
-
@adaptor.send(method, *args, &block)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
18
|
%w[
|
27
19
|
query
|
28
20
|
queries
|
29
21
|
|
30
22
|
transaction
|
31
23
|
|
24
|
+
version
|
25
|
+
|
32
26
|
indexes
|
33
27
|
constraints
|
34
28
|
].each do |method, &_block|
|
@@ -175,7 +175,7 @@ ERROR
|
|
175
175
|
instrument(:query, 'neo4j.core.cypher_query', %w[query]) do |_, _start, _finish, _id, payload|
|
176
176
|
query = payload[:query]
|
177
177
|
params_string = (query.parameters && !query.parameters.empty? ? "| #{query.parameters.inspect}" : EMPTY)
|
178
|
-
cypher = query.pretty_cypher ? NEWLINE_W_SPACES + query.pretty_cypher.gsub(/\n/, NEWLINE_W_SPACES) : query.cypher
|
178
|
+
cypher = query.pretty_cypher ? (NEWLINE_W_SPACES if query.pretty_cypher.include?("\n")).to_s + query.pretty_cypher.gsub(/\n/, NEWLINE_W_SPACES) : query.cypher
|
179
179
|
|
180
180
|
" #{ANSI::CYAN}#{query.context || 'CYPHER'}#{ANSI::CLEAR} #{cypher} #{params_string}"
|
181
181
|
end
|
@@ -48,13 +48,18 @@ module Neo4j
|
|
48
48
|
"Queries: #{queries.map(&:cypher)}"
|
49
49
|
end
|
50
50
|
|
51
|
-
|
51
|
+
self.class.instrument_request do
|
52
|
+
send_query_jobs(queries)
|
52
53
|
|
53
|
-
|
54
|
+
build_response(queries, options[:wrap_level] || @options[:wrap_level])
|
55
|
+
end
|
54
56
|
end
|
55
57
|
|
56
|
-
def version
|
57
|
-
|
58
|
+
def version(session)
|
59
|
+
result = query(session, 'CALL dbms.components()', {}, skip_instrumentation: true)
|
60
|
+
|
61
|
+
# BTW: community / enterprise could be retrieved via `result.first.edition`
|
62
|
+
result.first.versions[0]
|
58
63
|
end
|
59
64
|
|
60
65
|
def connected?
|
data/neo4j-core.gemspec
CHANGED
@@ -24,26 +24,26 @@ Neo4j-core provides classes and methods to work with the graph database Neo4j.
|
|
24
24
|
s.extra_rdoc_files = %w[README.md]
|
25
25
|
s.rdoc_options = ['--quiet', '--title', 'Neo4j::Core', '--line-numbers', '--main', 'README.rdoc', '--inline-source']
|
26
26
|
|
27
|
+
s.add_dependency('activesupport', '>= 4.0')
|
27
28
|
s.add_dependency('faraday', '>= 0.9.0')
|
28
|
-
s.add_dependency('typhoeus', '>= 1.1.2')
|
29
|
-
s.add_dependency('httpclient')
|
30
29
|
s.add_dependency('faraday_middleware', '~> 0.10.0')
|
30
|
+
s.add_dependency('faraday_middleware-multi_json')
|
31
|
+
s.add_dependency('httpclient')
|
31
32
|
s.add_dependency('json')
|
32
|
-
s.add_dependency('activesupport', '>= 4.0')
|
33
33
|
s.add_dependency('multi_json')
|
34
|
-
s.add_dependency('
|
34
|
+
s.add_dependency('typhoeus', '>= 1.1.2')
|
35
35
|
|
36
|
+
s.add_development_dependency('neo4j-rake_tasks', '>= 0.3.0')
|
36
37
|
s.add_development_dependency('pry')
|
37
|
-
s.add_development_dependency('yard')
|
38
38
|
s.add_development_dependency('simplecov')
|
39
|
-
s.add_development_dependency('
|
39
|
+
s.add_development_dependency('yard')
|
40
40
|
|
41
41
|
if RUBY_PLATFORM == 'java'
|
42
42
|
s.add_dependency('neo4j-community', '>= 2.1.1')
|
43
43
|
s.add_development_dependency 'ruby-debug'
|
44
44
|
else
|
45
|
-
s.add_development_dependency('rubocop', '~> 0.49.1')
|
46
45
|
s.add_development_dependency('guard')
|
47
46
|
s.add_development_dependency('guard-rubocop')
|
47
|
+
s.add_development_dependency('rubocop', '~> 0.49.1')
|
48
48
|
end
|
49
49
|
end
|
metadata
CHANGED
@@ -1,73 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.
|
4
|
+
version: 8.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge, Chris Grigg, Brian Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.9.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.9.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: faraday_middleware
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.10.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.10.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: faraday_middleware
|
56
|
+
name: faraday_middleware-multi_json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: httpclient
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,19 +81,19 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: json
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: multi_json
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,35 +109,35 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: typhoeus
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 1.1.2
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 1.1.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: neo4j-rake_tasks
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.3.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.3.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: pry
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -165,35 +165,35 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0
|
173
|
+
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0
|
180
|
+
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: guard
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0
|
187
|
+
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0
|
194
|
+
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name: guard
|
196
|
+
name: guard-rubocop
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
@@ -207,19 +207,19 @@ dependencies:
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: rubocop
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
215
|
+
version: 0.49.1
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - "
|
220
|
+
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
222
|
+
version: 0.49.1
|
223
223
|
description: 'Neo4j-core provides classes and methods to work with the graph database
|
224
224
|
Neo4j.
|
225
225
|
|