neo4j 6.1.1 → 6.1.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/neo4j/active_node/has_n.rb +1 -1
- data/lib/neo4j/active_node/property.rb +1 -1
- data/lib/neo4j/active_rel.rb +3 -0
- data/lib/neo4j/shared.rb +7 -0
- data/lib/neo4j/shared/property.rb +0 -7
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a7b03d8499852e71755f6fdade1e0f73d83903e
|
4
|
+
data.tar.gz: 5190d0883ce818bcd25ac055600927aeef96d602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430a8a9dfda55703c5791d5eedda3a8a89c5ed51d9eeaaba85e74fc13b2e461f0fa2915067b8af1a8732bf586e9bf0586042bc53672461a74e0b96698bb77795
|
7
|
+
data.tar.gz: 055e85cc93fa8efd2ad81b86c1678f86127ad2fd19df879c226d9cf7fc9a7acf0d1089fde22a83b777423633ef005052c6c26109d4fd6b5ae313a09ad4a60f16
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This file should follow the standards specified on [http://keepachangelog.com/]
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [6.1.2] - 2016-01-01
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- Issue where `inspect` failed outside of Rails (Thanks to louspringer, #1111)
|
11
|
+
|
6
12
|
## [6.1.1] - 2016-01-01
|
7
13
|
|
8
14
|
### Fixed
|
@@ -28,6 +34,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
28
34
|
- `config/neo4j.yml` now renders with an ERB step (thanks to mrstif via #1060)
|
29
35
|
- `#increment`, `#increment!` and `#concurrent_increment!` methods added to instances of ActiveNode and ActiveRel (thanks to ProGM in #1074)
|
30
36
|
|
37
|
+
## [6.0.6] - 01-20-2016
|
38
|
+
|
39
|
+
### Fixed
|
40
|
+
|
41
|
+
- Issue where `inspect` failed outside of Rails (Thanks to louspringer, #1111)
|
42
|
+
|
31
43
|
## [6.0.5] - 12-29-2015
|
32
44
|
|
33
45
|
### Fixed
|
@@ -304,7 +304,7 @@ module Neo4j::ActiveNode
|
|
304
304
|
# # `model_class` of `Post` is assumed here
|
305
305
|
# Person.has_many :out, :posts, origin: :author
|
306
306
|
#
|
307
|
-
# Post.has_one :in, :author, type: :has_author, model_class:
|
307
|
+
# Post.has_one :in, :author, type: :has_author, model_class: :Person
|
308
308
|
#
|
309
309
|
# *model_class*: The model class to which the association is referring. Can be a
|
310
310
|
# Symbol/String (or an ``Array`` of same) with the name of the `ActiveNode` class,
|
@@ -51,7 +51,7 @@ module Neo4j::ActiveNode
|
|
51
51
|
id_property_name = self.class.id_property_name.to_s
|
52
52
|
|
53
53
|
attribute_pairs = attributes.except(id_property_name).sort.map do |key, value|
|
54
|
-
[key, (value.is_a?(String) && value.size > 100) ? value.dup
|
54
|
+
[key, (value.is_a?(String) && value.size > 100) ? value.dup[0..100] : value]
|
55
55
|
end
|
56
56
|
|
57
57
|
attribute_pairs.unshift([id_property_name, self.send(id_property_name)])
|
data/lib/neo4j/active_rel.rb
CHANGED
data/lib/neo4j/shared.rb
CHANGED
@@ -33,6 +33,13 @@ module Neo4j
|
|
33
33
|
def self.i18n_scope
|
34
34
|
:neo4j
|
35
35
|
end
|
36
|
+
|
37
|
+
def self.inherited(other)
|
38
|
+
attributes.each_pair do |k, v|
|
39
|
+
other.inherit_property k.to_sym, v.clone, declared_properties[k].options
|
40
|
+
end
|
41
|
+
super
|
42
|
+
end
|
36
43
|
end
|
37
44
|
|
38
45
|
def declared_properties
|
@@ -132,13 +132,6 @@ module Neo4j::Shared
|
|
132
132
|
|
133
133
|
def_delegators :declared_properties, :serialized_properties, :serialized_properties=, :serialize, :declared_property_defaults
|
134
134
|
|
135
|
-
def inherited(other)
|
136
|
-
self.declared_properties.registered_properties.each_pair do |prop_key, prop_def|
|
137
|
-
other.property(prop_key, prop_def.options)
|
138
|
-
end
|
139
|
-
super
|
140
|
-
end
|
141
|
-
|
142
135
|
# Defines a property on the class
|
143
136
|
#
|
144
137
|
# See active_attr gem for allowed options, e.g which type
|
data/lib/neo4j/version.rb
CHANGED
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: 6.1.
|
4
|
+
version: 6.1.2
|
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: 2016-01-
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|