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: 142e47b6ab439fe4e7fe6e585519079447372aa1
4
- data.tar.gz: 5890bb51cfc02f3d5ebd5d5bbdc7d3a0fcba0e72
3
+ metadata.gz: 1d8cb5d66d31e972455f6cf54023c7e0c3fb56fc
4
+ data.tar.gz: 78103a5004ca85ed66109d543b796709702da442
5
5
  SHA512:
6
- metadata.gz: da7ed02562dd7d7fcd8a77a5f96a51eb01b93dbb7de0880fb62be0b4b2011ca66343333c4c50e808b0f375912656282f9e39c968b399fa09b89152646dd6fdb8
7
- data.tar.gz: 76b67f4a4ef8a1032ad86ec85e5ee185d88989148c5918f3fe58ea90f4191dc9e43aa3ff3ad143a28a882b37e4cdf08492dd641d5eb6ea21ace3a3aedbb203b2
6
+ metadata.gz: 02e99a87d11fb62b138b74781d19fa0806808c093514f2219dc247ba9e4879d47029d34faece54af400c0ec217016599e8e5b74a3ba282a61436182e76a650a1
7
+ data.tar.gz: 1f4af28e7273ce88e881764ac0fc81d81c884fe056b5d10f70c9512900356c693dec483ecec931f0effa3fe6e4ea93b0d4f7098d26bc7b77649c2a73c6031740
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '8.0.2'
3
+ VERSION = '8.0.3'
4
4
  end
5
5
  end
@@ -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
- send_query_jobs(queries)
51
+ self.class.instrument_request do
52
+ send_query_jobs(queries)
52
53
 
53
- build_response(queries, options[:wrap_level] || @options[:wrap_level])
54
+ build_response(queries, options[:wrap_level] || @options[:wrap_level])
55
+ end
54
56
  end
55
57
 
56
- def version
57
- fail 'should be implemented!'
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?
@@ -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('faraday_middleware-multi_json')
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('neo4j-rake_tasks', '>= 0.3.0')
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.2
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-22 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: faraday
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
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: 0.9.0
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: typhoeus
28
+ name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.2
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: 1.1.2
40
+ version: 0.9.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: httpclient
42
+ name: faraday_middleware
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
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: '0'
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.10.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.10.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: json
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: activesupport
84
+ name: json
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '4.0'
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: '4.0'
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: faraday_middleware-multi_json
112
+ name: typhoeus
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
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: '0'
124
+ version: 1.1.2
125
125
  - !ruby/object:Gem::Dependency
126
- name: pry
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: '0'
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: '0'
138
+ version: 0.3.0
139
139
  - !ruby/object:Gem::Dependency
140
- name: yard
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: neo4j-rake_tasks
168
+ name: yard
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 0.3.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.3.0
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: rubocop
182
+ name: guard
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: 0.49.1
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.49.1
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: guard-rubocop
210
+ name: rubocop
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ">="
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: '0'
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: '0'
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