neo4j 9.0.0 → 9.0.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 +4 -4
- data/CHANGELOG.md +6 -4
- data/lib/neo4j.rb +1 -0
- data/lib/neo4j/shared/enum.rb +5 -0
- data/lib/neo4j/shared/property.rb +8 -1
- 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: 2c3167d8fd5041d18938f1942a92aceb44e47d78
|
4
|
+
data.tar.gz: f3211fd91da72f0a41b6e3b9fecdb7d031dce49a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62da265b8b5c69cef92b7c449c4c776e471f79c22a5adc2974de1fd630b7647b4f0f0df66e3ed71e1ae682ab536c9147e9139127abac6d67c3f2ad8196b9b1a6
|
7
|
+
data.tar.gz: 6e982535cd4123ce04ae54d51e43c598b5af0d99846707961cfbeba402f38f523fc247663d2152b065efe6d6a979531eb8bcb1ec11757fb5b08f1b67a97a6389
|
data/CHANGELOG.md
CHANGED
@@ -3,16 +3,18 @@ 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
|
+
## [9.0.1] 2017-09-26
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- Properties defined on a superclass after the subclass has been defined will now take effect on the subclass (intended to be released in 9.0.0) (thanks @thefliik / see #1428)
|
11
|
+
|
6
12
|
## [9.0.0] 2017-09-26
|
7
13
|
|
8
14
|
### Changed
|
9
15
|
|
10
16
|
- `enum` values are now case-insensitive when being set by default (with a `_case_sensitive` option) (thanks @thefliik / see #1419)
|
11
17
|
|
12
|
-
### Fixed
|
13
|
-
|
14
|
-
- Properties defined on a superclass after the subclass has been defined will now take effect on the subclass (thanks @thefliik / see #1428)
|
15
|
-
|
16
18
|
## [8.3.0] 2017-09-25
|
17
19
|
|
18
20
|
### Changed
|
data/lib/neo4j.rb
CHANGED
@@ -11,6 +11,7 @@ require 'neo4j/active_base/session_registry'
|
|
11
11
|
require 'active_model'
|
12
12
|
require 'active_support/concern'
|
13
13
|
require 'active_support/core_ext/class/attribute.rb'
|
14
|
+
require 'active_support/core_ext/class/subclasses.rb'
|
14
15
|
require 'json'
|
15
16
|
|
16
17
|
require 'neo4j/errors'
|
data/lib/neo4j/shared/enum.rb
CHANGED
@@ -93,6 +93,11 @@ module Neo4j::Shared
|
|
93
93
|
def define_property(property_name, enum_keys, options)
|
94
94
|
property property_name, build_property_options(enum_keys, options)
|
95
95
|
serialize property_name, Neo4j::Shared::TypeConverters::EnumConverter.new(enum_keys, build_enum_options(enum_keys, options))
|
96
|
+
|
97
|
+
# If class has already been inherited, make sure subclasses fully inherit enum
|
98
|
+
subclasses.each do |klass|
|
99
|
+
klass.serialized_properties = self.serialized_properties
|
100
|
+
end
|
96
101
|
end
|
97
102
|
|
98
103
|
def build_property_options(_enum_keys, options = {})
|
@@ -163,12 +163,19 @@ module Neo4j::Shared
|
|
163
163
|
end
|
164
164
|
|
165
165
|
def build_property(name, options)
|
166
|
-
DeclaredProperty.new(name, options).tap do |prop|
|
166
|
+
decl_prop = DeclaredProperty.new(name, options).tap do |prop|
|
167
167
|
prop.register
|
168
168
|
declared_properties.register(prop)
|
169
169
|
yield name
|
170
170
|
constraint_or_index(name, options)
|
171
171
|
end
|
172
|
+
|
173
|
+
# If this class has already been inherited, make sure subclasses inherit property
|
174
|
+
subclasses.each do |klass|
|
175
|
+
klass.inherit_property name, decl_prop.clone, declared_properties[name].options
|
176
|
+
end
|
177
|
+
|
178
|
+
decl_prop
|
172
179
|
end
|
173
180
|
|
174
181
|
def undef_property(name)
|
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: 9.0.
|
4
|
+
version: 9.0.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: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|