neo4j-core 6.1.6 → 7.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -9
  3. data/README.md +48 -0
  4. data/lib/neo4j-core.rb +23 -0
  5. data/lib/neo4j-core/helpers.rb +8 -0
  6. data/lib/neo4j-core/query.rb +23 -20
  7. data/lib/neo4j-core/query_clauses.rb +18 -32
  8. data/lib/neo4j-core/query_find_in_batches.rb +3 -1
  9. data/lib/neo4j-core/version.rb +1 -1
  10. data/lib/neo4j-embedded/cypher_response.rb +4 -0
  11. data/lib/neo4j-embedded/embedded_database.rb +3 -5
  12. data/lib/neo4j-embedded/embedded_node.rb +4 -4
  13. data/lib/neo4j-embedded/embedded_session.rb +21 -10
  14. data/lib/neo4j-embedded/embedded_transaction.rb +4 -10
  15. data/lib/neo4j-server/cypher_node.rb +5 -4
  16. data/lib/neo4j-server/cypher_relationship.rb +3 -3
  17. data/lib/neo4j-server/cypher_response.rb +4 -0
  18. data/lib/neo4j-server/cypher_session.rb +31 -22
  19. data/lib/neo4j-server/cypher_transaction.rb +23 -15
  20. data/lib/neo4j-server/resource.rb +3 -4
  21. data/lib/neo4j/core/cypher_session.rb +17 -9
  22. data/lib/neo4j/core/cypher_session/adaptors.rb +116 -33
  23. data/lib/neo4j/core/cypher_session/adaptors/bolt.rb +331 -0
  24. data/lib/neo4j/core/cypher_session/adaptors/bolt/chunk_writer_io.rb +76 -0
  25. data/lib/neo4j/core/cypher_session/adaptors/bolt/pack_stream.rb +288 -0
  26. data/lib/neo4j/core/cypher_session/adaptors/embedded.rb +60 -29
  27. data/lib/neo4j/core/cypher_session/adaptors/has_uri.rb +63 -0
  28. data/lib/neo4j/core/cypher_session/adaptors/http.rb +123 -119
  29. data/lib/neo4j/core/cypher_session/responses.rb +17 -2
  30. data/lib/neo4j/core/cypher_session/responses/bolt.rb +135 -0
  31. data/lib/neo4j/core/cypher_session/responses/embedded.rb +46 -11
  32. data/lib/neo4j/core/cypher_session/responses/http.rb +49 -40
  33. data/lib/neo4j/core/cypher_session/transactions.rb +33 -0
  34. data/lib/neo4j/core/cypher_session/transactions/bolt.rb +36 -0
  35. data/lib/neo4j/core/cypher_session/transactions/embedded.rb +32 -0
  36. data/lib/neo4j/core/cypher_session/transactions/http.rb +52 -0
  37. data/lib/neo4j/core/instrumentable.rb +2 -2
  38. data/lib/neo4j/core/label.rb +182 -0
  39. data/lib/neo4j/core/node.rb +8 -3
  40. data/lib/neo4j/core/relationship.rb +12 -4
  41. data/lib/neo4j/entity_equality.rb +1 -1
  42. data/lib/neo4j/session.rb +4 -5
  43. data/lib/neo4j/transaction.rb +108 -72
  44. data/neo4j-core.gemspec +6 -6
  45. metadata +34 -40
data/neo4j-core.gemspec CHANGED
@@ -24,13 +24,12 @@ 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('httparty')
28
27
  s.add_dependency('faraday', '~> 0.9.0')
29
- s.add_dependency('net-http-persistent', '~> 2.9.4')
28
+ s.add_dependency('net-http-persistent')
30
29
  s.add_dependency('httpclient')
31
30
  s.add_dependency('faraday_middleware', '~> 0.10.0')
32
31
  s.add_dependency('json')
33
- s.add_dependency('activesupport') # For ActiveSupport::Notifications
32
+ s.add_dependency('activesupport', '>= 4.0')
34
33
  s.add_dependency('multi_json')
35
34
  s.add_dependency('faraday_middleware-multi_json')
36
35
  s.add_dependency('neo4j-rake_tasks', '>= 0.3.0')
@@ -38,12 +37,13 @@ Neo4j-core provides classes and methods to work with the graph database Neo4j.
38
37
  s.add_development_dependency('pry')
39
38
  s.add_development_dependency('yard')
40
39
  s.add_development_dependency('simplecov')
41
- s.add_development_dependency('guard')
42
- s.add_development_dependency('guard-rubocop')
43
- s.add_development_dependency('rubocop', '~> 0.34.0')
40
+ s.add_development_dependency('rubocop', '~> 0.39.0')
44
41
 
45
42
  if RUBY_PLATFORM == 'java'
46
43
  s.add_dependency('neo4j-community', '>= 2.1.1')
47
44
  s.add_development_dependency 'ruby-debug'
45
+ else
46
+ s.add_development_dependency('guard')
47
+ s.add_development_dependency('guard-rubocop')
48
48
  end
49
49
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.6
4
+ version: 7.0.0.alpha.1
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: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: httparty
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: faraday
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +28,16 @@ dependencies:
42
28
  name: net-http-persistent
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - "~>"
31
+ - - ">="
46
32
  - !ruby/object:Gem::Version
47
- version: 2.9.4
33
+ version: '0'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - "~>"
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
- version: 2.9.4
40
+ version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: httpclient
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +86,14 @@ dependencies:
100
86
  requirements:
101
87
  - - ">="
102
88
  - !ruby/object:Gem::Version
103
- version: '0'
89
+ version: '4.0'
104
90
  type: :runtime
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - ">="
109
95
  - !ruby/object:Gem::Version
110
- version: '0'
96
+ version: '4.0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: multi_json
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -193,21 +179,21 @@ dependencies:
193
179
  - !ruby/object:Gem::Version
194
180
  version: '0'
195
181
  - !ruby/object:Gem::Dependency
196
- name: guard
182
+ name: rubocop
197
183
  requirement: !ruby/object:Gem::Requirement
198
184
  requirements:
199
- - - ">="
185
+ - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: '0'
187
+ version: 0.39.0
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
- - - ">="
192
+ - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: '0'
194
+ version: 0.39.0
209
195
  - !ruby/object:Gem::Dependency
210
- name: guard-rubocop
196
+ name: guard
211
197
  requirement: !ruby/object:Gem::Requirement
212
198
  requirements:
213
199
  - - ">="
@@ -221,23 +207,21 @@ dependencies:
221
207
  - !ruby/object:Gem::Version
222
208
  version: '0'
223
209
  - !ruby/object:Gem::Dependency
224
- name: rubocop
210
+ name: guard-rubocop
225
211
  requirement: !ruby/object:Gem::Requirement
226
212
  requirements:
227
- - - "~>"
213
+ - - ">="
228
214
  - !ruby/object:Gem::Version
229
- version: 0.34.0
215
+ version: '0'
230
216
  type: :development
231
217
  prerelease: false
232
218
  version_requirements: !ruby/object:Gem::Requirement
233
219
  requirements:
234
- - - "~>"
220
+ - - ">="
235
221
  - !ruby/object:Gem::Version
236
- version: 0.34.0
237
- description: 'Neo4j-core provides classes and methods to work with the graph database
238
- Neo4j.
239
-
240
- '
222
+ version: '0'
223
+ description: |
224
+ Neo4j-core provides classes and methods to work with the graph database Neo4j.
241
225
  email: andreas.ronge@gmail.com, chris@subvertallmedia.com, brian@brian-underwood.codes
242
226
  executables: []
243
227
  extensions: []
@@ -280,13 +264,23 @@ files:
280
264
  - lib/neo4j/ansi.rb
281
265
  - lib/neo4j/core/cypher_session.rb
282
266
  - lib/neo4j/core/cypher_session/adaptors.rb
267
+ - lib/neo4j/core/cypher_session/adaptors/bolt.rb
268
+ - lib/neo4j/core/cypher_session/adaptors/bolt/chunk_writer_io.rb
269
+ - lib/neo4j/core/cypher_session/adaptors/bolt/pack_stream.rb
283
270
  - lib/neo4j/core/cypher_session/adaptors/embedded.rb
271
+ - lib/neo4j/core/cypher_session/adaptors/has_uri.rb
284
272
  - lib/neo4j/core/cypher_session/adaptors/http.rb
285
273
  - lib/neo4j/core/cypher_session/responses.rb
274
+ - lib/neo4j/core/cypher_session/responses/bolt.rb
286
275
  - lib/neo4j/core/cypher_session/responses/embedded.rb
287
276
  - lib/neo4j/core/cypher_session/responses/http.rb
288
277
  - lib/neo4j/core/cypher_session/result.rb
278
+ - lib/neo4j/core/cypher_session/transactions.rb
279
+ - lib/neo4j/core/cypher_session/transactions/bolt.rb
280
+ - lib/neo4j/core/cypher_session/transactions/embedded.rb
281
+ - lib/neo4j/core/cypher_session/transactions/http.rb
289
282
  - lib/neo4j/core/instrumentable.rb
283
+ - lib/neo4j/core/label.rb
290
284
  - lib/neo4j/core/node.rb
291
285
  - lib/neo4j/core/path.rb
292
286
  - lib/neo4j/core/relationship.rb
@@ -323,12 +317,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
323
317
  version: 1.9.3
324
318
  required_rubygems_version: !ruby/object:Gem::Requirement
325
319
  requirements:
326
- - - ">="
320
+ - - ">"
327
321
  - !ruby/object:Gem::Version
328
- version: '0'
322
+ version: 1.3.1
329
323
  requirements: []
330
324
  rubyforge_project:
331
- rubygems_version: 2.5.1
325
+ rubygems_version: 2.4.5.1
332
326
  signing_key:
333
327
  specification_version: 4
334
328
  summary: A basic library to work with the graph database Neo4j.