authpwn_rails 0.21.1 → 0.22.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 +2 -4
- data/Gemfile +6 -6
- data/Gemfile.lock +69 -65
- data/{Gemfile.rails4 → Gemfile.rails5} +7 -6
- data/{README.rdoc → README.md} +21 -13
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/models/tokens/email_verification.rb +2 -2
- data/app/models/tokens/password_reset.rb +1 -1
- data/authpwn_rails.gemspec +26 -28
- data/lib/authpwn_rails/generators/templates/001_create_users.rb +1 -1
- data/lib/authpwn_rails/generators/templates/003_create_credentials.rb +2 -2
- data/lib/authpwn_rails/generators/templates/session/forbidden.html.erb +1 -1
- data/lib/authpwn_rails/generators/templates/session/home.html.erb +3 -2
- data/lib/authpwn_rails/generators/templates/session_controller_test.rb +11 -11
- data/lib/authpwn_rails/generators/templates/session_mailer_test.rb +2 -10
- data/lib/authpwn_rails/http_basic.rb +4 -4
- data/lib/authpwn_rails/http_token.rb +1 -1
- data/lib/authpwn_rails/session.rb +4 -4
- data/lib/authpwn_rails/session_controller.rb +6 -10
- data/test/{test_extensions_test.rb → action_controller_test_extensions_test.rb} +4 -5
- data/test/cookie_controller_test.rb +52 -42
- data/test/credentials/api_token_test.rb +2 -2
- data/test/credentials/email_verification_token_test.rb +2 -2
- data/test/credentials/omni_auth_uid_credential_test.rb +3 -4
- data/test/credentials/one_time_token_credential_test.rb +6 -6
- data/test/credentials/password_reset_token_test.rb +3 -3
- data/test/credentials/session_uid_token_test.rb +2 -2
- data/test/credentials/token_crendential_test.rb +3 -3
- data/test/fixtures/bare_session/forbidden.html.erb +1 -1
- data/test/fixtures/bare_session/home.html.erb +3 -2
- data/test/fixtures/bare_session/welcome.html.erb +1 -1
- data/test/helpers/db_setup.rb +2 -2
- data/test/helpers/test_order.rb +1 -3
- data/test/http_basic_controller_test.rb +24 -12
- data/test/http_token_controller_test.rb +24 -12
- data/test/session_controller_api_test.rb +140 -164
- data/test/session_mailer_api_test.rb +2 -10
- metadata +19 -27
- data/Gemfile.rails41 +0 -18
- data/Gemfile.rails42 +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4d2ef2f022f0291e7f6907421c3fa9e97c7927a
|
4
|
+
data.tar.gz: b7e5855908c7f21b066de25fa94c718551d93ec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8644d47e59cc1741668b00e7fd8481e83746df0f4a3b91d5a334365d4e07cee4c4caa8dfef9fccb730781aa782ab0c549ecfa0ed1f43db3f6fcc50b16c7175fc
|
7
|
+
data.tar.gz: d9336b5c8e5e901d85311a8ac1c79a7e99c363c4dbd3cae4f556425e4cbdb1ee4598ffd39dd902e6b6e11deb23a45395fcd3117f3b224d1cd25e397e92b6f145
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gem 'base32', '>= 0.3.2'
|
4
|
-
gem 'rails',
|
4
|
+
gem 'rails', '>= 5.0.0.1'
|
5
5
|
|
6
6
|
group :development do
|
7
7
|
gem 'bundler', '>= 1.6.6'
|
8
8
|
gem 'mocha', '>= 1.1.0'
|
9
|
-
gem 'jeweler', '>= 2.
|
9
|
+
gem 'jeweler', '>= 2.1.1'
|
10
10
|
gem 'simplecov', '>= 0'
|
11
|
-
gem 'mysql2', '>= 0.
|
11
|
+
gem 'mysql2', '>= 0.4.4'
|
12
12
|
gem 'omniauth', '>= 1.3.1'
|
13
|
-
gem 'pg', '>= 0.
|
14
|
-
gem 'rake', '>= 11.
|
15
|
-
gem 'sqlite3', '>= 1.3.
|
13
|
+
gem 'pg', '>= 0.19.0'
|
14
|
+
gem 'rake', '>= 11.3.0'
|
15
|
+
gem 'sqlite3', '>= 1.3.12'
|
16
16
|
gem 'rubysl', platforms: [:rbx]
|
17
17
|
gem 'rubysl-bundler', platforms: [:rbx]
|
18
18
|
gem 'rubysl-rake', platforms: [:rbx]
|
data/Gemfile.lock
CHANGED
@@ -1,43 +1,45 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
actionpack (=
|
6
|
-
|
7
|
-
|
4
|
+
actioncable (5.0.0.1)
|
5
|
+
actionpack (= 5.0.0.1)
|
6
|
+
nio4r (~> 1.2)
|
7
|
+
websocket-driver (~> 0.6.1)
|
8
|
+
actionmailer (5.0.0.1)
|
9
|
+
actionpack (= 5.0.0.1)
|
10
|
+
actionview (= 5.0.0.1)
|
11
|
+
activejob (= 5.0.0.1)
|
8
12
|
mail (~> 2.5, >= 2.5.4)
|
9
|
-
rails-dom-testing (~>
|
10
|
-
actionpack (
|
11
|
-
actionview (=
|
12
|
-
activesupport (=
|
13
|
-
rack (~>
|
14
|
-
rack-test (~> 0.6.
|
15
|
-
rails-dom-testing (~>
|
13
|
+
rails-dom-testing (~> 2.0)
|
14
|
+
actionpack (5.0.0.1)
|
15
|
+
actionview (= 5.0.0.1)
|
16
|
+
activesupport (= 5.0.0.1)
|
17
|
+
rack (~> 2.0)
|
18
|
+
rack-test (~> 0.6.3)
|
19
|
+
rails-dom-testing (~> 2.0)
|
16
20
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
17
|
-
actionview (
|
18
|
-
activesupport (=
|
21
|
+
actionview (5.0.0.1)
|
22
|
+
activesupport (= 5.0.0.1)
|
19
23
|
builder (~> 3.1)
|
20
24
|
erubis (~> 2.7.0)
|
21
|
-
rails-dom-testing (~>
|
25
|
+
rails-dom-testing (~> 2.0)
|
22
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
23
|
-
activejob (
|
24
|
-
activesupport (=
|
25
|
-
globalid (>= 0.3.
|
26
|
-
activemodel (
|
27
|
-
activesupport (=
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
27
|
+
activejob (5.0.0.1)
|
28
|
+
activesupport (= 5.0.0.1)
|
29
|
+
globalid (>= 0.3.6)
|
30
|
+
activemodel (5.0.0.1)
|
31
|
+
activesupport (= 5.0.0.1)
|
32
|
+
activerecord (5.0.0.1)
|
33
|
+
activemodel (= 5.0.0.1)
|
34
|
+
activesupport (= 5.0.0.1)
|
35
|
+
arel (~> 7.0)
|
36
|
+
activesupport (5.0.0.1)
|
37
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
34
38
|
i18n (~> 0.7)
|
35
|
-
json (~> 1.7, >= 1.7.7)
|
36
39
|
minitest (~> 5.1)
|
37
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
38
40
|
tzinfo (~> 1.1)
|
39
41
|
addressable (2.4.0)
|
40
|
-
arel (
|
42
|
+
arel (7.1.4)
|
41
43
|
base32 (0.3.2)
|
42
44
|
builder (3.2.2)
|
43
45
|
concurrent-ruby (1.0.2)
|
@@ -57,7 +59,7 @@ GEM
|
|
57
59
|
oauth2 (~> 1.0)
|
58
60
|
globalid (0.3.7)
|
59
61
|
activesupport (>= 4.1.0)
|
60
|
-
hashie (3.4.
|
62
|
+
hashie (3.4.6)
|
61
63
|
highline (1.7.8)
|
62
64
|
i18n (0.7.0)
|
63
65
|
jeweler (2.1.1)
|
@@ -71,26 +73,27 @@ GEM
|
|
71
73
|
rdoc
|
72
74
|
semver
|
73
75
|
json (1.8.3)
|
74
|
-
jwt (1.5.
|
76
|
+
jwt (1.5.6)
|
75
77
|
loofah (2.0.3)
|
76
78
|
nokogiri (>= 1.5.9)
|
77
79
|
mail (2.6.4)
|
78
80
|
mime-types (>= 1.16, < 4)
|
79
81
|
metaclass (0.0.4)
|
82
|
+
method_source (0.8.2)
|
80
83
|
mime-types (3.1)
|
81
84
|
mime-types-data (~> 3.2015)
|
82
85
|
mime-types-data (3.2016.0521)
|
83
86
|
mini_portile2 (2.1.0)
|
84
|
-
minitest (5.9.
|
85
|
-
mocha (1.1
|
87
|
+
minitest (5.9.1)
|
88
|
+
mocha (1.2.1)
|
86
89
|
metaclass (~> 0.0.1)
|
87
90
|
multi_json (1.12.1)
|
88
91
|
multi_xml (0.5.5)
|
89
92
|
multipart-post (2.0.0)
|
90
93
|
mysql2 (0.4.4)
|
91
|
-
|
94
|
+
nio4r (1.2.1)
|
95
|
+
nokogiri (1.6.8.1)
|
92
96
|
mini_portile2 (~> 2.1.0)
|
93
|
-
pkg-config (~> 1.1.7)
|
94
97
|
oauth2 (1.2.0)
|
95
98
|
faraday (>= 0.8, < 0.10)
|
96
99
|
jwt (~> 1.0)
|
@@ -100,36 +103,34 @@ GEM
|
|
100
103
|
omniauth (1.3.1)
|
101
104
|
hashie (>= 1.2, < 4)
|
102
105
|
rack (>= 1.0, < 3)
|
103
|
-
pg (0.
|
104
|
-
|
105
|
-
rack (1.6.4)
|
106
|
+
pg (0.19.0)
|
107
|
+
rack (2.0.1)
|
106
108
|
rack-test (0.6.3)
|
107
109
|
rack (>= 1.0)
|
108
|
-
rails (
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
110
|
+
rails (5.0.0.1)
|
111
|
+
actioncable (= 5.0.0.1)
|
112
|
+
actionmailer (= 5.0.0.1)
|
113
|
+
actionpack (= 5.0.0.1)
|
114
|
+
actionview (= 5.0.0.1)
|
115
|
+
activejob (= 5.0.0.1)
|
116
|
+
activemodel (= 5.0.0.1)
|
117
|
+
activerecord (= 5.0.0.1)
|
118
|
+
activesupport (= 5.0.0.1)
|
116
119
|
bundler (>= 1.3.0, < 2.0)
|
117
|
-
railties (=
|
118
|
-
sprockets-rails
|
119
|
-
rails-
|
120
|
-
activesupport (>= 4.2.0.
|
121
|
-
rails-dom-testing (1.0.7)
|
122
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
120
|
+
railties (= 5.0.0.1)
|
121
|
+
sprockets-rails (>= 2.0.0)
|
122
|
+
rails-dom-testing (2.0.1)
|
123
|
+
activesupport (>= 4.2.0, < 6.0)
|
123
124
|
nokogiri (~> 1.6.0)
|
124
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
125
125
|
rails-html-sanitizer (1.0.3)
|
126
126
|
loofah (~> 2.0)
|
127
|
-
railties (
|
128
|
-
actionpack (=
|
129
|
-
activesupport (=
|
127
|
+
railties (5.0.0.1)
|
128
|
+
actionpack (= 5.0.0.1)
|
129
|
+
activesupport (= 5.0.0.1)
|
130
|
+
method_source
|
130
131
|
rake (>= 0.8.7)
|
131
132
|
thor (>= 0.18.1, < 2.0)
|
132
|
-
rake (11.
|
133
|
+
rake (11.3.0)
|
133
134
|
rdoc (4.2.2)
|
134
135
|
json (~> 1.4)
|
135
136
|
rubysl (2.2.0)
|
@@ -332,7 +333,7 @@ GEM
|
|
332
333
|
rubysl-set (2.0.1)
|
333
334
|
rubysl-shellwords (2.0.0)
|
334
335
|
rubysl-singleton (2.0.0)
|
335
|
-
rubysl-socket (2.
|
336
|
+
rubysl-socket (2.2)
|
336
337
|
rubysl-fcntl (~> 2.0)
|
337
338
|
rubysl-stringio (2.1.0)
|
338
339
|
rubysl-strscan (2.0.0)
|
@@ -369,11 +370,14 @@ GEM
|
|
369
370
|
actionpack (>= 4.0)
|
370
371
|
activesupport (>= 4.0)
|
371
372
|
sprockets (>= 3.0.0)
|
372
|
-
sqlite3 (1.3.
|
373
|
+
sqlite3 (1.3.12)
|
373
374
|
thor (0.19.1)
|
374
375
|
thread_safe (0.3.5)
|
375
376
|
tzinfo (1.2.2)
|
376
377
|
thread_safe (~> 0.1)
|
378
|
+
websocket-driver (0.6.4)
|
379
|
+
websocket-extensions (>= 0.1.0)
|
380
|
+
websocket-extensions (0.1.2)
|
377
381
|
|
378
382
|
PLATFORMS
|
379
383
|
ruby
|
@@ -381,18 +385,18 @@ PLATFORMS
|
|
381
385
|
DEPENDENCIES
|
382
386
|
base32 (>= 0.3.2)
|
383
387
|
bundler (>= 1.6.6)
|
384
|
-
jeweler (>= 2.
|
388
|
+
jeweler (>= 2.1.1)
|
385
389
|
mocha (>= 1.1.0)
|
386
|
-
mysql2 (>= 0.
|
390
|
+
mysql2 (>= 0.4.4)
|
387
391
|
omniauth (>= 1.3.1)
|
388
|
-
pg (>= 0.
|
389
|
-
rails (
|
390
|
-
rake (>= 11.
|
392
|
+
pg (>= 0.19.0)
|
393
|
+
rails (>= 5.0.0.1)
|
394
|
+
rake (>= 11.3.0)
|
391
395
|
rubysl
|
392
396
|
rubysl-bundler
|
393
397
|
rubysl-rake
|
394
398
|
simplecov
|
395
|
-
sqlite3 (>= 1.3.
|
399
|
+
sqlite3 (>= 1.3.12)
|
396
400
|
|
397
401
|
BUNDLED WITH
|
398
|
-
1.
|
402
|
+
1.13.5
|
@@ -1,17 +1,18 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gem 'base32', '>= 0.3.2'
|
4
|
-
gem 'rails', '
|
4
|
+
gem 'rails', '>= 5.0.0.1'
|
5
5
|
|
6
6
|
group :development do
|
7
7
|
gem 'bundler', '>= 1.6.6'
|
8
|
-
gem 'mocha', '>= 1.1
|
9
|
-
gem 'jeweler', '>= 2.
|
8
|
+
gem 'mocha', '>= 1.2.1'
|
9
|
+
gem 'jeweler', '>= 2.1.1'
|
10
10
|
gem 'simplecov', '>= 0'
|
11
|
-
gem 'mysql2', '
|
11
|
+
gem 'mysql2', '>= 0.4.4'
|
12
12
|
gem 'omniauth', '>= 1.3.1'
|
13
|
-
gem 'pg', '>= 0.
|
14
|
-
gem '
|
13
|
+
gem 'pg', '>= 0.19.0'
|
14
|
+
gem 'rake', '>= 11.3.0'
|
15
|
+
gem 'sqlite3', '>= 1.3.12'
|
15
16
|
gem 'rubysl', platforms: [:rbx]
|
16
17
|
gem 'rubysl-bundler', platforms: [:rbx]
|
17
18
|
gem 'rubysl-rake', platforms: [:rbx]
|
data/{README.rdoc → README.md}
RENAMED
@@ -1,34 +1,42 @@
|
|
1
|
-
|
1
|
+
# authpwn_rails
|
2
2
|
|
3
|
-
User authentication for a Ruby on Rails
|
3
|
+
User authentication for a Ruby on Rails 5 application.
|
4
4
|
|
5
|
-
|
5
|
+
## Integration
|
6
6
|
|
7
7
|
Scaffold user accounts, and session controller views.
|
8
|
-
rails g authpwn:all
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
```bash
|
10
|
+
rails g authpwn:all
|
11
|
+
```
|
12
|
+
|
13
|
+
Wire authentication into your `ApplicationController`.
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
class ApplicationController
|
17
|
+
authenticates_using_session
|
18
|
+
end
|
19
|
+
```
|
12
20
|
|
13
21
|
Note: the code inside the models and controllers is tucked away in the plug-in.
|
14
22
|
The scaffold models and controllers are there as extension points. You will be
|
15
23
|
able to update the plug-in without regenerating the scaffolds.
|
16
24
|
|
17
|
-
|
25
|
+
## Migrating from older versions?
|
18
26
|
|
19
|
-
See legacy/
|
20
|
-
database.
|
27
|
+
See the legacy/ directory a semi-automated way of migrating your database.
|
21
28
|
|
22
|
-
|
29
|
+
## Note on Patches/Pull Requests
|
23
30
|
|
24
31
|
* Fork the project.
|
25
32
|
* Make your feature addition or bug fix.
|
26
33
|
* Add tests for it. This is important so I don't break it in a future version
|
27
34
|
unintentionally.
|
28
35
|
* Commit, do not mess with rakefile, version, or history.
|
29
|
-
(if you want to have your own version, that is fine but bump version in a
|
36
|
+
(if you want to have your own version, that is fine but bump version in a
|
37
|
+
commit by itself I can ignore when I pull)
|
30
38
|
* Send me a pull request. Bonus points for topic branches.
|
31
39
|
|
32
|
-
|
40
|
+
## Copyright
|
33
41
|
|
34
|
-
Copyright
|
42
|
+
Copyright 2010-2016 Victor Costan, released under the MIT license.
|
data/Rakefile
CHANGED
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gem|
|
|
16
16
|
gem.name = "authpwn_rails"
|
17
17
|
gem.homepage = "http://github.com/pwnall/authpwn_rails"
|
18
18
|
gem.license = "MIT"
|
19
|
-
gem.summary = %Q{User authentication for Rails
|
19
|
+
gem.summary = %Q{User authentication for Rails 5 applications.}
|
20
20
|
gem.description = %Q{Works with Facebook.}
|
21
21
|
gem.email = "victor@costan.us"
|
22
22
|
gem.authors = ["Victor Costan"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.22.0
|
@@ -26,7 +26,7 @@ class EmailVerification < Tokens::OneTime
|
|
26
26
|
# Returns the token instance.
|
27
27
|
def spend
|
28
28
|
self.transaction do
|
29
|
-
if credential = email_credential
|
29
|
+
if credential = self.email_credential
|
30
30
|
credential.verified = true
|
31
31
|
credential.save!
|
32
32
|
end
|
@@ -40,7 +40,7 @@ class EmailVerification < Tokens::OneTime
|
|
40
40
|
# take advantage of a race condition and changes her e-mail address
|
41
41
|
# before using the token.
|
42
42
|
def email_credential
|
43
|
-
user.credentials.
|
43
|
+
user.credentials.where(name: email).first
|
44
44
|
end
|
45
45
|
end # class Tokens::EmailVerification
|
46
46
|
|
@@ -23,7 +23,7 @@ class PasswordReset < Tokens::OneTime
|
|
23
23
|
# This method might return nil if a user initiates password recovery multiple
|
24
24
|
# times.
|
25
25
|
def password_credential
|
26
|
-
user.credentials.
|
26
|
+
user.credentials.where(type: 'Credentials::Password').first
|
27
27
|
end
|
28
28
|
end # class Tokens::PasswordReset
|
29
29
|
|
data/authpwn_rails.gemspec
CHANGED
@@ -2,21 +2,21 @@
|
|
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.22.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.22.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 = "2016-
|
14
|
+
s.date = "2016-10-18"
|
15
15
|
s.description = "Works with Facebook."
|
16
16
|
s.email = "victor@costan.us"
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE",
|
19
|
-
"README.
|
19
|
+
"README.md"
|
20
20
|
]
|
21
21
|
s.files = [
|
22
22
|
".document",
|
@@ -24,11 +24,9 @@ Gem::Specification.new do |s|
|
|
24
24
|
".travis.yml",
|
25
25
|
"Gemfile",
|
26
26
|
"Gemfile.lock",
|
27
|
-
"Gemfile.
|
28
|
-
"Gemfile.rails41",
|
29
|
-
"Gemfile.rails42",
|
27
|
+
"Gemfile.rails5",
|
30
28
|
"LICENSE",
|
31
|
-
"README.
|
29
|
+
"README.md",
|
32
30
|
"Rakefile",
|
33
31
|
"VERSION",
|
34
32
|
"app/helpers/session_helper.rb",
|
@@ -86,6 +84,7 @@ Gem::Specification.new do |s|
|
|
86
84
|
"lib/authpwn_rails/user_extensions/email_field.rb",
|
87
85
|
"lib/authpwn_rails/user_extensions/password_field.rb",
|
88
86
|
"lib/authpwn_rails/user_model.rb",
|
87
|
+
"test/action_controller_test_extensions_test.rb",
|
89
88
|
"test/cookie_controller_test.rb",
|
90
89
|
"test/credentials/api_token_test.rb",
|
91
90
|
"test/credentials/email_credential_test.rb",
|
@@ -123,7 +122,6 @@ Gem::Specification.new do |s|
|
|
123
122
|
"test/session_mailer_api_test.rb",
|
124
123
|
"test/session_mailer_test.rb",
|
125
124
|
"test/session_test.rb",
|
126
|
-
"test/test_extensions_test.rb",
|
127
125
|
"test/test_helper.rb",
|
128
126
|
"test/user_extensions/api_token_field_test.rb",
|
129
127
|
"test/user_extensions/email_field_test.rb",
|
@@ -133,54 +131,54 @@ Gem::Specification.new do |s|
|
|
133
131
|
s.homepage = "http://github.com/pwnall/authpwn_rails"
|
134
132
|
s.licenses = ["MIT"]
|
135
133
|
s.rubygems_version = "2.5.1"
|
136
|
-
s.summary = "User authentication for Rails
|
134
|
+
s.summary = "User authentication for Rails 5 applications."
|
137
135
|
|
138
136
|
if s.respond_to? :specification_version then
|
139
137
|
s.specification_version = 4
|
140
138
|
|
141
139
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
142
140
|
s.add_runtime_dependency(%q<base32>, [">= 0.3.2"])
|
143
|
-
s.add_runtime_dependency(%q<rails>, [">=
|
141
|
+
s.add_runtime_dependency(%q<rails>, [">= 5.0.0.1"])
|
144
142
|
s.add_development_dependency(%q<bundler>, [">= 1.6.6"])
|
145
143
|
s.add_development_dependency(%q<mocha>, [">= 1.1.0"])
|
146
|
-
s.add_development_dependency(%q<jeweler>, [">= 2.
|
144
|
+
s.add_development_dependency(%q<jeweler>, [">= 2.1.1"])
|
147
145
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
148
|
-
s.add_development_dependency(%q<mysql2>, [">= 0.
|
146
|
+
s.add_development_dependency(%q<mysql2>, [">= 0.4.4"])
|
149
147
|
s.add_development_dependency(%q<omniauth>, [">= 1.3.1"])
|
150
|
-
s.add_development_dependency(%q<pg>, [">= 0.
|
151
|
-
s.add_development_dependency(%q<rake>, [">= 11.
|
152
|
-
s.add_development_dependency(%q<sqlite3>, [">= 1.3.
|
148
|
+
s.add_development_dependency(%q<pg>, [">= 0.19.0"])
|
149
|
+
s.add_development_dependency(%q<rake>, [">= 11.3.0"])
|
150
|
+
s.add_development_dependency(%q<sqlite3>, [">= 1.3.12"])
|
153
151
|
s.add_development_dependency(%q<rubysl>, [">= 0"])
|
154
152
|
s.add_development_dependency(%q<rubysl-bundler>, [">= 0"])
|
155
153
|
s.add_development_dependency(%q<rubysl-rake>, [">= 0"])
|
156
154
|
else
|
157
155
|
s.add_dependency(%q<base32>, [">= 0.3.2"])
|
158
|
-
s.add_dependency(%q<rails>, [">=
|
156
|
+
s.add_dependency(%q<rails>, [">= 5.0.0.1"])
|
159
157
|
s.add_dependency(%q<bundler>, [">= 1.6.6"])
|
160
158
|
s.add_dependency(%q<mocha>, [">= 1.1.0"])
|
161
|
-
s.add_dependency(%q<jeweler>, [">= 2.
|
159
|
+
s.add_dependency(%q<jeweler>, [">= 2.1.1"])
|
162
160
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
163
|
-
s.add_dependency(%q<mysql2>, [">= 0.
|
161
|
+
s.add_dependency(%q<mysql2>, [">= 0.4.4"])
|
164
162
|
s.add_dependency(%q<omniauth>, [">= 1.3.1"])
|
165
|
-
s.add_dependency(%q<pg>, [">= 0.
|
166
|
-
s.add_dependency(%q<rake>, [">= 11.
|
167
|
-
s.add_dependency(%q<sqlite3>, [">= 1.3.
|
163
|
+
s.add_dependency(%q<pg>, [">= 0.19.0"])
|
164
|
+
s.add_dependency(%q<rake>, [">= 11.3.0"])
|
165
|
+
s.add_dependency(%q<sqlite3>, [">= 1.3.12"])
|
168
166
|
s.add_dependency(%q<rubysl>, [">= 0"])
|
169
167
|
s.add_dependency(%q<rubysl-bundler>, [">= 0"])
|
170
168
|
s.add_dependency(%q<rubysl-rake>, [">= 0"])
|
171
169
|
end
|
172
170
|
else
|
173
171
|
s.add_dependency(%q<base32>, [">= 0.3.2"])
|
174
|
-
s.add_dependency(%q<rails>, [">=
|
172
|
+
s.add_dependency(%q<rails>, [">= 5.0.0.1"])
|
175
173
|
s.add_dependency(%q<bundler>, [">= 1.6.6"])
|
176
174
|
s.add_dependency(%q<mocha>, [">= 1.1.0"])
|
177
|
-
s.add_dependency(%q<jeweler>, [">= 2.
|
175
|
+
s.add_dependency(%q<jeweler>, [">= 2.1.1"])
|
178
176
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
179
|
-
s.add_dependency(%q<mysql2>, [">= 0.
|
177
|
+
s.add_dependency(%q<mysql2>, [">= 0.4.4"])
|
180
178
|
s.add_dependency(%q<omniauth>, [">= 1.3.1"])
|
181
|
-
s.add_dependency(%q<pg>, [">= 0.
|
182
|
-
s.add_dependency(%q<rake>, [">= 11.
|
183
|
-
s.add_dependency(%q<sqlite3>, [">= 1.3.
|
179
|
+
s.add_dependency(%q<pg>, [">= 0.19.0"])
|
180
|
+
s.add_dependency(%q<rake>, [">= 11.3.0"])
|
181
|
+
s.add_dependency(%q<sqlite3>, [">= 1.3.12"])
|
184
182
|
s.add_dependency(%q<rubysl>, [">= 0"])
|
185
183
|
s.add_dependency(%q<rubysl-bundler>, [">= 0"])
|
186
184
|
s.add_dependency(%q<rubysl-rake>, [">= 0"])
|