neo4j 4.1.1 → 4.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: 97c01690c43625ba06268da7585cc7dc8a7f2f51
4
- data.tar.gz: 6b8604aeb84adee416d66782605e80d7d9533700
3
+ metadata.gz: b250e0735aaa127d7d195085c3a19701cc2f4b6f
4
+ data.tar.gz: 6075c523fd160cb11aa0a4669d49c56c3a875561
5
5
  SHA512:
6
- metadata.gz: 8c6a53376027890d2e742acfacb05f4edc9f560dd1f5aa72bed72f80a8065a8c7b11ff2bef0729c2ea42e3d0deea421e06e5fcce20fe61788aec0b8e89160619
7
- data.tar.gz: e4479499b2c48223b5f3d3f9f7c8d3da8bfb04716409cc7acfd4eb1b9781f19433aea52d3eb6cb723610fe464381200836a5ea7e47c8370b885d7bd082ac04ba
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
  ![2014 Graphie](http://i.imgur.com/CkOoTTYm.jpg)
10
10
 
11
- ## Coming Soon: v4!
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
- The master branch of this repo now holds stable builds of the v4 version of the gem. Its changes are outlined at [here](https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-v4-Introduction). Unless otherwise noted, all 3.X documentation is totally valid. v4 discussion will happen [https://github.com/neo4jrb/neo4j/issues/596](https://github.com/neo4jrb/neo4j/issues/596) but if you have any concerns, please contact us directly.
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-v3-Introduction)
16
+ * [Wiki](https://github.com/neo4jrb/neo4j/wiki/Neo4j.rb-v4-Introduction)
19
17
 
20
18
  ## Legacy (2.x) Documentation
21
19
 
@@ -46,7 +46,7 @@ module Neo4j
46
46
 
47
47
  included do
48
48
  def self.inherited(other)
49
- inherit_id_property(other) if self.id_property?
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
- id_prop = self.id_property_info
68
- conf = id_prop[:type].empty? ? {auto: :uuid} : id_prop[:type]
69
- other.id_property id_prop[:name], conf
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
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '4.1.1'
2
+ VERSION = '4.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: 4.1.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-19 00:00:00.000000000 Z
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.3
296
+ rubygems_version: 2.4.5
297
297
  signing_key:
298
298
  specification_version: 4
299
299
  summary: A graph database for Ruby