neo4j 4.1.1 → 4.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 +6 -0
- data/README.md +3 -5
- data/lib/neo4j/active_node.rb +7 -4
- data/lib/neo4j/active_rel/types.rb +4 -0
- data/lib/neo4j/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b250e0735aaa127d7d195085c3a19701cc2f4b6f
|
|
4
|
+
data.tar.gz: 6075c523fd160cb11aa0a4669d49c56c3a875561
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6306ab117ee233f4470597bd97974930fc56892aff959b3c1c1241bc4fc86d1cc9d9ae2d4bca5bd9f25b22d85cb5debea624daf5ee408d28a81458ef8b1156b
|
|
7
|
+
data.tar.gz: 2835569c30076f2a82ec0e7785077ff50abd9d0777de3d43aa981f6fc6796c923d7e61b4553162e1fbc787920f78fb8676306edaaf8c165720e7f31db1097bb5
|
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
== 4.1.2
|
|
2
|
+
* Fixes two bugs related to inheritance: one regarding ActiveRel classes and relationship types, the other regarding ActiveNode primary_key properties not being set when a model is loaded prior to Neo4j session.
|
|
3
|
+
|
|
4
|
+
== 4.1.1
|
|
5
|
+
* Switches use of Fixnum to Integer to improve 32-bit support
|
|
6
|
+
|
|
1
7
|
== 4.1.0
|
|
2
8
|
This release includes many performance fixes and new features. The most notable:
|
|
3
9
|
* Huge stylist cleanup/refactoring by Brian on the entire gem by Brian armed with Rubocop. See http://neo4jrb.io/blog/2014/12/29/stay-out-of-trouble.html.
|
data/README.md
CHANGED
|
@@ -8,14 +8,12 @@ For a general overview see our website: http://neo4jrb.io/
|
|
|
8
8
|
Winner of a 2014 Graphie for "Best Community Contribution" at Neo4j's [Graph Connect](http://graphconnect.com) conference!
|
|
9
9
|

|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Neo4j.rb v4.1.0 was released in January of 2015. Its changes are outlined [here](https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-v4-Introduction) and in the [announcement message](http://neo4jrb.io/blog/2015/01/09/neo4j-rb_v4-1_released.html). It will take a little time before all documentation is updated to reflect the new release but unless otherwise noted, all 3.X documentation is totally valid for v4.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Modern (3.X) Documentation
|
|
13
|
+
## Modern (3.x/4.X) Documentation
|
|
16
14
|
|
|
17
15
|
* [Website](http://neo4jrb.io/) (for an introduction)
|
|
18
|
-
* [Wiki](https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-
|
|
16
|
+
* [Wiki](https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-v4-Introduction)
|
|
19
17
|
|
|
20
18
|
## Legacy (2.x) Documentation
|
|
21
19
|
|
data/lib/neo4j/active_node.rb
CHANGED
|
@@ -46,7 +46,7 @@ module Neo4j
|
|
|
46
46
|
|
|
47
47
|
included do
|
|
48
48
|
def self.inherited(other)
|
|
49
|
-
inherit_id_property(other)
|
|
49
|
+
inherit_id_property(other)
|
|
50
50
|
inherited_indexes(other) if self.respond_to?(:indexed_properties)
|
|
51
51
|
attributes.each_pair { |k, v| other.attributes[k] = v }
|
|
52
52
|
inherit_serialized_properties(other) if self.respond_to?(:serialized_properties)
|
|
@@ -64,9 +64,12 @@ module Neo4j
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def self.inherit_id_property(other)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
Neo4j::Session.on_session_available do |_|
|
|
68
|
+
return unless self.id_property?
|
|
69
|
+
id_prop = self.id_property_info
|
|
70
|
+
conf = id_prop[:type].empty? ? {auto: :uuid} : id_prop[:type]
|
|
71
|
+
other.id_property id_prop[:name], conf
|
|
72
|
+
end
|
|
70
73
|
end
|
|
71
74
|
|
|
72
75
|
Neo4j::Session.on_session_available do |_|
|
|
@@ -27,6 +27,10 @@ module Neo4j
|
|
|
27
27
|
module ClassMethods
|
|
28
28
|
include Neo4j::Shared::RelTypeConverters
|
|
29
29
|
|
|
30
|
+
def inherited(other)
|
|
31
|
+
other.type other.name, true
|
|
32
|
+
end
|
|
33
|
+
|
|
30
34
|
# @param type [String] sets the relationship type when creating relationships via this class
|
|
31
35
|
def type(given_type = self.name, auto = false)
|
|
32
36
|
use_type = auto ? decorated_rel_type(given_type) : given_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: 4.1.
|
|
4
|
+
version: 4.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: 2015-01-
|
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: orm_adapter
|
|
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
293
293
|
version: '0'
|
|
294
294
|
requirements: []
|
|
295
295
|
rubyforge_project: neo4j
|
|
296
|
-
rubygems_version: 2.4.
|
|
296
|
+
rubygems_version: 2.4.5
|
|
297
297
|
signing_key:
|
|
298
298
|
specification_version: 4
|
|
299
299
|
summary: A graph database for Ruby
|