devise_token_auth 0.1.13 → 0.1.14
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.
- checksums.yaml +4 -4
- data/LICENSE +13 -0
- data/README.md +244 -0
- data/app/controllers/devise_token_auth/confirmations_controller.rb +3 -2
- data/app/controllers/devise_token_auth/registrations_controller.rb +19 -10
- data/app/controllers/devise_token_auth/sessions_controller.rb +20 -12
- data/app/models/user.rb +1 -0
- data/lib/devise_token_auth/version.rb +1 -1
- data/test/controllers/devise_token_auth/confirmations_controller_test.rb +53 -0
- data/test/controllers/devise_token_auth/registrations_controller_test.rb +135 -0
- data/test/controllers/devise_token_auth/sessions_controller_test.rb +96 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/spring +18 -0
- data/test/dummy/config/environments/test.rb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +332 -0
- data/test/dummy/log/test.log +25673 -0
- data/test/fixtures/users.yml +25 -0
- data/test/test_helper.rb +29 -9
- metadata +17 -5
- data/test/devise_token_auth_test.rb +0 -7
@@ -0,0 +1,25 @@
|
|
1
|
+
<% @email = Faker::Internet.email %>
|
2
|
+
confirmed_email_user:
|
3
|
+
uid: "<%= @email %>"
|
4
|
+
email: "<%= @email %>"
|
5
|
+
provider: 'email'
|
6
|
+
confirmed_at: '<% 2.weeks.ago %>'
|
7
|
+
confirm_success_url: '<%= Faker::Internet.url %>'
|
8
|
+
encrypted_password: <%= User.new.send(:password_digest, 'secret123') %>
|
9
|
+
|
10
|
+
<% @fb_email = Faker::Internet.email %>
|
11
|
+
duplicate_email_facebook_user:
|
12
|
+
uid: "<%= Faker::Number.number(10) %>"
|
13
|
+
email: "<%= @fb_email %>"
|
14
|
+
provider: 'facebook'
|
15
|
+
confirmed_at: '<% 2.weeks.ago %>'
|
16
|
+
confirm_success_url: '<%= Faker::Internet.url %>'
|
17
|
+
encrypted_password: <%= User.new.send(:password_digest, 'secret123') %>
|
18
|
+
|
19
|
+
<% @unconfirmed_email = Faker::Internet.email %>
|
20
|
+
unconfirmed_email_user:
|
21
|
+
uid: "<%= @unconfirmed_email %>"
|
22
|
+
email: "<%= @unconfirmed_email %>"
|
23
|
+
provider: 'email'
|
24
|
+
confirm_success_url: '<%= Faker::Internet.url %>'
|
25
|
+
encrypted_password: <%= User.new.send(:password_digest, 'secret123') %>
|
data/test/test_helper.rb
CHANGED
@@ -1,15 +1,35 @@
|
|
1
|
-
# Configure Rails Environment
|
2
1
|
ENV["RAILS_ENV"] = "test"
|
3
|
-
|
4
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
2
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
5
3
|
require "rails/test_help"
|
4
|
+
require "minitest/rails"
|
5
|
+
|
6
|
+
# To add Capybara feature tests add `gem "minitest-rails-capybara"`
|
7
|
+
# to the test group in the Gemfile and uncomment the following:
|
8
|
+
# require "minitest/rails/capybara"
|
9
|
+
|
10
|
+
# Uncomment for awesome colorful output
|
11
|
+
require "minitest/pride"
|
12
|
+
|
13
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
14
|
+
|
15
|
+
class ActiveSupport::TestCase
|
16
|
+
ActiveRecord::Migration.check_pending!
|
17
|
+
|
18
|
+
include Devise::TestHelpers
|
19
|
+
|
20
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
21
|
+
#
|
22
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
23
|
+
# -- they do not yet inherit this setting
|
24
|
+
fixtures :all
|
6
25
|
|
7
|
-
|
26
|
+
# Add more helper methods to be used by all tests here...
|
8
27
|
|
9
|
-
|
10
|
-
|
28
|
+
setup do
|
29
|
+
@routes = DeviseTokenAuth::Engine.routes
|
30
|
+
end
|
11
31
|
|
12
|
-
|
13
|
-
|
14
|
-
|
32
|
+
before do
|
33
|
+
@request.env["devise.mapping"] = Devise.mappings[:user]
|
34
|
+
end
|
15
35
|
end
|
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.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lynn Hurley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -73,6 +73,8 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- LICENSE
|
77
|
+
- README.md
|
76
78
|
- Rakefile
|
77
79
|
- app/assets/javascripts/devise_token_auth/application.js
|
78
80
|
- app/assets/stylesheets/devise_token_auth/application.css
|
@@ -101,7 +103,9 @@ files:
|
|
101
103
|
- lib/generators/devise_token_auth/USAGE
|
102
104
|
- lib/generators/devise_token_auth/devise_token_auth_generator.rb
|
103
105
|
- lib/tasks/devise_token_auth_tasks.rake
|
104
|
-
- test/
|
106
|
+
- test/controllers/devise_token_auth/confirmations_controller_test.rb
|
107
|
+
- test/controllers/devise_token_auth/registrations_controller_test.rb
|
108
|
+
- test/controllers/devise_token_auth/sessions_controller_test.rb
|
105
109
|
- test/dummy/README.rdoc
|
106
110
|
- test/dummy/Rakefile
|
107
111
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -113,6 +117,7 @@ files:
|
|
113
117
|
- test/dummy/bin/bundle
|
114
118
|
- test/dummy/bin/rails
|
115
119
|
- test/dummy/bin/rake
|
120
|
+
- test/dummy/bin/spring
|
116
121
|
- test/dummy/config.ru
|
117
122
|
- test/dummy/config/application.rb
|
118
123
|
- test/dummy/config/application.yml
|
@@ -139,16 +144,18 @@ files:
|
|
139
144
|
- test/dummy/db/schema.rb
|
140
145
|
- test/dummy/db/test.sqlite3
|
141
146
|
- test/dummy/log/development.log
|
147
|
+
- test/dummy/log/test.log
|
142
148
|
- test/dummy/public/404.html
|
143
149
|
- test/dummy/public/422.html
|
144
150
|
- test/dummy/public/500.html
|
145
151
|
- test/dummy/public/favicon.ico
|
152
|
+
- test/fixtures/users.yml
|
146
153
|
- test/integration/navigation_test.rb
|
147
154
|
- test/lib/generators/devise_token_auth/devise_token_auth_generator_test.rb
|
148
155
|
- test/test_helper.rb
|
149
156
|
homepage: http://github.com/lynndylanhurley/devise_token_auth
|
150
157
|
licenses:
|
151
|
-
-
|
158
|
+
- WTFPL
|
152
159
|
metadata: {}
|
153
160
|
post_install_message:
|
154
161
|
rdoc_options: []
|
@@ -171,7 +178,9 @@ signing_key:
|
|
171
178
|
specification_version: 4
|
172
179
|
summary: Token based authentication for rails. Uses Devies + Omniauth.
|
173
180
|
test_files:
|
174
|
-
- test/
|
181
|
+
- test/controllers/devise_token_auth/confirmations_controller_test.rb
|
182
|
+
- test/controllers/devise_token_auth/registrations_controller_test.rb
|
183
|
+
- test/controllers/devise_token_auth/sessions_controller_test.rb
|
175
184
|
- test/dummy/app/assets/javascripts/application.js
|
176
185
|
- test/dummy/app/assets/stylesheets/application.css
|
177
186
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -181,6 +190,7 @@ test_files:
|
|
181
190
|
- test/dummy/bin/bundle
|
182
191
|
- test/dummy/bin/rails
|
183
192
|
- test/dummy/bin/rake
|
193
|
+
- test/dummy/bin/spring
|
184
194
|
- test/dummy/config/application.rb
|
185
195
|
- test/dummy/config/application.yml
|
186
196
|
- test/dummy/config/boot.rb
|
@@ -207,12 +217,14 @@ test_files:
|
|
207
217
|
- test/dummy/db/schema.rb
|
208
218
|
- test/dummy/db/test.sqlite3
|
209
219
|
- test/dummy/log/development.log
|
220
|
+
- test/dummy/log/test.log
|
210
221
|
- test/dummy/public/404.html
|
211
222
|
- test/dummy/public/422.html
|
212
223
|
- test/dummy/public/500.html
|
213
224
|
- test/dummy/public/favicon.ico
|
214
225
|
- test/dummy/Rakefile
|
215
226
|
- test/dummy/README.rdoc
|
227
|
+
- test/fixtures/users.yml
|
216
228
|
- test/integration/navigation_test.rb
|
217
229
|
- test/lib/generators/devise_token_auth/devise_token_auth_generator_test.rb
|
218
230
|
- test/test_helper.rb
|