neo4j-core 7.0.0.alpha.6 → 7.0.0.alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -1
- data/lib/neo4j-core/query.rb +2 -3
- data/lib/neo4j-core/query_clauses.rb +18 -0
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j-core/version.rb.orig +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ae20dabf10904c1f908c4112bc12a53cc5ac2a
|
4
|
+
data.tar.gz: 9e37cbb29aea85dd6f200c497c22bbf57779be46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85e410f549a2c1cd8cf01c2077749f0edd05442eb64bf179dbc319cd9dc2b549358060619b369f360827cf9484443bd3168aeea4741e335c765c4b010997f64
|
7
|
+
data.tar.gz: 5bd7e2eb99a8232ed89304d8244e4852559871cae0c18a6d88608d9546a6c6b077d093930e9d2a176d5d294ce63128b8fe8e6b5da1df5d2656aa7829c9f80984
|
data/Gemfile
CHANGED
@@ -9,7 +9,11 @@ gem 'tins', '< 1.7' if RUBY_VERSION.to_f < 2.0
|
|
9
9
|
|
10
10
|
group 'development' do
|
11
11
|
gem 'guard-rspec', require: false if RUBY_PLATFORM != 'java'
|
12
|
-
|
12
|
+
if RUBY_VERSION.to_f < 2.0
|
13
|
+
gem 'overcommit', '< 0.35.0'
|
14
|
+
else
|
15
|
+
gem 'overcommit'
|
16
|
+
end
|
13
17
|
end
|
14
18
|
|
15
19
|
group 'test' do
|
data/lib/neo4j-core/query.rb
CHANGED
@@ -159,11 +159,10 @@ module Neo4j
|
|
159
159
|
# DETACH DELETE clause
|
160
160
|
# @return [Query]
|
161
161
|
|
162
|
-
METHODS = %w(start match optional_match using where create create_unique merge set on_create_set on_match_set remove unwind delete detach_delete with return order skip limit)
|
163
|
-
BREAK_METHODS = %(with)
|
162
|
+
METHODS = %w(start match optional_match call using where create create_unique merge set on_create_set on_match_set remove unwind delete detach_delete with return order skip limit) # rubocop:disable Metrics/LineLength
|
163
|
+
BREAK_METHODS = %(with call)
|
164
164
|
|
165
165
|
CLAUSIFY_CLAUSE = proc { |method| const_get(method.to_s.split('_').map(&:capitalize).join + 'Clause') }
|
166
|
-
|
167
166
|
CLAUSES = METHODS.map(&CLAUSIFY_CLAUSE)
|
168
167
|
|
169
168
|
METHODS.each_with_index do |clause, i|
|
@@ -347,6 +347,24 @@ module Neo4j
|
|
347
347
|
end
|
348
348
|
end
|
349
349
|
|
350
|
+
class CallClause < Clause
|
351
|
+
KEYWORD = 'CALL'
|
352
|
+
|
353
|
+
def from_string(value)
|
354
|
+
value
|
355
|
+
end
|
356
|
+
|
357
|
+
class << self
|
358
|
+
def clause_strings(clauses)
|
359
|
+
clauses.map!(&:value)
|
360
|
+
end
|
361
|
+
|
362
|
+
def clause_join
|
363
|
+
" #{KEYWORD} "
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
350
368
|
class MatchClause < Clause
|
351
369
|
KEYWORD = 'MATCH'
|
352
370
|
|
data/lib/neo4j-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.0.alpha.
|
4
|
+
version: 7.0.0.alpha.7
|
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-09-
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -242,6 +242,7 @@ files:
|
|
242
242
|
- lib/neo4j-core/query_clauses.rb
|
243
243
|
- lib/neo4j-core/query_find_in_batches.rb
|
244
244
|
- lib/neo4j-core/version.rb
|
245
|
+
- lib/neo4j-core/version.rb.orig
|
245
246
|
- lib/neo4j-embedded.rb
|
246
247
|
- lib/neo4j-embedded/cypher_response.rb
|
247
248
|
- lib/neo4j-embedded/embedded_database.rb
|
@@ -330,4 +331,3 @@ signing_key:
|
|
330
331
|
specification_version: 4
|
331
332
|
summary: A basic library to work with the graph database Neo4j.
|
332
333
|
test_files: []
|
333
|
-
has_rdoc: true
|