neo4j 6.1.1 → 6.1.2

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: 8d23e8ecd679fcaa99e65002f14f63a0026de753
4
- data.tar.gz: 261a0be83a840c5e9cc9f7ee2ed4088c4d820e6f
3
+ metadata.gz: 9a7b03d8499852e71755f6fdade1e0f73d83903e
4
+ data.tar.gz: 5190d0883ce818bcd25ac055600927aeef96d602
5
5
  SHA512:
6
- metadata.gz: 2d618351ca5afedd3e95632a503022479083ec9f37bf809e7bf933614b4ee734bcc460aafd6b6e4c9682ef6c4e391ec195d2b367ae37d91f400bd977f86bc58f
7
- data.tar.gz: 15fcbb8fbf95757af2a5bca20c0cada4e24db0016e3b33a01767b5d16ae37480d5ef7739f1c9b8b1c23cac1d65da624e3e6e0f8882519364eaf6cd18cadb5caa
6
+ metadata.gz: 430a8a9dfda55703c5791d5eedda3a8a89c5ed51d9eeaaba85e74fc13b2e461f0fa2915067b8af1a8732bf586e9bf0586042bc53672461a74e0b96698bb77795
7
+ data.tar.gz: 055e85cc93fa8efd2ad81b86c1678f86127ad2fd19df879c226d9cf7fc9a7acf0d1089fde22a83b777423633ef005052c6c26109d4fd6b5ae313a09ad4a60f16
@@ -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: 'Person'
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.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)])
@@ -43,6 +43,9 @@ module Neo4j
43
43
  include Neo4j::Timestamps if Neo4j::Config[:record_timestamps]
44
44
 
45
45
  def self.inherited(other)
46
+ attributes.each_pair do |k, v|
47
+ other.inherit_property k.to_sym, v.clone, declared_properties[k].options
48
+ end
46
49
  super
47
50
  end
48
51
  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.1.1'
2
+ VERSION = '6.1.2'
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.1.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-01 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