devise_token_auth 0.1.32.beta1 → 0.1.32.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/sessions_controller.rb +43 -14
- data/app/models/devise_token_auth/concerns/user.rb +1 -3
- data/lib/devise_token_auth/version.rb +1 -1
- data/test/controllers/devise_token_auth/sessions_controller_test.rb +14 -0
- data/test/dummy/app/controllers/overrides/sessions_controller.rb +1 -1
- data/test/dummy/config/initializers/devise.rb +3 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb +1 -0
- data/test/dummy/db/schema.rb +95 -94
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +733 -0
- data/test/dummy/log/test.log +75021 -0
- data/test/dummy/tmp/generators/db/migrate/{20150203233903_devise_token_auth_create_users.rb → 20150209041130_devise_token_auth_create_users.rb} +0 -0
- data/test/fixtures/users.yml +21 -20
- metadata +6 -4
File without changes
|
data/test/fixtures/users.yml
CHANGED
@@ -1,29 +1,30 @@
|
|
1
1
|
<% timestamp = DateTime.parse(2.weeks.ago.to_s).to_time.strftime("%F %T") %>
|
2
2
|
<% @email = Faker::Internet.email %>
|
3
3
|
confirmed_email_user:
|
4
|
-
uid:
|
5
|
-
email:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
uid: "<%= @email %>"
|
5
|
+
email: "<%= @email %>"
|
6
|
+
nickname: 'stimpy'
|
7
|
+
provider: 'email'
|
8
|
+
confirmed_at: '<%= timestamp %>'
|
9
|
+
created_at: '<%= timestamp %>'
|
10
|
+
updated_at: '<%= timestamp %>'
|
11
|
+
encrypted_password: <%= User.new.send(:password_digest, 'secret123') %>
|
11
12
|
|
12
13
|
<% @fb_email = Faker::Internet.email %>
|
13
14
|
duplicate_email_facebook_user:
|
14
|
-
uid:
|
15
|
-
email:
|
16
|
-
provider:
|
17
|
-
created_at:
|
18
|
-
updated_at:
|
19
|
-
confirmed_at:
|
20
|
-
encrypted_password:
|
15
|
+
uid: "<%= Faker::Number.number(10) %>"
|
16
|
+
email: "<%= @fb_email %>"
|
17
|
+
provider: 'facebook'
|
18
|
+
created_at: '<%= timestamp %>'
|
19
|
+
updated_at: '<%= timestamp %>'
|
20
|
+
confirmed_at: '<%= timestamp %>'
|
21
|
+
encrypted_password: <%= User.new.send(:password_digest, 'secret123') %>
|
21
22
|
|
22
23
|
<% @unconfirmed_email = Faker::Internet.email %>
|
23
24
|
unconfirmed_email_user:
|
24
|
-
uid:
|
25
|
-
email:
|
26
|
-
provider:
|
27
|
-
created_at:
|
28
|
-
updated_at:
|
29
|
-
encrypted_password:
|
25
|
+
uid: "<%= @unconfirmed_email %>"
|
26
|
+
email: "<%= @unconfirmed_email %>"
|
27
|
+
provider: 'email'
|
28
|
+
created_at: '<%= timestamp %>'
|
29
|
+
updated_at: '<%= timestamp %>'
|
30
|
+
encrypted_password: <%= User.new.send(:password_digest, 'secret123') %>
|
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.beta2
|
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-02-
|
11
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -176,6 +176,7 @@ files:
|
|
176
176
|
- test/dummy/config/initializers/assets.rb
|
177
177
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
178
178
|
- test/dummy/config/initializers/cookies_serializer.rb
|
179
|
+
- test/dummy/config/initializers/devise.rb
|
179
180
|
- test/dummy/config/initializers/devise_token_auth.rb
|
180
181
|
- test/dummy/config/initializers/figaro.rb
|
181
182
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
@@ -206,7 +207,7 @@ files:
|
|
206
207
|
- test/dummy/public/favicon.ico
|
207
208
|
- test/dummy/tmp/generators/app/models/user.rb
|
208
209
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
209
|
-
- test/dummy/tmp/generators/db/migrate/
|
210
|
+
- test/dummy/tmp/generators/db/migrate/20150209041130_devise_token_auth_create_users.rb
|
210
211
|
- test/dummy/tmp/restart.txt
|
211
212
|
- test/fixtures/evil_users.yml
|
212
213
|
- test/fixtures/mangs.yml
|
@@ -295,6 +296,7 @@ test_files:
|
|
295
296
|
- test/dummy/config/initializers/assets.rb
|
296
297
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
297
298
|
- test/dummy/config/initializers/cookies_serializer.rb
|
299
|
+
- test/dummy/config/initializers/devise.rb
|
298
300
|
- test/dummy/config/initializers/devise_token_auth.rb
|
299
301
|
- test/dummy/config/initializers/figaro.rb
|
300
302
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
@@ -328,7 +330,7 @@ test_files:
|
|
328
330
|
- test/dummy/README.rdoc
|
329
331
|
- test/dummy/tmp/generators/app/models/user.rb
|
330
332
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
331
|
-
- test/dummy/tmp/generators/db/migrate/
|
333
|
+
- test/dummy/tmp/generators/db/migrate/20150209041130_devise_token_auth_create_users.rb
|
332
334
|
- test/dummy/tmp/restart.txt
|
333
335
|
- test/fixtures/evil_users.yml
|
334
336
|
- test/fixtures/mangs.yml
|