devise_token_auth 0.1.28.beta1 → 0.1.28.beta2

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.
@@ -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.beta1
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/20140910003405_devise_token_auth_create_users.rb
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/20140910003405_devise_token_auth_create_users.rb
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
@@ -1,8 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- include DeviseTokenAuth::Concerns::SetUserByToken
3
- respond_to :json
4
-
5
- def whatever
6
- 'whatever'
7
- end
8
- end