sorcery 0.2.1 → 0.3.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/README.rdoc +89 -59
- data/VERSION +1 -1
- data/lib/generators/sorcery_migration/sorcery_migration_generator.rb +24 -0
- data/lib/generators/sorcery_migration/templates/activity_logging.rb +17 -0
- data/lib/generators/sorcery_migration/templates/brute_force_protection.rb +11 -0
- data/lib/generators/sorcery_migration/templates/core.rb +16 -0
- data/lib/generators/sorcery_migration/templates/oauth.rb +14 -0
- data/lib/generators/sorcery_migration/templates/remember_me.rb +15 -0
- data/lib/generators/sorcery_migration/templates/reset_password.rb +13 -0
- data/lib/generators/sorcery_migration/templates/user_activation.rb +17 -0
- data/lib/sorcery.rb +8 -0
- data/lib/sorcery/controller/adapters/sinatra.rb +97 -0
- data/lib/sorcery/controller/submodules/http_basic_auth.rb +10 -6
- data/lib/sorcery/controller/submodules/oauth.rb +6 -3
- data/lib/sorcery/controller/submodules/oauth/oauth1.rb +11 -4
- data/lib/sorcery/controller/submodules/oauth/oauth2.rb +1 -1
- data/lib/sorcery/model/submodules/activity_logging.rb +1 -1
- data/lib/sorcery/model/submodules/brute_force_protection.rb +0 -4
- data/lib/sorcery/sinatra.rb +14 -0
- data/lib/sorcery/test_helpers.rb +8 -52
- data/lib/sorcery/test_helpers/rails.rb +57 -0
- data/lib/sorcery/test_helpers/sinatra.rb +131 -0
- data/sorcery.gemspec +77 -3
- data/spec/Gemfile +1 -1
- data/spec/Gemfile.lock +2 -2
- data/spec/rails3/app_root/Gemfile +2 -4
- data/spec/rails3/app_root/Gemfile.lock +2 -5
- data/spec/rails3/app_root/spec/controller_oauth2_spec.rb +2 -0
- data/spec/rails3/app_root/spec/controller_oauth_spec.rb +6 -1
- data/spec/rails3/app_root/spec/controller_session_timeout_spec.rb +2 -2
- data/spec/rails3/app_root/spec/spec_helper.rb +1 -0
- data/spec/sinatra/Gemfile +12 -0
- data/spec/sinatra/Gemfile.lock +134 -0
- data/spec/sinatra/Rakefile +10 -0
- data/spec/sinatra/authentication.rb +3 -0
- data/spec/sinatra/db/migrate/activation/20101224223622_add_activation_to_users.rb +17 -0
- data/spec/sinatra/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb +17 -0
- data/spec/sinatra/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb +11 -0
- data/spec/sinatra/db/migrate/core/20101224223620_create_users.rb +16 -0
- data/spec/sinatra/db/migrate/oauth/20101224223628_create_authentications.rb +14 -0
- data/spec/sinatra/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb +15 -0
- data/spec/sinatra/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb +13 -0
- data/spec/sinatra/filters.rb +21 -0
- data/spec/sinatra/myapp.rb +133 -0
- data/spec/sinatra/sorcery_mailer.rb +25 -0
- data/spec/sinatra/spec/controller_activity_logging_spec.rb +85 -0
- data/spec/sinatra/spec/controller_brute_force_protection_spec.rb +69 -0
- data/spec/sinatra/spec/controller_http_basic_auth_spec.rb +53 -0
- data/spec/sinatra/spec/controller_oauth2_spec.rb +119 -0
- data/spec/sinatra/spec/controller_oauth_spec.rb +121 -0
- data/spec/sinatra/spec/controller_remember_me_spec.rb +64 -0
- data/spec/sinatra/spec/controller_session_timeout_spec.rb +52 -0
- data/spec/sinatra/spec/controller_spec.rb +120 -0
- data/spec/sinatra/spec/spec.opts +4 -0
- data/spec/sinatra/spec/spec_helper.rb +44 -0
- data/spec/sinatra/spec/user_activation_spec.rb +188 -0
- data/spec/sinatra/spec/user_activity_logging_spec.rb +36 -0
- data/spec/sinatra/spec/user_brute_force_protection_spec.rb +76 -0
- data/spec/sinatra/spec/user_oauth_spec.rb +39 -0
- data/spec/sinatra/spec/user_remember_me_spec.rb +66 -0
- data/spec/sinatra/spec/user_reset_password_spec.rb +178 -0
- data/spec/sinatra/spec/user_spec.rb +317 -0
- data/spec/sinatra/user.rb +6 -0
- data/spec/sinatra/views/test_login.erb +4 -0
- data/spec/untitled folder +18 -0
- metadata +76 -2
@@ -0,0 +1,18 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.root File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
+
SimpleCov.start
|
7
|
+
|
8
|
+
|
9
|
+
require 'rspec'
|
10
|
+
require 'sorcery'
|
11
|
+
|
12
|
+
# Requires supporting files with custom matchers and macros, etc,
|
13
|
+
# in ./support/ and its subdirectories.
|
14
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
15
|
+
|
16
|
+
RSpec.configure do |config|
|
17
|
+
|
18
|
+
end
|
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.3.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-
|
13
|
+
date: 2011-04-04 00:00:00 +03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -196,8 +196,17 @@ files:
|
|
196
196
|
- README.rdoc
|
197
197
|
- Rakefile
|
198
198
|
- VERSION
|
199
|
+
- lib/generators/sorcery_migration/sorcery_migration_generator.rb
|
200
|
+
- lib/generators/sorcery_migration/templates/activity_logging.rb
|
201
|
+
- lib/generators/sorcery_migration/templates/brute_force_protection.rb
|
202
|
+
- lib/generators/sorcery_migration/templates/core.rb
|
203
|
+
- lib/generators/sorcery_migration/templates/oauth.rb
|
204
|
+
- lib/generators/sorcery_migration/templates/remember_me.rb
|
205
|
+
- lib/generators/sorcery_migration/templates/reset_password.rb
|
206
|
+
- lib/generators/sorcery_migration/templates/user_activation.rb
|
199
207
|
- lib/sorcery.rb
|
200
208
|
- lib/sorcery/controller.rb
|
209
|
+
- lib/sorcery/controller/adapters/sinatra.rb
|
201
210
|
- lib/sorcery/controller/submodules/activity_logging.rb
|
202
211
|
- lib/sorcery/controller/submodules/brute_force_protection.rb
|
203
212
|
- lib/sorcery/controller/submodules/http_basic_auth.rb
|
@@ -223,7 +232,10 @@ files:
|
|
223
232
|
- lib/sorcery/model/submodules/reset_password.rb
|
224
233
|
- lib/sorcery/model/submodules/user_activation.rb
|
225
234
|
- lib/sorcery/model/temporary_token.rb
|
235
|
+
- lib/sorcery/sinatra.rb
|
226
236
|
- lib/sorcery/test_helpers.rb
|
237
|
+
- lib/sorcery/test_helpers/rails.rb
|
238
|
+
- lib/sorcery/test_helpers/sinatra.rb
|
227
239
|
- sorcery.gemspec
|
228
240
|
- spec/Gemfile
|
229
241
|
- spec/Gemfile.lock
|
@@ -307,8 +319,42 @@ files:
|
|
307
319
|
- spec/rails3/app_root/spec/user_reset_password_spec.rb
|
308
320
|
- spec/rails3/app_root/spec/user_spec.rb
|
309
321
|
- spec/rails3/app_root/vendor/plugins/.gitkeep
|
322
|
+
- spec/sinatra/Gemfile
|
323
|
+
- spec/sinatra/Gemfile.lock
|
324
|
+
- spec/sinatra/Rakefile
|
325
|
+
- spec/sinatra/authentication.rb
|
326
|
+
- spec/sinatra/db/migrate/activation/20101224223622_add_activation_to_users.rb
|
327
|
+
- spec/sinatra/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
|
328
|
+
- spec/sinatra/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
|
329
|
+
- spec/sinatra/db/migrate/core/20101224223620_create_users.rb
|
330
|
+
- spec/sinatra/db/migrate/oauth/20101224223628_create_authentications.rb
|
331
|
+
- spec/sinatra/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb
|
332
|
+
- spec/sinatra/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb
|
333
|
+
- spec/sinatra/filters.rb
|
334
|
+
- spec/sinatra/myapp.rb
|
335
|
+
- spec/sinatra/sorcery_mailer.rb
|
336
|
+
- spec/sinatra/spec/controller_activity_logging_spec.rb
|
337
|
+
- spec/sinatra/spec/controller_brute_force_protection_spec.rb
|
338
|
+
- spec/sinatra/spec/controller_http_basic_auth_spec.rb
|
339
|
+
- spec/sinatra/spec/controller_oauth2_spec.rb
|
340
|
+
- spec/sinatra/spec/controller_oauth_spec.rb
|
341
|
+
- spec/sinatra/spec/controller_remember_me_spec.rb
|
342
|
+
- spec/sinatra/spec/controller_session_timeout_spec.rb
|
343
|
+
- spec/sinatra/spec/controller_spec.rb
|
344
|
+
- spec/sinatra/spec/spec.opts
|
345
|
+
- spec/sinatra/spec/spec_helper.rb
|
346
|
+
- spec/sinatra/spec/user_activation_spec.rb
|
347
|
+
- spec/sinatra/spec/user_activity_logging_spec.rb
|
348
|
+
- spec/sinatra/spec/user_brute_force_protection_spec.rb
|
349
|
+
- spec/sinatra/spec/user_oauth_spec.rb
|
350
|
+
- spec/sinatra/spec/user_remember_me_spec.rb
|
351
|
+
- spec/sinatra/spec/user_reset_password_spec.rb
|
352
|
+
- spec/sinatra/spec/user_spec.rb
|
353
|
+
- spec/sinatra/user.rb
|
354
|
+
- spec/sinatra/views/test_login.erb
|
310
355
|
- spec/sorcery_crypto_providers_spec.rb
|
311
356
|
- spec/spec_helper.rb
|
357
|
+
- spec/untitled folder
|
312
358
|
has_rdoc: true
|
313
359
|
homepage: http://github.com/NoamB/sorcery
|
314
360
|
licenses:
|
@@ -382,5 +428,33 @@ test_files:
|
|
382
428
|
- spec/rails3/app_root/spec/user_remember_me_spec.rb
|
383
429
|
- spec/rails3/app_root/spec/user_reset_password_spec.rb
|
384
430
|
- spec/rails3/app_root/spec/user_spec.rb
|
431
|
+
- spec/sinatra/authentication.rb
|
432
|
+
- spec/sinatra/db/migrate/activation/20101224223622_add_activation_to_users.rb
|
433
|
+
- spec/sinatra/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
|
434
|
+
- spec/sinatra/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
|
435
|
+
- spec/sinatra/db/migrate/core/20101224223620_create_users.rb
|
436
|
+
- spec/sinatra/db/migrate/oauth/20101224223628_create_authentications.rb
|
437
|
+
- spec/sinatra/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb
|
438
|
+
- spec/sinatra/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb
|
439
|
+
- spec/sinatra/filters.rb
|
440
|
+
- spec/sinatra/myapp.rb
|
441
|
+
- spec/sinatra/sorcery_mailer.rb
|
442
|
+
- spec/sinatra/spec/controller_activity_logging_spec.rb
|
443
|
+
- spec/sinatra/spec/controller_brute_force_protection_spec.rb
|
444
|
+
- spec/sinatra/spec/controller_http_basic_auth_spec.rb
|
445
|
+
- spec/sinatra/spec/controller_oauth2_spec.rb
|
446
|
+
- spec/sinatra/spec/controller_oauth_spec.rb
|
447
|
+
- spec/sinatra/spec/controller_remember_me_spec.rb
|
448
|
+
- spec/sinatra/spec/controller_session_timeout_spec.rb
|
449
|
+
- spec/sinatra/spec/controller_spec.rb
|
450
|
+
- spec/sinatra/spec/spec_helper.rb
|
451
|
+
- spec/sinatra/spec/user_activation_spec.rb
|
452
|
+
- spec/sinatra/spec/user_activity_logging_spec.rb
|
453
|
+
- spec/sinatra/spec/user_brute_force_protection_spec.rb
|
454
|
+
- spec/sinatra/spec/user_oauth_spec.rb
|
455
|
+
- spec/sinatra/spec/user_remember_me_spec.rb
|
456
|
+
- spec/sinatra/spec/user_reset_password_spec.rb
|
457
|
+
- spec/sinatra/spec/user_spec.rb
|
458
|
+
- spec/sinatra/user.rb
|
385
459
|
- spec/sorcery_crypto_providers_spec.rb
|
386
460
|
- spec/spec_helper.rb
|