neo4j 5.2.7 → 5.2.8

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: 0bbb63126ac84427e00a00a8bed85bccbd24f1d6
4
- data.tar.gz: 76cd0e3d9e36cb360a1b70e04e97c2b4a6eff88c
3
+ metadata.gz: 995bb89e81a2980c96a02fb29f07f1b5a6a2bab7
4
+ data.tar.gz: 93f3b243d02df66a9690f0a40ad569b169ef5729
5
5
  SHA512:
6
- metadata.gz: cb9cf9d0893d3b26e3dcb0d812fb6c5d480ce169ac14b9ef78953634cb408bd110e01b3a3757be1a5f32088c04206b72becc38d7fa35a96529a3a64c0756a22d
7
- data.tar.gz: 6eca256364be75029a6a7e068c6e6b4610420ac5713c4514896b85c4831f47663374e764908e7b8f4c7d2a42ecf9e7d3f4f8ecbeee70154479f78b7d2a7f08c8
6
+ metadata.gz: 90496ea3c7b9d0019a3997f5246261f682408021bee7931fe2c0a508486b2ddef55bf791e49b1053c59fbc3941f5e0797df7cf412c5ad6662924efc44aafd2f7
7
+ data.tar.gz: cf4bddb0f9bfd919af01d21bc3e66418958ee1f3d562e8956bb398b590169c21a0b958f833cbdf6d1ef3a0f8abe1d822b369136f4d88eab1821e29e3d3461cf2
@@ -5,10 +5,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased][unreleased]
7
7
 
8
- ## [5.2.7] - 09-25-2015
8
+ ## [5.2.8] - 09-30-2015
9
9
 
10
10
  ### Fixed
11
+ - Support `references` in model/scaffold generators
12
+
13
+ ## [5.2.7] - 09-25-2015
11
14
 
15
+ ### Fixed
12
16
  - Allow for association `model_class` to be prepended with double colons
13
17
 
14
18
  ## [5.2.6] - 09-16-2015
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.2.7'
2
+ VERSION = '5.2.8'
3
3
  end
@@ -1,8 +1,13 @@
1
1
  class <%= class_name %> <%= parent? ? "#{options[:parent].classify}" : "" %>
2
2
  include Neo4j::ActiveNode
3
- <% attributes.each do |attribute| -%>
3
+ <% attributes.reject(&:reference?).each do |attribute| -%>
4
4
  property :<%= attribute.name %><%= ", type: #{attribute.type_class}" unless attribute.type_class == 'any' %><%= "\n " + index_fragment if index_fragment = index_fragment(attribute.name) %>
5
5
  <% end -%>
6
+
7
+ <% attributes.select(&:reference?).each do |attribute| -%>
8
+ has_one :in_or_out_or_both, :<%= attribute.name %>, type: :FILL_IN_RELATIONSHIP_TYPE_HERE
9
+ <% end -%>
10
+
6
11
  <%= has_many_statements if has_many? -%>
7
12
  <%= has_one_statements if has_one? -%>
8
13
 
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: 5.2.7
4
+ version: 5.2.8
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-09-24 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter