devise_token_auth 0.1.30.beta2 → 0.1.30.beta3

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.
@@ -1,3 +1,7 @@
1
1
  class User < ActiveRecord::Base
2
2
  include DeviseTokenAuth::Concerns::User
3
+
4
+ def whatever
5
+ puts 'whatever'
6
+ end
3
7
  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.30.beta2
4
+ version: 0.1.30.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
@@ -198,12 +198,9 @@ files:
198
198
  - test/dummy/public/422.html
199
199
  - test/dummy/public/500.html
200
200
  - test/dummy/public/favicon.ico
201
- - test/dummy/tmp/generators/app/models/mang.rb
202
201
  - test/dummy/tmp/generators/app/models/user.rb
203
202
  - test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
204
- - test/dummy/tmp/generators/config/routes.rb
205
- - test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_mangs.rb
206
- - test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_users.rb
203
+ - test/dummy/tmp/generators/db/migrate/20141028214843_devise_token_auth_create_users.rb
207
204
  - test/dummy/tmp/restart.txt
208
205
  - test/fixtures/evil_users.yml
209
206
  - test/fixtures/mangs.yml
@@ -315,12 +312,9 @@ test_files:
315
312
  - test/dummy/public/favicon.ico
316
313
  - test/dummy/Rakefile
317
314
  - test/dummy/README.rdoc
318
- - test/dummy/tmp/generators/app/models/mang.rb
319
315
  - test/dummy/tmp/generators/app/models/user.rb
320
316
  - test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
321
- - test/dummy/tmp/generators/config/routes.rb
322
- - test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_mangs.rb
323
- - test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_users.rb
317
+ - test/dummy/tmp/generators/db/migrate/20141028214843_devise_token_auth_create_users.rb
324
318
  - test/dummy/tmp/restart.txt
325
319
  - test/fixtures/evil_users.yml
326
320
  - test/fixtures/mangs.yml
@@ -1,3 +0,0 @@
1
- class Mang < ActiveRecord::Base
2
- include DeviseTokenAuth::Concerns::User
3
- end
@@ -1,9 +0,0 @@
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
@@ -1,54 +0,0 @@
1
- class DeviseTokenAuthCreateMangs < ActiveRecord::Migration
2
- def change
3
- create_table(:mangs) do |t|
4
- ## Database authenticatable
5
- t.string :email
6
- t.string :encrypted_password, :null => false, :default => ""
7
-
8
- ## Recoverable
9
- t.string :reset_password_token
10
- t.datetime :reset_password_sent_at
11
-
12
- ## Rememberable
13
- t.datetime :remember_created_at
14
-
15
- ## Trackable
16
- t.integer :sign_in_count, :default => 0, :null => false
17
- t.datetime :current_sign_in_at
18
- t.datetime :last_sign_in_at
19
- t.string :current_sign_in_ip
20
- t.string :last_sign_in_ip
21
-
22
- ## Confirmable
23
- t.string :confirmation_token
24
- t.datetime :confirmed_at
25
- t.datetime :confirmation_sent_at
26
- t.string :unconfirmed_email # Only if using reconfirmable
27
-
28
- ## Lockable
29
- # t.integer :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
30
- # t.string :unlock_token # Only if unlock strategy is :email or :both
31
- # t.datetime :locked_at
32
-
33
- ## User Info
34
- t.string :name
35
- t.string :nickname
36
- t.string :image
37
-
38
- ## unique oauth id
39
- t.string :provider
40
- t.string :uid, :null => false, :default => ""
41
-
42
- ## Tokens
43
- t.text :tokens
44
-
45
- t.timestamps
46
- end
47
-
48
- add_index :mangs, :email
49
- add_index :mangs, :uid, :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