neo4j 8.0.17 → 8.0.18

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: cc753cc6be51ea1c39cb5f4b321c8cb2c4ecec59
4
- data.tar.gz: b7283bea60f7159ced22f9db8fe6b445f116a19c
3
+ metadata.gz: d308aa373875c2a15c4252c06d1450d192467fc8
4
+ data.tar.gz: 29c48905187431fdc1f8363cc061a7ec37edf088
5
5
  SHA512:
6
- metadata.gz: 9ec87646fe52d229051b374d312a5f1f2169074fe621f3866af8bfd91409808df4cae3726f62797ae669ab58f2df465f29e9c4a812df04a421e9f92e04f75536
7
- data.tar.gz: a1206504ea416631f916fa0ce13e1159561ef1a6fdfbad1773c1201a3e1688347c58282fced7fbf583d2e5717c2ea43b78938e4bccee2f996e6765af98d32333
6
+ metadata.gz: 685b2b49d58bdc6d8d63eade6e8f03b88ac18ac4dcc6bb3286258c520dcdc4796cc8d4296e65cbfa08a9eab50b4d74cc74261133c3794bda00b1f306cf2cfb3d
7
+ data.tar.gz: 024d8b4bb07c397ab8ef356753712430f078bc35db9c4e05cb769e7fde1defdc655fe26266294be2c7410a9ada461fccb6563985cb1f18aa79865777bc1b028f
@@ -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
+ ## [8.0.18] 2016-06-04
7
+
8
+ ### Fixed
9
+
10
+ - Migration name when generating a model shouldn't be the same as the model (see #1387 / thanks @thefliik and @apotonick)
11
+
6
12
  ## [8.0.17] 2016-05-03
7
13
 
8
14
  ### Fixed
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '8.0.17'
2
+ VERSION = '8.0.18'
3
3
  end
@@ -16,7 +16,7 @@ class Neo4j::Generators::ModelGenerator < Rails::Generators::NamedBase #:nodoc:
16
16
 
17
17
  def create_model_file
18
18
  template 'model.erb', File.join('app/models', class_path, "#{singular_name}.rb")
19
- migration_template 'migration.erb'
19
+ migration_template 'migration.erb', 'create_'
20
20
  end
21
21
 
22
22
  protected
@@ -1,4 +1,4 @@
1
- class <%= @migration_class_name.underscore.camelize %> < Neo4j::Migrations::Base
1
+ class Create<%= @migration_class_name.underscore.camelize %> < Neo4j::Migrations::Base
2
2
  def up
3
3
  add_constraint :<%= class_name %>, :uuid
4
4
  end
@@ -9,12 +9,12 @@ end
9
9
  module Neo4j::Generators::MigrationHelper
10
10
  extend ActiveSupport::Concern
11
11
 
12
- def migration_file_name(file_name)
13
- "#{Time.now.utc.strftime('%Y%m%d%H%M%S')}_#{file_name.parameterize}.rb"
12
+ def migration_file_name(file_name, prefix = '')
13
+ "#{Time.now.utc.strftime('%Y%m%d%H%M%S')}_#{prefix}#{file_name.parameterize}.rb"
14
14
  end
15
15
 
16
- def migration_template(template_name)
17
- real_file_name = migration_file_name(file_name)
16
+ def migration_template(template_name, prefix = '')
17
+ real_file_name = migration_file_name(file_name, prefix)
18
18
  @migration_class_name = file_name.camelize
19
19
 
20
20
  template template_name, File.join('db/neo4j/migrate', real_file_name)
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: 8.0.17
4
+ version: 8.0.18
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: 2017-05-03 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter