sorcery 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sorcery might be problematic. Click here for more details.
- data/README.rdoc +1 -1
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/generators/sorcery/templates/initializer.rb +20 -0
- data/lib/generators/sorcery/templates/migration/brute_force_protection.rb +2 -0
- data/lib/sorcery/model/adapters/mongoid.rb +2 -2
- data/lib/sorcery/model/submodules/brute_force_protection.rb +38 -9
- data/sorcery.gemspec +3 -2
- data/spec/Gemfile.lock +0 -1
- data/spec/rails3/Gemfile.lock +0 -1
- data/spec/rails3/app/mailers/sorcery_mailer.rb +7 -0
- data/spec/rails3/app/views/sorcery_mailer/send_unlock_token_email.text.erb +1 -0
- data/spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb +2 -0
- data/spec/rails3/spec/controller_brute_force_protection_spec.rb +23 -1
- data/spec/rails3_mongo_mapper/Gemfile +1 -1
- data/spec/rails3_mongo_mapper/Gemfile.lock +1 -2
- data/spec/rails3_mongoid/Gemfile.lock +0 -1
- data/spec/rails3_mongoid/config/mongoid.yml +1 -1
- data/spec/rails3_mongoid/spec/controller_activity_logging_spec.rb +11 -11
- metadata +41 -40
data/README.rdoc
CHANGED
@@ -29,7 +29,7 @@ Railscast: http://railscasts.com/episodes/283-authentication-with-sorcery
|
|
29
29
|
|
30
30
|
Example Rails 3 app using sorcery: https://github.com/NoamB/sorcery-example-app
|
31
31
|
|
32
|
-
Documentation: http://rubydoc.info/gems/sorcery/0.7.
|
32
|
+
Documentation: http://rubydoc.info/gems/sorcery/0.7.9/frames
|
33
33
|
|
34
34
|
Check out the tutorials in the github wiki!
|
35
35
|
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.9
|
@@ -329,6 +329,26 @@ Rails.application.config.sorcery.configure do |config|
|
|
329
329
|
#
|
330
330
|
# user.login_lock_time_period =
|
331
331
|
|
332
|
+
# Unlock token attribute name
|
333
|
+
# Default: `:unlock_token`
|
334
|
+
#
|
335
|
+
# user.unlock_token_attribute_name =
|
336
|
+
|
337
|
+
# Unlock token mailer method
|
338
|
+
# Default: `:send_unlock_token_email`
|
339
|
+
#
|
340
|
+
# user.unlock_token_email_method_name =
|
341
|
+
|
342
|
+
# when true sorcery will not automatically
|
343
|
+
# send email with unlock token
|
344
|
+
# Default: `false`
|
345
|
+
#
|
346
|
+
# user.unlock_token_mailer_disabled = true
|
347
|
+
|
348
|
+
# Unlock token mailer class
|
349
|
+
# Default: `nil`
|
350
|
+
#
|
351
|
+
# user.unlock_token_mailer = UserMailer
|
332
352
|
|
333
353
|
# -- activity logging --
|
334
354
|
# Last login attribute name.
|
@@ -2,10 +2,12 @@ class SorceryBruteForceProtection < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
3
3
|
add_column :<%= model_class_name.tableize %>, :failed_logins_count, :integer, :default => 0
|
4
4
|
add_column :<%= model_class_name.tableize %>, :lock_expires_at, :datetime, :default => nil
|
5
|
+
add_column :<%= model_class_name.tableize %>, :unlock_token, :string, :default => nil
|
5
6
|
end
|
6
7
|
|
7
8
|
def self.down
|
8
9
|
remove_column :<%= model_class_name.tableize %>, :lock_expires_at
|
9
10
|
remove_column :<%= model_class_name.tableize %>, :failed_logins_count
|
11
|
+
remove_column :<%= model_class_name.tableize %>, :unlock_token
|
10
12
|
end
|
11
13
|
end
|
@@ -72,8 +72,8 @@ module Sorcery
|
|
72
72
|
def get_current_users
|
73
73
|
config = sorcery_config
|
74
74
|
where(config.last_activity_at_attribute_name.ne => nil) \
|
75
|
-
.
|
76
|
-
.
|
75
|
+
.where("this.#{config.last_logout_at_attribute_name} == null || this.#{config.last_activity_at_attribute_name} > this.#{config.last_logout_at_attribute_name}") \
|
76
|
+
.where(config.last_activity_at_attribute_name.gt => config.activity_timeout.seconds.ago.utc).order_by([:_id,:asc])
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
@@ -12,15 +12,25 @@ module Sorcery
|
|
12
12
|
:lock_expires_at_attribute_name, # this field indicates whether user
|
13
13
|
# is banned and when it will be active again.
|
14
14
|
:consecutive_login_retries_amount_limit, # how many failed logins allowed.
|
15
|
-
:login_lock_time_period
|
15
|
+
:login_lock_time_period, # how long the user should be banned.
|
16
16
|
# in seconds. 0 for permanent.
|
17
|
+
|
18
|
+
:unlock_token_attribute_name, # Unlock token attribute name
|
19
|
+
:unlock_token_email_method_name, # Mailer method name
|
20
|
+
:unlock_token_mailer_disabled, # When true, dont send unlock token via email
|
21
|
+
:unlock_token_mailer # Mailer class
|
17
22
|
end
|
18
23
|
|
19
24
|
base.sorcery_config.instance_eval do
|
20
25
|
@defaults.merge!(:@failed_logins_count_attribute_name => :failed_logins_count,
|
21
26
|
:@lock_expires_at_attribute_name => :lock_expires_at,
|
22
27
|
:@consecutive_login_retries_amount_limit => 50,
|
23
|
-
:@login_lock_time_period => 60 * 60
|
28
|
+
:@login_lock_time_period => 60 * 60,
|
29
|
+
|
30
|
+
:@unlock_token_attribute_name => :unlock_token,
|
31
|
+
:@unlock_token_email_method_name => :send_unlock_token_email,
|
32
|
+
:@unlock_token_mailer_disabled => false,
|
33
|
+
:@unlock_token_mailer => nil)
|
24
34
|
reset!
|
25
35
|
end
|
26
36
|
|
@@ -31,9 +41,19 @@ module Sorcery
|
|
31
41
|
end
|
32
42
|
base.extend(ClassMethods)
|
33
43
|
base.send(:include, InstanceMethods)
|
44
|
+
|
45
|
+
base.class_eval do
|
46
|
+
after_update :send_unlock_token_email!, :if => Proc.new { |user| user.send(sorcery_config.unlock_token_attribute_name).present? }
|
47
|
+
end
|
34
48
|
end
|
35
49
|
|
36
50
|
module ClassMethods
|
51
|
+
def load_from_unlock_token(token)
|
52
|
+
return nil if token.blank?
|
53
|
+
user = find_by_sorcery_token(sorcery_config.unlock_token_attribute_name,token)
|
54
|
+
user
|
55
|
+
end
|
56
|
+
|
37
57
|
protected
|
38
58
|
|
39
59
|
def define_brute_force_protection_mongoid_fields
|
@@ -58,18 +78,23 @@ module Sorcery
|
|
58
78
|
self.lock! if self.send(config.failed_logins_count_attribute_name) >= config.consecutive_login_retries_amount_limit
|
59
79
|
end
|
60
80
|
|
61
|
-
|
62
|
-
|
63
|
-
|
81
|
+
# /!\
|
82
|
+
# Moved out of protected for use like activate! in controller
|
83
|
+
# /!\
|
84
|
+
def unlock!
|
64
85
|
config = sorcery_config
|
65
|
-
self.send(:"#{config.lock_expires_at_attribute_name}=",
|
86
|
+
self.send(:"#{config.lock_expires_at_attribute_name}=", nil)
|
87
|
+
self.send(:"#{config.failed_logins_count_attribute_name}=", 0)
|
88
|
+
self.send(:"#{config.unlock_token_attribute_name}=", nil) unless config.unlock_token_mailer_disabled or config.unlock_token_mailer.nil?
|
66
89
|
self.save!(:validate => false)
|
67
90
|
end
|
68
91
|
|
69
|
-
|
92
|
+
protected
|
93
|
+
|
94
|
+
def lock!
|
70
95
|
config = sorcery_config
|
71
|
-
self.send(:"#{config.lock_expires_at_attribute_name}=",
|
72
|
-
self.send(:"#{config.
|
96
|
+
self.send(:"#{config.lock_expires_at_attribute_name}=", Time.now.in_time_zone + config.login_lock_time_period)
|
97
|
+
self.send(:"#{config.unlock_token_attribute_name}=", TemporaryToken.generate_random_token) unless config.unlock_token_mailer_disabled or config.unlock_token_mailer.nil?
|
73
98
|
self.save!(:validate => false)
|
74
99
|
end
|
75
100
|
|
@@ -77,6 +102,10 @@ module Sorcery
|
|
77
102
|
config = sorcery_config
|
78
103
|
self.send(config.lock_expires_at_attribute_name).nil?
|
79
104
|
end
|
105
|
+
|
106
|
+
def send_unlock_token_email!
|
107
|
+
generic_send_email(:unlock_token_email_method_name, :unlock_token_mailer) unless sorcery_config.unlock_token_email_method_name.nil? or sorcery_config.unlock_token_mailer_disabled == true
|
108
|
+
end
|
80
109
|
|
81
110
|
# Prevents a locked user from logging in, and unlocks users that expired their lock time.
|
82
111
|
# Runs as a hook before authenticate.
|
data/sorcery.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "sorcery"
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Noam Ben Ari"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-04-17"
|
13
13
|
s.description = "Provides common authentication needs such as signing in/out, activating by email and resetting password."
|
14
14
|
s.email = "nbenari@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -100,6 +100,7 @@ Gem::Specification.new do |s|
|
|
100
100
|
"spec/rails3/app/views/sorcery_mailer/activation_success_email.text.erb",
|
101
101
|
"spec/rails3/app/views/sorcery_mailer/reset_password_email.html.erb",
|
102
102
|
"spec/rails3/app/views/sorcery_mailer/reset_password_email.text.erb",
|
103
|
+
"spec/rails3/app/views/sorcery_mailer/send_unlock_token_email.text.erb",
|
103
104
|
"spec/rails3/config.ru",
|
104
105
|
"spec/rails3/config/application.rb",
|
105
106
|
"spec/rails3/config/boot.rb",
|
data/spec/Gemfile.lock
CHANGED
data/spec/rails3/Gemfile.lock
CHANGED
@@ -22,4 +22,11 @@ class SorceryMailer < ActionMailer::Base
|
|
22
22
|
mail(:to => user.email,
|
23
23
|
:subject => "Your password has been reset")
|
24
24
|
end
|
25
|
+
|
26
|
+
def send_unlock_token_email(user)
|
27
|
+
@user = user
|
28
|
+
@url = "http://example.com/unlock/#{user.unlock_token}"
|
29
|
+
mail(:to => user.email,
|
30
|
+
:subject => "Your account has been locked due to many wrong logins")
|
31
|
+
end
|
25
32
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Please visit <% @url %> for unlock your account.
|
@@ -2,9 +2,11 @@ class AddBruteForceProtectionToUsers < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
3
3
|
add_column :users, :failed_logins_count, :integer, :default => 0
|
4
4
|
add_column :users, :lock_expires_at, :datetime, :default => nil
|
5
|
+
add_column :users, :unlock_token, :string, :default => nil
|
5
6
|
end
|
6
7
|
|
7
8
|
def self.down
|
9
|
+
remove_column :users, :unlock_token
|
8
10
|
remove_column :users, :lock_expires_at
|
9
11
|
remove_column :users, :failed_logins_count
|
10
12
|
end
|
@@ -21,12 +21,34 @@ describe ApplicationController do
|
|
21
21
|
sorcery_controller_property_set(:user_class, User)
|
22
22
|
Timecop.return
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
it "should count login retries" do
|
26
26
|
3.times {get :test_login, :username => 'gizmo', :password => 'blabla'}
|
27
27
|
User.find_by_username('gizmo').failed_logins_count.should == 3
|
28
28
|
end
|
29
29
|
|
30
|
+
it "should generate unlock token after user locked" do
|
31
|
+
sorcery_model_property_set(:consecutive_login_retries_amount_limit, 2)
|
32
|
+
sorcery_model_property_set(:login_lock_time_period, 0)
|
33
|
+
sorcery_model_property_set(:unlock_token_mailer, SorceryMailer)
|
34
|
+
3.times {get :test_login, :username => "gizmo", :password => "blabla"}
|
35
|
+
User.find_by_username('gizmo').unlock_token.should_not be_nil
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should unlock after entering unlock token" do
|
39
|
+
sorcery_model_property_set(:consecutive_login_retries_amount_limit, 2)
|
40
|
+
sorcery_model_property_set(:login_lock_time_period, 0)
|
41
|
+
sorcery_model_property_set(:unlock_token_mailer, SorceryMailer)
|
42
|
+
3.times {get :test_login, :username => "gizmo", :password => "blabla"}
|
43
|
+
User.find_by_username('gizmo').unlock_token.should_not be_nil
|
44
|
+
token = User.find_by_username('gizmo').unlock_token
|
45
|
+
user = User.load_from_unlock_token(token)
|
46
|
+
user.should_not be_nil
|
47
|
+
user.unlock!
|
48
|
+
User.load_from_unlock_token(token).should be_nil
|
49
|
+
end
|
50
|
+
|
51
|
+
|
30
52
|
it "should reset the counter on a good login" do
|
31
53
|
sorcery_model_property_set(:consecutive_login_retries_amount_limit, 5)
|
32
54
|
3.times {get :test_login, :username => 'gizmo', :password => 'blabla'}
|
@@ -6,7 +6,6 @@ PATH
|
|
6
6
|
bundler (>= 1.1.0)
|
7
7
|
oauth (~> 0.4.4)
|
8
8
|
oauth2 (~> 0.5.1)
|
9
|
-
sorcery
|
10
9
|
|
11
10
|
GEM
|
12
11
|
remote: http://rubygems.org/
|
@@ -144,7 +143,7 @@ PLATFORMS
|
|
144
143
|
DEPENDENCIES
|
145
144
|
bcrypt-ruby (~> 3.0.0)
|
146
145
|
bson_ext (~> 1.3)
|
147
|
-
mongo_mapper
|
146
|
+
mongo_mapper (~> 0.11.0)
|
148
147
|
pry
|
149
148
|
rails (= 3.0.3)
|
150
149
|
rspec (~> 2.5.0)
|
@@ -23,28 +23,28 @@ describe ApplicationController do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should log login time on login" do
|
26
|
-
now = Time.now
|
26
|
+
now = Time.now.utc
|
27
27
|
login_user
|
28
28
|
@user.last_login_at.should_not be_nil
|
29
|
-
@user.last_login_at.to_s
|
30
|
-
@user.last_login_at.to_s
|
29
|
+
@user.last_login_at.utc.to_s.should >= now.utc.to_s
|
30
|
+
@user.last_login_at.utc.to_s.should <= (now.utc+2).to_s
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should log logout time on logout" do
|
34
34
|
login_user
|
35
|
-
now = Time.now
|
35
|
+
now = Time.now.utc
|
36
36
|
logout_user
|
37
|
-
User.first.last_logout_at.should_not be_nil
|
38
|
-
User.first.last_logout_at.to_s
|
39
|
-
User.first.last_logout_at.to_s
|
37
|
+
User.first.last_logout_at.utc.should_not be_nil
|
38
|
+
User.first.last_logout_at.utc.to_s.should >= now.utc.to_s
|
39
|
+
User.first.last_logout_at.utc.to_s.should <= (now.utc+2).to_s
|
40
40
|
end
|
41
41
|
|
42
42
|
it "should log last activity time when logged in" do
|
43
43
|
login_user
|
44
|
-
now = Time.now
|
44
|
+
now = Time.now.utc
|
45
45
|
get :some_action
|
46
|
-
User.first.last_activity_at.
|
47
|
-
User.first.last_activity_at.
|
46
|
+
User.first.last_activity_at.utc.should >= now.utc
|
47
|
+
User.first.last_activity_at.utc.should <= (now.utc+2)
|
48
48
|
end
|
49
49
|
|
50
50
|
it "should update nothing but activity fields" do
|
@@ -102,4 +102,4 @@ describe ApplicationController do
|
|
102
102
|
@user.last_activity_at.should be_nil
|
103
103
|
end
|
104
104
|
end
|
105
|
-
end
|
105
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorcery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sorcery
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157607760 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157607760
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bcrypt-ruby
|
27
|
-
requirement: &
|
27
|
+
requirement: &2157607080 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 3.0.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2157607080
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &2157606380 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 3.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2157606380
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: json
|
49
|
-
requirement: &
|
49
|
+
requirement: &2157605660 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.5.1
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2157605660
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &2157605020 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 2.5.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2157605020
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &2157604120 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 2.5.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2157604120
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: ruby-debug19
|
82
|
-
requirement: &
|
82
|
+
requirement: &2157618620 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2157618620
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: sqlite3-ruby
|
93
|
-
requirement: &
|
93
|
+
requirement: &2157617080 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2157617080
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: yard
|
104
|
-
requirement: &
|
104
|
+
requirement: &2157616260 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 0.6.0
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2157616260
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: bundler
|
115
|
-
requirement: &
|
115
|
+
requirement: &2157615580 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 1.1.0
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2157615580
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: jeweler
|
126
|
-
requirement: &
|
126
|
+
requirement: &2157614500 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 1.8.3
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *2157614500
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: simplecov
|
137
|
-
requirement: &
|
137
|
+
requirement: &2157613680 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: 0.3.8
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *2157613680
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: capybara
|
148
|
-
requirement: &
|
148
|
+
requirement: &2157613040 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: 1.1.2
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *2157613040
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: mongoid
|
159
|
-
requirement: &
|
159
|
+
requirement: &2157612240 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ~>
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: 2.4.4
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *2157612240
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: timecop
|
170
|
-
requirement: &
|
170
|
+
requirement: &2157627680 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: '0'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *2157627680
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: bundler
|
181
|
-
requirement: &
|
181
|
+
requirement: &2157626820 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - =
|
@@ -186,10 +186,10 @@ dependencies:
|
|
186
186
|
version: 1.1.0
|
187
187
|
type: :runtime
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *2157626820
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: bcrypt-ruby
|
192
|
-
requirement: &
|
192
|
+
requirement: &2157625580 !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
195
|
- - ~>
|
@@ -197,10 +197,10 @@ dependencies:
|
|
197
197
|
version: 3.0.0
|
198
198
|
type: :runtime
|
199
199
|
prerelease: false
|
200
|
-
version_requirements: *
|
200
|
+
version_requirements: *2157625580
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: oauth
|
203
|
-
requirement: &
|
203
|
+
requirement: &2157624680 !ruby/object:Gem::Requirement
|
204
204
|
none: false
|
205
205
|
requirements:
|
206
206
|
- - ~>
|
@@ -208,10 +208,10 @@ dependencies:
|
|
208
208
|
version: 0.4.4
|
209
209
|
type: :runtime
|
210
210
|
prerelease: false
|
211
|
-
version_requirements: *
|
211
|
+
version_requirements: *2157624680
|
212
212
|
- !ruby/object:Gem::Dependency
|
213
213
|
name: oauth2
|
214
|
-
requirement: &
|
214
|
+
requirement: &2157623980 !ruby/object:Gem::Requirement
|
215
215
|
none: false
|
216
216
|
requirements:
|
217
217
|
- - ~>
|
@@ -219,7 +219,7 @@ dependencies:
|
|
219
219
|
version: 0.5.1
|
220
220
|
type: :runtime
|
221
221
|
prerelease: false
|
222
|
-
version_requirements: *
|
222
|
+
version_requirements: *2157623980
|
223
223
|
description: Provides common authentication needs such as signing in/out, activating
|
224
224
|
by email and resetting password.
|
225
225
|
email: nbenari@gmail.com
|
@@ -312,6 +312,7 @@ files:
|
|
312
312
|
- spec/rails3/app/views/sorcery_mailer/activation_success_email.text.erb
|
313
313
|
- spec/rails3/app/views/sorcery_mailer/reset_password_email.html.erb
|
314
314
|
- spec/rails3/app/views/sorcery_mailer/reset_password_email.text.erb
|
315
|
+
- spec/rails3/app/views/sorcery_mailer/send_unlock_token_email.text.erb
|
315
316
|
- spec/rails3/config.ru
|
316
317
|
- spec/rails3/config/application.rb
|
317
318
|
- spec/rails3/config/boot.rb
|