neo4j 6.0.5 → 6.0.6
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 -0
- 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 -4
- data/lib/neo4j/active_base.rb +0 -19
- data/lib/neo4j/active_base/session_registry.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c330bb794ca2f53d03c094c7cef85d59835580e
|
4
|
+
data.tar.gz: 078a941f5268d7d74e733c90fbf3a2951a474e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a81bd176a7659b8dcc56ad3b4dbaccf5b2d67f684ba5ddee5a67cc215a060d89fefe006a621516720d2e30f7d1555deff31f5679003b755b0a49ebce0ba89027
|
7
|
+
data.tar.gz: 079e492d921c7cb14b150acb85e9bc14abd37e315712d1cb063d3a5191abfae85e8f393555f1413fc0316cc39e394c86e57c3a9242a7f8852c38ceeec2a51d1c
|
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.0.6] - 01-20-2016
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- Issue where `inspect` failed outside of Rails (Thanks to louspringer, #1111)
|
11
|
+
|
6
12
|
## [6.0.5] - 12-29-2015
|
7
13
|
|
8
14
|
### Fixed
|
@@ -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.0.
|
4
|
+
version: 6.0.6
|
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:
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -224,8 +224,6 @@ files:
|
|
224
224
|
- config/neo4j/add_classnames.yml
|
225
225
|
- config/neo4j/config.yml
|
226
226
|
- lib/neo4j.rb
|
227
|
-
- lib/neo4j/active_base.rb
|
228
|
-
- lib/neo4j/active_base/session_registry.rb
|
229
227
|
- lib/neo4j/active_node.rb
|
230
228
|
- lib/neo4j/active_node/callbacks.rb
|
231
229
|
- lib/neo4j/active_node/dependent.rb
|
data/lib/neo4j/active_base.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module Neo4j
|
2
|
-
# To contain any base login for ActiveNode/ActiveRel which
|
3
|
-
# is external to the main classes
|
4
|
-
module ActiveBase
|
5
|
-
class << self
|
6
|
-
def current_session
|
7
|
-
SessionRegistry.current_session
|
8
|
-
end
|
9
|
-
|
10
|
-
def set_current_session(session)
|
11
|
-
SessionRegistry.current_session = session
|
12
|
-
end
|
13
|
-
|
14
|
-
def set_current_session_by_adaptor(adaptor)
|
15
|
-
set_current_session(Neo4j::Core::CypherSession.new(adaptor))
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'active_support/per_thread_registry'
|
2
|
-
|
3
|
-
module Neo4j
|
4
|
-
module ActiveBase
|
5
|
-
# Provides a simple API to manage sessions in a thread-safe manner
|
6
|
-
class SessionRegistry
|
7
|
-
extend ActiveSupport::PerThreadRegistry
|
8
|
-
|
9
|
-
attr_accessor :current_session
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|