devise-neo4j 2.1.0 → 2.1.1

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: 1d06629713351f2ac2ccc575ec685ce42f84c6e0
4
- data.tar.gz: 16f4bad9a75f8de9c7a910ead4f5d1ee2169cf45
3
+ metadata.gz: 93aec4114e3096130202b583dc0f1abc5718ac7c
4
+ data.tar.gz: 6344bb597cb2f92ddf970b260b3947a6d6ed3fd3
5
5
  SHA512:
6
- metadata.gz: fe84a5eabd313d7ac532e353df0c69e0d209cb9482df3710514d8a2c79866b142d3f9dcad907758ec72e5642284268682b603ceb47e2aa417fed814de83b0608
7
- data.tar.gz: b59a41c7e5892f2b841c1234172efd58da32df04f844b4d219467c9614b82e601663907a751e96deefc25bf826bc8eaec17fc5c27492dd3ca44e95108b88458e
6
+ metadata.gz: 2358e648ec3808bc577945101a93ebc8862da9b04499d58c548361b5cd668490d46c6f4cce3075477b958e0a38b09f2312334924be4d554a7231088b6a9d1645
7
+ data.tar.gz: 011a8d8e5a14611a57f4529ebf9d4fa32726e63f0b34d387003da396cb565d1fb3b199bb3daabaa84ec3f0929f3d7b2250085e54bf31c352f04260ee72fa3b45
@@ -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
+ ## [2.1.1] - 12-23-2016
7
+
8
+ ### Fixed
9
+
10
+ - Migration generated as part of devise user was not rendering as an ERB template (see #28)
11
+
6
12
  ## [2.1.0] - 12-23-2016
7
13
 
8
14
  ### Fixed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise-neo4j (2.1.0)
4
+ devise-neo4j (2.1.1)
5
5
  bcrypt (>= 3.0)
6
6
  devise (>= 3.5.2)
7
7
  neo4j (>= 3.0.0)
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Neo4j
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
@@ -6,7 +6,10 @@ module Neo4j
6
6
  include ::Devise::Generators::OrmHelpers
7
7
 
8
8
  def copy_devise_migration
9
- create_file "db/neo4j/migrate/#{Time.now.utc.strftime('%Y%m%d%H%M%S')}_devise_create_user_constraints_and_indexes.rb", File.read(File.expand_path('./templates/migration.rb', File.dirname(__FILE__)))
9
+ file_path = "db/neo4j/migrate/#{Time.now.utc.strftime('%Y%m%d%H%M%S')}_devise_create_user_constraints_and_indexes.rb"
10
+ text = File.read(File.expand_path('./templates/migration.rb.erb', File.dirname(__FILE__)))
11
+ label_string = name
12
+ create_file file_path, ERB.new(text).result(binding)
10
13
  end
11
14
 
12
15
  def generate_model
@@ -0,0 +1,10 @@
1
+ class DeviseCreateUserConstraintsAndIndexes < Neo4j::Migrations::Base
2
+ def change
3
+ add_index :<%= label_string %>, :email, force: true
4
+ add_index :<%= label_string %>, :remember_token, force: true
5
+ add_index :<%= label_string %>, :reset_password_token, force: true
6
+ # add_index :<%= label_string %>, :confirmation_token, force: true
7
+ # add_index :<%= label_string %>, :unlock_token, force: true
8
+ # add_index :<%= label_string %>, :authentication_token, force: true
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Jackson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-23 00:00:00.000000000 Z
12
+ date: 2016-12-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: warden
@@ -123,7 +123,7 @@ files:
123
123
  - lib/devise/orm/neo4j/hook.rb
124
124
  - lib/devise/orm/neo4j/nil_class_converter.rb
125
125
  - lib/generators/neo4j/devise_generator.rb
126
- - lib/generators/neo4j/templates/migration.rb
126
+ - lib/generators/neo4j/templates/migration.rb.erb
127
127
  - provisioning/roles/common/tasks/main.yml
128
128
  - provisioning/roles/java/README.md
129
129
  - provisioning/roles/java/files/.gitkeep
@@ -1,10 +0,0 @@
1
- class DeviseCreateUserConstraintsAndIndexes < Neo4j::Migrations::Base
2
- def change
3
- add_index :<%= table_name %>, :email, force: true
4
- add_index :<%= table_name %>, :remember_token, force: true
5
- add_index :<%= table_name %>, :reset_password_token, force: true
6
- # add_index :<%= table_name %>, :confirmation_token, force: true
7
- # add_index :<%= table_name %>, :unlock_token, force: true
8
- # add_index :<%= table_name %>, :authentication_token, force: true
9
- end
10
- end