neo4j 7.0.0.rc.1 → 7.0.0.rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6bcfe613b82f80a6f772cb99f0df6042882209f
4
- data.tar.gz: 2d63ea0d2a44bc68cd69bb59977bab5b056c8ab1
3
+ metadata.gz: 1a8afc709bd3d4e369395546f660ec08451e9d28
4
+ data.tar.gz: 181c2899fbab41d65b573631dea7db7a9333ef79
5
5
  SHA512:
6
- metadata.gz: 5e8ae42d5b5708112736c066c5d033ee964130ae3df87ef0a6b4686ae446936770114a38ef66c0a3e2e446a9f9d98f95f0f71b3fd77a932c46b39a0ddce401ec
7
- data.tar.gz: f3fa6b6e2b81eeff82fe724cb6ac1f1491d3ea93754787a9c7089737ddf394d8b2e8f687c9fc60ac653120e12e5416418d046345d356d97733d10f71375297df
6
+ metadata.gz: f35c3f75e3a7fd737738892811844381d8b2fb83d4533635ddf0b790ff04a9e10634a0fee4199324365c89ae144e00d9520655adc459a0d41308cbc170e21696
7
+ data.tar.gz: 080b24bf7d0bb3c9990cbbfd72de0f7a60ba172ecc0089364b2c7d5bd9c3ff0deef3a0fd7a8cf4b64e11504aa53efd9e45f10718f3b97b9d91e16efa4ec44c7f
@@ -57,8 +57,7 @@ module Neo4j::ActiveNode
57
57
  def create_model
58
58
  node = _create_node(props_for_create)
59
59
  init_on_load(node, node.props)
60
- send_props(@relationship_props) if @relationship_props
61
- @relationship_props = @deferred_nodes = nil
60
+ @deferred_nodes = nil
62
61
  true
63
62
  end
64
63
 
@@ -6,7 +6,6 @@ module Neo4j::ActiveNode
6
6
  def initialize(attributes = nil)
7
7
  super(attributes)
8
8
  @attributes ||= Hash[self.class.attributes_nil_hash]
9
- send_props(@relationship_props) if !@relationship_props.nil?
10
9
  end
11
10
 
12
11
  module ClassMethods
@@ -75,7 +75,7 @@ module Neo4j
75
75
  "#{var}.#{association_id_key} = {other_node_id}"
76
76
  end
77
77
  node_id = other.respond_to?(:neo_id) ? other.neo_id : other
78
- self.where(where_filter).params(other_node_id: node_id).query.return("count(#{var}) as count").first.count > 0
78
+ self.where(where_filter).params(other_node_id: node_id).query.reorder.return("count(#{var}) as count").first.count > 0
79
79
  end
80
80
  end
81
81
 
@@ -39,9 +39,9 @@ module Neo4j
39
39
 
40
40
  association_proxy << node
41
41
  end
42
-
43
- @deferred_create_cache = {}
44
42
  end
43
+
44
+ @deferred_create_cache = {}
45
45
  end
46
46
  end
47
47
  end
@@ -30,7 +30,6 @@ module Neo4j::ActiveRel
30
30
 
31
31
  def initialize(attributes = nil)
32
32
  super(attributes)
33
- send_props(@relationship_props) unless @relationship_props.nil?
34
33
  end
35
34
 
36
35
  def creates_unique_option
@@ -22,7 +22,6 @@ module Neo4j::Shared
22
22
 
23
23
  def initialize(attributes = nil)
24
24
  attributes = process_attributes(attributes)
25
- @relationship_props = self.class.extract_association_attributes!(attributes)
26
25
  modded_attributes = inject_defaults!(attributes)
27
26
  validate_attributes!(modded_attributes)
28
27
  writer_method_props = extract_writer_methods!(modded_attributes)
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '7.0.0.rc.1'
2
+ VERSION = '7.0.0.rc.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0.rc.1
4
+ version: 7.0.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg