Skip to content

Commit

Permalink
Vendored authlogic and is_paranoid
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Aug 31, 2011
1 parent 447566c commit 71e4608
Show file tree
Hide file tree
Showing 141 changed files with 7,969 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ end
# -----------------------------------------------------------------------------

gem 'acts_as_commentable', '>= 3.0.1'
gem 'authlogic', :git => 'git://github.com/crossroads/authlogic.git', :branch => 'rails3'
gem 'haml', '>= 3.1.1'
gem 'sass', '>= 3.1.1'
gem 'is_paranoid', :git => 'git://github.com/crossroads/is_paranoid.git', :branch => 'rails3'
gem 'paperclip', '>= 2.3.3'
gem 'will_paginate', '>= 3.0.pre2'

Expand Down
9 changes: 9 additions & 0 deletions vendor/plugins/authlogic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
.swp
*.log
*.sqlite3
pkg/*
coverage/*
doc/*
benchmarks/*
.specification
345 changes: 345 additions & 0 deletions vendor/plugins/authlogic/CHANGELOG.rdoc

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions vendor/plugins/authlogic/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2009 Ben Johnson of Binary Logic

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
246 changes: 246 additions & 0 deletions vendor/plugins/authlogic/README.rdoc

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions vendor/plugins/authlogic/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "authlogic"
gem.summary = "A clean, simple, and unobtrusive ruby authentication solution."
gem.email = "bjohnson@binarylogic.com"
gem.homepage = "http://github.com/binarylogic/authlogic"
gem.authors = ["Ben Johnson of Binary Logic"]
gem.rubyforge_project = "authlogic"
gem.add_dependency "activesupport"
end
Jeweler::RubyforgeTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end

begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end

task :test => :check_dependencies

task :default => :test
5 changes: 5 additions & 0 deletions vendor/plugins/authlogic/VERSION.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
:minor: 1
:patch: 3
:build:
:major: 2
217 changes: 217 additions & 0 deletions vendor/plugins/authlogic/authlogic.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{authlogic}
s.version = "2.1.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ben Johnson of Binary Logic"]
s.date = %q{2009-11-12}
s.email = %q{bjohnson@binarylogic.com}
s.extra_rdoc_files = [
"LICENSE",
"README.rdoc"
]
s.files = [
".gitignore",
"CHANGELOG.rdoc",
"LICENSE",
"README.rdoc",
"Rakefile",
"VERSION.yml",
"authlogic.gemspec",
"generators/session/session_generator.rb",
"generators/session/templates/session.rb",
"init.rb",
"lib/authlogic.rb",
"lib/authlogic/acts_as_authentic/base.rb",
"lib/authlogic/acts_as_authentic/email.rb",
"lib/authlogic/acts_as_authentic/logged_in_status.rb",
"lib/authlogic/acts_as_authentic/login.rb",
"lib/authlogic/acts_as_authentic/magic_columns.rb",
"lib/authlogic/acts_as_authentic/password.rb",
"lib/authlogic/acts_as_authentic/perishable_token.rb",
"lib/authlogic/acts_as_authentic/persistence_token.rb",
"lib/authlogic/acts_as_authentic/restful_authentication.rb",
"lib/authlogic/acts_as_authentic/session_maintenance.rb",
"lib/authlogic/acts_as_authentic/single_access_token.rb",
"lib/authlogic/acts_as_authentic/validations_scope.rb",
"lib/authlogic/authenticates_many/association.rb",
"lib/authlogic/authenticates_many/base.rb",
"lib/authlogic/controller_adapters/abstract_adapter.rb",
"lib/authlogic/controller_adapters/merb_adapter.rb",
"lib/authlogic/controller_adapters/rails_adapter.rb",
"lib/authlogic/controller_adapters/sinatra_adapter.rb",
"lib/authlogic/crypto_providers/aes256.rb",
"lib/authlogic/crypto_providers/bcrypt.rb",
"lib/authlogic/crypto_providers/md5.rb",
"lib/authlogic/crypto_providers/sha1.rb",
"lib/authlogic/crypto_providers/sha256.rb",
"lib/authlogic/crypto_providers/sha512.rb",
"lib/authlogic/crypto_providers/wordpress.rb",
"lib/authlogic/i18n.rb",
"lib/authlogic/i18n/translator.rb",
"lib/authlogic/random.rb",
"lib/authlogic/regex.rb",
"lib/authlogic/session/activation.rb",
"lib/authlogic/session/active_record_trickery.rb",
"lib/authlogic/session/base.rb",
"lib/authlogic/session/brute_force_protection.rb",
"lib/authlogic/session/callbacks.rb",
"lib/authlogic/session/cookies.rb",
"lib/authlogic/session/existence.rb",
"lib/authlogic/session/foundation.rb",
"lib/authlogic/session/http_auth.rb",
"lib/authlogic/session/id.rb",
"lib/authlogic/session/klass.rb",
"lib/authlogic/session/magic_columns.rb",
"lib/authlogic/session/magic_states.rb",
"lib/authlogic/session/params.rb",
"lib/authlogic/session/password.rb",
"lib/authlogic/session/perishable_token.rb",
"lib/authlogic/session/persistence.rb",
"lib/authlogic/session/priority_record.rb",
"lib/authlogic/session/scopes.rb",
"lib/authlogic/session/session.rb",
"lib/authlogic/session/timeout.rb",
"lib/authlogic/session/unauthorized_record.rb",
"lib/authlogic/session/validation.rb",
"lib/authlogic/test_case.rb",
"lib/authlogic/test_case/mock_controller.rb",
"lib/authlogic/test_case/mock_cookie_jar.rb",
"lib/authlogic/test_case/mock_logger.rb",
"lib/authlogic/test_case/mock_request.rb",
"lib/authlogic/test_case/rails_request_adapter.rb",
"rails/init.rb",
"shoulda_macros/authlogic.rb",
"test/acts_as_authentic_test/base_test.rb",
"test/acts_as_authentic_test/email_test.rb",
"test/acts_as_authentic_test/logged_in_status_test.rb",
"test/acts_as_authentic_test/login_test.rb",
"test/acts_as_authentic_test/magic_columns_test.rb",
"test/acts_as_authentic_test/password_test.rb",
"test/acts_as_authentic_test/perishable_token_test.rb",
"test/acts_as_authentic_test/persistence_token_test.rb",
"test/acts_as_authentic_test/restful_authentication_test.rb",
"test/acts_as_authentic_test/session_maintenance_test.rb",
"test/acts_as_authentic_test/single_access_test.rb",
"test/authenticates_many_test.rb",
"test/crypto_provider_test/aes256_test.rb",
"test/crypto_provider_test/bcrypt_test.rb",
"test/crypto_provider_test/sha1_test.rb",
"test/crypto_provider_test/sha256_test.rb",
"test/crypto_provider_test/sha512_test.rb",
"test/fixtures/companies.yml",
"test/fixtures/employees.yml",
"test/fixtures/projects.yml",
"test/fixtures/users.yml",
"test/i18n_test.rb",
"test/libs/affiliate.rb",
"test/libs/company.rb",
"test/libs/employee.rb",
"test/libs/employee_session.rb",
"test/libs/ldaper.rb",
"test/libs/ordered_hash.rb",
"test/libs/project.rb",
"test/libs/user.rb",
"test/libs/user_session.rb",
"test/random_test.rb",
"test/session_test/activation_test.rb",
"test/session_test/active_record_trickery_test.rb",
"test/session_test/brute_force_protection_test.rb",
"test/session_test/callbacks_test.rb",
"test/session_test/cookies_test.rb",
"test/session_test/credentials_test.rb",
"test/session_test/existence_test.rb",
"test/session_test/http_auth_test.rb",
"test/session_test/id_test.rb",
"test/session_test/klass_test.rb",
"test/session_test/magic_columns_test.rb",
"test/session_test/magic_states_test.rb",
"test/session_test/params_test.rb",
"test/session_test/password_test.rb",
"test/session_test/perishability_test.rb",
"test/session_test/persistence_test.rb",
"test/session_test/scopes_test.rb",
"test/session_test/session_test.rb",
"test/session_test/timeout_test.rb",
"test/session_test/unauthorized_record_test.rb",
"test/session_test/validation_test.rb",
"test/test_helper.rb"
]
s.homepage = %q{http://github.com/binarylogic/authlogic}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{authlogic}
s.rubygems_version = %q{1.3.5}
s.summary = %q{A clean, simple, and unobtrusive ruby authentication solution.}
s.test_files = [
"test/acts_as_authentic_test/base_test.rb",
"test/acts_as_authentic_test/email_test.rb",
"test/acts_as_authentic_test/logged_in_status_test.rb",
"test/acts_as_authentic_test/login_test.rb",
"test/acts_as_authentic_test/magic_columns_test.rb",
"test/acts_as_authentic_test/password_test.rb",
"test/acts_as_authentic_test/perishable_token_test.rb",
"test/acts_as_authentic_test/persistence_token_test.rb",
"test/acts_as_authentic_test/restful_authentication_test.rb",
"test/acts_as_authentic_test/session_maintenance_test.rb",
"test/acts_as_authentic_test/single_access_test.rb",
"test/authenticates_many_test.rb",
"test/crypto_provider_test/aes256_test.rb",
"test/crypto_provider_test/bcrypt_test.rb",
"test/crypto_provider_test/sha1_test.rb",
"test/crypto_provider_test/sha256_test.rb",
"test/crypto_provider_test/sha512_test.rb",
"test/i18n_test.rb",
"test/libs/affiliate.rb",
"test/libs/company.rb",
"test/libs/employee.rb",
"test/libs/employee_session.rb",
"test/libs/ldaper.rb",
"test/libs/ordered_hash.rb",
"test/libs/project.rb",
"test/libs/user.rb",
"test/libs/user_session.rb",
"test/random_test.rb",
"test/session_test/activation_test.rb",
"test/session_test/active_record_trickery_test.rb",
"test/session_test/brute_force_protection_test.rb",
"test/session_test/callbacks_test.rb",
"test/session_test/cookies_test.rb",
"test/session_test/credentials_test.rb",
"test/session_test/existence_test.rb",
"test/session_test/http_auth_test.rb",
"test/session_test/id_test.rb",
"test/session_test/klass_test.rb",
"test/session_test/magic_columns_test.rb",
"test/session_test/magic_states_test.rb",
"test/session_test/params_test.rb",
"test/session_test/password_test.rb",
"test/session_test/perishability_test.rb",
"test/session_test/persistence_test.rb",
"test/session_test/scopes_test.rb",
"test/session_test/session_test.rb",
"test/session_test/timeout_test.rb",
"test/session_test/unauthorized_record_test.rb",
"test/session_test/validation_test.rb",
"test/test_helper.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
else
s.add_dependency(%q<activesupport>, [">= 0"])
end
else
s.add_dependency(%q<activesupport>, [">= 0"])
end
end

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class SessionGenerator < Rails::Generator::NamedBase
def manifest
record do |m|
m.class_collisions class_name
m.directory File.join('app/models', class_path)
m.template 'session.rb', File.join('app/models', class_path, "#{file_name}.rb")
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class <%= class_name %> < Authlogic::Session::Base
end
1 change: 1 addition & 0 deletions vendor/plugins/authlogic/init.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require File.dirname(__FILE__) + "/rails/init.rb"
64 changes: 64 additions & 0 deletions vendor/plugins/authlogic/lib/authlogic.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
require "active_record"

AUTHLOGIC_PATH = File.dirname(__FILE__) + "/authlogic/"

[
"i18n",
"random",
"regex",

"controller_adapters/abstract_adapter",

"crypto_providers/md5",
"crypto_providers/sha1",
"crypto_providers/sha256",
"crypto_providers/sha512",
"crypto_providers/bcrypt",
"crypto_providers/aes256",

"authenticates_many/base",
"authenticates_many/association",

"acts_as_authentic/email",
"acts_as_authentic/logged_in_status",
"acts_as_authentic/login",
"acts_as_authentic/magic_columns",
"acts_as_authentic/password",
"acts_as_authentic/perishable_token",
"acts_as_authentic/persistence_token",
"acts_as_authentic/restful_authentication",
"acts_as_authentic/session_maintenance",
"acts_as_authentic/single_access_token",
"acts_as_authentic/validations_scope",
"acts_as_authentic/base",

"session/activation",
"session/active_record_trickery",
"session/brute_force_protection",
"session/callbacks",
"session/cookies",
"session/existence",
"session/foundation",
"session/http_auth",
"session/id",
"session/klass",
"session/magic_columns",
"session/magic_states",
"session/params",
"session/password",
"session/perishable_token",
"session/persistence",
"session/priority_record",
"session/scopes",
"session/session",
"session/timeout",
"session/unauthorized_record",
"session/validation",
"session/base"
].each do |library|
require AUTHLOGIC_PATH + library
end

require AUTHLOGIC_PATH + "controller_adapters/rails_adapter" if defined?( Rails )
require AUTHLOGIC_PATH + "controller_adapters/merb_adapter" if defined?( Merb )
require AUTHLOGIC_PATH + "controller_adapters/sinatra_adapter" if defined?( Sinatra )
Loading

0 comments on commit 71e4608

Please sign in to comment.