sparkly-auth 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +25 -0
- data/HISTORY.txt +7 -0
- data/README.rdoc +127 -1
- data/Rakefile +45 -13
- data/TODO +4 -0
- data/VERSION +1 -1
- data/app/controllers/sparkly_accounts_controller.rb +20 -13
- data/app/controllers/sparkly_controller.rb +5 -4
- data/app/controllers/sparkly_sessions_controller.rb +16 -9
- data/app/helpers/sparkly_accounts_helper.rb +2 -0
- data/app/helpers/sparkly_helper.rb +2 -0
- data/app/helpers/sparkly_sessions_helper.rb +2 -0
- data/app/models/remembrance_token.rb +3 -1
- data/app/views/sparkly_accounts/_rails2_form.html.erb +24 -0
- data/app/views/sparkly_accounts/_rails3_form.html.erb +26 -0
- data/app/views/sparkly_accounts/edit.html.erb +5 -23
- data/app/views/sparkly_accounts/new.html.erb +4 -23
- data/app/views/sparkly_sessions/_rails2_form.html.erb +22 -0
- data/app/views/sparkly_sessions/_rails3_form.html.erb +22 -0
- data/app/views/sparkly_sessions/new.html.erb +4 -21
- data/features/create_sparkly_account.feature +12 -0
- data/features/delete_sparkly_account.feature +12 -0
- data/features/edit_sparkly_account.feature +54 -0
- data/features/lock_abused_sparkly_account.feature +7 -0
- data/features/login_sparkly_session.feature +43 -0
- data/features/logout_sparkly_session.feature +16 -0
- data/features/setup/sparkly.rb +4 -0
- data/features/show_sparkly_account.feature +13 -0
- data/features/sparkly_session_timeout.feature +6 -0
- data/features/step_definitions/account/account_steps.rb +16 -0
- data/features/step_definitions/account/brief_steps.rb +9 -0
- data/features/step_definitions/debug_steps.rb +3 -0
- data/features/step_definitions/email_steps.rb +182 -0
- data/features/step_definitions/session/brief_steps.rb +0 -0
- data/features/step_definitions/session/logged_in_steps.rb +42 -0
- data/features/step_definitions/session/login_steps.rb +37 -0
- data/features/step_definitions/session/logout_steps.rb +5 -0
- data/features/step_definitions/session_steps.rb +16 -0
- data/features/step_definitions/sparkly_auth_steps.rb +0 -0
- data/features/step_definitions/web_steps.rb +287 -0
- data/features/support/env.rb +10 -0
- data/features/support/paths.rb +35 -0
- data/features/support/sparkly_helpers.rb +42 -0
- data/generators/sparkly/rails2.rb +79 -0
- data/generators/sparkly/rails3.rb +89 -0
- data/generators/sparkly/sparkly_generator.rb +4 -75
- data/generators/sparkly/templates/accounts_controller.rb +14 -13
- data/generators/sparkly/templates/accounts_helper.rb +1 -1
- data/generators/sparkly/templates/sessions_controller.rb +26 -12
- data/generators/sparkly/templates/sessions_helper.rb +1 -1
- data/generators/sparkly/templates/views/sparkly_accounts/_rails2_form.html.erb +24 -0
- data/generators/sparkly/templates/views/sparkly_accounts/_rails3_form.html.erb +26 -0
- data/generators/sparkly/templates/views/sparkly_accounts/edit.html.erb +5 -23
- data/generators/sparkly/templates/views/sparkly_accounts/new.html.erb +4 -23
- data/generators/sparkly/templates/views/sparkly_sessions/_rails2_form.html.erb +22 -0
- data/generators/sparkly/templates/views/sparkly_sessions/_rails3_form.html.erb +22 -0
- data/generators/sparkly/templates/views/sparkly_sessions/new.html.erb +4 -21
- data/lib/auth.rb +22 -1
- data/lib/auth/behavior/base.rb +25 -18
- data/lib/auth/behavior/base/configuration.rb +37 -0
- data/lib/auth/behavior/core.rb +22 -14
- data/lib/auth/behavior/core/authenticated_model_methods.rb +9 -1
- data/lib/auth/behavior/core/controller_extensions.rb +2 -2
- data/lib/auth/behavior/core/controller_extensions/class_methods.rb +1 -1
- data/lib/auth/behavior/core/password_methods.rb +5 -5
- data/lib/auth/behavior/remember_me.rb +7 -3
- data/lib/auth/behavior/remember_me/configuration.rb +8 -11
- data/lib/auth/behavior/remember_me/controller_extensions.rb +1 -1
- data/lib/auth/behavior_lookup.rb +4 -4
- data/lib/auth/builtin_behaviors.rb +3 -0
- data/lib/auth/configuration.rb +71 -25
- data/lib/auth/configuration/keys.rb +50 -0
- data/lib/auth/engine.rb +33 -0
- data/lib/auth/generators/views_generator.rb +13 -4
- data/lib/auth/model.rb +52 -22
- data/{init.rb → rails/hacks/rails2.rb} +1 -14
- data/rails/hacks/rails3.rb +22 -0
- data/rails/init.rb +7 -17
- data/rails/init_rails2.rb +39 -0
- data/rails/init_rails3.rb +2 -0
- data/rails/routes_rails3.rb +37 -0
- data/rake3 +1 -0
- data/rerun.txt +1 -0
- data/run_all_tests +1 -0
- data/sparkly-auth.gemspec +481 -23
- data/spec/behaviors/core/controller_extensions_spec.rb +49 -0
- data/spec/{lib/auth/behavior → behaviors}/core_spec.rb +29 -12
- data/spec/behaviors/remember_me/configuration_spec.rb +16 -0
- data/spec/behaviors/remember_me_spec.rb +167 -0
- data/spec/generators/sanity_checks_spec.rb +58 -0
- data/spec/lib/auth/configuration_spec.rb +61 -0
- data/spec/lib/auth/model_spec.rb +6 -9
- data/spec/lib/auth_spec.rb +2 -2
- data/spec/lib/hacks/rename_attributes_spec.rb +49 -0
- data/spec/routes_spec.rb +8 -2
- data/spec/spec2_helper.rb +52 -0
- data/spec/spec3_helper.rb +72 -0
- data/spec/spec_helper.rb +109 -49
- data/spec_env/rails2/README.1ST +23 -0
- data/spec_env/rails2/Rakefile +10 -0
- data/spec_env/rails2/app/controllers/application_controller.rb +13 -0
- data/spec_env/rails2/app/helpers/application_helper.rb +3 -0
- data/spec_env/rails2/app/models/user.rb +2 -0
- data/spec_env/rails2/app/views/application/not_found.html.erb +9 -0
- data/spec_env/rails2/app/views/layouts/application.html.erb +9 -0
- data/spec_env/rails2/config/boot.rb +110 -0
- data/spec_env/rails2/config/cucumber.yml +7 -0
- data/spec_env/rails2/config/database.yml +25 -0
- data/spec_env/rails2/config/environment.rb +46 -0
- data/spec_env/rails2/config/environments/cucumber.rb +35 -0
- data/spec_env/rails2/config/environments/development.rb +17 -0
- data/spec_env/rails2/config/environments/production.rb +28 -0
- data/spec_env/rails2/config/environments/test.rb +31 -0
- data/spec_env/rails2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec_env/rails2/config/initializers/inflections.rb +10 -0
- data/spec_env/rails2/config/initializers/mime_types.rb +5 -0
- data/spec_env/rails2/config/initializers/new_rails_defaults.rb +21 -0
- data/spec_env/rails2/config/initializers/session_store.rb +15 -0
- data/spec_env/rails2/config/initializers/sparkly_authentication.rb +30 -0
- data/spec_env/rails2/config/locales/en.yml +5 -0
- data/spec_env/rails2/config/routes.rb +46 -0
- data/spec_env/rails2/db/development.sqlite3 +0 -0
- data/spec_env/rails2/db/migrate/001_create_sparkly_passwords.rb +19 -0
- data/spec_env/rails2/db/migrate/002_create_sparkly_remembered_tokens.rb +15 -0
- data/spec_env/rails2/db/migrate/003_add_confirmed_to_sparkly_passwords.rb +9 -0
- data/spec_env/rails2/db/migrate/20100607103543_create_users.rb +12 -0
- data/spec_env/rails2/db/migrate/20100609152058_add_email_to_users.rb +9 -0
- data/spec_env/rails2/db/schema.rb +42 -0
- data/spec_env/rails2/db/seeds.rb +7 -0
- data/spec_env/rails2/db/test.sqlite3 +0 -0
- data/spec_env/rails2/doc/README_FOR_APP +2 -0
- data/spec_env/rails2/doc/sparkly_authentication.txt +56 -0
- data/spec_env/rails2/features/support/env.rb +58 -0
- data/spec_env/rails2/lib/tasks/cucumber.rake +47 -0
- data/spec_env/rails2/lib/tasks/rspec.rake +144 -0
- data/spec_env/rails2/lib/tasks/sparkly_migration.rb +1 -0
- data/spec_env/rails2/log/cucumber.log +8412 -0
- data/spec_env/rails2/log/development.log +317 -0
- data/spec_env/rails2/log/test.log +32053 -0
- data/spec_env/rails2/public/404.html +30 -0
- data/spec_env/rails2/public/422.html +30 -0
- data/spec_env/rails2/public/500.html +30 -0
- data/spec_env/rails2/public/favicon.ico +0 -0
- data/spec_env/rails2/public/images/rails.png +0 -0
- data/spec_env/rails2/public/javascripts/application.js +2 -0
- data/spec_env/rails2/public/javascripts/controls.js +963 -0
- data/spec_env/rails2/public/javascripts/dragdrop.js +973 -0
- data/spec_env/rails2/public/javascripts/effects.js +1128 -0
- data/spec_env/rails2/public/javascripts/prototype.js +4320 -0
- data/spec_env/rails2/public/robots.txt +5 -0
- data/spec_env/rails2/rerun.txt +1 -0
- data/spec_env/rails2/script/about +4 -0
- data/spec_env/rails2/script/autospec +6 -0
- data/spec_env/rails2/script/console +3 -0
- data/spec_env/rails2/script/cucumber +10 -0
- data/spec_env/rails2/script/dbconsole +3 -0
- data/spec_env/rails2/script/destroy +3 -0
- data/spec_env/rails2/script/generate +3 -0
- data/spec_env/rails2/script/performance/benchmarker +3 -0
- data/spec_env/rails2/script/performance/profiler +3 -0
- data/spec_env/rails2/script/plugin +3 -0
- data/spec_env/rails2/script/runner +3 -0
- data/spec_env/rails2/script/server +3 -0
- data/spec_env/rails2/script/spec +10 -0
- data/spec_env/rails2/spec/controllers/sparkly_user_sessions_controller_spec.rb +10 -0
- data/spec_env/rails2/spec/rcov.opts +2 -0
- data/spec_env/rails2/spec/spec.opts +4 -0
- data/spec_env/rails2/spec/spec_helper.rb +54 -0
- data/spec_env/rails2/test/fixtures/users.yml +7 -0
- data/spec_env/rails2/test/performance/browsing_test.rb +9 -0
- data/spec_env/rails2/test/test_helper.rb +38 -0
- data/spec_env/rails2/test/unit/user_test.rb +8 -0
- data/spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/.specification +63 -0
- data/spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/generators/sparkly/sparkly_generator.rb +1 -0
- data/spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/lib/sparkly-auth-bootstrap.rb +6 -0
- data/spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/rails/init.rb +1 -0
- data/spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/sparkly-auth-bootstrap.gemspec +55 -0
- data/spec_env/rails3/.gitignore +4 -0
- data/spec_env/rails3/Gemfile +43 -0
- data/spec_env/rails3/Gemfile.lock +124 -0
- data/spec_env/rails3/README +256 -0
- data/spec_env/rails3/Rakefile +7 -0
- data/spec_env/rails3/app/controllers/application_controller.rb +6 -0
- data/spec_env/rails3/app/helpers/application_helper.rb +2 -0
- data/spec_env/rails3/app/models/user.rb +3 -0
- data/spec_env/rails3/app/views/application/not_found.html.erb +9 -0
- data/spec_env/rails3/app/views/layouts/application.html.erb +22 -0
- data/spec_env/rails3/config.ru +4 -0
- data/spec_env/rails3/config/application.rb +47 -0
- data/spec_env/rails3/config/boot.rb +13 -0
- data/spec_env/rails3/config/cucumber.yml +8 -0
- data/spec_env/rails3/config/database.yml +28 -0
- data/spec_env/rails3/config/environment.rb +5 -0
- data/spec_env/rails3/config/environments/development.rb +22 -0
- data/spec_env/rails3/config/environments/production.rb +49 -0
- data/spec_env/rails3/config/environments/spec.rb +35 -0
- data/spec_env/rails3/config/environments/test.rb +43 -0
- data/spec_env/rails3/config/initializers/backtrace_silencers.rb +7 -0
- data/spec_env/rails3/config/initializers/inflections.rb +10 -0
- data/spec_env/rails3/config/initializers/mime_types.rb +5 -0
- data/spec_env/rails3/config/initializers/secret_token.rb +7 -0
- data/spec_env/rails3/config/initializers/session_store.rb +8 -0
- data/spec_env/rails3/config/initializers/sparkly_authentication.rb +30 -0
- data/spec_env/rails3/config/locales/en.yml +5 -0
- data/spec_env/rails3/config/routes.rb +61 -0
- data/spec_env/rails3/db/migrate/001_create_sparkly_passwords.rb +19 -0
- data/spec_env/rails3/db/migrate/002_create_sparkly_remembered_tokens.rb +15 -0
- data/spec_env/rails3/db/migrate/20100810132843_create_users.rb +13 -0
- data/spec_env/rails3/db/schema.rb +42 -0
- data/spec_env/rails3/db/seeds.rb +7 -0
- data/spec_env/rails3/doc/README_FOR_APP +2 -0
- data/spec_env/rails3/doc/sparkly_authentication.txt +56 -0
- data/spec_env/rails3/features/support/env.rb +62 -0
- data/spec_env/rails3/lib/sparkly/bootstrap.rb +1 -0
- data/spec_env/rails3/lib/tasks/.gitkeep +0 -0
- data/spec_env/rails3/lib/tasks/cucumber.rake +53 -0
- data/spec_env/rails3/lib/tasks/sparkly_migration.rb +1 -0
- data/spec_env/rails3/public/404.html +26 -0
- data/spec_env/rails3/public/422.html +26 -0
- data/spec_env/rails3/public/500.html +26 -0
- data/spec_env/rails3/public/favicon.ico +0 -0
- data/spec_env/rails3/public/images/rails.png +0 -0
- data/spec_env/rails3/public/javascripts/application.js +2 -0
- data/spec_env/rails3/public/javascripts/controls.js +965 -0
- data/spec_env/rails3/public/javascripts/dragdrop.js +974 -0
- data/spec_env/rails3/public/javascripts/effects.js +1123 -0
- data/spec_env/rails3/public/javascripts/prototype.js +6001 -0
- data/spec_env/rails3/public/javascripts/rails.js +175 -0
- data/spec_env/rails3/public/robots.txt +5 -0
- data/spec_env/rails3/public/stylesheets/.gitkeep +0 -0
- data/spec_env/rails3/script/cucumber +10 -0
- data/spec_env/rails3/script/rails +6 -0
- data/spec_env/rails3/test/fixtures/users.yml +7 -0
- data/spec_env/rails3/test/performance/browsing_test.rb +9 -0
- data/spec_env/rails3/test/test_helper.rb +13 -0
- data/spec_env/rails3/test/unit/user_test.rb +8 -0
- data/spec_env/rails3/vendor/plugins/.gitkeep +0 -0
- data/spec_env/rails3/webrat.log +5 -0
- metadata +393 -15
- data/dependencies.rb +0 -1
- data/spec/lib/auth/behavior/remember_me_spec.rb +0 -127
- data/spec/lib/auth/extensions/controller_spec.rb +0 -32
@@ -1,16 +1,3 @@
|
|
1
|
-
require File.expand_path("../dependencies", __FILE__)
|
2
|
-
require File.expand_path("../lib/auth", __FILE__)
|
3
|
-
|
4
|
-
$LOAD_PATH << Auth.path
|
5
|
-
ActiveSupport::Dependencies.load_paths << Auth.path
|
6
|
-
ActiveSupport::Dependencies.load_once_paths << Auth.path
|
7
|
-
#ActiveSupport::Dependencies.load_once_paths.delete(Auth.path)
|
8
|
-
|
9
|
-
# Kick auth after initialize and do it again before every request in development
|
10
|
-
Rails.configuration.to_prepare do
|
11
|
-
Auth.kick!
|
12
|
-
end
|
13
|
-
|
14
1
|
# FIXME HACK extension to ActiveRecord::Errors to allow error attributes to be renamed. This is
|
15
2
|
# because otherwise we'll end up producing very confusing error messages complaining about :secret,
|
16
3
|
# :encrypted_secret, and so forth when all the user really cares about is :password.
|
@@ -41,4 +28,4 @@ class ActiveRecord::Error
|
|
41
28
|
def ==(other)
|
42
29
|
other.kind_of?(ActiveRecord::Error) && attribute.to_s == other.attribute.to_s && message == other.message
|
43
30
|
end
|
44
|
-
end
|
31
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Extension to ActiveRecord::Errors to allow error attributes to be renamed. This is
|
2
|
+
# because otherwise we'll end up producing very confusing error messages complaining about :secret,
|
3
|
+
# :encrypted_secret, and so forth when all the user really cares about is :password.
|
4
|
+
#
|
5
|
+
# This is mainly for backward compatibility to Rails 2.3, where we had to hack such things into AR.
|
6
|
+
class ActiveModel::Errors
|
7
|
+
def rename_attribute(original_name, new_name)
|
8
|
+
# Rails2 used strings so the app at large may be using strings. We use Symbols in Rails 3 though, apparently.
|
9
|
+
original_name.kind_of?(String) && original_name = original_name.to_sym
|
10
|
+
new_name.kind_of?(String) && new_name = new_name.to_sym
|
11
|
+
|
12
|
+
if key?(original_name)
|
13
|
+
new_value = delete(original_name)
|
14
|
+
self[new_name].concat new_value.flatten
|
15
|
+
end
|
16
|
+
|
17
|
+
# avoid doubles
|
18
|
+
self[new_name].uniq!
|
19
|
+
|
20
|
+
self
|
21
|
+
end
|
22
|
+
end
|
data/rails/init.rb
CHANGED
@@ -1,17 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
Rails.configuration.load_paths << File.join(base_path, 'app/models')
|
9
|
-
|
10
|
-
ActionController::Base.view_paths << File.join(base_path, 'app/views')
|
11
|
-
|
12
|
-
# Routes
|
13
|
-
ActionController::Routing::Routes.add_configuration_file(File.join(base_path, "rails/routes.rb"))
|
14
|
-
|
15
|
-
|
16
|
-
# Finally, we're ready to load the app as if it were a plugin.
|
17
|
-
require File.expand_path("../../init", __FILE__)
|
1
|
+
if Rails::VERSION::STRING < "2.3.5"
|
2
|
+
raise "Sparkly auth requires Rails version 2.3.5 or higher"
|
3
|
+
elsif Rails::VERSION::MAJOR == 2
|
4
|
+
require File.join(File.dirname(__FILE__), "init_rails2")
|
5
|
+
elsif Rails::VERSION::MAJOR >= 3
|
6
|
+
require File.join(File.dirname(__FILE__), "init_rails3")
|
7
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# This file sets up the various include paths and whatnot that would have been set up
|
2
|
+
# for us by Rails if this were a Rails plugin.
|
3
|
+
|
4
|
+
base_path = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
5
|
+
def add_to_load_path(path, load_once = false)
|
6
|
+
$LOAD_PATH << path
|
7
|
+
ActiveSupport::Dependencies.load_paths << path
|
8
|
+
if load_once
|
9
|
+
ActiveSupport::Dependencies.load_once_paths << path
|
10
|
+
else
|
11
|
+
ActiveSupport::Dependencies.load_once_paths.delete path
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
add_to_load_path File.join(base_path, 'app/controllers'), false
|
16
|
+
add_to_load_path File.join(base_path, 'app/models'), false
|
17
|
+
add_to_load_path Auth.path, true
|
18
|
+
|
19
|
+
ActionController::Base.view_paths << File.join(base_path, 'app/views')
|
20
|
+
|
21
|
+
# Routes
|
22
|
+
ActionController::Routing::Routes.add_configuration_file(File.join(base_path, "rails/routes.rb"))
|
23
|
+
|
24
|
+
Rails.configuration.gem "sc-core-ext", :version => ">= 1.2.1"
|
25
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "../lib/auth"))
|
26
|
+
|
27
|
+
|
28
|
+
undef add_to_load_path
|
29
|
+
|
30
|
+
# Register the built-in behaviors before the auth config initializer has run. In Rails3 this is in a before_initialize
|
31
|
+
# block.
|
32
|
+
require_dependency File.join(File.dirname(__FILE__), "../lib/auth/builtin_behaviors")
|
33
|
+
|
34
|
+
# Kick auth after initialize and do it again before every request in development
|
35
|
+
Rails.configuration.to_prepare do
|
36
|
+
Auth.kick! unless Auth.defer_kickstart?
|
37
|
+
end
|
38
|
+
|
39
|
+
require File.join(File.dirname(__FILE__), "hacks/rails2")
|
@@ -0,0 +1,37 @@
|
|
1
|
+
if Auth.generate_routes?
|
2
|
+
Rails.application.routes.draw do
|
3
|
+
Auth.configuration.authenticated_models.each do |model|
|
4
|
+
catch :missing do
|
5
|
+
begin
|
6
|
+
model.name # if an error is going to occur due to missing model, it'll happen here.
|
7
|
+
rescue NameError
|
8
|
+
# we rescue silently because the user's already been warned (during startup).
|
9
|
+
throw :missing
|
10
|
+
end
|
11
|
+
|
12
|
+
resource model.name.underscore, :model => model.name,
|
13
|
+
:controller => model.accounts_controller do
|
14
|
+
resource :session, :controller => model.sessions_controller, :model => model.name
|
15
|
+
match '/login', :to => "#{model.sessions_controller}#new", :as => "login"
|
16
|
+
match '/logout', :to => "#{model.sessions_controller}#destroy", :as => "logout"
|
17
|
+
end
|
18
|
+
# map.resource model.name.underscore,
|
19
|
+
# :controller => model.accounts_controller,
|
20
|
+
# :requirements => { :model => model.name } do |model_res|
|
21
|
+
# model_res.resource :session, :controller => model.sessions_controller, :requirements => { :model => model.name }
|
22
|
+
|
23
|
+
# map some shorthand routes
|
24
|
+
# model_res.login "login",
|
25
|
+
# :controller => model.sessions_controller,
|
26
|
+
# :action => 'new',
|
27
|
+
# :requirements => { :model => model.name }
|
28
|
+
|
29
|
+
# model_res.logout "logout",
|
30
|
+
# :controller => model.sessions_controller,
|
31
|
+
# :action => 'destroy',
|
32
|
+
# :requirements => { :model => model.name }
|
33
|
+
# end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/rake3
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
cd spec_env/rails3 && rake $*; cd ../..
|
data/rerun.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
data/run_all_tests
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
cd vendor/gems/sparkly-auth-0 && spec spec -c $* && cd ../../.. && spec spec -c $* && cucumber $*
|
data/sparkly-auth.gemspec
CHANGED
@@ -5,33 +5,69 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sparkly-auth}
|
8
|
-
s.version = "1.0
|
8
|
+
s.version = "1.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Colin MacKenzie IV"]
|
12
|
-
s.date = %q{2010-08-
|
13
|
-
s.description = %q{As fate would have it, I found other authentication solutions unable to suit my needs. So I rolled my own.}
|
12
|
+
s.date = %q{2010-08-13}
|
13
|
+
s.description = %q{As fate would have it, I found other authentication solutions unable to suit my needs. So I rolled my own, totally supporting Rails 2 AND 3.}
|
14
14
|
s.email = %q{sinisterchipmunk@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
|
-
"
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc",
|
18
|
+
"TODO"
|
17
19
|
]
|
18
20
|
s.files = [
|
19
|
-
"
|
21
|
+
".document",
|
22
|
+
".gitignore",
|
23
|
+
"HISTORY.txt",
|
20
24
|
"LICENSE",
|
21
25
|
"README.rdoc",
|
22
26
|
"Rakefile",
|
27
|
+
"TODO",
|
23
28
|
"VERSION",
|
24
29
|
"app/controllers/sparkly_accounts_controller.rb",
|
25
30
|
"app/controllers/sparkly_controller.rb",
|
26
31
|
"app/controllers/sparkly_sessions_controller.rb",
|
32
|
+
"app/helpers/sparkly_accounts_helper.rb",
|
33
|
+
"app/helpers/sparkly_helper.rb",
|
34
|
+
"app/helpers/sparkly_sessions_helper.rb",
|
27
35
|
"app/models/password.rb",
|
28
36
|
"app/models/remembrance_token.rb",
|
37
|
+
"app/views/sparkly_accounts/_rails2_form.html.erb",
|
38
|
+
"app/views/sparkly_accounts/_rails3_form.html.erb",
|
29
39
|
"app/views/sparkly_accounts/edit.html.erb",
|
30
40
|
"app/views/sparkly_accounts/new.html.erb",
|
31
41
|
"app/views/sparkly_accounts/show.html.erb",
|
42
|
+
"app/views/sparkly_sessions/_rails2_form.html.erb",
|
43
|
+
"app/views/sparkly_sessions/_rails3_form.html.erb",
|
32
44
|
"app/views/sparkly_sessions/new.html.erb",
|
33
|
-
"
|
45
|
+
"features/create_sparkly_account.feature",
|
46
|
+
"features/delete_sparkly_account.feature",
|
47
|
+
"features/edit_sparkly_account.feature",
|
48
|
+
"features/lock_abused_sparkly_account.feature",
|
49
|
+
"features/login_sparkly_session.feature",
|
50
|
+
"features/logout_sparkly_session.feature",
|
51
|
+
"features/setup/sparkly.rb",
|
52
|
+
"features/show_sparkly_account.feature",
|
53
|
+
"features/sparkly_session_timeout.feature",
|
54
|
+
"features/step_definitions/account/account_steps.rb",
|
55
|
+
"features/step_definitions/account/brief_steps.rb",
|
56
|
+
"features/step_definitions/debug_steps.rb",
|
57
|
+
"features/step_definitions/email_steps.rb",
|
58
|
+
"features/step_definitions/session/brief_steps.rb",
|
59
|
+
"features/step_definitions/session/logged_in_steps.rb",
|
60
|
+
"features/step_definitions/session/login_steps.rb",
|
61
|
+
"features/step_definitions/session/logout_steps.rb",
|
62
|
+
"features/step_definitions/session_steps.rb",
|
63
|
+
"features/step_definitions/sparkly_auth_steps.rb",
|
64
|
+
"features/step_definitions/web_steps.rb",
|
65
|
+
"features/support/env.rb",
|
66
|
+
"features/support/paths.rb",
|
67
|
+
"features/support/sparkly_helpers.rb",
|
34
68
|
"generators/sparkly/USAGE",
|
69
|
+
"generators/sparkly/rails2.rb",
|
70
|
+
"generators/sparkly/rails3.rb",
|
35
71
|
"generators/sparkly/sparkly_generator.rb",
|
36
72
|
"generators/sparkly/templates/accounts_controller.rb",
|
37
73
|
"generators/sparkly/templates/accounts_helper.rb",
|
@@ -43,13 +79,17 @@ Gem::Specification.new do |s|
|
|
43
79
|
"generators/sparkly/templates/sessions_controller.rb",
|
44
80
|
"generators/sparkly/templates/sessions_helper.rb",
|
45
81
|
"generators/sparkly/templates/tasks/migrations.rb",
|
82
|
+
"generators/sparkly/templates/views/sparkly_accounts/_rails2_form.html.erb",
|
83
|
+
"generators/sparkly/templates/views/sparkly_accounts/_rails3_form.html.erb",
|
46
84
|
"generators/sparkly/templates/views/sparkly_accounts/edit.html.erb",
|
47
85
|
"generators/sparkly/templates/views/sparkly_accounts/new.html.erb",
|
48
86
|
"generators/sparkly/templates/views/sparkly_accounts/show.html.erb",
|
87
|
+
"generators/sparkly/templates/views/sparkly_sessions/_rails2_form.html.erb",
|
88
|
+
"generators/sparkly/templates/views/sparkly_sessions/_rails3_form.html.erb",
|
49
89
|
"generators/sparkly/templates/views/sparkly_sessions/new.html.erb",
|
50
|
-
"init.rb",
|
51
90
|
"lib/auth.rb",
|
52
91
|
"lib/auth/behavior/base.rb",
|
92
|
+
"lib/auth/behavior/base/configuration.rb",
|
53
93
|
"lib/auth/behavior/core.rb",
|
54
94
|
"lib/auth/behavior/core/authenticated_model_methods.rb",
|
55
95
|
"lib/auth/behavior/core/controller_extensions.rb",
|
@@ -60,8 +100,11 @@ Gem::Specification.new do |s|
|
|
60
100
|
"lib/auth/behavior/remember_me/configuration.rb",
|
61
101
|
"lib/auth/behavior/remember_me/controller_extensions.rb",
|
62
102
|
"lib/auth/behavior_lookup.rb",
|
103
|
+
"lib/auth/builtin_behaviors.rb",
|
63
104
|
"lib/auth/configuration.rb",
|
105
|
+
"lib/auth/configuration/keys.rb",
|
64
106
|
"lib/auth/encryptors/sha512.rb",
|
107
|
+
"lib/auth/engine.rb",
|
65
108
|
"lib/auth/generators/configuration_generator.rb",
|
66
109
|
"lib/auth/generators/controllers_generator.rb",
|
67
110
|
"lib/auth/generators/migration_generator.rb",
|
@@ -73,67 +116,482 @@ Gem::Specification.new do |s|
|
|
73
116
|
"lib/auth/tasks/migrations.rb",
|
74
117
|
"lib/auth/token.rb",
|
75
118
|
"lib/sparkly-auth.rb",
|
119
|
+
"rails/hacks/rails2.rb",
|
120
|
+
"rails/hacks/rails3.rb",
|
76
121
|
"rails/init.rb",
|
122
|
+
"rails/init_rails2.rb",
|
123
|
+
"rails/init_rails3.rb",
|
77
124
|
"rails/routes.rb",
|
125
|
+
"rails/routes_rails3.rb",
|
126
|
+
"rake3",
|
127
|
+
"rerun.txt",
|
128
|
+
"run_all_tests",
|
78
129
|
"sparkly-auth.gemspec",
|
130
|
+
"spec/behaviors/core/controller_extensions_spec.rb",
|
131
|
+
"spec/behaviors/core_spec.rb",
|
132
|
+
"spec/behaviors/remember_me/configuration_spec.rb",
|
133
|
+
"spec/behaviors/remember_me_spec.rb",
|
79
134
|
"spec/controllers/application_controller_spec.rb",
|
135
|
+
"spec/generators/sanity_checks_spec.rb",
|
80
136
|
"spec/generators/sparkly_spec.rb",
|
81
|
-
"spec/lib/auth/
|
82
|
-
"spec/lib/auth/behavior/remember_me_spec.rb",
|
83
|
-
"spec/lib/auth/extensions/controller_spec.rb",
|
137
|
+
"spec/lib/auth/configuration_spec.rb",
|
84
138
|
"spec/lib/auth/model_spec.rb",
|
85
139
|
"spec/lib/auth_spec.rb",
|
140
|
+
"spec/lib/hacks/rename_attributes_spec.rb",
|
86
141
|
"spec/mocks/models/user.rb",
|
87
142
|
"spec/routes_spec.rb",
|
143
|
+
"spec/spec2_helper.rb",
|
144
|
+
"spec/spec3_helper.rb",
|
88
145
|
"spec/spec_helper.rb",
|
89
|
-
"spec/views_spec.rb"
|
146
|
+
"spec/views_spec.rb",
|
147
|
+
"spec_env/rails2/README.1ST",
|
148
|
+
"spec_env/rails2/Rakefile",
|
149
|
+
"spec_env/rails2/app/controllers/application_controller.rb",
|
150
|
+
"spec_env/rails2/app/helpers/application_helper.rb",
|
151
|
+
"spec_env/rails2/app/models/user.rb",
|
152
|
+
"spec_env/rails2/app/views/application/not_found.html.erb",
|
153
|
+
"spec_env/rails2/app/views/layouts/application.html.erb",
|
154
|
+
"spec_env/rails2/config/boot.rb",
|
155
|
+
"spec_env/rails2/config/cucumber.yml",
|
156
|
+
"spec_env/rails2/config/database.yml",
|
157
|
+
"spec_env/rails2/config/environment.rb",
|
158
|
+
"spec_env/rails2/config/environments/cucumber.rb",
|
159
|
+
"spec_env/rails2/config/environments/development.rb",
|
160
|
+
"spec_env/rails2/config/environments/production.rb",
|
161
|
+
"spec_env/rails2/config/environments/test.rb",
|
162
|
+
"spec_env/rails2/config/initializers/backtrace_silencers.rb",
|
163
|
+
"spec_env/rails2/config/initializers/inflections.rb",
|
164
|
+
"spec_env/rails2/config/initializers/mime_types.rb",
|
165
|
+
"spec_env/rails2/config/initializers/new_rails_defaults.rb",
|
166
|
+
"spec_env/rails2/config/initializers/session_store.rb",
|
167
|
+
"spec_env/rails2/config/initializers/sparkly_authentication.rb",
|
168
|
+
"spec_env/rails2/config/locales/en.yml",
|
169
|
+
"spec_env/rails2/config/routes.rb",
|
170
|
+
"spec_env/rails2/db/development.sqlite3",
|
171
|
+
"spec_env/rails2/db/migrate/001_create_sparkly_passwords.rb",
|
172
|
+
"spec_env/rails2/db/migrate/002_create_sparkly_remembered_tokens.rb",
|
173
|
+
"spec_env/rails2/db/migrate/003_add_confirmed_to_sparkly_passwords.rb",
|
174
|
+
"spec_env/rails2/db/migrate/20100607103543_create_users.rb",
|
175
|
+
"spec_env/rails2/db/migrate/20100609152058_add_email_to_users.rb",
|
176
|
+
"spec_env/rails2/db/schema.rb",
|
177
|
+
"spec_env/rails2/db/seeds.rb",
|
178
|
+
"spec_env/rails2/db/test.sqlite3",
|
179
|
+
"spec_env/rails2/doc/README_FOR_APP",
|
180
|
+
"spec_env/rails2/doc/sparkly_authentication.txt",
|
181
|
+
"spec_env/rails2/features/support/env.rb",
|
182
|
+
"spec_env/rails2/lib/tasks/cucumber.rake",
|
183
|
+
"spec_env/rails2/lib/tasks/rspec.rake",
|
184
|
+
"spec_env/rails2/lib/tasks/sparkly_migration.rb",
|
185
|
+
"spec_env/rails2/log/development.log",
|
186
|
+
"spec_env/rails2/public/404.html",
|
187
|
+
"spec_env/rails2/public/422.html",
|
188
|
+
"spec_env/rails2/public/500.html",
|
189
|
+
"spec_env/rails2/public/favicon.ico",
|
190
|
+
"spec_env/rails2/public/images/rails.png",
|
191
|
+
"spec_env/rails2/public/javascripts/application.js",
|
192
|
+
"spec_env/rails2/public/javascripts/controls.js",
|
193
|
+
"spec_env/rails2/public/javascripts/dragdrop.js",
|
194
|
+
"spec_env/rails2/public/javascripts/effects.js",
|
195
|
+
"spec_env/rails2/public/javascripts/prototype.js",
|
196
|
+
"spec_env/rails2/public/robots.txt",
|
197
|
+
"spec_env/rails2/rerun.txt",
|
198
|
+
"spec_env/rails2/script/about",
|
199
|
+
"spec_env/rails2/script/autospec",
|
200
|
+
"spec_env/rails2/script/console",
|
201
|
+
"spec_env/rails2/script/cucumber",
|
202
|
+
"spec_env/rails2/script/dbconsole",
|
203
|
+
"spec_env/rails2/script/destroy",
|
204
|
+
"spec_env/rails2/script/generate",
|
205
|
+
"spec_env/rails2/script/performance/benchmarker",
|
206
|
+
"spec_env/rails2/script/performance/profiler",
|
207
|
+
"spec_env/rails2/script/plugin",
|
208
|
+
"spec_env/rails2/script/runner",
|
209
|
+
"spec_env/rails2/script/server",
|
210
|
+
"spec_env/rails2/script/spec",
|
211
|
+
"spec_env/rails2/spec/controllers/sparkly_user_sessions_controller_spec.rb",
|
212
|
+
"spec_env/rails2/spec/rcov.opts",
|
213
|
+
"spec_env/rails2/spec/spec.opts",
|
214
|
+
"spec_env/rails2/spec/spec_helper.rb",
|
215
|
+
"spec_env/rails2/test/fixtures/users.yml",
|
216
|
+
"spec_env/rails2/test/performance/browsing_test.rb",
|
217
|
+
"spec_env/rails2/test/test_helper.rb",
|
218
|
+
"spec_env/rails2/test/unit/user_test.rb",
|
219
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/.specification",
|
220
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/generators/sparkly/sparkly_generator.rb",
|
221
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/lib/sparkly-auth-bootstrap.rb",
|
222
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/rails/init.rb",
|
223
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/sparkly-auth-bootstrap.gemspec",
|
224
|
+
"spec_env/rails3/.gitignore",
|
225
|
+
"spec_env/rails3/Gemfile",
|
226
|
+
"spec_env/rails3/Gemfile.lock",
|
227
|
+
"spec_env/rails3/README",
|
228
|
+
"spec_env/rails3/Rakefile",
|
229
|
+
"spec_env/rails3/app/controllers/application_controller.rb",
|
230
|
+
"spec_env/rails3/app/helpers/application_helper.rb",
|
231
|
+
"spec_env/rails3/app/models/user.rb",
|
232
|
+
"spec_env/rails3/app/views/application/not_found.html.erb",
|
233
|
+
"spec_env/rails3/app/views/layouts/application.html.erb",
|
234
|
+
"spec_env/rails3/config.ru",
|
235
|
+
"spec_env/rails3/config/application.rb",
|
236
|
+
"spec_env/rails3/config/boot.rb",
|
237
|
+
"spec_env/rails3/config/cucumber.yml",
|
238
|
+
"spec_env/rails3/config/database.yml",
|
239
|
+
"spec_env/rails3/config/environment.rb",
|
240
|
+
"spec_env/rails3/config/environments/development.rb",
|
241
|
+
"spec_env/rails3/config/environments/production.rb",
|
242
|
+
"spec_env/rails3/config/environments/spec.rb",
|
243
|
+
"spec_env/rails3/config/environments/test.rb",
|
244
|
+
"spec_env/rails3/config/initializers/backtrace_silencers.rb",
|
245
|
+
"spec_env/rails3/config/initializers/inflections.rb",
|
246
|
+
"spec_env/rails3/config/initializers/mime_types.rb",
|
247
|
+
"spec_env/rails3/config/initializers/secret_token.rb",
|
248
|
+
"spec_env/rails3/config/initializers/session_store.rb",
|
249
|
+
"spec_env/rails3/config/initializers/sparkly_authentication.rb",
|
250
|
+
"spec_env/rails3/config/locales/en.yml",
|
251
|
+
"spec_env/rails3/config/routes.rb",
|
252
|
+
"spec_env/rails3/db/migrate/001_create_sparkly_passwords.rb",
|
253
|
+
"spec_env/rails3/db/migrate/002_create_sparkly_remembered_tokens.rb",
|
254
|
+
"spec_env/rails3/db/migrate/20100810132843_create_users.rb",
|
255
|
+
"spec_env/rails3/db/schema.rb",
|
256
|
+
"spec_env/rails3/db/seeds.rb",
|
257
|
+
"spec_env/rails3/doc/README_FOR_APP",
|
258
|
+
"spec_env/rails3/doc/sparkly_authentication.txt",
|
259
|
+
"spec_env/rails3/features/support/env.rb",
|
260
|
+
"spec_env/rails3/lib/sparkly/bootstrap.rb",
|
261
|
+
"spec_env/rails3/lib/tasks/.gitkeep",
|
262
|
+
"spec_env/rails3/lib/tasks/cucumber.rake",
|
263
|
+
"spec_env/rails3/lib/tasks/sparkly_migration.rb",
|
264
|
+
"spec_env/rails3/public/404.html",
|
265
|
+
"spec_env/rails3/public/422.html",
|
266
|
+
"spec_env/rails3/public/500.html",
|
267
|
+
"spec_env/rails3/public/favicon.ico",
|
268
|
+
"spec_env/rails3/public/images/rails.png",
|
269
|
+
"spec_env/rails3/public/javascripts/application.js",
|
270
|
+
"spec_env/rails3/public/javascripts/controls.js",
|
271
|
+
"spec_env/rails3/public/javascripts/dragdrop.js",
|
272
|
+
"spec_env/rails3/public/javascripts/effects.js",
|
273
|
+
"spec_env/rails3/public/javascripts/prototype.js",
|
274
|
+
"spec_env/rails3/public/javascripts/rails.js",
|
275
|
+
"spec_env/rails3/public/robots.txt",
|
276
|
+
"spec_env/rails3/public/stylesheets/.gitkeep",
|
277
|
+
"spec_env/rails3/script/cucumber",
|
278
|
+
"spec_env/rails3/script/rails",
|
279
|
+
"spec_env/rails3/test/fixtures/users.yml",
|
280
|
+
"spec_env/rails3/test/performance/browsing_test.rb",
|
281
|
+
"spec_env/rails3/test/test_helper.rb",
|
282
|
+
"spec_env/rails3/test/unit/user_test.rb",
|
283
|
+
"spec_env/rails3/vendor/plugins/.gitkeep",
|
284
|
+
"spec_env/rails3/webrat.log"
|
90
285
|
]
|
91
286
|
s.homepage = %q{http://www.thoughtsincomputation.com}
|
92
287
|
s.rdoc_options = ["--charset=UTF-8"]
|
93
288
|
s.require_paths = ["lib"]
|
94
|
-
s.rubygems_version = %q{1.3.
|
289
|
+
s.rubygems_version = %q{1.3.7}
|
95
290
|
s.summary = %q{User authentication with Sparkles!}
|
96
291
|
s.test_files = [
|
97
|
-
"spec/
|
292
|
+
"spec/behaviors",
|
293
|
+
"spec/behaviors/core",
|
294
|
+
"spec/behaviors/core/controller_extensions_spec.rb",
|
295
|
+
"spec/behaviors/core_spec.rb",
|
296
|
+
"spec/behaviors/remember_me",
|
297
|
+
"spec/behaviors/remember_me/configuration_spec.rb",
|
298
|
+
"spec/behaviors/remember_me_spec.rb",
|
299
|
+
"spec/controllers",
|
98
300
|
"spec/controllers/application_controller_spec.rb",
|
99
301
|
"spec/generators",
|
302
|
+
"spec/generators/sanity_checks_spec.rb",
|
100
303
|
"spec/generators/sparkly_spec.rb",
|
101
304
|
"spec/lib",
|
102
305
|
"spec/lib/auth",
|
103
|
-
"spec/lib/auth/
|
104
|
-
"spec/lib/auth/behavior/core_spec.rb",
|
105
|
-
"spec/lib/auth/behavior/remember_me_spec.rb",
|
106
|
-
"spec/lib/auth/extensions",
|
107
|
-
"spec/lib/auth/extensions/controller_spec.rb",
|
306
|
+
"spec/lib/auth/configuration_spec.rb",
|
108
307
|
"spec/lib/auth/model_spec.rb",
|
109
308
|
"spec/lib/auth_spec.rb",
|
309
|
+
"spec/lib/hacks",
|
310
|
+
"spec/lib/hacks/rename_attributes_spec.rb",
|
110
311
|
"spec/mocks",
|
111
312
|
"spec/mocks/models",
|
112
313
|
"spec/mocks/models/user.rb",
|
113
314
|
"spec/routes_spec.rb",
|
315
|
+
"spec/spec2_helper.rb",
|
316
|
+
"spec/spec3_helper.rb",
|
114
317
|
"spec/spec_helper.rb",
|
115
|
-
"spec/views_spec.rb"
|
318
|
+
"spec/views_spec.rb",
|
319
|
+
"spec_env/rails2",
|
320
|
+
"spec_env/rails2/app",
|
321
|
+
"spec_env/rails2/app/controllers",
|
322
|
+
"spec_env/rails2/app/controllers/application_controller.rb",
|
323
|
+
"spec_env/rails2/app/helpers",
|
324
|
+
"spec_env/rails2/app/helpers/application_helper.rb",
|
325
|
+
"spec_env/rails2/app/models",
|
326
|
+
"spec_env/rails2/app/models/user.rb",
|
327
|
+
"spec_env/rails2/app/views",
|
328
|
+
"spec_env/rails2/app/views/application",
|
329
|
+
"spec_env/rails2/app/views/application/not_found.html.erb",
|
330
|
+
"spec_env/rails2/app/views/layouts",
|
331
|
+
"spec_env/rails2/app/views/layouts/application.html.erb",
|
332
|
+
"spec_env/rails2/config",
|
333
|
+
"spec_env/rails2/config/boot.rb",
|
334
|
+
"spec_env/rails2/config/cucumber.yml",
|
335
|
+
"spec_env/rails2/config/database.yml",
|
336
|
+
"spec_env/rails2/config/environment.rb",
|
337
|
+
"spec_env/rails2/config/environments",
|
338
|
+
"spec_env/rails2/config/environments/cucumber.rb",
|
339
|
+
"spec_env/rails2/config/environments/development.rb",
|
340
|
+
"spec_env/rails2/config/environments/production.rb",
|
341
|
+
"spec_env/rails2/config/environments/test.rb",
|
342
|
+
"spec_env/rails2/config/initializers",
|
343
|
+
"spec_env/rails2/config/initializers/backtrace_silencers.rb",
|
344
|
+
"spec_env/rails2/config/initializers/inflections.rb",
|
345
|
+
"spec_env/rails2/config/initializers/mime_types.rb",
|
346
|
+
"spec_env/rails2/config/initializers/new_rails_defaults.rb",
|
347
|
+
"spec_env/rails2/config/initializers/session_store.rb",
|
348
|
+
"spec_env/rails2/config/initializers/sparkly_authentication.rb",
|
349
|
+
"spec_env/rails2/config/locales",
|
350
|
+
"spec_env/rails2/config/locales/en.yml",
|
351
|
+
"spec_env/rails2/config/routes.rb",
|
352
|
+
"spec_env/rails2/db",
|
353
|
+
"spec_env/rails2/db/development.sqlite3",
|
354
|
+
"spec_env/rails2/db/migrate",
|
355
|
+
"spec_env/rails2/db/migrate/001_create_sparkly_passwords.rb",
|
356
|
+
"spec_env/rails2/db/migrate/002_create_sparkly_remembered_tokens.rb",
|
357
|
+
"spec_env/rails2/db/migrate/003_add_confirmed_to_sparkly_passwords.rb",
|
358
|
+
"spec_env/rails2/db/migrate/20100607103543_create_users.rb",
|
359
|
+
"spec_env/rails2/db/migrate/20100609152058_add_email_to_users.rb",
|
360
|
+
"spec_env/rails2/db/schema.rb",
|
361
|
+
"spec_env/rails2/db/seeds.rb",
|
362
|
+
"spec_env/rails2/db/test.sqlite3",
|
363
|
+
"spec_env/rails2/doc",
|
364
|
+
"spec_env/rails2/doc/README_FOR_APP",
|
365
|
+
"spec_env/rails2/doc/sparkly_authentication.txt",
|
366
|
+
"spec_env/rails2/features",
|
367
|
+
"spec_env/rails2/features/support",
|
368
|
+
"spec_env/rails2/features/support/env.rb",
|
369
|
+
"spec_env/rails2/lib",
|
370
|
+
"spec_env/rails2/lib/tasks",
|
371
|
+
"spec_env/rails2/lib/tasks/cucumber.rake",
|
372
|
+
"spec_env/rails2/lib/tasks/rspec.rake",
|
373
|
+
"spec_env/rails2/lib/tasks/sparkly_migration.rb",
|
374
|
+
"spec_env/rails2/log",
|
375
|
+
"spec_env/rails2/log/cucumber.log",
|
376
|
+
"spec_env/rails2/log/development.log",
|
377
|
+
"spec_env/rails2/log/test.log",
|
378
|
+
"spec_env/rails2/public",
|
379
|
+
"spec_env/rails2/public/404.html",
|
380
|
+
"spec_env/rails2/public/422.html",
|
381
|
+
"spec_env/rails2/public/500.html",
|
382
|
+
"spec_env/rails2/public/favicon.ico",
|
383
|
+
"spec_env/rails2/public/images",
|
384
|
+
"spec_env/rails2/public/images/rails.png",
|
385
|
+
"spec_env/rails2/public/javascripts",
|
386
|
+
"spec_env/rails2/public/javascripts/application.js",
|
387
|
+
"spec_env/rails2/public/javascripts/controls.js",
|
388
|
+
"spec_env/rails2/public/javascripts/dragdrop.js",
|
389
|
+
"spec_env/rails2/public/javascripts/effects.js",
|
390
|
+
"spec_env/rails2/public/javascripts/prototype.js",
|
391
|
+
"spec_env/rails2/public/robots.txt",
|
392
|
+
"spec_env/rails2/Rakefile",
|
393
|
+
"spec_env/rails2/README.1ST",
|
394
|
+
"spec_env/rails2/rerun.txt",
|
395
|
+
"spec_env/rails2/script",
|
396
|
+
"spec_env/rails2/script/about",
|
397
|
+
"spec_env/rails2/script/autospec",
|
398
|
+
"spec_env/rails2/script/console",
|
399
|
+
"spec_env/rails2/script/cucumber",
|
400
|
+
"spec_env/rails2/script/dbconsole",
|
401
|
+
"spec_env/rails2/script/destroy",
|
402
|
+
"spec_env/rails2/script/generate",
|
403
|
+
"spec_env/rails2/script/performance",
|
404
|
+
"spec_env/rails2/script/performance/benchmarker",
|
405
|
+
"spec_env/rails2/script/performance/profiler",
|
406
|
+
"spec_env/rails2/script/plugin",
|
407
|
+
"spec_env/rails2/script/runner",
|
408
|
+
"spec_env/rails2/script/server",
|
409
|
+
"spec_env/rails2/script/spec",
|
410
|
+
"spec_env/rails2/spec",
|
411
|
+
"spec_env/rails2/spec/controllers",
|
412
|
+
"spec_env/rails2/spec/controllers/sparkly_user_sessions_controller_spec.rb",
|
413
|
+
"spec_env/rails2/spec/rcov.opts",
|
414
|
+
"spec_env/rails2/spec/spec.opts",
|
415
|
+
"spec_env/rails2/spec/spec_helper.rb",
|
416
|
+
"spec_env/rails2/test",
|
417
|
+
"spec_env/rails2/test/fixtures",
|
418
|
+
"spec_env/rails2/test/fixtures/users.yml",
|
419
|
+
"spec_env/rails2/test/performance",
|
420
|
+
"spec_env/rails2/test/performance/browsing_test.rb",
|
421
|
+
"spec_env/rails2/test/test_helper.rb",
|
422
|
+
"spec_env/rails2/test/unit",
|
423
|
+
"spec_env/rails2/test/unit/user_test.rb",
|
424
|
+
"spec_env/rails2/tmp",
|
425
|
+
"spec_env/rails2/tmp/cache",
|
426
|
+
"spec_env/rails2/tmp/pids",
|
427
|
+
"spec_env/rails2/tmp/sessions",
|
428
|
+
"spec_env/rails2/tmp/sockets",
|
429
|
+
"spec_env/rails2/vendor",
|
430
|
+
"spec_env/rails2/vendor/gems",
|
431
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0",
|
432
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/app",
|
433
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/generators",
|
434
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/generators/sparkly",
|
435
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/generators/sparkly/sparkly_generator.rb",
|
436
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/lib",
|
437
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/lib/sparkly-auth-bootstrap.rb",
|
438
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/rails",
|
439
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/rails/init.rb",
|
440
|
+
"spec_env/rails2/vendor/gems/sparkly-auth-bootstrap-1.0.0/sparkly-auth-bootstrap.gemspec",
|
441
|
+
"spec_env/rails3",
|
442
|
+
"spec_env/rails3/app",
|
443
|
+
"spec_env/rails3/app/controllers",
|
444
|
+
"spec_env/rails3/app/controllers/application_controller.rb",
|
445
|
+
"spec_env/rails3/app/helpers",
|
446
|
+
"spec_env/rails3/app/helpers/application_helper.rb",
|
447
|
+
"spec_env/rails3/app/mailers",
|
448
|
+
"spec_env/rails3/app/models",
|
449
|
+
"spec_env/rails3/app/models/user.rb",
|
450
|
+
"spec_env/rails3/app/views",
|
451
|
+
"spec_env/rails3/app/views/application",
|
452
|
+
"spec_env/rails3/app/views/application/not_found.html.erb",
|
453
|
+
"spec_env/rails3/app/views/layouts",
|
454
|
+
"spec_env/rails3/app/views/layouts/application.html.erb",
|
455
|
+
"spec_env/rails3/config",
|
456
|
+
"spec_env/rails3/config/application.rb",
|
457
|
+
"spec_env/rails3/config/boot.rb",
|
458
|
+
"spec_env/rails3/config/cucumber.yml",
|
459
|
+
"spec_env/rails3/config/database.yml",
|
460
|
+
"spec_env/rails3/config/environment.rb",
|
461
|
+
"spec_env/rails3/config/environments",
|
462
|
+
"spec_env/rails3/config/environments/development.rb",
|
463
|
+
"spec_env/rails3/config/environments/production.rb",
|
464
|
+
"spec_env/rails3/config/environments/spec.rb",
|
465
|
+
"spec_env/rails3/config/environments/test.rb",
|
466
|
+
"spec_env/rails3/config/initializers",
|
467
|
+
"spec_env/rails3/config/initializers/backtrace_silencers.rb",
|
468
|
+
"spec_env/rails3/config/initializers/inflections.rb",
|
469
|
+
"spec_env/rails3/config/initializers/mime_types.rb",
|
470
|
+
"spec_env/rails3/config/initializers/secret_token.rb",
|
471
|
+
"spec_env/rails3/config/initializers/session_store.rb",
|
472
|
+
"spec_env/rails3/config/initializers/sparkly_authentication.rb",
|
473
|
+
"spec_env/rails3/config/locales",
|
474
|
+
"spec_env/rails3/config/locales/en.yml",
|
475
|
+
"spec_env/rails3/config/routes.rb",
|
476
|
+
"spec_env/rails3/config.ru",
|
477
|
+
"spec_env/rails3/db",
|
478
|
+
"spec_env/rails3/db/development.sqlite3",
|
479
|
+
"spec_env/rails3/db/migrate",
|
480
|
+
"spec_env/rails3/db/migrate/001_create_sparkly_passwords.rb",
|
481
|
+
"spec_env/rails3/db/migrate/002_create_sparkly_remembered_tokens.rb",
|
482
|
+
"spec_env/rails3/db/migrate/20100810132843_create_users.rb",
|
483
|
+
"spec_env/rails3/db/schema.rb",
|
484
|
+
"spec_env/rails3/db/seeds.rb",
|
485
|
+
"spec_env/rails3/db/test.sqlite3",
|
486
|
+
"spec_env/rails3/doc",
|
487
|
+
"spec_env/rails3/doc/README_FOR_APP",
|
488
|
+
"spec_env/rails3/doc/sparkly_authentication.txt",
|
489
|
+
"spec_env/rails3/features",
|
490
|
+
"spec_env/rails3/features/support",
|
491
|
+
"spec_env/rails3/features/support/env.rb",
|
492
|
+
"spec_env/rails3/Gemfile",
|
493
|
+
"spec_env/rails3/Gemfile.lock",
|
494
|
+
"spec_env/rails3/lib",
|
495
|
+
"spec_env/rails3/lib/sparkly",
|
496
|
+
"spec_env/rails3/lib/sparkly/bootstrap.rb",
|
497
|
+
"spec_env/rails3/lib/tasks",
|
498
|
+
"spec_env/rails3/lib/tasks/cucumber.rake",
|
499
|
+
"spec_env/rails3/lib/tasks/sparkly_migration.rb",
|
500
|
+
"spec_env/rails3/log",
|
501
|
+
"spec_env/rails3/log/development.log",
|
502
|
+
"spec_env/rails3/log/spec.log",
|
503
|
+
"spec_env/rails3/log/test.log",
|
504
|
+
"spec_env/rails3/public",
|
505
|
+
"spec_env/rails3/public/404.html",
|
506
|
+
"spec_env/rails3/public/422.html",
|
507
|
+
"spec_env/rails3/public/500.html",
|
508
|
+
"spec_env/rails3/public/favicon.ico",
|
509
|
+
"spec_env/rails3/public/images",
|
510
|
+
"spec_env/rails3/public/images/rails.png",
|
511
|
+
"spec_env/rails3/public/javascripts",
|
512
|
+
"spec_env/rails3/public/javascripts/application.js",
|
513
|
+
"spec_env/rails3/public/javascripts/controls.js",
|
514
|
+
"spec_env/rails3/public/javascripts/dragdrop.js",
|
515
|
+
"spec_env/rails3/public/javascripts/effects.js",
|
516
|
+
"spec_env/rails3/public/javascripts/prototype.js",
|
517
|
+
"spec_env/rails3/public/javascripts/rails.js",
|
518
|
+
"spec_env/rails3/public/robots.txt",
|
519
|
+
"spec_env/rails3/public/stylesheets",
|
520
|
+
"spec_env/rails3/Rakefile",
|
521
|
+
"spec_env/rails3/README",
|
522
|
+
"spec_env/rails3/script",
|
523
|
+
"spec_env/rails3/script/cucumber",
|
524
|
+
"spec_env/rails3/script/rails",
|
525
|
+
"spec_env/rails3/spec",
|
526
|
+
"spec_env/rails3/spec/controllers",
|
527
|
+
"spec_env/rails3/spec/helpers",
|
528
|
+
"spec_env/rails3/test",
|
529
|
+
"spec_env/rails3/test/fixtures",
|
530
|
+
"spec_env/rails3/test/fixtures/users.yml",
|
531
|
+
"spec_env/rails3/test/functional",
|
532
|
+
"spec_env/rails3/test/integration",
|
533
|
+
"spec_env/rails3/test/performance",
|
534
|
+
"spec_env/rails3/test/performance/browsing_test.rb",
|
535
|
+
"spec_env/rails3/test/test_helper.rb",
|
536
|
+
"spec_env/rails3/test/unit",
|
537
|
+
"spec_env/rails3/test/unit/user_test.rb",
|
538
|
+
"spec_env/rails3/tmp",
|
539
|
+
"spec_env/rails3/tmp/cache",
|
540
|
+
"spec_env/rails3/tmp/pids",
|
541
|
+
"spec_env/rails3/tmp/sessions",
|
542
|
+
"spec_env/rails3/tmp/sockets",
|
543
|
+
"spec_env/rails3/vendor",
|
544
|
+
"spec_env/rails3/vendor/plugins",
|
545
|
+
"spec_env/rails3/webrat.log",
|
546
|
+
"features/create_sparkly_account.feature",
|
547
|
+
"features/delete_sparkly_account.feature",
|
548
|
+
"features/edit_sparkly_account.feature",
|
549
|
+
"features/lock_abused_sparkly_account.feature",
|
550
|
+
"features/login_sparkly_session.feature",
|
551
|
+
"features/logout_sparkly_session.feature",
|
552
|
+
"features/setup",
|
553
|
+
"features/setup/sparkly.rb",
|
554
|
+
"features/show_sparkly_account.feature",
|
555
|
+
"features/sparkly_session_timeout.feature",
|
556
|
+
"features/step_definitions",
|
557
|
+
"features/step_definitions/account",
|
558
|
+
"features/step_definitions/account/account_steps.rb",
|
559
|
+
"features/step_definitions/account/brief_steps.rb",
|
560
|
+
"features/step_definitions/debug_steps.rb",
|
561
|
+
"features/step_definitions/email_steps.rb",
|
562
|
+
"features/step_definitions/session",
|
563
|
+
"features/step_definitions/session/brief_steps.rb",
|
564
|
+
"features/step_definitions/session/logged_in_steps.rb",
|
565
|
+
"features/step_definitions/session/login_steps.rb",
|
566
|
+
"features/step_definitions/session/logout_steps.rb",
|
567
|
+
"features/step_definitions/session_steps.rb",
|
568
|
+
"features/step_definitions/sparkly_auth_steps.rb",
|
569
|
+
"features/step_definitions/web_steps.rb",
|
570
|
+
"features/support",
|
571
|
+
"features/support/env.rb",
|
572
|
+
"features/support/paths.rb",
|
573
|
+
"features/support/sparkly_helpers.rb"
|
116
574
|
]
|
117
575
|
|
118
576
|
if s.respond_to? :specification_version then
|
119
577
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
120
578
|
s.specification_version = 3
|
121
579
|
|
122
|
-
if Gem::Version.new(Gem::
|
123
|
-
s.add_runtime_dependency(%q<sc-core-ext>, [">= 1.2.
|
580
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
581
|
+
s.add_runtime_dependency(%q<sc-core-ext>, [">= 1.2.1"])
|
124
582
|
s.add_development_dependency(%q<rspec-rails>, [">= 1.3.2"])
|
125
583
|
s.add_development_dependency(%q<webrat>, [">= 0.7.1"])
|
126
584
|
s.add_development_dependency(%q<genspec>, [">= 0.1.1"])
|
127
585
|
s.add_development_dependency(%q<email_spec>, [">= 0.6.2"])
|
128
586
|
else
|
129
|
-
s.add_dependency(%q<sc-core-ext>, [">= 1.2.
|
587
|
+
s.add_dependency(%q<sc-core-ext>, [">= 1.2.1"])
|
130
588
|
s.add_dependency(%q<rspec-rails>, [">= 1.3.2"])
|
131
589
|
s.add_dependency(%q<webrat>, [">= 0.7.1"])
|
132
590
|
s.add_dependency(%q<genspec>, [">= 0.1.1"])
|
133
591
|
s.add_dependency(%q<email_spec>, [">= 0.6.2"])
|
134
592
|
end
|
135
593
|
else
|
136
|
-
s.add_dependency(%q<sc-core-ext>, [">= 1.2.
|
594
|
+
s.add_dependency(%q<sc-core-ext>, [">= 1.2.1"])
|
137
595
|
s.add_dependency(%q<rspec-rails>, [">= 1.3.2"])
|
138
596
|
s.add_dependency(%q<webrat>, [">= 0.7.1"])
|
139
597
|
s.add_dependency(%q<genspec>, [">= 0.1.1"])
|