sorcery 0.5.2 → 0.5.3
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/VERSION +1 -1
- data/lib/sorcery/controller.rb +5 -3
- data/lib/sorcery/controller/submodules/activity_logging.rb +10 -6
- data/lib/sorcery/controller/submodules/brute_force_protection.rb +6 -3
- data/lib/sorcery/controller/submodules/http_basic_auth.rb +10 -5
- data/lib/sorcery/controller/submodules/remember_me.rb +13 -4
- data/lib/sorcery/controller/submodules/session_timeout.rb +3 -1
- data/lib/sorcery/crypto_providers/aes256.rb +8 -5
- data/lib/sorcery/crypto_providers/bcrypt.rb +12 -6
- data/lib/sorcery/crypto_providers/sha256.rb +2 -1
- data/lib/sorcery/crypto_providers/sha512.rb +2 -1
- data/lib/sorcery/initializers/initializer.rb +125 -36
- data/lib/sorcery/model.rb +28 -15
- data/lib/sorcery/model/adapters/active_record.rb +2 -2
- data/lib/sorcery/model/adapters/mongoid.rb +2 -2
- data/lib/sorcery/model/submodules/activity_logging.rb +7 -6
- data/lib/sorcery/model/submodules/brute_force_protection.rb +10 -6
- data/lib/sorcery/model/submodules/external.rb +4 -2
- data/lib/sorcery/model/submodules/remember_me.rb +4 -3
- data/lib/sorcery/model/submodules/reset_password.rb +16 -8
- data/lib/sorcery/model/submodules/user_activation.rb +23 -10
- data/lib/sorcery/model/temporary_token.rb +3 -2
- data/lib/sorcery/test_helpers/internal.rb +2 -1
- data/lib/sorcery/test_helpers/internal/rails.rb +5 -1
- data/sorcery.gemspec +16 -2
- data/spec/Gemfile.lock +1 -1
- data/spec/rails3/Gemfile.lock +1 -1
- data/spec/rails3/spec/user_activation_spec.rb +2 -168
- data/spec/rails3/spec/user_activity_logging_spec.rb +2 -30
- data/spec/rails3/spec/user_brute_force_protection_spec.rb +2 -35
- data/spec/rails3/spec/user_oauth_spec.rb +2 -26
- data/spec/rails3/spec/user_remember_me_spec.rb +2 -45
- data/spec/rails3/spec/user_reset_password_spec.rb +3 -168
- data/spec/rails3/spec/user_spec.rb +3 -283
- data/spec/rails3_mongoid/Gemfile.lock +1 -1
- data/spec/rails3_mongoid/app/models/authentication.rb +3 -3
- data/spec/rails3_mongoid/spec/user_activation_spec.rb +2 -171
- data/spec/rails3_mongoid/spec/user_activity_logging_spec.rb +2 -25
- data/spec/rails3_mongoid/spec/user_brute_force_protection_spec.rb +2 -35
- data/spec/rails3_mongoid/spec/user_oauth_spec.rb +2 -28
- data/spec/rails3_mongoid/spec/user_remember_me_spec.rb +2 -45
- data/spec/rails3_mongoid/spec/user_reset_password_spec.rb +2 -176
- data/spec/rails3_mongoid/spec/user_spec.rb +3 -285
- data/spec/shared_examples/user_activation_shared_examples.rb +173 -0
- data/spec/shared_examples/user_activity_logging_shared_examples.rb +27 -0
- data/spec/shared_examples/user_brute_force_protection_shared_examples.rb +37 -0
- data/spec/shared_examples/user_oauth_shared_examples.rb +30 -0
- data/spec/shared_examples/user_remember_me_shared_examples.rb +47 -0
- data/spec/shared_examples/user_reset_password_shared_examples.rb +177 -0
- data/spec/shared_examples/user_shared_examples.rb +292 -0
- data/spec/sinatra/Gemfile.lock +1 -1
- data/spec/sinatra_modular/Gemfile.lock +1 -1
- metadata +16 -2
data/spec/sinatra/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: sorcery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.3
|
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-07-01 00:00:00 +03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -422,6 +422,13 @@ files:
|
|
422
422
|
- spec/rails3_mongoid/spec/user_reset_password_spec.rb
|
423
423
|
- spec/rails3_mongoid/spec/user_spec.rb
|
424
424
|
- spec/rails3_mongoid/vendor/plugins/.gitkeep
|
425
|
+
- spec/shared_examples/user_activation_shared_examples.rb
|
426
|
+
- spec/shared_examples/user_activity_logging_shared_examples.rb
|
427
|
+
- spec/shared_examples/user_brute_force_protection_shared_examples.rb
|
428
|
+
- spec/shared_examples/user_oauth_shared_examples.rb
|
429
|
+
- spec/shared_examples/user_remember_me_shared_examples.rb
|
430
|
+
- spec/shared_examples/user_reset_password_shared_examples.rb
|
431
|
+
- spec/shared_examples/user_shared_examples.rb
|
425
432
|
- spec/sinatra/Gemfile
|
426
433
|
- spec/sinatra/Gemfile.lock
|
427
434
|
- spec/sinatra/Rakefile
|
@@ -581,6 +588,13 @@ test_files:
|
|
581
588
|
- spec/rails3_mongoid/spec/user_remember_me_spec.rb
|
582
589
|
- spec/rails3_mongoid/spec/user_reset_password_spec.rb
|
583
590
|
- spec/rails3_mongoid/spec/user_spec.rb
|
591
|
+
- spec/shared_examples/user_activation_shared_examples.rb
|
592
|
+
- spec/shared_examples/user_activity_logging_shared_examples.rb
|
593
|
+
- spec/shared_examples/user_brute_force_protection_shared_examples.rb
|
594
|
+
- spec/shared_examples/user_oauth_shared_examples.rb
|
595
|
+
- spec/shared_examples/user_remember_me_shared_examples.rb
|
596
|
+
- spec/shared_examples/user_reset_password_shared_examples.rb
|
597
|
+
- spec/shared_examples/user_shared_examples.rb
|
584
598
|
- spec/sinatra/authentication.rb
|
585
599
|
- spec/sinatra/db/migrate/activation/20101224223622_add_activation_to_users.rb
|
586
600
|
- spec/sinatra/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb
|