neo4j 5.2.0 → 5.2.1

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: cdc33103cf05e1ec6a124c615303f0fcb7ff0760
4
- data.tar.gz: 679ae2889ebbe49d6083fe9d471508996a2e6750
3
+ metadata.gz: 3be3813d47f9381c0d48f05745ec55c4c34fb24f
4
+ data.tar.gz: ff011cb5224a4a44bb7d6debd3fc0e31682e0bbe
5
5
  SHA512:
6
- metadata.gz: 1b770454c98281fded4132b80fd9c3b7e6fc42b9450fa6dbc97d5b6eefd77b98a9c909183cfe05637ce2e7cef3d368d72d5abd06d2dbe690d8b203f527ee0885
7
- data.tar.gz: 4b46fbd5003efb1421a0fdc5f99fe0511c0c89ed6ff7a9c8d08822d7cb03bd156cb82e526ea44c1608476f4ad4c5c9fc5ed1b1d918a2f8a4988e8b741c874b19
6
+ metadata.gz: f82b6f082d4ff9242ee2902fbe9b82d7fee8bffa8164d12eb6fd6c59e87c4bc911c202f807612853f49f83083665364c762f2a4884f1a1a18437509b9be289c9
7
+ data.tar.gz: 074e0f957b1e73fb8e9a250de36dbcc17b3a54308c5b8a6df88303e69c0139082960457cbaf380f1f98e3fa901e89693696dd19f43666e8fb53acaaf5174240e
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased][unreleased]
7
7
 
8
+ ## [5.2.1] - 09-04-2015
9
+
10
+ ### Fixed
11
+ - Now possible to configure `record_timestamps` with rails `config`
12
+
8
13
  ## [5.2.0] - 08-30-2015
9
14
 
10
15
  ### Added
@@ -55,7 +55,7 @@ module Neo4j
55
55
  end
56
56
 
57
57
  included do
58
- include Neo4j::Timestamps if Neo4j::Config.record_timestamps
58
+ include Neo4j::Timestamps if Neo4j::Config[:record_timestamps]
59
59
 
60
60
  def self.inherited(other)
61
61
  inherit_id_property(other)
@@ -5,7 +5,7 @@ module Neo4j
5
5
  module QueryProxyMethods
6
6
  # Used as part of `dependent: :destroy` and may not have any utility otherwise.
7
7
  # It keeps track of the node responsible for a cascading `destroy` process.
8
- # @param [#dependent_children] source_object The node that called this method. Typically, we would use QueryProxy's `source_object` method
8
+ # @param owning_node [#dependent_children] source_object The node that called this method. Typically, we would use QueryProxy's `source_object` method
9
9
  # but this is not always available, so we require it explicitly.
10
10
  def each_for_destruction(owning_node)
11
11
  target = owning_node.called_by || owning_node
@@ -101,7 +101,7 @@ module Neo4j
101
101
  end
102
102
 
103
103
  # Finds the first record matching the specified conditions. There is no implied ordering so if order matters, you should specify it yourself.
104
- # @param Hash args of arguments to find
104
+ # @param values Hash args of arguments to find
105
105
  def find_by(values)
106
106
  all.where(values).limit(1).query_as(:n).pluck(:n).first
107
107
  end
@@ -13,7 +13,7 @@ module Neo4j
13
13
  # # Generates: MATCH (mike:Person), mike-[:friend]-friend WHERE ID(mike) = 123 RETURN friend.name
14
14
  # mike.query_as(:mike).match('mike-[:friend]-friend').return(friend: :name)
15
15
  #
16
- # @param var [Symbol, String] The variable name to specify in the query
16
+ # @param node_var [Symbol, String] The variable name to specify in the query
17
17
  # @return [Neo4j::Core::Query]
18
18
  def query_as(node_var)
19
19
  self.class.query_as(node_var, false).where("ID(#{node_var})" => self.neo_id)
@@ -106,7 +106,7 @@ module Neo4j
106
106
 
107
107
  # Deletes a group of nodes and relationships within a QP chain. When identifier is omitted, it will remove the last link in the chain.
108
108
  # The optional argument must be a node identifier. A relationship identifier will result in a Cypher Error
109
- # @param [String,Symbol] the optional identifier of the link in the chain to delete.
109
+ # @param identifier [String,Symbol] the optional identifier of the link in the chain to delete.
110
110
  def delete_all(identifier = nil)
111
111
  query_with_target(identifier) do |target|
112
112
  begin
@@ -21,7 +21,7 @@ module Neo4j::ActiveNode
21
21
  end
22
22
 
23
23
  private :create_reflection
24
- # @param [Symbol] an association declared on the model
24
+ # @param association [Symbol] an association declared on the model
25
25
  # @return [Neo4j::ActiveNode::Reflection::AssociationReflection] of the given association
26
26
  def reflect_on_association(association)
27
27
  reflections[association.to_sym]
@@ -44,7 +44,7 @@ module Neo4j
44
44
  end
45
45
 
46
46
  included do
47
- include Neo4j::Timestamps if Neo4j::Config.record_timestamps
47
+ include Neo4j::Timestamps if Neo4j::Config[:record_timestamps]
48
48
 
49
49
  def self.inherited(other)
50
50
  super
data/lib/neo4j/config.rb CHANGED
@@ -11,7 +11,7 @@ module Neo4j
11
11
  # the incluse of timestamps on your nodes and rels. It defaults to false, requiring manual
12
12
  # timestamp inclusion.
13
13
  # @return [Boolean] the true/false value specified.
14
- attr_writer :record_timestamps
14
+
15
15
  # @return [Fixnum] The location of the default configuration file.
16
16
  def default_file
17
17
  @default_file ||= DEFAULT_FILE
@@ -96,12 +96,6 @@ module Neo4j
96
96
  configuration.to_yaml
97
97
  end
98
98
 
99
- # @return [Boolean] The value of the config variable for including
100
- # timestamps on all models.
101
- def record_timestamps
102
- @record_timestamps ||= false
103
- end
104
-
105
99
  def class_name_property
106
100
  @_class_name_property = Neo4j::Config[CLASS_NAME_PROPERTY_KEY] || :_classname
107
101
  end
@@ -11,7 +11,6 @@ module Neo4j::Shared
11
11
 
12
12
  class UndefinedPropertyError < RuntimeError; end
13
13
  class MultiparameterAssignmentError < StandardError; end
14
- # @_declared_property_manager = DeclaredPropertyManager.new
15
14
 
16
15
  attr_reader :_persisted_obj
17
16
 
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.2.0'
2
+ VERSION = '5.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-30 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter