sorcery 0.3.1 → 0.4.0
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/Gemfile +3 -2
- data/Gemfile.lock +13 -11
- data/README.rdoc +89 -61
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/lib/generators/sorcery_migration/templates/core.rb +2 -2
- data/lib/sorcery.rb +1 -0
- data/lib/sorcery/controller.rb +16 -18
- data/lib/sorcery/controller/submodules/http_basic_auth.rb +1 -1
- data/lib/sorcery/crypto_providers/bcrypt.rb +1 -1
- data/lib/sorcery/crypto_providers/common.rb +35 -0
- data/lib/sorcery/crypto_providers/md5.rb +3 -23
- data/lib/sorcery/crypto_providers/sha1.rb +4 -16
- data/lib/sorcery/crypto_providers/sha256.rb +3 -23
- data/lib/sorcery/crypto_providers/sha512.rb +3 -23
- data/lib/sorcery/engine.rb +4 -0
- data/lib/sorcery/initializers/initializer.rb +86 -0
- data/lib/sorcery/model.rb +4 -2
- data/lib/sorcery/railties/tasks.rake +10 -0
- data/lib/sorcery/sinatra.rb +0 -9
- data/lib/sorcery/test_helpers.rb +12 -0
- data/lib/sorcery/test_helpers/rails.rb +6 -9
- data/lib/sorcery/test_helpers/sinatra.rb +6 -9
- data/sorcery.gemspec +137 -146
- data/spec/Gemfile +2 -2
- data/spec/Gemfile.lock +10 -10
- data/spec/Rakefile +1 -0
- data/spec/rails3/{app_root/.gitignore → .gitignore} +0 -0
- data/spec/rails3/.rspec +1 -1
- data/spec/rails3/{app_root/Gemfile → Gemfile} +4 -4
- data/spec/rails3/{app_root/Gemfile.lock → Gemfile.lock} +20 -20
- data/spec/rails3/{app_root/README → README} +0 -0
- data/spec/rails3/{app_root/Rakefile → Rakefile} +1 -0
- data/spec/rails3/{app_root/Rakefile.unused → Rakefile.unused} +0 -0
- data/spec/rails3/{app_root/app → app}/controllers/application_controller.rb +0 -0
- data/spec/rails3/{app_root/app → app}/helpers/application_helper.rb +0 -0
- data/spec/rails3/{app_root/app → app}/mailers/sorcery_mailer.rb +0 -0
- data/spec/rails3/{app_root/app → app}/models/authentication.rb +0 -0
- data/spec/rails3/{app_root/app → app}/models/user.rb +0 -0
- data/spec/rails3/{app_root/app → app}/views/layouts/application.html.erb +0 -0
- data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_email.html.erb +0 -0
- data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_email.text.erb +0 -0
- data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_success_email.html.erb +0 -0
- data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_success_email.text.erb +0 -0
- data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/reset_password_email.html.erb +0 -0
- data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/reset_password_email.text.erb +0 -0
- data/spec/rails3/{app_root/config.ru → config.ru} +0 -0
- data/spec/rails3/{app_root/config → config}/application.rb +0 -0
- data/spec/rails3/{app_root/config → config}/boot.rb +0 -0
- data/spec/rails3/config/database.yml +27 -0
- data/spec/rails3/{app_root/config → config}/environment.rb +0 -0
- data/spec/rails3/{app_root/config → config}/environments/development.rb +0 -0
- data/spec/rails3/{app_root/config → config}/environments/in_memory.rb +0 -0
- data/spec/rails3/{app_root/config → config}/environments/production.rb +0 -0
- data/spec/rails3/{app_root/config → config}/environments/test.rb +0 -0
- data/spec/rails3/{app_root/config → config}/initializers/backtrace_silencers.rb +0 -0
- data/spec/rails3/{app_root/config → config}/initializers/inflections.rb +0 -0
- data/spec/rails3/{app_root/config → config}/initializers/mime_types.rb +0 -0
- data/spec/rails3/{app_root/config → config}/initializers/secret_token.rb +0 -0
- data/spec/rails3/{app_root/config → config}/initializers/session_store.rb +0 -0
- data/spec/rails3/{app_root/config → config}/locales/en.yml +0 -0
- data/spec/rails3/{app_root/config → config}/routes.rb +0 -0
- data/spec/rails3/{app_root/db → db}/migrate/activation/20101224223622_add_activation_to_users.rb +0 -0
- data/spec/rails3/{app_root/db → db}/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb +0 -0
- data/spec/rails3/{app_root/db → db}/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb +0 -0
- data/spec/rails3/{app_root/db → db}/migrate/core/20101224223620_create_users.rb +0 -0
- data/spec/rails3/{app_root/db → db}/migrate/external/20101224223628_create_authentications.rb +0 -0
- data/spec/rails3/{app_root/db → db}/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb +0 -0
- data/spec/rails3/{app_root/db → db}/migrate/reset_password/20101224223622_add_reset_password_to_users.rb +0 -0
- data/spec/rails3/{app_root/db → db}/schema.rb +0 -0
- data/spec/rails3/{app_root/db → db}/seeds.rb +0 -0
- data/spec/rails3/{app_root/lib → lib}/tasks/.gitkeep +0 -0
- data/spec/rails3/{app_root/public → public}/404.html +0 -0
- data/spec/rails3/{app_root/public → public}/422.html +0 -0
- data/spec/rails3/{app_root/public → public}/500.html +0 -0
- data/spec/rails3/{app_root/public → public}/favicon.ico +0 -0
- data/spec/rails3/{app_root/public → public}/images/rails.png +0 -0
- data/spec/rails3/{app_root/public → public}/index.html +0 -0
- data/spec/rails3/{app_root/public → public}/javascripts/application.js +0 -0
- data/spec/rails3/{app_root/public → public}/javascripts/controls.js +0 -0
- data/spec/rails3/{app_root/public → public}/javascripts/dragdrop.js +0 -0
- data/spec/rails3/{app_root/public → public}/javascripts/effects.js +0 -0
- data/spec/rails3/{app_root/public → public}/javascripts/prototype.js +0 -0
- data/spec/rails3/{app_root/public → public}/javascripts/rails.js +0 -0
- data/spec/rails3/{app_root/public → public}/robots.txt +0 -0
- data/spec/rails3/{app_root/public → public}/stylesheets/.gitkeep +0 -0
- data/spec/rails3/{app_root/script → script}/rails +0 -0
- data/spec/rails3/{app_root/spec → spec}/controller_activity_logging_spec.rb +0 -0
- data/spec/rails3/{app_root/spec → spec}/controller_brute_force_protection_spec.rb +3 -2
- data/spec/rails3/{app_root/spec → spec}/controller_http_basic_auth_spec.rb +0 -0
- data/spec/rails3/{app_root/spec → spec}/controller_oauth2_spec.rb +10 -9
- data/spec/rails3/{app_root/spec → spec}/controller_oauth_spec.rb +5 -5
- data/spec/rails3/{app_root/spec → spec}/controller_remember_me_spec.rb +0 -0
- data/spec/rails3/{app_root/spec → spec}/controller_session_timeout_spec.rb +8 -4
- data/spec/rails3/{app_root/spec → spec}/controller_spec.rb +0 -0
- data/spec/rails3/spec/spec.opts +2 -0
- data/spec/rails3/{app_root/spec → spec}/spec_helper.orig.rb +0 -0
- data/spec/rails3/spec/spec_helper.rb +70 -0
- data/spec/rails3/{app_root/spec → spec}/user_activation_spec.rb +5 -1
- data/spec/rails3/{app_root/spec → spec}/user_activity_logging_spec.rb +0 -0
- data/spec/rails3/{app_root/spec → spec}/user_brute_force_protection_spec.rb +0 -0
- data/spec/rails3/{app_root/spec → spec}/user_oauth_spec.rb +3 -3
- data/spec/rails3/{app_root/spec → spec}/user_remember_me_spec.rb +0 -0
- data/spec/rails3/{app_root/spec → spec}/user_reset_password_spec.rb +7 -3
- data/spec/rails3/{app_root/spec → spec}/user_spec.rb +3 -9
- data/spec/rails3/{app_root/vendor → vendor}/plugins/.gitkeep +0 -0
- data/spec/sinatra/Gemfile +3 -3
- data/spec/sinatra/Gemfile.lock +17 -17
- data/spec/sinatra/Rakefile +1 -0
- data/spec/sinatra/spec/controller_brute_force_protection_spec.rb +3 -2
- data/spec/sinatra/spec/controller_oauth2_spec.rb +10 -9
- data/spec/sinatra/spec/controller_oauth_spec.rb +5 -5
- data/spec/sinatra/spec/controller_session_timeout_spec.rb +8 -4
- data/spec/sinatra/spec/spec.opts +2 -4
- data/spec/sinatra/spec/spec_helper.rb +2 -1
- data/spec/sorcery_crypto_providers_spec.rb +5 -4
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +3 -4
- metadata +148 -149
- data/lib/sorcery/controller/submodules/email.rb +0 -44
- data/lib/sorcery/controller/submodules/oauth.rb +0 -95
- data/spec/rails3/app_root/.rspec +0 -1
- data/spec/rails3/app_root/config/database.yml +0 -27
- data/spec/rails3/app_root/spec/spec_helper.rb +0 -62
- data/spec/sinatra/spec/user_activation_spec.rb +0 -188
- data/spec/sinatra/spec/user_activity_logging_spec.rb +0 -36
- data/spec/sinatra/spec/user_brute_force_protection_spec.rb +0 -76
- data/spec/sinatra/spec/user_oauth_spec.rb +0 -39
- data/spec/sinatra/spec/user_remember_me_spec.rb +0 -66
- data/spec/sinatra/spec/user_reset_password_spec.rb +0 -178
- data/spec/sinatra/spec/user_spec.rb +0 -317
@@ -10,6 +10,10 @@ describe Sinatra::Application do
|
|
10
10
|
create_new_user
|
11
11
|
end
|
12
12
|
|
13
|
+
after(:each) do
|
14
|
+
Timecop.return
|
15
|
+
end
|
16
|
+
|
13
17
|
it "should not reset session before session timeout" do
|
14
18
|
session[:user_id] = User.first.id
|
15
19
|
get "/test_should_be_logged_in"
|
@@ -19,7 +23,7 @@ describe Sinatra::Application do
|
|
19
23
|
it "should reset session after session timeout" do
|
20
24
|
get "/test_login", :username => 'gizmo', :password => 'secret'
|
21
25
|
session[:user_id].should_not be_nil
|
22
|
-
|
26
|
+
Timecop.travel(Time.now+0.6)
|
23
27
|
get "/test_should_be_logged_in"
|
24
28
|
last_response.should be_a_redirect
|
25
29
|
end
|
@@ -29,10 +33,10 @@ describe Sinatra::Application do
|
|
29
33
|
sorcery_controller_property_set(:session_timeout,2)
|
30
34
|
sorcery_controller_property_set(:session_timeout_from_last_action, true)
|
31
35
|
get "/test_login", :username => 'gizmo', :password => 'secret'
|
32
|
-
|
36
|
+
Timecop.travel(Time.now+1)
|
33
37
|
get "/test_should_be_logged_in"
|
34
38
|
session[:user_id].should_not be_nil
|
35
|
-
|
39
|
+
Timecop.travel(Time.now+1)
|
36
40
|
get "/test_should_be_logged_in"
|
37
41
|
session[:user_id].should_not be_nil
|
38
42
|
last_response.should be_ok
|
@@ -42,7 +46,7 @@ describe Sinatra::Application do
|
|
42
46
|
sorcery_controller_property_set(:session_timeout,0.5)
|
43
47
|
sorcery_controller_property_set(:session_timeout_from_last_action, true)
|
44
48
|
get "/test_login", :username => 'gizmo', :password => 'secret'
|
45
|
-
|
49
|
+
Timecop.travel(Time.now+0.6)
|
46
50
|
get "/test_should_be_logged_in"
|
47
51
|
session[:user_id].should be_nil
|
48
52
|
last_response.should be_a_redirect
|
data/spec/sinatra/spec/spec.opts
CHANGED
@@ -3,6 +3,7 @@ $: << APP_ROOT # for model reloading
|
|
3
3
|
|
4
4
|
require 'rack/test'
|
5
5
|
require 'rspec'
|
6
|
+
require 'timecop'
|
6
7
|
|
7
8
|
# set test environment
|
8
9
|
set :environment, :test
|
@@ -36,7 +37,7 @@ require File.join(File.dirname(__FILE__), '..','user')
|
|
36
37
|
require File.join(File.dirname(__FILE__), '..','authentication')
|
37
38
|
|
38
39
|
class TestUser < ActiveRecord::Base
|
39
|
-
|
40
|
+
authenticates_with_sorcery!
|
40
41
|
end
|
41
42
|
|
42
43
|
class TestMailer < ActionMailer::Base
|
@@ -31,7 +31,7 @@ describe "Crypto Providers wrappers" do
|
|
31
31
|
|
32
32
|
before(:all) do
|
33
33
|
@digest = 'Noam Ben-Ari'
|
34
|
-
|
34
|
+
Sorcery::CryptoProviders::SHA1.stretches.times {@digest = Digest::SHA1.hexdigest(@digest)}
|
35
35
|
end
|
36
36
|
|
37
37
|
after(:each) do
|
@@ -61,7 +61,7 @@ describe "Crypto Providers wrappers" do
|
|
61
61
|
|
62
62
|
before(:all) do
|
63
63
|
@digest = 'Noam Ben-Ari'
|
64
|
-
|
64
|
+
Sorcery::CryptoProviders::SHA256.stretches.times {@digest = Digest::SHA256.hexdigest(@digest)}
|
65
65
|
end
|
66
66
|
|
67
67
|
after(:each) do
|
@@ -91,7 +91,7 @@ describe "Crypto Providers wrappers" do
|
|
91
91
|
|
92
92
|
before(:all) do
|
93
93
|
@digest = 'Noam Ben-Ari'
|
94
|
-
|
94
|
+
Sorcery::CryptoProviders::SHA512.stretches.times {@digest = Digest::SHA512.hexdigest(@digest)}
|
95
95
|
end
|
96
96
|
|
97
97
|
after(:each) do
|
@@ -153,7 +153,8 @@ describe "Crypto Providers wrappers" do
|
|
153
153
|
describe Sorcery::CryptoProviders::BCrypt do
|
154
154
|
|
155
155
|
before(:all) do
|
156
|
-
|
156
|
+
Sorcery::CryptoProviders::BCrypt.cost = 1
|
157
|
+
@digest = BCrypt::Password.create('Noam Ben-Ari', :cost => Sorcery::CryptoProviders::BCrypt.cost)
|
157
158
|
end
|
158
159
|
|
159
160
|
after(:each) do
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
2
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
3
|
|
4
|
-
require 'simplecov'
|
5
|
-
SimpleCov.root File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
-
SimpleCov.start
|
7
|
-
|
4
|
+
# require 'simplecov'
|
5
|
+
# SimpleCov.root File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
+
# SimpleCov.start
|
8
7
|
|
9
8
|
require 'rspec'
|
10
9
|
require 'sorcery'
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: sorcery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.4.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Noam Ben Ari
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-21 00:00:00 +03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 2.
|
67
|
+
version: 2.5.0
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: *id005
|
@@ -73,9 +73,9 @@ dependencies:
|
|
73
73
|
requirement: &id006 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - ~>
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
78
|
+
version: 2.5.0
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: *id006
|
@@ -146,8 +146,19 @@ dependencies:
|
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: *id012
|
148
148
|
- !ruby/object:Gem::Dependency
|
149
|
-
name:
|
149
|
+
name: timecop
|
150
150
|
requirement: &id013 !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: "0"
|
156
|
+
type: :development
|
157
|
+
prerelease: false
|
158
|
+
version_requirements: *id013
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: bcrypt-ruby
|
161
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
151
162
|
none: false
|
152
163
|
requirements:
|
153
164
|
- - ~>
|
@@ -155,10 +166,10 @@ dependencies:
|
|
155
166
|
version: 2.1.4
|
156
167
|
type: :runtime
|
157
168
|
prerelease: false
|
158
|
-
version_requirements: *
|
169
|
+
version_requirements: *id014
|
159
170
|
- !ruby/object:Gem::Dependency
|
160
171
|
name: oauth
|
161
|
-
requirement: &
|
172
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
162
173
|
none: false
|
163
174
|
requirements:
|
164
175
|
- - ">="
|
@@ -166,10 +177,10 @@ dependencies:
|
|
166
177
|
version: 0.4.4
|
167
178
|
type: :runtime
|
168
179
|
prerelease: false
|
169
|
-
version_requirements: *
|
180
|
+
version_requirements: *id015
|
170
181
|
- !ruby/object:Gem::Dependency
|
171
182
|
name: oauth2
|
172
|
-
requirement: &
|
183
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
173
184
|
none: false
|
174
185
|
requirements:
|
175
186
|
- - ">="
|
@@ -177,7 +188,7 @@ dependencies:
|
|
177
188
|
version: 0.1.1
|
178
189
|
type: :runtime
|
179
190
|
prerelease: false
|
180
|
-
version_requirements: *
|
191
|
+
version_requirements: *id016
|
181
192
|
description: Provides common authentication needs such as signing in/out, activating by email and resetting password.
|
182
193
|
email: nbenari@gmail.com
|
183
194
|
executables: []
|
@@ -209,23 +220,23 @@ files:
|
|
209
220
|
- lib/sorcery/controller/adapters/sinatra.rb
|
210
221
|
- lib/sorcery/controller/submodules/activity_logging.rb
|
211
222
|
- lib/sorcery/controller/submodules/brute_force_protection.rb
|
212
|
-
- lib/sorcery/controller/submodules/email.rb
|
213
223
|
- lib/sorcery/controller/submodules/external.rb
|
214
224
|
- lib/sorcery/controller/submodules/external/protocols/oauth1.rb
|
215
225
|
- lib/sorcery/controller/submodules/external/protocols/oauth2.rb
|
216
226
|
- lib/sorcery/controller/submodules/external/providers/facebook.rb
|
217
227
|
- lib/sorcery/controller/submodules/external/providers/twitter.rb
|
218
228
|
- lib/sorcery/controller/submodules/http_basic_auth.rb
|
219
|
-
- lib/sorcery/controller/submodules/oauth.rb
|
220
229
|
- lib/sorcery/controller/submodules/remember_me.rb
|
221
230
|
- lib/sorcery/controller/submodules/session_timeout.rb
|
222
231
|
- lib/sorcery/crypto_providers/aes256.rb
|
223
232
|
- lib/sorcery/crypto_providers/bcrypt.rb
|
233
|
+
- lib/sorcery/crypto_providers/common.rb
|
224
234
|
- lib/sorcery/crypto_providers/md5.rb
|
225
235
|
- lib/sorcery/crypto_providers/sha1.rb
|
226
236
|
- lib/sorcery/crypto_providers/sha256.rb
|
227
237
|
- lib/sorcery/crypto_providers/sha512.rb
|
228
238
|
- lib/sorcery/engine.rb
|
239
|
+
- lib/sorcery/initializers/initializer.rb
|
229
240
|
- lib/sorcery/model.rb
|
230
241
|
- lib/sorcery/model/submodules/activity_logging.rb
|
231
242
|
- lib/sorcery/model/submodules/brute_force_protection.rb
|
@@ -234,6 +245,7 @@ files:
|
|
234
245
|
- lib/sorcery/model/submodules/reset_password.rb
|
235
246
|
- lib/sorcery/model/submodules/user_activation.rb
|
236
247
|
- lib/sorcery/model/temporary_token.rb
|
248
|
+
- lib/sorcery/railties/tasks.rake
|
237
249
|
- lib/sorcery/sinatra.rb
|
238
250
|
- lib/sorcery/test_helpers.rb
|
239
251
|
- lib/sorcery/test_helpers/rails.rb
|
@@ -242,85 +254,85 @@ files:
|
|
242
254
|
- spec/Gemfile
|
243
255
|
- spec/Gemfile.lock
|
244
256
|
- spec/Rakefile
|
257
|
+
- spec/rails3/.gitignore
|
245
258
|
- spec/rails3/.rspec
|
246
|
-
- spec/rails3/
|
247
|
-
- spec/rails3/
|
248
|
-
- spec/rails3/
|
249
|
-
- spec/rails3/
|
250
|
-
- spec/rails3/
|
251
|
-
- spec/rails3/
|
252
|
-
- spec/rails3/
|
253
|
-
- spec/rails3/
|
254
|
-
- spec/rails3/
|
255
|
-
- spec/rails3/
|
256
|
-
- spec/rails3/
|
257
|
-
- spec/rails3/
|
258
|
-
- spec/rails3/
|
259
|
-
- spec/rails3/
|
260
|
-
- spec/rails3/
|
261
|
-
- spec/rails3/
|
262
|
-
- spec/rails3/
|
263
|
-
- spec/rails3/
|
264
|
-
- spec/rails3/
|
265
|
-
- spec/rails3/
|
266
|
-
- spec/rails3/
|
267
|
-
- spec/rails3/
|
268
|
-
- spec/rails3/
|
269
|
-
- spec/rails3/
|
270
|
-
- spec/rails3/
|
271
|
-
- spec/rails3/
|
272
|
-
- spec/rails3/
|
273
|
-
- spec/rails3/
|
274
|
-
- spec/rails3/
|
275
|
-
- spec/rails3/
|
276
|
-
- spec/rails3/
|
277
|
-
- spec/rails3/
|
278
|
-
- spec/rails3/
|
279
|
-
- spec/rails3/
|
280
|
-
- spec/rails3/
|
281
|
-
- spec/rails3/
|
282
|
-
- spec/rails3/
|
283
|
-
- spec/rails3/
|
284
|
-
- spec/rails3/
|
285
|
-
- spec/rails3/
|
286
|
-
- spec/rails3/
|
287
|
-
- spec/rails3/
|
288
|
-
- spec/rails3/
|
289
|
-
- spec/rails3/
|
290
|
-
- spec/rails3/
|
291
|
-
- spec/rails3/
|
292
|
-
- spec/rails3/
|
293
|
-
- spec/rails3/
|
294
|
-
- spec/rails3/
|
295
|
-
- spec/rails3/
|
296
|
-
- spec/rails3/
|
297
|
-
- spec/rails3/
|
298
|
-
- spec/rails3/
|
299
|
-
- spec/rails3/
|
300
|
-
- spec/rails3/
|
301
|
-
- spec/rails3/
|
302
|
-
- spec/rails3/
|
303
|
-
- spec/rails3/
|
304
|
-
- spec/rails3/
|
305
|
-
- spec/rails3/
|
306
|
-
- spec/rails3/
|
307
|
-
- spec/rails3/
|
308
|
-
- spec/rails3/
|
309
|
-
- spec/rails3/
|
310
|
-
- spec/rails3/
|
311
|
-
- spec/rails3/
|
312
|
-
- spec/rails3/
|
313
|
-
- spec/rails3/
|
314
|
-
- spec/rails3/
|
315
|
-
- spec/rails3/
|
316
|
-
- spec/rails3/
|
317
|
-
- spec/rails3/
|
318
|
-
- spec/rails3/
|
319
|
-
- spec/rails3/
|
320
|
-
- spec/rails3/
|
321
|
-
- spec/rails3/
|
322
|
-
- spec/rails3/
|
323
|
-
- spec/rails3/app_root/vendor/plugins/.gitkeep
|
259
|
+
- spec/rails3/Gemfile
|
260
|
+
- spec/rails3/Gemfile.lock
|
261
|
+
- spec/rails3/README
|
262
|
+
- spec/rails3/Rakefile
|
263
|
+
- spec/rails3/Rakefile.unused
|
264
|
+
- spec/rails3/app/controllers/application_controller.rb
|
265
|
+
- spec/rails3/app/helpers/application_helper.rb
|
266
|
+
- spec/rails3/app/mailers/sorcery_mailer.rb
|
267
|
+
- spec/rails3/app/models/authentication.rb
|
268
|
+
- spec/rails3/app/models/user.rb
|
269
|
+
- spec/rails3/app/views/layouts/application.html.erb
|
270
|
+
- spec/rails3/app/views/sorcery_mailer/activation_email.html.erb
|
271
|
+
- spec/rails3/app/views/sorcery_mailer/activation_email.text.erb
|
272
|
+
- spec/rails3/app/views/sorcery_mailer/activation_success_email.html.erb
|
273
|
+
- spec/rails3/app/views/sorcery_mailer/activation_success_email.text.erb
|
274
|
+
- spec/rails3/app/views/sorcery_mailer/reset_password_email.html.erb
|
275
|
+
- spec/rails3/app/views/sorcery_mailer/reset_password_email.text.erb
|
276
|
+
- spec/rails3/config.ru
|
277
|
+
- spec/rails3/config/application.rb
|
278
|
+
- spec/rails3/config/boot.rb
|
279
|
+
- spec/rails3/config/database.yml
|
280
|
+
- spec/rails3/config/environment.rb
|
281
|
+
- spec/rails3/config/environments/development.rb
|
282
|
+
- spec/rails3/config/environments/in_memory.rb
|
283
|
+
- spec/rails3/config/environments/production.rb
|
284
|
+
- spec/rails3/config/environments/test.rb
|
285
|
+
- spec/rails3/config/initializers/backtrace_silencers.rb
|
286
|
+
- spec/rails3/config/initializers/inflections.rb
|
287
|
+
- spec/rails3/config/initializers/mime_types.rb
|
288
|
+
- spec/rails3/config/initializers/secret_token.rb
|
289
|
+
- spec/rails3/config/initializers/session_store.rb
|
290
|
+
- spec/rails3/config/locales/en.yml
|
291
|
+
- spec/rails3/config/routes.rb
|
292
|
+
- spec/rails3/db/migrate/activation/20101224223622_add_activation_to_users.rb
|
293
|
+
- spec/rails3/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
|
294
|
+
- spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
|
295
|
+
- spec/rails3/db/migrate/core/20101224223620_create_users.rb
|
296
|
+
- spec/rails3/db/migrate/external/20101224223628_create_authentications.rb
|
297
|
+
- spec/rails3/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb
|
298
|
+
- spec/rails3/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb
|
299
|
+
- spec/rails3/db/schema.rb
|
300
|
+
- spec/rails3/db/seeds.rb
|
301
|
+
- spec/rails3/lib/tasks/.gitkeep
|
302
|
+
- spec/rails3/public/404.html
|
303
|
+
- spec/rails3/public/422.html
|
304
|
+
- spec/rails3/public/500.html
|
305
|
+
- spec/rails3/public/favicon.ico
|
306
|
+
- spec/rails3/public/images/rails.png
|
307
|
+
- spec/rails3/public/index.html
|
308
|
+
- spec/rails3/public/javascripts/application.js
|
309
|
+
- spec/rails3/public/javascripts/controls.js
|
310
|
+
- spec/rails3/public/javascripts/dragdrop.js
|
311
|
+
- spec/rails3/public/javascripts/effects.js
|
312
|
+
- spec/rails3/public/javascripts/prototype.js
|
313
|
+
- spec/rails3/public/javascripts/rails.js
|
314
|
+
- spec/rails3/public/robots.txt
|
315
|
+
- spec/rails3/public/stylesheets/.gitkeep
|
316
|
+
- spec/rails3/script/rails
|
317
|
+
- spec/rails3/spec/controller_activity_logging_spec.rb
|
318
|
+
- spec/rails3/spec/controller_brute_force_protection_spec.rb
|
319
|
+
- spec/rails3/spec/controller_http_basic_auth_spec.rb
|
320
|
+
- spec/rails3/spec/controller_oauth2_spec.rb
|
321
|
+
- spec/rails3/spec/controller_oauth_spec.rb
|
322
|
+
- spec/rails3/spec/controller_remember_me_spec.rb
|
323
|
+
- spec/rails3/spec/controller_session_timeout_spec.rb
|
324
|
+
- spec/rails3/spec/controller_spec.rb
|
325
|
+
- spec/rails3/spec/spec.opts
|
326
|
+
- spec/rails3/spec/spec_helper.orig.rb
|
327
|
+
- spec/rails3/spec/spec_helper.rb
|
328
|
+
- spec/rails3/spec/user_activation_spec.rb
|
329
|
+
- spec/rails3/spec/user_activity_logging_spec.rb
|
330
|
+
- spec/rails3/spec/user_brute_force_protection_spec.rb
|
331
|
+
- spec/rails3/spec/user_oauth_spec.rb
|
332
|
+
- spec/rails3/spec/user_remember_me_spec.rb
|
333
|
+
- spec/rails3/spec/user_reset_password_spec.rb
|
334
|
+
- spec/rails3/spec/user_spec.rb
|
335
|
+
- spec/rails3/vendor/plugins/.gitkeep
|
324
336
|
- spec/sinatra/Gemfile
|
325
337
|
- spec/sinatra/Gemfile.lock
|
326
338
|
- spec/sinatra/Rakefile
|
@@ -345,16 +357,10 @@ files:
|
|
345
357
|
- spec/sinatra/spec/controller_spec.rb
|
346
358
|
- spec/sinatra/spec/spec.opts
|
347
359
|
- spec/sinatra/spec/spec_helper.rb
|
348
|
-
- spec/sinatra/spec/user_activation_spec.rb
|
349
|
-
- spec/sinatra/spec/user_activity_logging_spec.rb
|
350
|
-
- spec/sinatra/spec/user_brute_force_protection_spec.rb
|
351
|
-
- spec/sinatra/spec/user_oauth_spec.rb
|
352
|
-
- spec/sinatra/spec/user_remember_me_spec.rb
|
353
|
-
- spec/sinatra/spec/user_reset_password_spec.rb
|
354
|
-
- spec/sinatra/spec/user_spec.rb
|
355
360
|
- spec/sinatra/user.rb
|
356
361
|
- spec/sinatra/views/test_login.erb
|
357
362
|
- spec/sorcery_crypto_providers_spec.rb
|
363
|
+
- spec/spec.opts
|
358
364
|
- spec/spec_helper.rb
|
359
365
|
- spec/untitled folder
|
360
366
|
has_rdoc: true
|
@@ -386,50 +392,50 @@ signing_key:
|
|
386
392
|
specification_version: 3
|
387
393
|
summary: Magical authentication for Rails 3 applications
|
388
394
|
test_files:
|
389
|
-
- spec/rails3/
|
390
|
-
- spec/rails3/
|
391
|
-
- spec/rails3/
|
392
|
-
- spec/rails3/
|
393
|
-
- spec/rails3/
|
394
|
-
- spec/rails3/
|
395
|
-
- spec/rails3/
|
396
|
-
- spec/rails3/
|
397
|
-
- spec/rails3/
|
398
|
-
- spec/rails3/
|
399
|
-
- spec/rails3/
|
400
|
-
- spec/rails3/
|
401
|
-
- spec/rails3/
|
402
|
-
- spec/rails3/
|
403
|
-
- spec/rails3/
|
404
|
-
- spec/rails3/
|
405
|
-
- spec/rails3/
|
406
|
-
- spec/rails3/
|
407
|
-
- spec/rails3/
|
408
|
-
- spec/rails3/
|
409
|
-
- spec/rails3/
|
410
|
-
- spec/rails3/
|
411
|
-
- spec/rails3/
|
412
|
-
- spec/rails3/
|
413
|
-
- spec/rails3/
|
414
|
-
- spec/rails3/
|
415
|
-
- spec/rails3/
|
416
|
-
- spec/rails3/
|
417
|
-
- spec/rails3/
|
418
|
-
- spec/rails3/
|
419
|
-
- spec/rails3/
|
420
|
-
- spec/rails3/
|
421
|
-
- spec/rails3/
|
422
|
-
- spec/rails3/
|
423
|
-
- spec/rails3/
|
424
|
-
- spec/rails3/
|
425
|
-
- spec/rails3/
|
426
|
-
- spec/rails3/
|
427
|
-
- spec/rails3/
|
428
|
-
- spec/rails3/
|
429
|
-
- spec/rails3/
|
430
|
-
- spec/rails3/
|
431
|
-
- spec/rails3/
|
432
|
-
- spec/rails3/
|
395
|
+
- spec/rails3/app/controllers/application_controller.rb
|
396
|
+
- spec/rails3/app/helpers/application_helper.rb
|
397
|
+
- spec/rails3/app/mailers/sorcery_mailer.rb
|
398
|
+
- spec/rails3/app/models/authentication.rb
|
399
|
+
- spec/rails3/app/models/user.rb
|
400
|
+
- spec/rails3/config/application.rb
|
401
|
+
- spec/rails3/config/boot.rb
|
402
|
+
- spec/rails3/config/environment.rb
|
403
|
+
- spec/rails3/config/environments/development.rb
|
404
|
+
- spec/rails3/config/environments/in_memory.rb
|
405
|
+
- spec/rails3/config/environments/production.rb
|
406
|
+
- spec/rails3/config/environments/test.rb
|
407
|
+
- spec/rails3/config/initializers/backtrace_silencers.rb
|
408
|
+
- spec/rails3/config/initializers/inflections.rb
|
409
|
+
- spec/rails3/config/initializers/mime_types.rb
|
410
|
+
- spec/rails3/config/initializers/secret_token.rb
|
411
|
+
- spec/rails3/config/initializers/session_store.rb
|
412
|
+
- spec/rails3/config/routes.rb
|
413
|
+
- spec/rails3/db/migrate/activation/20101224223622_add_activation_to_users.rb
|
414
|
+
- spec/rails3/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
|
415
|
+
- spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
|
416
|
+
- spec/rails3/db/migrate/core/20101224223620_create_users.rb
|
417
|
+
- spec/rails3/db/migrate/external/20101224223628_create_authentications.rb
|
418
|
+
- spec/rails3/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb
|
419
|
+
- spec/rails3/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb
|
420
|
+
- spec/rails3/db/schema.rb
|
421
|
+
- spec/rails3/db/seeds.rb
|
422
|
+
- spec/rails3/spec/controller_activity_logging_spec.rb
|
423
|
+
- spec/rails3/spec/controller_brute_force_protection_spec.rb
|
424
|
+
- spec/rails3/spec/controller_http_basic_auth_spec.rb
|
425
|
+
- spec/rails3/spec/controller_oauth2_spec.rb
|
426
|
+
- spec/rails3/spec/controller_oauth_spec.rb
|
427
|
+
- spec/rails3/spec/controller_remember_me_spec.rb
|
428
|
+
- spec/rails3/spec/controller_session_timeout_spec.rb
|
429
|
+
- spec/rails3/spec/controller_spec.rb
|
430
|
+
- spec/rails3/spec/spec_helper.orig.rb
|
431
|
+
- spec/rails3/spec/spec_helper.rb
|
432
|
+
- spec/rails3/spec/user_activation_spec.rb
|
433
|
+
- spec/rails3/spec/user_activity_logging_spec.rb
|
434
|
+
- spec/rails3/spec/user_brute_force_protection_spec.rb
|
435
|
+
- spec/rails3/spec/user_oauth_spec.rb
|
436
|
+
- spec/rails3/spec/user_remember_me_spec.rb
|
437
|
+
- spec/rails3/spec/user_reset_password_spec.rb
|
438
|
+
- spec/rails3/spec/user_spec.rb
|
433
439
|
- spec/sinatra/authentication.rb
|
434
440
|
- spec/sinatra/db/migrate/activation/20101224223622_add_activation_to_users.rb
|
435
441
|
- spec/sinatra/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
|
@@ -450,13 +456,6 @@ test_files:
|
|
450
456
|
- spec/sinatra/spec/controller_session_timeout_spec.rb
|
451
457
|
- spec/sinatra/spec/controller_spec.rb
|
452
458
|
- spec/sinatra/spec/spec_helper.rb
|
453
|
-
- spec/sinatra/spec/user_activation_spec.rb
|
454
|
-
- spec/sinatra/spec/user_activity_logging_spec.rb
|
455
|
-
- spec/sinatra/spec/user_brute_force_protection_spec.rb
|
456
|
-
- spec/sinatra/spec/user_oauth_spec.rb
|
457
|
-
- spec/sinatra/spec/user_remember_me_spec.rb
|
458
|
-
- spec/sinatra/spec/user_reset_password_spec.rb
|
459
|
-
- spec/sinatra/spec/user_spec.rb
|
460
459
|
- spec/sinatra/user.rb
|
461
460
|
- spec/sorcery_crypto_providers_spec.rb
|
462
461
|
- spec/spec_helper.rb
|