active_node 2.3.4 → 2.3.5

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: 068907cb909d3802f5a52c3b9ec3645bd5ab3246
4
- data.tar.gz: 8fd0b5d063bcf6226b3f307804e89f843b3084bf
3
+ metadata.gz: 2f5fd6bbd377e9d3a0ea0d1ee61fae0b6e04ad87
4
+ data.tar.gz: 1ba851caa4b8a465c41f2e66291874d68b3272cb
5
5
  SHA512:
6
- metadata.gz: 9b949f9fb780fe090b81c6d99c5683fa271c26f01fdb1f521e3de177492b05c35dccf3fb8b5afd96754f8004908c920d2c7f4f3472054b137f76071de208fad6
7
- data.tar.gz: 6de7ce32dbb5a33c8e11c2b07dfcb0219757aca660f09b99b81e0a6ce8d7e6e83560600fd919252edc876a70e28529506b5af79030a4d8142700fa8dfcfea4c4
6
+ metadata.gz: ac304c846ad143695f9318c30888afb62d263ed23ec5a97b8e162473a3955c935357fc87677105a7f1a6646525f670504b664b12962d638da4d73f415c86d41f
7
+ data.tar.gz: da05a6381b63b281c03c3058fb4dd6a33d6c09fc84a43b6d2b38abaf1b14c80e9aebbf84de675401016f5b1fba3da704c9d84dcf1dc8bf43a9a45e4f8b5e4665
@@ -151,7 +151,7 @@ module ActiveNode
151
151
  def initial_match
152
152
  # "PLANNER RULE match (n0#{label @klass})"
153
153
  # Temporary fix while waiting for neo4j 2.2.2
154
- "CYPHER 2.1 match (n0#{label @klass})"
154
+ "match (n0#{label @klass})"
155
155
  end
156
156
 
157
157
  def execute
@@ -1,3 +1,3 @@
1
1
  module ActiveNode
2
- VERSION = "2.3.4"
2
+ VERSION = "2.3.5"
3
3
  end
@@ -149,6 +149,9 @@ describe ActiveNode::Persistence do
149
149
  p=Person.create!(name: 'abc', address: a)
150
150
  c=Client.create!(name: 'client', address: a)
151
151
  expect(a.incoming(:address)).to include(p, c)
152
+ #but
153
+ expect(a.person).to eq(p)
154
+ expect(a.client).to eq(c)
152
155
  end
153
156
  end
154
157
 
@@ -1,3 +1,5 @@
1
1
  class Address < ActiveNode::Base
2
2
  attribute :city, type: String, default: "New York"
3
+ has_one :person, direction: :incoming
4
+ has_one :client, direction: :incoming
3
5
  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.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-06 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_attr