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.

Files changed (131) hide show
  1. data/Gemfile +3 -2
  2. data/Gemfile.lock +13 -11
  3. data/README.rdoc +89 -61
  4. data/Rakefile +4 -4
  5. data/VERSION +1 -1
  6. data/lib/generators/sorcery_migration/templates/core.rb +2 -2
  7. data/lib/sorcery.rb +1 -0
  8. data/lib/sorcery/controller.rb +16 -18
  9. data/lib/sorcery/controller/submodules/http_basic_auth.rb +1 -1
  10. data/lib/sorcery/crypto_providers/bcrypt.rb +1 -1
  11. data/lib/sorcery/crypto_providers/common.rb +35 -0
  12. data/lib/sorcery/crypto_providers/md5.rb +3 -23
  13. data/lib/sorcery/crypto_providers/sha1.rb +4 -16
  14. data/lib/sorcery/crypto_providers/sha256.rb +3 -23
  15. data/lib/sorcery/crypto_providers/sha512.rb +3 -23
  16. data/lib/sorcery/engine.rb +4 -0
  17. data/lib/sorcery/initializers/initializer.rb +86 -0
  18. data/lib/sorcery/model.rb +4 -2
  19. data/lib/sorcery/railties/tasks.rake +10 -0
  20. data/lib/sorcery/sinatra.rb +0 -9
  21. data/lib/sorcery/test_helpers.rb +12 -0
  22. data/lib/sorcery/test_helpers/rails.rb +6 -9
  23. data/lib/sorcery/test_helpers/sinatra.rb +6 -9
  24. data/sorcery.gemspec +137 -146
  25. data/spec/Gemfile +2 -2
  26. data/spec/Gemfile.lock +10 -10
  27. data/spec/Rakefile +1 -0
  28. data/spec/rails3/{app_root/.gitignore → .gitignore} +0 -0
  29. data/spec/rails3/.rspec +1 -1
  30. data/spec/rails3/{app_root/Gemfile → Gemfile} +4 -4
  31. data/spec/rails3/{app_root/Gemfile.lock → Gemfile.lock} +20 -20
  32. data/spec/rails3/{app_root/README → README} +0 -0
  33. data/spec/rails3/{app_root/Rakefile → Rakefile} +1 -0
  34. data/spec/rails3/{app_root/Rakefile.unused → Rakefile.unused} +0 -0
  35. data/spec/rails3/{app_root/app → app}/controllers/application_controller.rb +0 -0
  36. data/spec/rails3/{app_root/app → app}/helpers/application_helper.rb +0 -0
  37. data/spec/rails3/{app_root/app → app}/mailers/sorcery_mailer.rb +0 -0
  38. data/spec/rails3/{app_root/app → app}/models/authentication.rb +0 -0
  39. data/spec/rails3/{app_root/app → app}/models/user.rb +0 -0
  40. data/spec/rails3/{app_root/app → app}/views/layouts/application.html.erb +0 -0
  41. data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_email.html.erb +0 -0
  42. data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_email.text.erb +0 -0
  43. data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_success_email.html.erb +0 -0
  44. data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/activation_success_email.text.erb +0 -0
  45. data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/reset_password_email.html.erb +0 -0
  46. data/spec/rails3/{app_root/app → app}/views/sorcery_mailer/reset_password_email.text.erb +0 -0
  47. data/spec/rails3/{app_root/config.ru → config.ru} +0 -0
  48. data/spec/rails3/{app_root/config → config}/application.rb +0 -0
  49. data/spec/rails3/{app_root/config → config}/boot.rb +0 -0
  50. data/spec/rails3/config/database.yml +27 -0
  51. data/spec/rails3/{app_root/config → config}/environment.rb +0 -0
  52. data/spec/rails3/{app_root/config → config}/environments/development.rb +0 -0
  53. data/spec/rails3/{app_root/config → config}/environments/in_memory.rb +0 -0
  54. data/spec/rails3/{app_root/config → config}/environments/production.rb +0 -0
  55. data/spec/rails3/{app_root/config → config}/environments/test.rb +0 -0
  56. data/spec/rails3/{app_root/config → config}/initializers/backtrace_silencers.rb +0 -0
  57. data/spec/rails3/{app_root/config → config}/initializers/inflections.rb +0 -0
  58. data/spec/rails3/{app_root/config → config}/initializers/mime_types.rb +0 -0
  59. data/spec/rails3/{app_root/config → config}/initializers/secret_token.rb +0 -0
  60. data/spec/rails3/{app_root/config → config}/initializers/session_store.rb +0 -0
  61. data/spec/rails3/{app_root/config → config}/locales/en.yml +0 -0
  62. data/spec/rails3/{app_root/config → config}/routes.rb +0 -0
  63. data/spec/rails3/{app_root/db → db}/migrate/activation/20101224223622_add_activation_to_users.rb +0 -0
  64. data/spec/rails3/{app_root/db → db}/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb +0 -0
  65. data/spec/rails3/{app_root/db → db}/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb +0 -0
  66. data/spec/rails3/{app_root/db → db}/migrate/core/20101224223620_create_users.rb +0 -0
  67. data/spec/rails3/{app_root/db → db}/migrate/external/20101224223628_create_authentications.rb +0 -0
  68. data/spec/rails3/{app_root/db → db}/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb +0 -0
  69. data/spec/rails3/{app_root/db → db}/migrate/reset_password/20101224223622_add_reset_password_to_users.rb +0 -0
  70. data/spec/rails3/{app_root/db → db}/schema.rb +0 -0
  71. data/spec/rails3/{app_root/db → db}/seeds.rb +0 -0
  72. data/spec/rails3/{app_root/lib → lib}/tasks/.gitkeep +0 -0
  73. data/spec/rails3/{app_root/public → public}/404.html +0 -0
  74. data/spec/rails3/{app_root/public → public}/422.html +0 -0
  75. data/spec/rails3/{app_root/public → public}/500.html +0 -0
  76. data/spec/rails3/{app_root/public → public}/favicon.ico +0 -0
  77. data/spec/rails3/{app_root/public → public}/images/rails.png +0 -0
  78. data/spec/rails3/{app_root/public → public}/index.html +0 -0
  79. data/spec/rails3/{app_root/public → public}/javascripts/application.js +0 -0
  80. data/spec/rails3/{app_root/public → public}/javascripts/controls.js +0 -0
  81. data/spec/rails3/{app_root/public → public}/javascripts/dragdrop.js +0 -0
  82. data/spec/rails3/{app_root/public → public}/javascripts/effects.js +0 -0
  83. data/spec/rails3/{app_root/public → public}/javascripts/prototype.js +0 -0
  84. data/spec/rails3/{app_root/public → public}/javascripts/rails.js +0 -0
  85. data/spec/rails3/{app_root/public → public}/robots.txt +0 -0
  86. data/spec/rails3/{app_root/public → public}/stylesheets/.gitkeep +0 -0
  87. data/spec/rails3/{app_root/script → script}/rails +0 -0
  88. data/spec/rails3/{app_root/spec → spec}/controller_activity_logging_spec.rb +0 -0
  89. data/spec/rails3/{app_root/spec → spec}/controller_brute_force_protection_spec.rb +3 -2
  90. data/spec/rails3/{app_root/spec → spec}/controller_http_basic_auth_spec.rb +0 -0
  91. data/spec/rails3/{app_root/spec → spec}/controller_oauth2_spec.rb +10 -9
  92. data/spec/rails3/{app_root/spec → spec}/controller_oauth_spec.rb +5 -5
  93. data/spec/rails3/{app_root/spec → spec}/controller_remember_me_spec.rb +0 -0
  94. data/spec/rails3/{app_root/spec → spec}/controller_session_timeout_spec.rb +8 -4
  95. data/spec/rails3/{app_root/spec → spec}/controller_spec.rb +0 -0
  96. data/spec/rails3/spec/spec.opts +2 -0
  97. data/spec/rails3/{app_root/spec → spec}/spec_helper.orig.rb +0 -0
  98. data/spec/rails3/spec/spec_helper.rb +70 -0
  99. data/spec/rails3/{app_root/spec → spec}/user_activation_spec.rb +5 -1
  100. data/spec/rails3/{app_root/spec → spec}/user_activity_logging_spec.rb +0 -0
  101. data/spec/rails3/{app_root/spec → spec}/user_brute_force_protection_spec.rb +0 -0
  102. data/spec/rails3/{app_root/spec → spec}/user_oauth_spec.rb +3 -3
  103. data/spec/rails3/{app_root/spec → spec}/user_remember_me_spec.rb +0 -0
  104. data/spec/rails3/{app_root/spec → spec}/user_reset_password_spec.rb +7 -3
  105. data/spec/rails3/{app_root/spec → spec}/user_spec.rb +3 -9
  106. data/spec/rails3/{app_root/vendor → vendor}/plugins/.gitkeep +0 -0
  107. data/spec/sinatra/Gemfile +3 -3
  108. data/spec/sinatra/Gemfile.lock +17 -17
  109. data/spec/sinatra/Rakefile +1 -0
  110. data/spec/sinatra/spec/controller_brute_force_protection_spec.rb +3 -2
  111. data/spec/sinatra/spec/controller_oauth2_spec.rb +10 -9
  112. data/spec/sinatra/spec/controller_oauth_spec.rb +5 -5
  113. data/spec/sinatra/spec/controller_session_timeout_spec.rb +8 -4
  114. data/spec/sinatra/spec/spec.opts +2 -4
  115. data/spec/sinatra/spec/spec_helper.rb +2 -1
  116. data/spec/sorcery_crypto_providers_spec.rb +5 -4
  117. data/spec/spec.opts +2 -0
  118. data/spec/spec_helper.rb +3 -4
  119. metadata +148 -149
  120. data/lib/sorcery/controller/submodules/email.rb +0 -44
  121. data/lib/sorcery/controller/submodules/oauth.rb +0 -95
  122. data/spec/rails3/app_root/.rspec +0 -1
  123. data/spec/rails3/app_root/config/database.yml +0 -27
  124. data/spec/rails3/app_root/spec/spec_helper.rb +0 -62
  125. data/spec/sinatra/spec/user_activation_spec.rb +0 -188
  126. data/spec/sinatra/spec/user_activity_logging_spec.rb +0 -36
  127. data/spec/sinatra/spec/user_brute_force_protection_spec.rb +0 -76
  128. data/spec/sinatra/spec/user_oauth_spec.rb +0 -39
  129. data/spec/sinatra/spec/user_remember_me_spec.rb +0 -66
  130. data/spec/sinatra/spec/user_reset_password_spec.rb +0 -178
  131. 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
- sleep 0.6
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
- sleep 1
36
+ Timecop.travel(Time.now+1)
33
37
  get "/test_should_be_logged_in"
34
38
  session[:user_id].should_not be_nil
35
- sleep 1
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
- sleep 0.6
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
@@ -1,4 +1,2 @@
1
- --colour
2
- --format progress
3
- --loadby mtime
4
- --reverse
1
+ --color
2
+ --format documentation
@@ -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
- activate_sorcery!
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
- 10.times {@digest = Digest::SHA1.hexdigest(@digest)}
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
- 20.times {@digest = Digest::SHA256.hexdigest(@digest)}
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
- 20.times {@digest = Digest::SHA512.hexdigest(@digest)}
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
- @digest = BCrypt::Password.create('Noam Ben-Ari', :cost => 10)
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
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
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.3.1
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-17 00:00:00 +03:00
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.3.0
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: "0"
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: bcrypt-ruby
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: *id013
169
+ version_requirements: *id014
159
170
  - !ruby/object:Gem::Dependency
160
171
  name: oauth
161
- requirement: &id014 !ruby/object:Gem::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: *id014
180
+ version_requirements: *id015
170
181
  - !ruby/object:Gem::Dependency
171
182
  name: oauth2
172
- requirement: &id015 !ruby/object:Gem::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: *id015
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/app_root/.gitignore
247
- - spec/rails3/app_root/.rspec
248
- - spec/rails3/app_root/Gemfile
249
- - spec/rails3/app_root/Gemfile.lock
250
- - spec/rails3/app_root/README
251
- - spec/rails3/app_root/Rakefile
252
- - spec/rails3/app_root/Rakefile.unused
253
- - spec/rails3/app_root/app/controllers/application_controller.rb
254
- - spec/rails3/app_root/app/helpers/application_helper.rb
255
- - spec/rails3/app_root/app/mailers/sorcery_mailer.rb
256
- - spec/rails3/app_root/app/models/authentication.rb
257
- - spec/rails3/app_root/app/models/user.rb
258
- - spec/rails3/app_root/app/views/layouts/application.html.erb
259
- - spec/rails3/app_root/app/views/sorcery_mailer/activation_email.html.erb
260
- - spec/rails3/app_root/app/views/sorcery_mailer/activation_email.text.erb
261
- - spec/rails3/app_root/app/views/sorcery_mailer/activation_success_email.html.erb
262
- - spec/rails3/app_root/app/views/sorcery_mailer/activation_success_email.text.erb
263
- - spec/rails3/app_root/app/views/sorcery_mailer/reset_password_email.html.erb
264
- - spec/rails3/app_root/app/views/sorcery_mailer/reset_password_email.text.erb
265
- - spec/rails3/app_root/config.ru
266
- - spec/rails3/app_root/config/application.rb
267
- - spec/rails3/app_root/config/boot.rb
268
- - spec/rails3/app_root/config/database.yml
269
- - spec/rails3/app_root/config/environment.rb
270
- - spec/rails3/app_root/config/environments/development.rb
271
- - spec/rails3/app_root/config/environments/in_memory.rb
272
- - spec/rails3/app_root/config/environments/production.rb
273
- - spec/rails3/app_root/config/environments/test.rb
274
- - spec/rails3/app_root/config/initializers/backtrace_silencers.rb
275
- - spec/rails3/app_root/config/initializers/inflections.rb
276
- - spec/rails3/app_root/config/initializers/mime_types.rb
277
- - spec/rails3/app_root/config/initializers/secret_token.rb
278
- - spec/rails3/app_root/config/initializers/session_store.rb
279
- - spec/rails3/app_root/config/locales/en.yml
280
- - spec/rails3/app_root/config/routes.rb
281
- - spec/rails3/app_root/db/migrate/activation/20101224223622_add_activation_to_users.rb
282
- - spec/rails3/app_root/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
283
- - spec/rails3/app_root/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
284
- - spec/rails3/app_root/db/migrate/core/20101224223620_create_users.rb
285
- - spec/rails3/app_root/db/migrate/external/20101224223628_create_authentications.rb
286
- - spec/rails3/app_root/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb
287
- - spec/rails3/app_root/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb
288
- - spec/rails3/app_root/db/schema.rb
289
- - spec/rails3/app_root/db/seeds.rb
290
- - spec/rails3/app_root/lib/tasks/.gitkeep
291
- - spec/rails3/app_root/public/404.html
292
- - spec/rails3/app_root/public/422.html
293
- - spec/rails3/app_root/public/500.html
294
- - spec/rails3/app_root/public/favicon.ico
295
- - spec/rails3/app_root/public/images/rails.png
296
- - spec/rails3/app_root/public/index.html
297
- - spec/rails3/app_root/public/javascripts/application.js
298
- - spec/rails3/app_root/public/javascripts/controls.js
299
- - spec/rails3/app_root/public/javascripts/dragdrop.js
300
- - spec/rails3/app_root/public/javascripts/effects.js
301
- - spec/rails3/app_root/public/javascripts/prototype.js
302
- - spec/rails3/app_root/public/javascripts/rails.js
303
- - spec/rails3/app_root/public/robots.txt
304
- - spec/rails3/app_root/public/stylesheets/.gitkeep
305
- - spec/rails3/app_root/script/rails
306
- - spec/rails3/app_root/spec/controller_activity_logging_spec.rb
307
- - spec/rails3/app_root/spec/controller_brute_force_protection_spec.rb
308
- - spec/rails3/app_root/spec/controller_http_basic_auth_spec.rb
309
- - spec/rails3/app_root/spec/controller_oauth2_spec.rb
310
- - spec/rails3/app_root/spec/controller_oauth_spec.rb
311
- - spec/rails3/app_root/spec/controller_remember_me_spec.rb
312
- - spec/rails3/app_root/spec/controller_session_timeout_spec.rb
313
- - spec/rails3/app_root/spec/controller_spec.rb
314
- - spec/rails3/app_root/spec/spec_helper.orig.rb
315
- - spec/rails3/app_root/spec/spec_helper.rb
316
- - spec/rails3/app_root/spec/user_activation_spec.rb
317
- - spec/rails3/app_root/spec/user_activity_logging_spec.rb
318
- - spec/rails3/app_root/spec/user_brute_force_protection_spec.rb
319
- - spec/rails3/app_root/spec/user_oauth_spec.rb
320
- - spec/rails3/app_root/spec/user_remember_me_spec.rb
321
- - spec/rails3/app_root/spec/user_reset_password_spec.rb
322
- - spec/rails3/app_root/spec/user_spec.rb
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/app_root/app/controllers/application_controller.rb
390
- - spec/rails3/app_root/app/helpers/application_helper.rb
391
- - spec/rails3/app_root/app/mailers/sorcery_mailer.rb
392
- - spec/rails3/app_root/app/models/authentication.rb
393
- - spec/rails3/app_root/app/models/user.rb
394
- - spec/rails3/app_root/config/application.rb
395
- - spec/rails3/app_root/config/boot.rb
396
- - spec/rails3/app_root/config/environment.rb
397
- - spec/rails3/app_root/config/environments/development.rb
398
- - spec/rails3/app_root/config/environments/in_memory.rb
399
- - spec/rails3/app_root/config/environments/production.rb
400
- - spec/rails3/app_root/config/environments/test.rb
401
- - spec/rails3/app_root/config/initializers/backtrace_silencers.rb
402
- - spec/rails3/app_root/config/initializers/inflections.rb
403
- - spec/rails3/app_root/config/initializers/mime_types.rb
404
- - spec/rails3/app_root/config/initializers/secret_token.rb
405
- - spec/rails3/app_root/config/initializers/session_store.rb
406
- - spec/rails3/app_root/config/routes.rb
407
- - spec/rails3/app_root/db/migrate/activation/20101224223622_add_activation_to_users.rb
408
- - spec/rails3/app_root/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
409
- - spec/rails3/app_root/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
410
- - spec/rails3/app_root/db/migrate/core/20101224223620_create_users.rb
411
- - spec/rails3/app_root/db/migrate/external/20101224223628_create_authentications.rb
412
- - spec/rails3/app_root/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb
413
- - spec/rails3/app_root/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb
414
- - spec/rails3/app_root/db/schema.rb
415
- - spec/rails3/app_root/db/seeds.rb
416
- - spec/rails3/app_root/spec/controller_activity_logging_spec.rb
417
- - spec/rails3/app_root/spec/controller_brute_force_protection_spec.rb
418
- - spec/rails3/app_root/spec/controller_http_basic_auth_spec.rb
419
- - spec/rails3/app_root/spec/controller_oauth2_spec.rb
420
- - spec/rails3/app_root/spec/controller_oauth_spec.rb
421
- - spec/rails3/app_root/spec/controller_remember_me_spec.rb
422
- - spec/rails3/app_root/spec/controller_session_timeout_spec.rb
423
- - spec/rails3/app_root/spec/controller_spec.rb
424
- - spec/rails3/app_root/spec/spec_helper.orig.rb
425
- - spec/rails3/app_root/spec/spec_helper.rb
426
- - spec/rails3/app_root/spec/user_activation_spec.rb
427
- - spec/rails3/app_root/spec/user_activity_logging_spec.rb
428
- - spec/rails3/app_root/spec/user_brute_force_protection_spec.rb
429
- - spec/rails3/app_root/spec/user_oauth_spec.rb
430
- - spec/rails3/app_root/spec/user_remember_me_spec.rb
431
- - spec/rails3/app_root/spec/user_reset_password_spec.rb
432
- - spec/rails3/app_root/spec/user_spec.rb
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