devise_token_auth 0.1.32.beta5 → 0.1.32.beta6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +45 -7
- data/app/controllers/devise_token_auth/registrations_controller.rb +3 -3
- data/app/controllers/devise_token_auth/sessions_controller.rb +1 -3
- data/app/models/devise_token_auth/concerns/user.rb +1 -1
- data/app/validators/email_validator.rb +7 -0
- data/lib/devise_token_auth/version.rb +1 -1
- data/test/controllers/devise_token_auth/registrations_controller_test.rb +30 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +8559 -0
- data/test/dummy/tmp/generators/db/migrate/{20150209074449_devise_token_auth_create_users.rb → 20150303194737_devise_token_auth_create_users.rb} +0 -0
- metadata +5 -10
- data/test/dummy/tmp/generators/app/models/mang.rb +0 -7
- data/test/dummy/tmp/generators/config/routes.rb +0 -9
- data/test/dummy/tmp/generators/db/migrate/20150209074449_devise_token_auth_create_mangs.rb +0 -54
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_token_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.32.
|
4
|
+
version: 0.1.32.beta6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lynn Hurley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -99,6 +99,7 @@ files:
|
|
99
99
|
- app/controllers/devise_token_auth/sessions_controller.rb
|
100
100
|
- app/controllers/devise_token_auth/token_validations_controller.rb
|
101
101
|
- app/models/devise_token_auth/concerns/user.rb
|
102
|
+
- app/validators/email_validator.rb
|
102
103
|
- app/views/devise/mailer/confirmation_instructions.html.erb
|
103
104
|
- app/views/devise/mailer/reset_password_instructions.html.erb
|
104
105
|
- app/views/devise/mailer/unlock_instructions.html.erb
|
@@ -205,12 +206,9 @@ files:
|
|
205
206
|
- test/dummy/public/422.html
|
206
207
|
- test/dummy/public/500.html
|
207
208
|
- test/dummy/public/favicon.ico
|
208
|
-
- test/dummy/tmp/generators/app/models/mang.rb
|
209
209
|
- test/dummy/tmp/generators/app/models/user.rb
|
210
210
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
211
|
-
- test/dummy/tmp/generators/
|
212
|
-
- test/dummy/tmp/generators/db/migrate/20150209074449_devise_token_auth_create_mangs.rb
|
213
|
-
- test/dummy/tmp/generators/db/migrate/20150209074449_devise_token_auth_create_users.rb
|
211
|
+
- test/dummy/tmp/generators/db/migrate/20150303194737_devise_token_auth_create_users.rb
|
214
212
|
- test/dummy/tmp/restart.txt
|
215
213
|
- test/fixtures/evil_users.yml
|
216
214
|
- test/fixtures/mangs.yml
|
@@ -331,12 +329,9 @@ test_files:
|
|
331
329
|
- test/dummy/public/favicon.ico
|
332
330
|
- test/dummy/Rakefile
|
333
331
|
- test/dummy/README.rdoc
|
334
|
-
- test/dummy/tmp/generators/app/models/mang.rb
|
335
332
|
- test/dummy/tmp/generators/app/models/user.rb
|
336
333
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
337
|
-
- test/dummy/tmp/generators/
|
338
|
-
- test/dummy/tmp/generators/db/migrate/20150209074449_devise_token_auth_create_mangs.rb
|
339
|
-
- test/dummy/tmp/generators/db/migrate/20150209074449_devise_token_auth_create_users.rb
|
334
|
+
- test/dummy/tmp/generators/db/migrate/20150303194737_devise_token_auth_create_users.rb
|
340
335
|
- test/dummy/tmp/restart.txt
|
341
336
|
- test/fixtures/evil_users.yml
|
342
337
|
- test/fixtures/mangs.yml
|
@@ -1,54 +0,0 @@
|
|
1
|
-
class DeviseTokenAuthCreateMangs < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table(:mangs) do |t|
|
4
|
-
## Required
|
5
|
-
t.string :provider, :null => false
|
6
|
-
t.string :uid, :null => false, :default => ""
|
7
|
-
|
8
|
-
## Database authenticatable
|
9
|
-
t.string :encrypted_password, :null => false, :default => ""
|
10
|
-
|
11
|
-
## Recoverable
|
12
|
-
t.string :reset_password_token
|
13
|
-
t.datetime :reset_password_sent_at
|
14
|
-
|
15
|
-
## Rememberable
|
16
|
-
t.datetime :remember_created_at
|
17
|
-
|
18
|
-
## Trackable
|
19
|
-
t.integer :sign_in_count, :default => 0, :null => false
|
20
|
-
t.datetime :current_sign_in_at
|
21
|
-
t.datetime :last_sign_in_at
|
22
|
-
t.string :current_sign_in_ip
|
23
|
-
t.string :last_sign_in_ip
|
24
|
-
|
25
|
-
## Confirmable
|
26
|
-
t.string :confirmation_token
|
27
|
-
t.datetime :confirmed_at
|
28
|
-
t.datetime :confirmation_sent_at
|
29
|
-
t.string :unconfirmed_email # Only if using reconfirmable
|
30
|
-
|
31
|
-
## Lockable
|
32
|
-
# t.integer :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
|
33
|
-
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
34
|
-
# t.datetime :locked_at
|
35
|
-
|
36
|
-
## User Info
|
37
|
-
t.string :name
|
38
|
-
t.string :nickname
|
39
|
-
t.string :image
|
40
|
-
t.string :email
|
41
|
-
|
42
|
-
## Tokens
|
43
|
-
t.text :tokens
|
44
|
-
|
45
|
-
t.timestamps
|
46
|
-
end
|
47
|
-
|
48
|
-
add_index :mangs, :email
|
49
|
-
add_index :mangs, [:uid, :provider], :unique => true
|
50
|
-
add_index :mangs, :reset_password_token, :unique => true
|
51
|
-
# add_index :mangs, :confirmation_token, :unique => true
|
52
|
-
# add_index :mangs, :unlock_token, :unique => true
|
53
|
-
end
|
54
|
-
end
|