devise_token_auth 0.1.28.beta1 → 0.1.28.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/devise_token_auth/auth_controller.rb +11 -2
- data/app/models/devise_token_auth/concerns/user.rb +1 -7
- data/app/views/devise_token_auth/omniauth_success.html.erb +7 -8
- data/config/initializers/devise.rb +3 -0
- data/lib/devise_token_auth/version.rb +1 -1
- data/test/controllers/devise_token_auth/auth_controller_test.rb +15 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1492 -0
- data/test/dummy/log/test.log +6845 -0
- data/test/dummy/tmp/generators/db/migrate/{20140910003405_devise_token_auth_create_users.rb → 20140910183517_devise_token_auth_create_users.rb} +0 -0
- data/test/models/user_test.rb +6 -0
- metadata +3 -5
- data/test/dummy/tmp/generators/app/controllers/application_controller.rb +0 -8
File without changes
|
data/test/models/user_test.rb
CHANGED
@@ -9,6 +9,12 @@ class UserTest < ActiveSupport::TestCase
|
|
9
9
|
@user = User.new()
|
10
10
|
end
|
11
11
|
|
12
|
+
describe 'serialization' do
|
13
|
+
test 'hash should not include sensitive info' do
|
14
|
+
refute @user.as_json[:tokens]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
12
18
|
describe 'email registration' do
|
13
19
|
test 'model should not save if email is blank' do
|
14
20
|
@user.provider = 'email'
|
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.28.
|
4
|
+
version: 0.1.28.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lynn Hurley
|
@@ -175,10 +175,9 @@ files:
|
|
175
175
|
- test/dummy/public/422.html
|
176
176
|
- test/dummy/public/500.html
|
177
177
|
- test/dummy/public/favicon.ico
|
178
|
-
- test/dummy/tmp/generators/app/controllers/application_controller.rb
|
179
178
|
- test/dummy/tmp/generators/app/models/user.rb
|
180
179
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
181
|
-
- test/dummy/tmp/generators/db/migrate/
|
180
|
+
- test/dummy/tmp/generators/db/migrate/20140910183517_devise_token_auth_create_users.rb
|
182
181
|
- test/dummy/tmp/restart.txt
|
183
182
|
- test/fixtures/mangs.yml
|
184
183
|
- test/fixtures/users.yml
|
@@ -269,10 +268,9 @@ test_files:
|
|
269
268
|
- test/dummy/public/favicon.ico
|
270
269
|
- test/dummy/Rakefile
|
271
270
|
- test/dummy/README.rdoc
|
272
|
-
- test/dummy/tmp/generators/app/controllers/application_controller.rb
|
273
271
|
- test/dummy/tmp/generators/app/models/user.rb
|
274
272
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
275
|
-
- test/dummy/tmp/generators/db/migrate/
|
273
|
+
- test/dummy/tmp/generators/db/migrate/20140910183517_devise_token_auth_create_users.rb
|
276
274
|
- test/dummy/tmp/restart.txt
|
277
275
|
- test/fixtures/mangs.yml
|
278
276
|
- test/fixtures/users.yml
|