active_node 2.1.0 → 2.1.1

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: 2b740f77651e77a06827ae6f01ab6a6592c3f8ad
4
- data.tar.gz: 03ecfa69835cae01a75c82fb869d263020fbc5d9
3
+ metadata.gz: 26171a6609bb3a3042fd11f4202bb9abc700315f
4
+ data.tar.gz: e888b8fb7acf8cdee146d4a2aaa29052c7ce219a
5
5
  SHA512:
6
- metadata.gz: 189c5d2da767a7ea045aa5973bfac329177863280490f30d8e380255c4afed57f763726845a878778f6c742931d6d0f26945d763467dd82eda5d66208608332b
7
- data.tar.gz: 74300a45a8374d76f946cc77fd0f59dd606aa5b2c437053d40813bf0f6475eee9cf84a5eaf38d3eb22a43a23aea6f4f5aa04de9d91414877853cb0381a6da9cb
6
+ metadata.gz: 2ac77c3a6654c341b368fcf60c317ef04bdee15d793332373070bd08658a8daae18e719ebdb23c758f5515b7e8829e1f385a7a4cd8a7c4261c8e81621c5db932
7
+ data.tar.gz: 075a8582b6c6e28fd0b60483fcd141d9d680b9e34dfcc411ee528e6e7d34e1948ac1c9b0e5658ea609262b4a9633116da35ea4eb50ac6e2348b5a2704b13596a
@@ -16,7 +16,7 @@ module ActiveNode
16
16
  end
17
17
 
18
18
  def build *objects
19
- ids = objects.map { |o| o.is_a?(ActiveNode::Base) ? o.id.tap { |id| @object_cache[id]=o } : o }
19
+ ids = objects.map { |o| o.is_a?(ActiveNode::Base) ? o.id.tap { |id| @object_cache[id]=o } : extract_id(o) }
20
20
  parse_results execute(ids.compact)
21
21
  @object_cache.slice(*ids).values
22
22
  end
@@ -27,7 +27,7 @@ module ActiveNode
27
27
  end
28
28
 
29
29
  def execute(ids)
30
- q="start n0=node({ids}) #{query}#{"where n0#{label @klass}" if @klass} return #{list_with_rel(@reflections.size)} order by #{created_at_list(@reflections.size)}"
30
+ q="start n0=node({ids}) #{query} #{"where n0#{label @klass}" if @klass} return #{list_with_rel(@reflections.size)} order by #{created_at_list(@reflections.size)}"
31
31
  Neo.db.execute_query(q, ids: ids)
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module ActiveNode
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_node
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-14 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_attr