neo4j 8.0.17 → 8.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d308aa373875c2a15c4252c06d1450d192467fc8
|
4
|
+
data.tar.gz: 29c48905187431fdc1f8363cc061a7ec37edf088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 685b2b49d58bdc6d8d63eade6e8f03b88ac18ac4dcc6bb3286258c520dcdc4796cc8d4296e65cbfa08a9eab50b4d74cc74261133c3794bda00b1f306cf2cfb3d
|
7
|
+
data.tar.gz: 024d8b4bb07c397ab8ef356753712430f078bc35db9c4e05cb769e7fde1defdc655fe26266294be2c7410a9ada461fccb6563985cb1f18aa79865777bc1b028f
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/neo4j/version.rb
CHANGED
@@ -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
|
@@ -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.
|
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
|
11
|
+
date: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|