neo4j 6.0.5 → 6.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 724a4190d800d63d07f3b4c8bb970f5c771e630a
4
- data.tar.gz: e733ecfc04025dab1b1c3b950f05410fbf753063
3
+ metadata.gz: 2c330bb794ca2f53d03c094c7cef85d59835580e
4
+ data.tar.gz: 078a941f5268d7d74e733c90fbf3a2951a474e56
5
5
  SHA512:
6
- metadata.gz: 5b94b84c1d37125d22fd292183bc366141768c0bae5bf768eda0aba836f9eafe7c0bff0f6674c6aab667ab53c8c9e508d102db7c0b77d976498ad447c01a311c
7
- data.tar.gz: 8db3d934146ca5b72aa7ecf6ee8a0c432ff358fd6c93b030210c08b5c534cacc922f98f88414b6f1e244ab98ec43edbd847604a35c2bf9177c1d52e451070cb7
6
+ metadata.gz: a81bd176a7659b8dcc56ad3b4dbaccf5b2d67f684ba5ddee5a67cc215a060d89fefe006a621516720d2e30f7d1555deff31f5679003b755b0a49ebce0ba89027
7
+ data.tar.gz: 079e492d921c7cb14b150acb85e9bc14abd37e315712d1cb063d3a5191abfae85e8f393555f1413fc0316cc39e394c86e57c3a9242a7f8852c38ceeec2a51d1c
@@ -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.first(100) : value]
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)])
@@ -40,6 +40,9 @@ module Neo4j
40
40
  include Neo4j::Timestamps if Neo4j::Config[:record_timestamps]
41
41
 
42
42
  def self.inherited(other)
43
+ attributes.each_pair do |k, v|
44
+ other.inherit_property k.to_sym, v.clone, declared_properties[k].options
45
+ end
43
46
  super
44
47
  end
45
48
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '6.0.5'
2
+ VERSION = '6.0.6'
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: 6.0.5
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: 2015-12-29 00:00:00.000000000 Z
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
@@ -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