devise-neo4j 2.0.0 → 2.0.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: 0052b231afec5b4a21d46f2c65f60289a36a8aed
4
- data.tar.gz: 7ed08cc81e4e46b1a86b3ba5d03838df738c6335
3
+ metadata.gz: 6905ba2d89419e86e85149235c7ac8c5feae526e
4
+ data.tar.gz: d43e51c14a43e11ecc3ff3a50ead8a2e27c2a8d5
5
5
  SHA512:
6
- metadata.gz: a1f9cee7b86210d710339e477fe93157bf485019454cd5ce8c31f1d317389c8a9ea1fc7b1a24a304549ecd4c025e3e954f9adb495a026807f024030c598f4c4f
7
- data.tar.gz: 7fa78db39e3a53b5265c1f51bdd1e8bc80dd963b2bc1aefbd322c3af02c33b9d7fbe06c6c31ec41145ab1ef0e3916011a01a226ac618ef7b2fda9a152d805b7d
6
+ metadata.gz: d73bb71727489fa09f1b57dffeb17cb7e96ed03386d0a38962153c7bf378f19ffe631b1014869fb1ee03b14cc1a0c384c44796ecea9b46175a764338d03fc21e
7
+ data.tar.gz: d7f28bd810c7c041df9624d73bd8b5fc7a373a2e26f4073340efda7953a67b40f76df4319b902f8363323f706e58b0bb88077a9bdd0e137dfb31235c319f8a5b
data/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+ This file should follow the standards specified on [http://keepachangelog.com/]
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+ ## [2.0.1] - 11-24-2015
7
+
8
+ ### Fixed
9
+
10
+ - Added missing `remember_token` property
11
+
12
+ ## [2.0.0]
13
+
14
+ - Point gemfile at the neo4jrb repos now that all specs are passing.
15
+
16
+ ## [2.0.0.alpha.1]
17
+
18
+ - Support for Neo4j.rb 3.0!
data/Gemfile CHANGED
@@ -2,14 +2,14 @@ source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "rails", "~> 4.1.1"
5
+ gem "rails", "~> 4.2.3"
6
6
  gem "omniauth"
7
7
  gem "omniauth-oauth2"
8
8
  gem "rdoc"
9
9
 
10
- gem 'neo4j', :git => 'https://github.com/neo4jrb/neo4j.git'
11
- gem 'neo4j-core', :git => 'https://github.com/neo4jrb/neo4j-core.git'
12
- gem "devise", '3.3.0'
10
+ gem 'neo4j', '~> 5.0.0'
11
+ gem 'neo4j-core', '~> 5.0.0'
12
+ gem "devise", '3.5.2'
13
13
 
14
14
  group :test do
15
15
  gem "omniauth-facebook"
data/Gemfile.lock CHANGED
@@ -1,130 +1,138 @@
1
- GIT
2
- remote: https://github.com/neo4jrb/neo4j-core.git
3
- revision: 00a1b758333cdb6ecfc3e954d30adf1c0404a658
4
- specs:
5
- neo4j-core (3.1.0)
6
- activesupport
7
- faraday (~> 0.9.0)
8
- faraday_middleware (~> 0.9.1)
9
- httparty
10
- httpclient
11
- json
12
- net-http-persistent
13
- os
14
- zip
15
-
16
- GIT
17
- remote: https://github.com/neo4jrb/neo4j.git
18
- revision: 1a2721a58051bb74330cc944d027e6c3ddfd91e6
19
- specs:
20
- neo4j (4.0.0.rc.3)
21
- active_attr (~> 0.8)
22
- activemodel (~> 4)
23
- activesupport (~> 4)
24
- neo4j-core (~> 3.1.0)
25
- orm_adapter (~> 0.5.0)
26
- railties (~> 4)
27
-
28
1
  PATH
29
2
  remote: .
30
3
  specs:
31
- devise-neo4j (2.0.0)
32
- bcrypt-ruby (~> 3.0)
33
- devise (~> 3.0)
4
+ devise-neo4j (2.0.1)
5
+ bcrypt (>= 3.0)
6
+ devise (>= 3.0)
34
7
  neo4j (>= 3.0.0.alpha.6)
35
8
  orm_adapter (~> 0.5.0)
36
9
  railties (>= 3.1)
37
- warden (~> 1.2.1)
10
+ warden (>= 1.2.1)
38
11
 
39
12
  GEM
40
13
  remote: http://rubygems.org/
41
14
  specs:
42
- actionmailer (4.1.8)
43
- actionpack (= 4.1.8)
44
- actionview (= 4.1.8)
15
+ actionmailer (4.2.3)
16
+ actionpack (= 4.2.3)
17
+ actionview (= 4.2.3)
18
+ activejob (= 4.2.3)
45
19
  mail (~> 2.5, >= 2.5.4)
46
- actionpack (4.1.8)
47
- actionview (= 4.1.8)
48
- activesupport (= 4.1.8)
49
- rack (~> 1.5.2)
20
+ rails-dom-testing (~> 1.0, >= 1.0.5)
21
+ actionpack (4.2.3)
22
+ actionview (= 4.2.3)
23
+ activesupport (= 4.2.3)
24
+ rack (~> 1.6)
50
25
  rack-test (~> 0.6.2)
51
- actionview (4.1.8)
52
- activesupport (= 4.1.8)
26
+ rails-dom-testing (~> 1.0, >= 1.0.5)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (4.2.3)
29
+ activesupport (= 4.2.3)
53
30
  builder (~> 3.1)
54
31
  erubis (~> 2.7.0)
55
- active_attr (0.8.4)
56
- activemodel (>= 3.0.2, < 4.2)
57
- activesupport (>= 3.0.2, < 4.2)
58
- activemodel (4.1.8)
59
- activesupport (= 4.1.8)
32
+ rails-dom-testing (~> 1.0, >= 1.0.5)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
34
+ active_attr (0.8.5)
35
+ activemodel (>= 3.0.2, < 5.0)
36
+ activesupport (>= 3.0.2, < 5.0)
37
+ activejob (4.2.3)
38
+ activesupport (= 4.2.3)
39
+ globalid (>= 0.3.0)
40
+ activemodel (4.2.3)
41
+ activesupport (= 4.2.3)
60
42
  builder (~> 3.1)
61
- activerecord (4.1.8)
62
- activemodel (= 4.1.8)
63
- activesupport (= 4.1.8)
64
- arel (~> 5.0.0)
65
- activesupport (4.1.8)
66
- i18n (~> 0.6, >= 0.6.9)
43
+ activerecord (4.2.3)
44
+ activemodel (= 4.2.3)
45
+ activesupport (= 4.2.3)
46
+ arel (~> 6.0)
47
+ activesupport (4.2.3)
48
+ i18n (~> 0.7)
67
49
  json (~> 1.7, >= 1.7.7)
68
50
  minitest (~> 5.1)
69
- thread_safe (~> 0.1)
51
+ thread_safe (~> 0.3, >= 0.3.4)
70
52
  tzinfo (~> 1.1)
71
- arel (5.0.1.20140414130214)
72
- bcrypt (3.1.9)
73
- bcrypt (3.1.9-java)
74
- bcrypt-ruby (3.1.5)
75
- bcrypt (>= 3.1.3)
76
- bson (1.11.1)
53
+ arel (6.0.3)
54
+ bcrypt (3.1.10)
55
+ bcrypt (3.1.10-java)
56
+ bson (3.2.1)
77
57
  bson_ext (1.3.1)
78
58
  builder (3.2.2)
79
59
  columnize (0.9.0)
80
- devise (3.3.0)
60
+ connection_pool (2.2.0)
61
+ devise (3.5.2)
81
62
  bcrypt (~> 3.0)
82
63
  orm_adapter (~> 0.1)
83
64
  railties (>= 3.2.6, < 5)
65
+ responders
84
66
  thread_safe (~> 0.1)
85
67
  warden (~> 1.2.3)
86
- durran-validatable (2.0.1)
87
68
  erubis (2.7.0)
88
- faraday (0.9.0)
69
+ faraday (0.9.1)
89
70
  multipart-post (>= 1.2, < 3)
90
- faraday_middleware (0.9.1)
71
+ faraday_middleware (0.9.2)
91
72
  faraday (>= 0.7.4, < 0.10)
92
- hashie (3.3.2)
93
- hike (1.2.3)
94
- httparty (0.13.3)
73
+ faraday_middleware-multi_json (0.0.6)
74
+ faraday_middleware
75
+ multi_json
76
+ globalid (0.3.6)
77
+ activesupport (>= 4.1.0)
78
+ hashie (3.4.2)
79
+ httparty (0.13.5)
95
80
  json (~> 1.8)
96
81
  multi_xml (>= 0.5.2)
97
- httpclient (2.5.3.3)
98
- i18n (0.6.11)
99
- jruby-openssl (0.9.5-java)
100
- json (1.8.1)
101
- json (1.8.1-java)
102
- jwt (1.2.0)
103
- leshill-will_paginate (2.3.11)
82
+ httpclient (2.6.0.1)
83
+ i18n (0.7.0)
84
+ jruby-openssl (0.9.8-java)
85
+ json (1.8.3)
86
+ json (1.8.3-java)
87
+ jwt (1.5.1)
104
88
  linecache (0.46)
105
89
  rbx-require-relative (> 0.0.4)
90
+ loofah (2.0.2)
91
+ nokogiri (>= 1.5.9)
106
92
  mail (2.6.3)
107
93
  mime-types (>= 1.16, < 3)
108
94
  metaclass (0.0.4)
109
- mime-types (2.4.3)
110
- mini_portile (0.6.1)
111
- minitest (5.5.0)
95
+ mime-types (2.6.1)
96
+ mini_portile (0.6.2)
97
+ minitest (5.8.0)
112
98
  mocha (1.1.0)
113
99
  metaclass (~> 0.0.1)
114
- mongo (1.11.1)
115
- bson (= 1.11.1)
116
- mongoid (1.0.6)
117
- activesupport (>= 2.2.2)
118
- durran-validatable (>= 2.0.1)
119
- leshill-will_paginate (>= 2.3.11)
120
- mongo (>= 0.18.2)
121
- multi_json (1.10.1)
100
+ mongo (2.0.6)
101
+ bson (~> 3.0)
102
+ mongoid (4.0.2)
103
+ activemodel (~> 4.0)
104
+ moped (~> 2.0.0)
105
+ origin (~> 2.1)
106
+ tzinfo (>= 0.3.37)
107
+ moped (2.0.6)
108
+ bson (~> 3.0)
109
+ connection_pool (~> 2.0)
110
+ optionable (~> 0.2.0)
111
+ multi_json (1.11.2)
122
112
  multi_xml (0.5.5)
123
113
  multipart-post (2.0.0)
114
+ neo4j (5.0.15)
115
+ active_attr (~> 0.8)
116
+ activemodel (~> 4)
117
+ activesupport (~> 4)
118
+ neo4j-core (~> 5.0.1)
119
+ orm_adapter (~> 0.5.0)
120
+ neo4j-core (5.0.10)
121
+ activesupport
122
+ faraday (~> 0.9.0)
123
+ faraday_middleware (~> 0.9.1)
124
+ faraday_middleware-multi_json
125
+ httparty
126
+ httpclient
127
+ json
128
+ multi_json
129
+ net-http-persistent
130
+ os
131
+ zip
124
132
  net-http-persistent (2.9.4)
125
- nokogiri (1.6.5)
133
+ nokogiri (1.6.6.2)
126
134
  mini_portile (~> 0.6.0)
127
- nokogiri (1.6.5-java)
135
+ nokogiri (1.6.6.2-java)
128
136
  oauth2 (1.0.0)
129
137
  faraday (>= 0.8, < 0.10)
130
138
  jwt (~> 1.0)
@@ -134,63 +142,69 @@ GEM
134
142
  omniauth (1.2.2)
135
143
  hashie (>= 1.2, < 4)
136
144
  rack (~> 1.0)
137
- omniauth-facebook (2.0.0)
145
+ omniauth-facebook (2.0.1)
138
146
  omniauth-oauth2 (~> 1.2)
139
- omniauth-oauth2 (1.2.0)
140
- faraday (>= 0.8, < 0.10)
141
- multi_json (~> 1.3)
147
+ omniauth-oauth2 (1.3.1)
142
148
  oauth2 (~> 1.0)
143
149
  omniauth (~> 1.2)
144
150
  omniauth-openid (1.0.1)
145
151
  omniauth (~> 1.0)
146
152
  rack-openid (~> 1.3.1)
153
+ optionable (0.2.0)
154
+ origin (2.1.1)
147
155
  orm_adapter (0.5.0)
148
156
  os (0.9.6)
149
- rack (1.5.2)
157
+ rack (1.6.4)
150
158
  rack-openid (1.3.1)
151
159
  rack (>= 1.1.0)
152
160
  ruby-openid (>= 2.1.8)
153
- rack-test (0.6.2)
161
+ rack-test (0.6.3)
154
162
  rack (>= 1.0)
155
- rails (4.1.8)
156
- actionmailer (= 4.1.8)
157
- actionpack (= 4.1.8)
158
- actionview (= 4.1.8)
159
- activemodel (= 4.1.8)
160
- activerecord (= 4.1.8)
161
- activesupport (= 4.1.8)
163
+ rails (4.2.3)
164
+ actionmailer (= 4.2.3)
165
+ actionpack (= 4.2.3)
166
+ actionview (= 4.2.3)
167
+ activejob (= 4.2.3)
168
+ activemodel (= 4.2.3)
169
+ activerecord (= 4.2.3)
170
+ activesupport (= 4.2.3)
162
171
  bundler (>= 1.3.0, < 2.0)
163
- railties (= 4.1.8)
164
- sprockets-rails (~> 2.0)
165
- railties (4.1.8)
166
- actionpack (= 4.1.8)
167
- activesupport (= 4.1.8)
172
+ railties (= 4.2.3)
173
+ sprockets-rails
174
+ rails-deprecated_sanitizer (1.0.3)
175
+ activesupport (>= 4.2.0.alpha)
176
+ rails-dom-testing (1.0.6)
177
+ activesupport (>= 4.2.0.beta, < 5.0)
178
+ nokogiri (~> 1.6.0)
179
+ rails-deprecated_sanitizer (>= 1.0.1)
180
+ rails-html-sanitizer (1.0.2)
181
+ loofah (~> 2.0)
182
+ railties (4.2.3)
183
+ actionpack (= 4.2.3)
184
+ activesupport (= 4.2.3)
168
185
  rake (>= 0.8.7)
169
186
  thor (>= 0.18.1, < 2.0)
170
187
  rake (10.4.2)
171
188
  rbx-require-relative (0.0.9)
172
189
  rdoc (4.2.0)
173
- json (~> 1.4)
190
+ responders (2.1.0)
191
+ railties (>= 4.2.0, < 5)
174
192
  ruby-debug (0.10.4)
175
193
  columnize (>= 0.1)
176
194
  ruby-debug-base (~> 0.10.4.0)
177
195
  ruby-debug-base (0.10.4)
178
196
  linecache (>= 0.3)
179
- ruby-openid (2.6.0)
180
- sprockets (2.12.3)
181
- hike (~> 1.2)
182
- multi_json (~> 1.0)
197
+ ruby-openid (2.7.0)
198
+ sprockets (3.3.0)
183
199
  rack (~> 1.0)
184
- tilt (~> 1.1, != 1.3.0)
185
- sprockets-rails (2.2.2)
200
+ sprockets-rails (2.3.2)
186
201
  actionpack (>= 3.0)
187
202
  activesupport (>= 3.0)
188
203
  sprockets (>= 2.8, < 4.0)
189
204
  sqlite3 (1.3.10)
190
205
  thor (0.19.1)
191
- thread_safe (0.3.4)
192
- thread_safe (0.3.4-java)
193
- tilt (1.4.1)
206
+ thread_safe (0.3.5)
207
+ thread_safe (0.3.5-java)
194
208
  tzinfo (1.2.2)
195
209
  thread_safe (~> 0.1)
196
210
  warden (1.2.3)
@@ -207,20 +221,23 @@ PLATFORMS
207
221
 
208
222
  DEPENDENCIES
209
223
  bson_ext (~> 1.3.0)
210
- devise (= 3.3.0)
224
+ devise (= 3.5.2)
211
225
  devise-neo4j!
212
226
  jruby-openssl
213
227
  mocha
214
228
  mongo
215
229
  mongoid
216
- neo4j!
217
- neo4j-core!
230
+ neo4j (~> 5.0.0)
231
+ neo4j-core (~> 5.0.0)
218
232
  omniauth
219
233
  omniauth-facebook
220
234
  omniauth-oauth2
221
235
  omniauth-openid (~> 1.0.1)
222
- rails (~> 4.1.1)
236
+ rails (~> 4.2.3)
223
237
  rdoc
224
238
  ruby-debug (>= 0.10.3)
225
239
  sqlite3
226
240
  webrat (= 0.7.2)
241
+
242
+ BUNDLED WITH
243
+ 1.10.6
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Devise-Neo4j [![Build Status](https://secure.travis-ci.org/andreasronge/devise-neo4j.png?branch=master)](http://travis-ci.org/andreasronge/devise-neo4j)
1
+ # Devise-Neo4j [![Build Status](https://secure.travis-ci.org/neo4jrb/devise-neo4j.png?branch=master)](http://travis-ci.org/neo4jrb/devise-neo4j)
2
2
 
3
3
  A gem for Neo4j integration with the Devise authentication framework.
4
4
 
5
- Neo4j: https://github.com/andreasronge/neo4j Devise:
5
+ Neo4j: https://github.com/neo4jrb/neo4j Devise:
6
6
  https://github.com/plataformatec/devise
7
7
 
8
8
  ## Usage
@@ -11,62 +11,67 @@ https://github.com/plataformatec/devise
11
11
 
12
12
  Add the neo4j and devise-neo4j gems to your Gemfile:
13
13
 
14
- gem "neo4j", "~> 3.0.0.alpha.7"
15
- gem "devise-neo4j", "~> 2.0.0.alpha.1"
14
+ gem "neo4j", "~> 4.2.1"
15
+ gem "devise-neo4j"
16
16
 
17
17
  Run the bundle install command:
18
18
 
19
19
  bundle install
20
20
 
21
- Then run the devise install generator and optionally update or create a
21
+ Then run the Devise install generator and optionally update or create a
22
22
  devise-neo4j model:
23
23
 
24
24
  rails g devise:install --orm=neo4j
25
+ # Make sure the model file is created ahead of time!
25
26
  rails g neo4j:devise MODEL
27
+
28
+ Add the Devise route to your config/routes.rb:
26
29
 
27
- Now the model is setup like a default devise model, meaning you can do things
28
- like adding a before_filter in a controller to restrict access to logged-in
30
+ devise_for :users
31
+
32
+ Now the model is set up like a default Devise model, meaning you can do things
33
+ like adding a `before_action` in a controller to restrict access to logged-in
29
34
  users only:
30
35
 
31
- before_filter :authenticate_<your model name>!
36
+ before_action :authenticate_<your model name>!
32
37
 
33
38
  ## Example App
34
39
 
35
40
  You can see a very simple app that demonstrates Neo4j and devise here:
36
41
 
37
42
  gem install rails
38
- rails new myapp -m http://andreasronge.github.com/neo4j/neo4j.rb -O
43
+ rails new myapp -m http://neo4jrb.io/neo4j/rails.rb -O
39
44
  cd myapp
40
- add to your Gem File :
41
- gem 'devise'
42
- gem 'devise-neo4j', :git => 'git@github.com:cheerfulstoic/devise-neo4j.git'
45
+
46
+ # Add the gem to your Gemfile, then run bundle:
47
+ gem 'devise-neo4j'
43
48
  bundle
49
+
44
50
  rails generate devise:install --orm=neo4j
45
51
 
46
- # install the database unless you already have a neo4j database, or use JRuby Embedded Neo4j db
47
- rake neo4j:install[community-2.1.2] # check which one is the latest
52
+ # Install the database unless you already have a Neo4j database, or use JRuby Embedded Neo4j db
53
+ rake neo4j:install[community-2.2.2] # check which one is the latest
48
54
  rake neo4j:start
49
55
 
50
56
  rails g neo4j:devise User
51
- # add to your config/routes.rb:
52
- devise_for :users
53
- root :to => "secrets#show"
57
+
58
+ # Add to your config/routes.rb:
59
+ devise_for :users
60
+ root :to => "secrets#show"
54
61
 
55
- # generate a controller for the protected content
62
+ # Generate a controller for the protected content
56
63
  rails g controller secrets show
57
64
 
58
- # in app/controllers/sercrets_controller.rb delete line get 'secrets/show' and add:
59
- before_filter :authenticate_user!
60
-
61
- # in app/views/secrets/show.html.erb: add:
62
- <p>Shhhh... this page is only visible to logged-in users!</p>
65
+ # In app/controllers/secrets_controller.rb add:
66
+ before_action :authenticate_user!
63
67
 
64
- <%= link_to "Log out", destroy_user_session_path, method: :delete %>
68
+ # In app/views/secrets/show.html.erb add:
69
+ <p>Shhhh... this page is only visible to logged-in users!</p>
70
+ <%= link_to "Log out", destroy_user_session_path, method: :delete %>
65
71
 
72
+ # Start the application and visit http://localhost:3000/users/sign_up
66
73
  rails s
67
74
 
68
- # go to http://localhost:3000/users/sign_up
69
-
70
75
  ## Developing
71
76
 
72
77
  ### For JRuby
data/Rakefile CHANGED
@@ -2,8 +2,6 @@
2
2
  require "bundler/gem_tasks"
3
3
  require 'rake/testtask'
4
4
  require 'rdoc/task'
5
- load 'neo4j/tasks/neo4j_server.rake'
6
-
7
5
 
8
6
  task :default => [:test, :"neo4j:db:remove"]
9
7
 
data/devise-neo4j.gemspec CHANGED
@@ -17,11 +17,11 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_dependency("warden", "~> 1.2.1")
20
+ s.add_dependency("warden", ">= 1.2.1")
21
21
  s.add_dependency("orm_adapter", "~> 0.5.0")
22
- s.add_dependency("bcrypt-ruby", "~> 3.0")
22
+ s.add_dependency("bcrypt", ">= 3.0")
23
23
  s.add_dependency("railties", ">= 3.1")
24
24
  s.add_dependency("neo4j", ">= 3.0.0.alpha.6")
25
- s.add_dependency("devise", "~> 3.0")
25
+ s.add_dependency("devise", ">= 3.0")
26
26
 
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Neo4j
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -29,15 +29,15 @@ module Neo4j
29
29
  # uncomment the property definitions for those modules. Otherwise, the unused property definitions can be deleted.
30
30
  #
31
31
 
32
- property :username, :type => String
33
- property :facebook_token, :type => String
32
+ property :username, type: String
33
+ property :facebook_token, type: String
34
34
  index :facebook_token
35
35
 
36
- property :created_at, :type => DateTime
37
- property :updated_at, :type => DateTime
36
+ property :created_at, type: DateTime
37
+ property :updated_at, type: DateTime
38
38
 
39
39
  ## Database authenticatable
40
- property :email, :type => String, :null => false, :default => ""
40
+ property :email, type: String, null: false, default: ""
41
41
  index :email
42
42
 
43
43
  property :encrypted_password
@@ -45,36 +45,37 @@ module Neo4j
45
45
  ## If you include devise modules, uncomment the properties below.
46
46
 
47
47
  ## Rememberable
48
- property :remember_created_at, :type => DateTime
48
+ property :remember_created_at, type: DateTime
49
+ property :remember_token
49
50
  index :remember_token
50
51
 
51
52
 
52
53
  ## Recoverable
53
54
  property :reset_password_token
54
55
  index :reset_password_token
55
- property :reset_password_sent_at, :type => DateTime
56
+ property :reset_password_sent_at, type: DateTime
56
57
 
57
58
  ## Trackable
58
- property :sign_in_count, :type => Integer, :default => 0
59
- property :current_sign_in_at, :type => DateTime
60
- property :last_sign_in_at, :type => DateTime
61
- property :current_sign_in_ip, :type => String
62
- property :last_sign_in_ip, :type => String
59
+ property :sign_in_count, type: Integer, default: 0
60
+ property :current_sign_in_at, type: DateTime
61
+ property :last_sign_in_at, type: DateTime
62
+ property :current_sign_in_ip, type: String
63
+ property :last_sign_in_ip, type: String
63
64
 
64
65
  ## Confirmable
65
66
  # property :confirmation_token
66
67
  # index :confirmation_token
67
- # property :confirmed_at, :type => DateTime
68
- # property :confirmation_sent_at, :type => DateTime
68
+ # property :confirmed_at, type: DateTime
69
+ # property :confirmation_sent_at, type: DateTime
69
70
 
70
71
  ## Lockable
71
- # property :failed_attempts, :type => Integer, :default => 0
72
- # property :locked_at, :type => DateTime
73
- # property :unlock_token, :type => String,
72
+ # property :failed_attempts, type: Integer, default: 0
73
+ # property :locked_at, type: DateTime
74
+ # property :unlock_token, type: String,
74
75
  # index :unlock_token
75
76
 
76
77
  ## Token authenticatable
77
- # property :authentication_token, :type => String, :null => true, :index => :exact
78
+ # property :authentication_token, type: String, null: true, index: :exact
78
79
 
79
80
  RUBY
80
81
  end
data/test/support/i18n.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  class DeviseHelperTest < ActionDispatch::IntegrationTest
2
2
  setup :neo4j_i18n
3
-
3
+
4
4
  private
5
5
  def neo4j_i18n
6
- I18n.backend.store_translations :fr, {
7
- :neo4j => { :models => { :user => "utilisateur" } }
6
+ I18n.backend.store_translations :en, {
7
+ :neo4j => { :models => { :user => "the user" } }
8
8
  }
9
9
  end
10
10
  end
data/test/test_helper.rb CHANGED
@@ -32,4 +32,5 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
32
32
  # For generators
33
33
  require "rails/generators/test_case"
34
34
  require "generators/devise/install_generator"
35
+ require "generators/devise/controllers_generator"
35
36
  require "generators/devise/views_generator"
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.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Jackson
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-18 00:00:00.000000000 Z
12
+ date: 2015-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: warden
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 1.2.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 1.2.1
28
28
  - !ruby/object:Gem::Dependency
@@ -40,17 +40,17 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  version: 0.5.0
42
42
  - !ruby/object:Gem::Dependency
43
- name: bcrypt-ruby
43
+ name: bcrypt
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '3.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.0'
56
56
  - !ruby/object:Gem::Dependency
@@ -85,14 +85,14 @@ dependencies:
85
85
  name: devise
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '3.0'
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '3.0'
98
98
  description: Neo4j integration with the Devise authentication framework
@@ -106,7 +106,7 @@ files:
106
106
  - ".gitignore"
107
107
  - ".rdebugrc"
108
108
  - ".travis.yml"
109
- - CHANGELOG
109
+ - CHANGELOG.md
110
110
  - Gemfile
111
111
  - Gemfile.lock
112
112
  - LICENSE
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.4.3
175
+ rubygems_version: 2.4.5.1
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Devise ORM for Neo4j
@@ -191,3 +191,4 @@ test_files:
191
191
  - test/support/i18n.rb
192
192
  - test/test_helper.rb
193
193
  - test/test_models.rb
194
+ has_rdoc:
data/CHANGELOG DELETED
@@ -1,5 +0,0 @@
1
- == 2.0.0
2
- * Point gemfile at the neo4jrb repos now that all specs are passing.
3
-
4
- == 2.0.0.alpha.1
5
- * Support for Neo4j.rb 3.0!