authpwn_rails 0.18.2 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile +5 -5
- data/Gemfile.lock +72 -95
- data/Gemfile.rails4 +4 -4
- data/Gemfile.rails41 +4 -4
- data/Gemfile.rails42 +5 -5
- data/VERSION +1 -1
- data/authpwn_rails.gemspec +19 -19
- data/lib/authpwn_rails/user_model.rb +0 -8
- data/test/cookie_controller_test.rb +1 -1
- data/test/user_test.rb +0 -7
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b76fa7bb9964950285b988fce4ce50ae02422203
|
4
|
+
data.tar.gz: b42a0461e9b585c6665ec6234b20ef6b6e03768b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d0c4438b497736367d0c5cb2fc567272b623f5770e8b88c98ae74f3c652584aedee57d97f3b74e0066611598cba35bca18200b2d56b64ed2b893b02c8c8247f
|
7
|
+
data.tar.gz: c5635580b753dc43ee7bdc330b605982d06c84efa60a7a85811b506f76f22569c4d5e4e2376bf4b283cfc8479ec4d5c650e6ffc0d1fc09e24659f45826a149dc
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -4,13 +4,13 @@ gem 'rails', '>= 4.0.13'
|
|
4
4
|
|
5
5
|
group :development do
|
6
6
|
gem 'bundler', '>= 1.6.6'
|
7
|
-
gem 'mocha', '>=
|
7
|
+
gem 'mocha', '>= 1.1.0'
|
8
8
|
gem 'jeweler', '>= 2.0.1'
|
9
9
|
gem 'simplecov', '>= 0'
|
10
|
-
gem 'mysql2', '>= 0.3.
|
11
|
-
gem 'omniauth', '>= 1.
|
12
|
-
gem 'pg', '>= 0.18.
|
13
|
-
gem 'sqlite3', '>= 1.3.
|
10
|
+
gem 'mysql2', '>= 0.3.20'
|
11
|
+
gem 'omniauth', '>= 1.3.1'
|
12
|
+
gem 'pg', '>= 0.18.4'
|
13
|
+
gem 'sqlite3', '>= 1.3.11'
|
14
14
|
gem 'rubysl', platforms: [:rbx]
|
15
15
|
gem 'rubysl-bundler', platforms: [:rbx]
|
16
16
|
gem 'rubysl-rake', platforms: [:rbx]
|
data/Gemfile.lock
CHANGED
@@ -1,64 +1,51 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (4.
|
5
|
-
actionpack (= 4.
|
6
|
-
actionview (= 4.2.2)
|
7
|
-
activejob (= 4.2.2)
|
4
|
+
actionmailer (4.0.13)
|
5
|
+
actionpack (= 4.0.13)
|
8
6
|
mail (~> 2.5, >= 2.5.4)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
activesupport (= 4.2.2)
|
13
|
-
rack (~> 1.6)
|
14
|
-
rack-test (~> 0.6.2)
|
15
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
17
|
-
actionview (4.2.2)
|
18
|
-
activesupport (= 4.2.2)
|
19
|
-
builder (~> 3.1)
|
7
|
+
actionpack (4.0.13)
|
8
|
+
activesupport (= 4.0.13)
|
9
|
+
builder (~> 3.1.0)
|
20
10
|
erubis (~> 2.7.0)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
activesupport (= 4.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
11
|
+
rack (~> 1.5.2)
|
12
|
+
rack-test (~> 0.6.2)
|
13
|
+
activemodel (4.0.13)
|
14
|
+
activesupport (= 4.0.13)
|
15
|
+
builder (~> 3.1.0)
|
16
|
+
activerecord (4.0.13)
|
17
|
+
activemodel (= 4.0.13)
|
18
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
19
|
+
activesupport (= 4.0.13)
|
20
|
+
arel (~> 4.0.0)
|
21
|
+
activerecord-deprecated_finders (1.0.4)
|
22
|
+
activesupport (4.0.13)
|
23
|
+
i18n (~> 0.6, >= 0.6.9)
|
24
|
+
minitest (~> 4.2)
|
25
|
+
multi_json (~> 1.3)
|
26
|
+
thread_safe (~> 0.1)
|
27
|
+
tzinfo (~> 0.3.37)
|
28
|
+
addressable (2.4.0)
|
29
|
+
arel (4.0.2)
|
30
|
+
builder (3.1.4)
|
31
|
+
concurrent-ruby (1.0.0)
|
42
32
|
descendants_tracker (0.0.4)
|
43
33
|
thread_safe (~> 0.3, >= 0.3.1)
|
44
34
|
docile (1.1.5)
|
45
35
|
erubis (2.7.0)
|
46
|
-
faraday (0.9.
|
36
|
+
faraday (0.9.2)
|
47
37
|
multipart-post (>= 1.2, < 3)
|
48
38
|
ffi2-generators (0.1.1)
|
49
39
|
git (1.2.9.1)
|
50
|
-
github_api (0.
|
51
|
-
addressable (~> 2.
|
40
|
+
github_api (0.13.1)
|
41
|
+
addressable (~> 2.4.0)
|
52
42
|
descendants_tracker (~> 0.0.4)
|
53
43
|
faraday (~> 0.8, < 0.10)
|
54
|
-
hashie (>= 3.
|
44
|
+
hashie (>= 3.4)
|
55
45
|
multi_json (>= 1.7.5, < 2.0)
|
56
|
-
nokogiri (~> 1.6.3)
|
57
46
|
oauth2
|
58
|
-
|
59
|
-
|
60
|
-
hashie (3.4.2)
|
61
|
-
highline (1.7.2)
|
47
|
+
hashie (3.4.3)
|
48
|
+
highline (1.7.8)
|
62
49
|
i18n (0.7.0)
|
63
50
|
jeweler (2.0.1)
|
64
51
|
builder
|
@@ -70,58 +57,45 @@ GEM
|
|
70
57
|
rake
|
71
58
|
rdoc
|
72
59
|
json (1.8.3)
|
73
|
-
jwt (1.5.
|
74
|
-
loofah (2.0.2)
|
75
|
-
nokogiri (>= 1.5.9)
|
60
|
+
jwt (1.5.2)
|
76
61
|
mail (2.6.3)
|
77
62
|
mime-types (>= 1.16, < 3)
|
78
63
|
metaclass (0.0.4)
|
79
|
-
mime-types (2.
|
80
|
-
|
81
|
-
minitest (
|
64
|
+
mime-types (2.99)
|
65
|
+
mini_portile2 (2.0.0)
|
66
|
+
minitest (4.7.5)
|
82
67
|
mocha (1.1.0)
|
83
68
|
metaclass (~> 0.0.1)
|
84
|
-
multi_json (1.11.
|
69
|
+
multi_json (1.11.2)
|
85
70
|
multi_xml (0.5.5)
|
86
71
|
multipart-post (2.0.0)
|
87
|
-
mysql2 (0.3.
|
88
|
-
nokogiri (1.6.
|
89
|
-
|
72
|
+
mysql2 (0.3.20)
|
73
|
+
nokogiri (1.6.7.1)
|
74
|
+
mini_portile2 (~> 2.0.0.rc2)
|
90
75
|
oauth2 (1.0.0)
|
91
76
|
faraday (>= 0.8, < 0.10)
|
92
77
|
jwt (~> 1.0)
|
93
78
|
multi_json (~> 1.3)
|
94
79
|
multi_xml (~> 0.5)
|
95
80
|
rack (~> 1.2)
|
96
|
-
omniauth (1.
|
81
|
+
omniauth (1.3.1)
|
97
82
|
hashie (>= 1.2, < 4)
|
98
|
-
rack (
|
99
|
-
pg (0.18.
|
100
|
-
rack (1.
|
83
|
+
rack (>= 1.0, < 3)
|
84
|
+
pg (0.18.4)
|
85
|
+
rack (1.5.5)
|
101
86
|
rack-test (0.6.3)
|
102
87
|
rack (>= 1.0)
|
103
|
-
rails (4.
|
104
|
-
actionmailer (= 4.
|
105
|
-
actionpack (= 4.
|
106
|
-
|
107
|
-
|
108
|
-
activemodel (= 4.2.2)
|
109
|
-
activerecord (= 4.2.2)
|
110
|
-
activesupport (= 4.2.2)
|
88
|
+
rails (4.0.13)
|
89
|
+
actionmailer (= 4.0.13)
|
90
|
+
actionpack (= 4.0.13)
|
91
|
+
activerecord (= 4.0.13)
|
92
|
+
activesupport (= 4.0.13)
|
111
93
|
bundler (>= 1.3.0, < 2.0)
|
112
|
-
railties (= 4.
|
113
|
-
sprockets-rails
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
118
|
-
nokogiri (~> 1.6.0)
|
119
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
120
|
-
rails-html-sanitizer (1.0.2)
|
121
|
-
loofah (~> 2.0)
|
122
|
-
railties (4.2.2)
|
123
|
-
actionpack (= 4.2.2)
|
124
|
-
activesupport (= 4.2.2)
|
94
|
+
railties (= 4.0.13)
|
95
|
+
sprockets-rails (~> 2.0)
|
96
|
+
railties (4.0.13)
|
97
|
+
actionpack (= 4.0.13)
|
98
|
+
activesupport (= 4.0.13)
|
125
99
|
rake (>= 0.8.7)
|
126
100
|
thor (>= 0.18.1, < 2.0)
|
127
101
|
rake (10.4.2)
|
@@ -231,7 +205,7 @@ GEM
|
|
231
205
|
rubysl-pathname (~> 2.0)
|
232
206
|
rubysl-set (~> 2.0)
|
233
207
|
rubysl-cgi (2.0.1)
|
234
|
-
rubysl-cgi-session (2.0
|
208
|
+
rubysl-cgi-session (2.1.0)
|
235
209
|
rubysl-cmath (2.0.0)
|
236
210
|
rubysl-complex (2.0.0)
|
237
211
|
rubysl-continuation (2.0.0)
|
@@ -291,10 +265,10 @@ GEM
|
|
291
265
|
rubysl-observer (2.0.0)
|
292
266
|
rubysl-open-uri (2.0.0)
|
293
267
|
rubysl-open3 (2.0.0)
|
294
|
-
rubysl-openssl (2.
|
268
|
+
rubysl-openssl (2.4.0)
|
295
269
|
rubysl-optparse (2.0.1)
|
296
270
|
rubysl-shellwords (~> 2.0)
|
297
|
-
rubysl-ostruct (2.0
|
271
|
+
rubysl-ostruct (2.1.0)
|
298
272
|
rubysl-pathname (2.1.0)
|
299
273
|
rubysl-prettyprint (2.0.3)
|
300
274
|
rubysl-prime (2.0.1)
|
@@ -347,22 +321,22 @@ GEM
|
|
347
321
|
rubysl-xmlrpc (2.0.0)
|
348
322
|
rubysl-yaml (2.1.0)
|
349
323
|
rubysl-zlib (2.0.1)
|
350
|
-
simplecov (0.
|
324
|
+
simplecov (0.11.1)
|
351
325
|
docile (~> 1.1.0)
|
352
326
|
json (~> 1.8)
|
353
327
|
simplecov-html (~> 0.10.0)
|
354
328
|
simplecov-html (0.10.0)
|
355
|
-
sprockets (3.2
|
356
|
-
|
357
|
-
|
329
|
+
sprockets (3.5.2)
|
330
|
+
concurrent-ruby (~> 1.0)
|
331
|
+
rack (> 1, < 3)
|
332
|
+
sprockets-rails (2.3.3)
|
358
333
|
actionpack (>= 3.0)
|
359
334
|
activesupport (>= 3.0)
|
360
335
|
sprockets (>= 2.8, < 4.0)
|
361
|
-
sqlite3 (1.3.
|
336
|
+
sqlite3 (1.3.11)
|
362
337
|
thor (0.19.1)
|
363
338
|
thread_safe (0.3.5)
|
364
|
-
tzinfo (
|
365
|
-
thread_safe (~> 0.1)
|
339
|
+
tzinfo (0.3.46)
|
366
340
|
|
367
341
|
PLATFORMS
|
368
342
|
ruby
|
@@ -370,13 +344,16 @@ PLATFORMS
|
|
370
344
|
DEPENDENCIES
|
371
345
|
bundler (>= 1.6.6)
|
372
346
|
jeweler (>= 2.0.1)
|
373
|
-
mocha (>=
|
374
|
-
mysql2 (>= 0.3.
|
375
|
-
omniauth (>= 1.
|
376
|
-
pg (>= 0.18.
|
347
|
+
mocha (>= 1.1.0)
|
348
|
+
mysql2 (>= 0.3.20)
|
349
|
+
omniauth (>= 1.3.1)
|
350
|
+
pg (>= 0.18.4)
|
377
351
|
rails (>= 4.0.13)
|
378
352
|
rubysl
|
379
353
|
rubysl-bundler
|
380
354
|
rubysl-rake
|
381
355
|
simplecov
|
382
|
-
sqlite3 (>= 1.3.
|
356
|
+
sqlite3 (>= 1.3.11)
|
357
|
+
|
358
|
+
BUNDLED WITH
|
359
|
+
1.11.2
|
data/Gemfile.rails4
CHANGED
@@ -7,10 +7,10 @@ group :development do
|
|
7
7
|
gem 'mocha', '>= 1.1.0'
|
8
8
|
gem 'jeweler', '>= 2.0.1'
|
9
9
|
gem 'simplecov', '>= 0'
|
10
|
-
gem 'mysql2', '
|
11
|
-
gem 'omniauth', '>= 1.
|
12
|
-
gem 'pg', '>= 0.18.
|
13
|
-
gem 'sqlite3', '>= 1.3.
|
10
|
+
gem 'mysql2', '~> 0.3.20'
|
11
|
+
gem 'omniauth', '>= 1.3.1'
|
12
|
+
gem 'pg', '>= 0.18.4'
|
13
|
+
gem 'sqlite3', '>= 1.3.11'
|
14
14
|
gem 'rubysl', platforms: [:rbx]
|
15
15
|
gem 'rubysl-bundler', platforms: [:rbx]
|
16
16
|
gem 'rubysl-rake', platforms: [:rbx]
|
data/Gemfile.rails41
CHANGED
@@ -7,10 +7,10 @@ group :development do
|
|
7
7
|
gem 'mocha', '>= 1.1.0'
|
8
8
|
gem 'jeweler', '>= 2.0.1'
|
9
9
|
gem 'simplecov', '>= 0'
|
10
|
-
gem 'mysql2', '
|
11
|
-
gem 'omniauth', '>= 1.
|
12
|
-
gem 'pg', '>= 0.18.
|
13
|
-
gem 'sqlite3', '>= 1.3.
|
10
|
+
gem 'mysql2', '~> 0.3.20'
|
11
|
+
gem 'omniauth', '>= 1.3.1'
|
12
|
+
gem 'pg', '>= 0.18.4'
|
13
|
+
gem 'sqlite3', '>= 1.3.11'
|
14
14
|
gem 'rubysl', platforms: [:rbx]
|
15
15
|
gem 'rubysl-bundler', platforms: [:rbx]
|
16
16
|
gem 'rubysl-rake', platforms: [:rbx]
|
data/Gemfile.rails42
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '~> 4.2.
|
3
|
+
gem 'rails', '~> 4.2.5'
|
4
4
|
|
5
5
|
group :development do
|
6
6
|
gem 'bundler', '>= 1.6.6'
|
7
7
|
gem 'mocha', '>= 1.1.0'
|
8
8
|
gem 'jeweler', '>= 2.0.1'
|
9
9
|
gem 'simplecov', '>= 0'
|
10
|
-
gem 'mysql2', '>= 0.
|
11
|
-
gem 'omniauth', '>= 1.
|
12
|
-
gem 'pg', '>= 0.18.
|
13
|
-
gem 'sqlite3', '>= 1.3.
|
10
|
+
gem 'mysql2', '>= 0.4.2'
|
11
|
+
gem 'omniauth', '>= 1.3.1'
|
12
|
+
gem 'pg', '>= 0.18.4'
|
13
|
+
gem 'sqlite3', '>= 1.3.11'
|
14
14
|
gem 'rubysl', platforms: [:rbx]
|
15
15
|
gem 'rubysl-bundler', platforms: [:rbx]
|
16
16
|
gem 'rubysl-rake', platforms: [:rbx]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.19.0
|
data/authpwn_rails.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: authpwn_rails 0.
|
5
|
+
# stub: authpwn_rails 0.19.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "authpwn_rails"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.19.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Victor Costan"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-12-21"
|
15
15
|
s.description = "Works with Facebook."
|
16
16
|
s.email = "victor@costan.us"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -131,7 +131,7 @@ Gem::Specification.new do |s|
|
|
131
131
|
]
|
132
132
|
s.homepage = "http://github.com/pwnall/authpwn_rails"
|
133
133
|
s.licenses = ["MIT"]
|
134
|
-
s.rubygems_version = "2.
|
134
|
+
s.rubygems_version = "2.5.1"
|
135
135
|
s.summary = "User authentication for Rails 4 applications."
|
136
136
|
|
137
137
|
if s.respond_to? :specification_version then
|
@@ -140,26 +140,26 @@ Gem::Specification.new do |s|
|
|
140
140
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
141
141
|
s.add_runtime_dependency(%q<rails>, [">= 4.0.13"])
|
142
142
|
s.add_development_dependency(%q<bundler>, [">= 1.6.6"])
|
143
|
-
s.add_development_dependency(%q<mocha>, [">=
|
143
|
+
s.add_development_dependency(%q<mocha>, [">= 1.1.0"])
|
144
144
|
s.add_development_dependency(%q<jeweler>, [">= 2.0.1"])
|
145
145
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
146
|
-
s.add_development_dependency(%q<mysql2>, [">= 0.3.
|
147
|
-
s.add_development_dependency(%q<omniauth>, [">= 1.
|
148
|
-
s.add_development_dependency(%q<pg>, [">= 0.18.
|
149
|
-
s.add_development_dependency(%q<sqlite3>, [">= 1.3.
|
146
|
+
s.add_development_dependency(%q<mysql2>, [">= 0.3.20"])
|
147
|
+
s.add_development_dependency(%q<omniauth>, [">= 1.3.1"])
|
148
|
+
s.add_development_dependency(%q<pg>, [">= 0.18.4"])
|
149
|
+
s.add_development_dependency(%q<sqlite3>, [">= 1.3.11"])
|
150
150
|
s.add_development_dependency(%q<rubysl>, [">= 0"])
|
151
151
|
s.add_development_dependency(%q<rubysl-bundler>, [">= 0"])
|
152
152
|
s.add_development_dependency(%q<rubysl-rake>, [">= 0"])
|
153
153
|
else
|
154
154
|
s.add_dependency(%q<rails>, [">= 4.0.13"])
|
155
155
|
s.add_dependency(%q<bundler>, [">= 1.6.6"])
|
156
|
-
s.add_dependency(%q<mocha>, [">=
|
156
|
+
s.add_dependency(%q<mocha>, [">= 1.1.0"])
|
157
157
|
s.add_dependency(%q<jeweler>, [">= 2.0.1"])
|
158
158
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
159
|
-
s.add_dependency(%q<mysql2>, [">= 0.3.
|
160
|
-
s.add_dependency(%q<omniauth>, [">= 1.
|
161
|
-
s.add_dependency(%q<pg>, [">= 0.18.
|
162
|
-
s.add_dependency(%q<sqlite3>, [">= 1.3.
|
159
|
+
s.add_dependency(%q<mysql2>, [">= 0.3.20"])
|
160
|
+
s.add_dependency(%q<omniauth>, [">= 1.3.1"])
|
161
|
+
s.add_dependency(%q<pg>, [">= 0.18.4"])
|
162
|
+
s.add_dependency(%q<sqlite3>, [">= 1.3.11"])
|
163
163
|
s.add_dependency(%q<rubysl>, [">= 0"])
|
164
164
|
s.add_dependency(%q<rubysl-bundler>, [">= 0"])
|
165
165
|
s.add_dependency(%q<rubysl-rake>, [">= 0"])
|
@@ -167,13 +167,13 @@ Gem::Specification.new do |s|
|
|
167
167
|
else
|
168
168
|
s.add_dependency(%q<rails>, [">= 4.0.13"])
|
169
169
|
s.add_dependency(%q<bundler>, [">= 1.6.6"])
|
170
|
-
s.add_dependency(%q<mocha>, [">=
|
170
|
+
s.add_dependency(%q<mocha>, [">= 1.1.0"])
|
171
171
|
s.add_dependency(%q<jeweler>, [">= 2.0.1"])
|
172
172
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
173
|
-
s.add_dependency(%q<mysql2>, [">= 0.3.
|
174
|
-
s.add_dependency(%q<omniauth>, [">= 1.
|
175
|
-
s.add_dependency(%q<pg>, [">= 0.18.
|
176
|
-
s.add_dependency(%q<sqlite3>, [">= 1.3.
|
173
|
+
s.add_dependency(%q<mysql2>, [">= 0.3.20"])
|
174
|
+
s.add_dependency(%q<omniauth>, [">= 1.3.1"])
|
175
|
+
s.add_dependency(%q<pg>, [">= 0.18.4"])
|
176
|
+
s.add_dependency(%q<sqlite3>, [">= 1.3.11"])
|
177
177
|
s.add_dependency(%q<rubysl>, [">= 0"])
|
178
178
|
s.add_dependency(%q<rubysl-bundler>, [">= 0"])
|
179
179
|
s.add_dependency(%q<rubysl-rake>, [">= 0"])
|
@@ -38,14 +38,6 @@ module UserModel
|
|
38
38
|
where(exuid: param)
|
39
39
|
end
|
40
40
|
|
41
|
-
# Queries the database using the value returned by User#to_param.
|
42
|
-
#
|
43
|
-
# @deprecated use with_param(param).first or .first! instead
|
44
|
-
# @return [User, nil] nil if no matching User exists.
|
45
|
-
def find_by_param(param)
|
46
|
-
with_param(param).first
|
47
|
-
end
|
48
|
-
|
49
41
|
# Authenticates a user given the information on a signup form.
|
50
42
|
#
|
51
43
|
# The easiest method of accepting other login information is to override
|
@@ -16,7 +16,7 @@ class CookieController < ApplicationController
|
|
16
16
|
if params[:exuid].blank?
|
17
17
|
set_session_current_user nil
|
18
18
|
else
|
19
|
-
set_session_current_user User.
|
19
|
+
set_session_current_user User.with_param(params[:exuid]).first
|
20
20
|
end
|
21
21
|
render text: ''
|
22
22
|
end
|
data/test/user_test.rb
CHANGED
@@ -49,13 +49,6 @@ class UserTest < ActiveSupport::TestCase
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
test 'find_by_param' do
|
53
|
-
assert_equal users(:john), User.find_by_param(users(:john).to_param)
|
54
|
-
assert_equal users(:jane), User.find_by_param(users(:jane).to_param)
|
55
|
-
assert_equal nil, User.find_by_param('bogus id')
|
56
|
-
assert_equal nil, User.find_by_param(nil)
|
57
|
-
end
|
58
|
-
|
59
52
|
test 'authenticate_signin with valid data' do
|
60
53
|
signin = Session.new email: 'jane@gmail.com', password: 'pa55w0rd'
|
61
54
|
assert_equal users(:jane), User.authenticate_signin(signin)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authpwn_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Costan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.1.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jeweler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,56 +86,56 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.3.
|
89
|
+
version: 0.3.20
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.3.
|
96
|
+
version: 0.3.20
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: omniauth
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.3.1
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.3.1
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: pg
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.18.
|
117
|
+
version: 0.18.4
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.18.
|
124
|
+
version: 0.18.4
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: sqlite3
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.3.
|
131
|
+
version: 1.3.11
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.3.
|
138
|
+
version: 1.3.11
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubysl
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
315
|
version: '0'
|
316
316
|
requirements: []
|
317
317
|
rubyforge_project:
|
318
|
-
rubygems_version: 2.
|
318
|
+
rubygems_version: 2.5.1
|
319
319
|
signing_key:
|
320
320
|
specification_version: 4
|
321
321
|
summary: User authentication for Rails 4 applications.
|