devise_token_auth 0.1.31.beta4 → 0.1.31.beta5

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.
@@ -0,0 +1,7 @@
1
+ class Mang < ActiveRecord::Base
2
+ # Include default devise modules.
3
+ devise :database_authenticatable, :registerable,
4
+ :recoverable, :rememberable, :trackable, :validatable,
5
+ :confirmable, :omniauthable
6
+ include DeviseTokenAuth::Concerns::User
7
+ end
@@ -4,8 +4,4 @@ class User < ActiveRecord::Base
4
4
  :recoverable, :rememberable, :trackable, :validatable,
5
5
  :confirmable, :omniauthable
6
6
  include DeviseTokenAuth::Concerns::User
7
-
8
- def whatever
9
- puts 'whatever'
10
- end
11
7
  end
@@ -0,0 +1,9 @@
1
+ Rails.application.routes.draw do
2
+ mount_devise_token_auth_for 'User', at: '/auth'
3
+
4
+ mount_devise_token_auth_for 'Mang', at: '/mangs'
5
+ as :mang do
6
+ # Define routes for Mang within this block.
7
+ end
8
+ patch '/chong', to: 'bong#index'
9
+ end
@@ -0,0 +1,54 @@
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31.beta4
4
+ version: 0.1.31.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
@@ -129,6 +129,7 @@ files:
129
129
  - test/controllers/devise_token_auth/passwords_controller_test.rb
130
130
  - test/controllers/devise_token_auth/registrations_controller_test.rb
131
131
  - test/controllers/devise_token_auth/sessions_controller_test.rb
132
+ - test/controllers/devise_token_auth/token_validations_controller_test.rb
132
133
  - test/controllers/overrides/confirmations_controller_test.rb
133
134
  - test/controllers/overrides/omniauth_callbacks_controller_test.rb
134
135
  - test/controllers/overrides/passwords_controller_test.rb
@@ -203,9 +204,12 @@ files:
203
204
  - test/dummy/public/422.html
204
205
  - test/dummy/public/500.html
205
206
  - test/dummy/public/favicon.ico
207
+ - test/dummy/tmp/generators/app/models/mang.rb
206
208
  - test/dummy/tmp/generators/app/models/user.rb
207
209
  - test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
208
- - test/dummy/tmp/generators/db/migrate/20150105044322_devise_token_auth_create_users.rb
210
+ - test/dummy/tmp/generators/config/routes.rb
211
+ - test/dummy/tmp/generators/db/migrate/20150105083851_devise_token_auth_create_mangs.rb
212
+ - test/dummy/tmp/generators/db/migrate/20150105083851_devise_token_auth_create_users.rb
209
213
  - test/dummy/tmp/restart.txt
210
214
  - test/fixtures/evil_users.yml
211
215
  - test/fixtures/mangs.yml
@@ -250,6 +254,7 @@ test_files:
250
254
  - test/controllers/devise_token_auth/passwords_controller_test.rb
251
255
  - test/controllers/devise_token_auth/registrations_controller_test.rb
252
256
  - test/controllers/devise_token_auth/sessions_controller_test.rb
257
+ - test/controllers/devise_token_auth/token_validations_controller_test.rb
253
258
  - test/controllers/overrides/confirmations_controller_test.rb
254
259
  - test/controllers/overrides/omniauth_callbacks_controller_test.rb
255
260
  - test/controllers/overrides/passwords_controller_test.rb
@@ -324,9 +329,12 @@ test_files:
324
329
  - test/dummy/public/favicon.ico
325
330
  - test/dummy/Rakefile
326
331
  - test/dummy/README.rdoc
332
+ - test/dummy/tmp/generators/app/models/mang.rb
327
333
  - test/dummy/tmp/generators/app/models/user.rb
328
334
  - test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
329
- - test/dummy/tmp/generators/db/migrate/20150105044322_devise_token_auth_create_users.rb
335
+ - test/dummy/tmp/generators/config/routes.rb
336
+ - test/dummy/tmp/generators/db/migrate/20150105083851_devise_token_auth_create_mangs.rb
337
+ - test/dummy/tmp/generators/db/migrate/20150105083851_devise_token_auth_create_users.rb
330
338
  - test/dummy/tmp/restart.txt
331
339
  - test/fixtures/evil_users.yml
332
340
  - test/fixtures/mangs.yml