ramon-devise 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +109 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +243 -0
- data/Rakefile +45 -0
- data/TODO +8 -0
- data/app/controllers/confirmations_controller.rb +33 -0
- data/app/controllers/passwords_controller.rb +41 -0
- data/app/controllers/sessions_controller.rb +33 -0
- data/app/models/devise_mailer.rb +53 -0
- data/app/views/confirmations/new.html.erb +16 -0
- data/app/views/devise_mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise_mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/passwords/edit.html.erb +20 -0
- data/app/views/passwords/new.html.erb +16 -0
- data/app/views/sessions/new.html.erb +23 -0
- data/generators/devise/USAGE +5 -0
- data/generators/devise/devise_generator.rb +25 -0
- data/generators/devise/lib/route_devise.rb +32 -0
- data/generators/devise/templates/README +22 -0
- data/generators/devise/templates/migration.rb +20 -0
- data/generators/devise/templates/model.rb +5 -0
- data/generators/devise_install/USAGE +3 -0
- data/generators/devise_install/devise_install_generator.rb +9 -0
- data/generators/devise_install/templates/devise.rb +40 -0
- data/generators/devise_views/USAGE +3 -0
- data/generators/devise_views/devise_views_generator.rb +24 -0
- data/init.rb +2 -0
- data/lib/devise.rb +79 -0
- data/lib/devise/controllers/filters.rb +111 -0
- data/lib/devise/controllers/helpers.rb +130 -0
- data/lib/devise/controllers/url_helpers.rb +49 -0
- data/lib/devise/failure.rb +38 -0
- data/lib/devise/hooks/confirmable.rb +11 -0
- data/lib/devise/hooks/rememberable.rb +27 -0
- data/lib/devise/locales/en.yml +18 -0
- data/lib/devise/mapping.rb +120 -0
- data/lib/devise/migrations.rb +51 -0
- data/lib/devise/models.rb +105 -0
- data/lib/devise/models/authenticatable.rb +97 -0
- data/lib/devise/models/confirmable.rb +156 -0
- data/lib/devise/models/recoverable.rb +88 -0
- data/lib/devise/models/rememberable.rb +95 -0
- data/lib/devise/models/validatable.rb +36 -0
- data/lib/devise/rails.rb +17 -0
- data/lib/devise/rails/routes.rb +109 -0
- data/lib/devise/rails/warden_compat.rb +26 -0
- data/lib/devise/strategies/authenticatable.rb +46 -0
- data/lib/devise/strategies/base.rb +24 -0
- data/lib/devise/strategies/rememberable.rb +35 -0
- data/lib/devise/version.rb +3 -0
- data/lib/devise/warden.rb +24 -0
- data/test/controllers/filters_test.rb +103 -0
- data/test/controllers/helpers_test.rb +55 -0
- data/test/controllers/url_helpers_test.rb +47 -0
- data/test/devise_test.rb +72 -0
- data/test/failure_test.rb +34 -0
- data/test/integration/authenticatable_test.rb +187 -0
- data/test/integration/confirmable_test.rb +89 -0
- data/test/integration/recoverable_test.rb +131 -0
- data/test/integration/rememberable_test.rb +65 -0
- data/test/mailers/confirmation_instructions_test.rb +59 -0
- data/test/mailers/reset_password_instructions_test.rb +62 -0
- data/test/mapping_test.rb +101 -0
- data/test/models/authenticatable_test.rb +118 -0
- data/test/models/confirmable_test.rb +237 -0
- data/test/models/recoverable_test.rb +141 -0
- data/test/models/rememberable_test.rb +130 -0
- data/test/models/validatable_test.rb +99 -0
- data/test/models_test.rb +111 -0
- data/test/rails_app/app/controllers/admins_controller.rb +6 -0
- data/test/rails_app/app/controllers/application_controller.rb +10 -0
- data/test/rails_app/app/controllers/home_controller.rb +4 -0
- data/test/rails_app/app/controllers/users_controller.rb +7 -0
- data/test/rails_app/app/helpers/application_helper.rb +3 -0
- data/test/rails_app/app/models/account.rb +3 -0
- data/test/rails_app/app/models/admin.rb +3 -0
- data/test/rails_app/app/models/organizer.rb +3 -0
- data/test/rails_app/app/models/user.rb +3 -0
- data/test/rails_app/config/boot.rb +110 -0
- data/test/rails_app/config/environment.rb +41 -0
- data/test/rails_app/config/environments/development.rb +17 -0
- data/test/rails_app/config/environments/production.rb +28 -0
- data/test/rails_app/config/environments/test.rb +28 -0
- data/test/rails_app/config/initializers/new_rails_defaults.rb +21 -0
- data/test/rails_app/config/initializers/session_store.rb +15 -0
- data/test/rails_app/config/routes.rb +18 -0
- data/test/routes_test.rb +79 -0
- data/test/support/assertions_helper.rb +22 -0
- data/test/support/integration_tests_helper.rb +66 -0
- data/test/support/model_tests_helper.rb +51 -0
- data/test/test_helper.rb +40 -0
- metadata +154 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
2
|
+
|
3
|
+
# The test environment is used exclusively to run your application's
|
4
|
+
# test suite. You never need to work with it otherwise. Remember that
|
5
|
+
# your test database is "scratch space" for the test suite and is wiped
|
6
|
+
# and recreated between test runs. Don't rely on the data there!
|
7
|
+
config.cache_classes = true
|
8
|
+
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.action_controller.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
config.action_view.cache_template_loading = true
|
16
|
+
|
17
|
+
# Disable request forgery protection in test environment
|
18
|
+
config.action_controller.allow_forgery_protection = false
|
19
|
+
|
20
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
21
|
+
# The :test delivery method accumulates sent emails in the
|
22
|
+
# ActionMailer::Base.deliveries array.
|
23
|
+
config.action_mailer.delivery_method = :test
|
24
|
+
|
25
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
26
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
27
|
+
# like if you have constraints or database-specific column types
|
28
|
+
# config.active_record.schema_format = :sql
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# These settings change the behavior of Rails 2 apps and will be defaults
|
4
|
+
# for Rails 3. You can remove this initializer when Rails 3 is released.
|
5
|
+
|
6
|
+
if defined?(ActiveRecord)
|
7
|
+
# Include Active Record class name as root for JSON serialized output.
|
8
|
+
ActiveRecord::Base.include_root_in_json = true
|
9
|
+
|
10
|
+
# Store the full class name (including module namespace) in STI type column.
|
11
|
+
ActiveRecord::Base.store_full_sti_class = true
|
12
|
+
end
|
13
|
+
|
14
|
+
ActionController::Routing.generate_best_match = false
|
15
|
+
|
16
|
+
# Use ISO 8601 format for JSON serialized times and dates.
|
17
|
+
ActiveSupport.use_standard_json_time_format = true
|
18
|
+
|
19
|
+
# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
|
20
|
+
# if you're including raw json in an HTML page.
|
21
|
+
ActiveSupport.escape_html_entities_in_json = false
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying cookie session data integrity.
|
4
|
+
# If you change this key, all old sessions will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
ActionController::Base.session = {
|
8
|
+
:key => '_rails_app_session',
|
9
|
+
:secret => '89e8147901a0d7c221ac130e0ded3eeab6dab4a97127255909f08fedaae371918b41dec9d4d75c5b27a55c3772d43c2b6a3cbac232c5cc2ce4b8ec22242f5e60'
|
10
|
+
}
|
11
|
+
|
12
|
+
# Use the database for sessions instead of the cookie-based default,
|
13
|
+
# which shouldn't be used to store highly confidential information
|
14
|
+
# (create the session table with "rake db:sessions:create")
|
15
|
+
# ActionController::Base.session_store = :active_record_store
|
@@ -0,0 +1,18 @@
|
|
1
|
+
ActionController::Routing::Routes.draw do |map|
|
2
|
+
map.devise_for :users
|
3
|
+
map.devise_for :admin, :as => 'admin_area'
|
4
|
+
map.devise_for :account, :path_names => {
|
5
|
+
:sign_in => 'login', :sign_out => 'logout', :password => 'secret', :confirmation => 'verification'
|
6
|
+
}
|
7
|
+
map.devise_for :organizers, :singular => 'manager', :path_prefix => '/:locale'
|
8
|
+
|
9
|
+
map.resources :users, :only => :index
|
10
|
+
map.resources :admins, :only => :index
|
11
|
+
map.root :controller => :home
|
12
|
+
|
13
|
+
map.connect '/admin_area/password/new', :controller => "passwords", :action => "new"
|
14
|
+
map.admin_root '/admin_area/home', :controller => "admins", :action => "index"
|
15
|
+
|
16
|
+
map.connect ':controller/:action/:id'
|
17
|
+
map.connect ':controller/:action/:id.:format'
|
18
|
+
end
|
data/test/routes_test.rb
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
require 'test/test_helper'
|
2
|
+
|
3
|
+
class MapRoutingTest < ActionController::TestCase
|
4
|
+
|
5
|
+
test 'map new user session' do
|
6
|
+
assert_recognizes({:controller => 'sessions', :action => 'new'}, {:path => 'users/sign_in', :method => :get})
|
7
|
+
end
|
8
|
+
|
9
|
+
test 'map create user session' do
|
10
|
+
assert_recognizes({:controller => 'sessions', :action => 'create'}, {:path => 'users/sign_in', :method => :post})
|
11
|
+
end
|
12
|
+
|
13
|
+
test 'map destroy user session' do
|
14
|
+
assert_recognizes({:controller => 'sessions', :action => 'destroy'}, {:path => 'users/sign_out', :method => :get})
|
15
|
+
end
|
16
|
+
|
17
|
+
test 'map new user confirmation' do
|
18
|
+
assert_recognizes({:controller => 'confirmations', :action => 'new'}, 'users/confirmation/new')
|
19
|
+
end
|
20
|
+
|
21
|
+
test 'map create user confirmation' do
|
22
|
+
assert_recognizes({:controller => 'confirmations', :action => 'create'}, {:path => 'users/confirmation', :method => :post})
|
23
|
+
end
|
24
|
+
|
25
|
+
test 'map show user confirmation' do
|
26
|
+
assert_recognizes({:controller => 'confirmations', :action => 'show'}, {:path => 'users/confirmation', :method => :get})
|
27
|
+
end
|
28
|
+
|
29
|
+
test 'map new user password' do
|
30
|
+
assert_recognizes({:controller => 'passwords', :action => 'new'}, 'users/password/new')
|
31
|
+
end
|
32
|
+
|
33
|
+
test 'map create user password' do
|
34
|
+
assert_recognizes({:controller => 'passwords', :action => 'create'}, {:path => 'users/password', :method => :post})
|
35
|
+
end
|
36
|
+
|
37
|
+
test 'map edit user password' do
|
38
|
+
assert_recognizes({:controller => 'passwords', :action => 'edit'}, 'users/password/edit')
|
39
|
+
end
|
40
|
+
|
41
|
+
test 'map update user password' do
|
42
|
+
assert_recognizes({:controller => 'passwords', :action => 'update'}, {:path => 'users/password', :method => :put})
|
43
|
+
end
|
44
|
+
|
45
|
+
test 'map admin session with :as option' do
|
46
|
+
assert_recognizes({:controller => 'sessions', :action => 'new'}, {:path => 'admin_area/sign_in', :method => :get})
|
47
|
+
end
|
48
|
+
|
49
|
+
test 'does not map admin confirmation' do
|
50
|
+
assert_raise ActionController::RoutingError do
|
51
|
+
assert_recognizes({:controller => 'confirmations', :action => 'new'}, 'admin_area/confirmation/new')
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
test 'map account with custom path name for session sign in' do
|
56
|
+
assert_recognizes({:controller => 'sessions', :action => 'new'}, 'account/login')
|
57
|
+
end
|
58
|
+
|
59
|
+
test 'map account with custom path name for session sign out' do
|
60
|
+
assert_recognizes({:controller => 'sessions', :action => 'destroy'}, 'account/logout')
|
61
|
+
end
|
62
|
+
|
63
|
+
test 'map account with custom path name for password' do
|
64
|
+
assert_recognizes({:controller => 'passwords', :action => 'new'}, 'account/secret/new')
|
65
|
+
end
|
66
|
+
|
67
|
+
test 'map account with custom path name for confirmation' do
|
68
|
+
assert_recognizes({:controller => 'confirmations', :action => 'new'}, 'account/verification/new')
|
69
|
+
end
|
70
|
+
|
71
|
+
test 'map organizer with custom singular name' do
|
72
|
+
assert_recognizes({:controller => 'passwords', :action => 'new', :locale => "en"}, '/en/organizers/password/new')
|
73
|
+
end
|
74
|
+
|
75
|
+
test 'map organizer with path prefix' do
|
76
|
+
assert_recognizes({:controller => 'sessions', :action => 'new', :locale => "en"}, '/en/organizers/sign_in')
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class ActiveSupport::TestCase
|
2
|
+
def assert_not(assertion)
|
3
|
+
assert !assertion
|
4
|
+
end
|
5
|
+
|
6
|
+
def assert_blank(assertion)
|
7
|
+
assert assertion.blank?
|
8
|
+
end
|
9
|
+
|
10
|
+
def assert_not_blank(assertion)
|
11
|
+
assert !assertion.blank?
|
12
|
+
end
|
13
|
+
alias :assert_present :assert_not_blank
|
14
|
+
|
15
|
+
def assert_email_sent(&block)
|
16
|
+
assert_difference('ActionMailer::Base.deliveries.size') { yield }
|
17
|
+
end
|
18
|
+
|
19
|
+
def assert_email_not_sent(&block)
|
20
|
+
assert_no_difference('ActionMailer::Base.deliveries.size') { yield }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
class ActionController::IntegrationTest
|
2
|
+
|
3
|
+
def warden
|
4
|
+
request.env['warden']
|
5
|
+
end
|
6
|
+
|
7
|
+
def create_user(options={})
|
8
|
+
@user ||= begin
|
9
|
+
user = User.create!(
|
10
|
+
:email => 'user@test.com', :password => '123456', :password_confirmation => '123456'
|
11
|
+
)
|
12
|
+
user.confirm! unless options[:confirm] == false
|
13
|
+
user
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def create_admin(options={})
|
18
|
+
@admin ||= begin
|
19
|
+
admin = Admin.create!(
|
20
|
+
:email => 'admin@test.com', :password => '123456', :password_confirmation => '123456'
|
21
|
+
)
|
22
|
+
admin
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def sign_in_as_user(options={}, &block)
|
27
|
+
user = create_user(options)
|
28
|
+
visit new_user_session_path unless options[:visit] == false
|
29
|
+
fill_in 'email', :with => 'user@test.com'
|
30
|
+
fill_in 'password', :with => '123456'
|
31
|
+
check 'remember me' if options[:remember_me] == true
|
32
|
+
yield if block_given?
|
33
|
+
click_button 'Sign In'
|
34
|
+
user
|
35
|
+
end
|
36
|
+
|
37
|
+
def sign_in_as_admin(options={}, &block)
|
38
|
+
admin = create_admin(options)
|
39
|
+
visit new_admin_session_path unless options[:visit] == false
|
40
|
+
fill_in 'email', :with => 'admin@test.com'
|
41
|
+
fill_in 'password', :with => '123456'
|
42
|
+
yield if block_given?
|
43
|
+
click_button 'Sign In'
|
44
|
+
admin
|
45
|
+
end
|
46
|
+
|
47
|
+
# Fix assert_redirect_to in integration sessions because they don't take into
|
48
|
+
# account Middleware redirects.
|
49
|
+
#
|
50
|
+
def assert_redirected_to(url)
|
51
|
+
assert [301, 302].include?(@integration_session.status),
|
52
|
+
"Expected status to be 301 or 302, got #{@integration_session.status}"
|
53
|
+
|
54
|
+
url = prepend_host(url)
|
55
|
+
location = prepend_host(@integration_session.headers["Location"])
|
56
|
+
assert_equal url, location
|
57
|
+
end
|
58
|
+
|
59
|
+
protected
|
60
|
+
|
61
|
+
def prepend_host(url)
|
62
|
+
url = "http://#{request.host}#{url}" if url[0] == ?/
|
63
|
+
url
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
class ActiveSupport::TestCase
|
2
|
+
def setup_mailer
|
3
|
+
ActionMailer::Base.deliveries = []
|
4
|
+
end
|
5
|
+
|
6
|
+
def store_translations(locale, translations, &block)
|
7
|
+
begin
|
8
|
+
I18n.backend.store_translations locale, translations
|
9
|
+
yield
|
10
|
+
ensure
|
11
|
+
I18n.reload!
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# Helpers for creating new users
|
16
|
+
#
|
17
|
+
def generate_unique_email
|
18
|
+
@@email_count ||= 0
|
19
|
+
@@email_count += 1
|
20
|
+
"test#{@@email_count}@email.com"
|
21
|
+
end
|
22
|
+
|
23
|
+
def valid_attributes(attributes={})
|
24
|
+
{ :email => generate_unique_email,
|
25
|
+
:password => '123456',
|
26
|
+
:password_confirmation => '123456' }.update(attributes)
|
27
|
+
end
|
28
|
+
|
29
|
+
def new_user(attributes={})
|
30
|
+
User.new(valid_attributes(attributes))
|
31
|
+
end
|
32
|
+
|
33
|
+
def create_user(attributes={})
|
34
|
+
User.create!(valid_attributes(attributes))
|
35
|
+
end
|
36
|
+
|
37
|
+
# Execute the block setting the given values and restoring old values after
|
38
|
+
# the block is executed.
|
39
|
+
def swap(object, new_values)
|
40
|
+
old_values = {}
|
41
|
+
new_values.each do |key, value|
|
42
|
+
old_values[key] = object.send key
|
43
|
+
object.send :"#{key}=", value
|
44
|
+
end
|
45
|
+
yield
|
46
|
+
ensure
|
47
|
+
old_values.each do |key, value|
|
48
|
+
object.send :"#{key}=", value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.join(File.dirname(__FILE__), 'rails_app', 'config', 'environment')
|
3
|
+
|
4
|
+
require 'test_help'
|
5
|
+
require 'webrat'
|
6
|
+
|
7
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
8
|
+
|
9
|
+
ActionMailer::Base.delivery_method = :test
|
10
|
+
ActionMailer::Base.perform_deliveries = true
|
11
|
+
ActionMailer::Base.default_url_options[:host] = 'test.com'
|
12
|
+
|
13
|
+
ActiveRecord::Migration.verbose = false
|
14
|
+
ActiveRecord::Base.logger = Logger.new(nil)
|
15
|
+
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
|
16
|
+
|
17
|
+
ActiveRecord::Schema.define(:version => 1) do
|
18
|
+
[:users, :admins].each do |table|
|
19
|
+
create_table table do |t|
|
20
|
+
t.authenticatable :null => table == :admins
|
21
|
+
|
22
|
+
if table == :users
|
23
|
+
t.confirmable
|
24
|
+
t.recoverable
|
25
|
+
t.rememberable
|
26
|
+
end
|
27
|
+
|
28
|
+
t.timestamps
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
Webrat.configure do |config|
|
34
|
+
config.mode = :rails
|
35
|
+
end
|
36
|
+
|
37
|
+
class ActiveSupport::TestCase
|
38
|
+
self.use_transactional_fixtures = true
|
39
|
+
self.use_instantiated_fixtures = false
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ramon-devise
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- "Jos\xC3\xA9 Valim"
|
8
|
+
- "Carlos Ant\xC3\xB4nio"
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-11-08 00:00:00 -03:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: warden
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.5.1
|
25
|
+
version:
|
26
|
+
description: Flexible authentication solution for Rails with Warden
|
27
|
+
email: contact@plataformatec.com.br
|
28
|
+
executables: []
|
29
|
+
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files:
|
33
|
+
- README.rdoc
|
34
|
+
files:
|
35
|
+
- CHANGELOG.rdoc
|
36
|
+
- MIT-LICENSE
|
37
|
+
- README.rdoc
|
38
|
+
- Rakefile
|
39
|
+
- TODO
|
40
|
+
- app/controllers/confirmations_controller.rb
|
41
|
+
- app/controllers/passwords_controller.rb
|
42
|
+
- app/controllers/sessions_controller.rb
|
43
|
+
- app/models/devise_mailer.rb
|
44
|
+
- app/views/confirmations/new.html.erb
|
45
|
+
- app/views/devise_mailer/confirmation_instructions.html.erb
|
46
|
+
- app/views/devise_mailer/reset_password_instructions.html.erb
|
47
|
+
- app/views/passwords/edit.html.erb
|
48
|
+
- app/views/passwords/new.html.erb
|
49
|
+
- app/views/sessions/new.html.erb
|
50
|
+
- generators/devise/USAGE
|
51
|
+
- generators/devise/devise_generator.rb
|
52
|
+
- generators/devise/lib/route_devise.rb
|
53
|
+
- generators/devise/templates/README
|
54
|
+
- generators/devise/templates/migration.rb
|
55
|
+
- generators/devise/templates/model.rb
|
56
|
+
- generators/devise_install/USAGE
|
57
|
+
- generators/devise_install/devise_install_generator.rb
|
58
|
+
- generators/devise_install/templates/devise.rb
|
59
|
+
- generators/devise_views/USAGE
|
60
|
+
- generators/devise_views/devise_views_generator.rb
|
61
|
+
- init.rb
|
62
|
+
- lib/devise.rb
|
63
|
+
- lib/devise/controllers/filters.rb
|
64
|
+
- lib/devise/controllers/helpers.rb
|
65
|
+
- lib/devise/controllers/url_helpers.rb
|
66
|
+
- lib/devise/failure.rb
|
67
|
+
- lib/devise/hooks/confirmable.rb
|
68
|
+
- lib/devise/hooks/rememberable.rb
|
69
|
+
- lib/devise/locales/en.yml
|
70
|
+
- lib/devise/mapping.rb
|
71
|
+
- lib/devise/migrations.rb
|
72
|
+
- lib/devise/models.rb
|
73
|
+
- lib/devise/models/authenticatable.rb
|
74
|
+
- lib/devise/models/confirmable.rb
|
75
|
+
- lib/devise/models/recoverable.rb
|
76
|
+
- lib/devise/models/rememberable.rb
|
77
|
+
- lib/devise/models/validatable.rb
|
78
|
+
- lib/devise/rails.rb
|
79
|
+
- lib/devise/rails/routes.rb
|
80
|
+
- lib/devise/rails/warden_compat.rb
|
81
|
+
- lib/devise/strategies/authenticatable.rb
|
82
|
+
- lib/devise/strategies/base.rb
|
83
|
+
- lib/devise/strategies/rememberable.rb
|
84
|
+
- lib/devise/version.rb
|
85
|
+
- lib/devise/warden.rb
|
86
|
+
has_rdoc: true
|
87
|
+
homepage: http://github.com/plataformatec/devise
|
88
|
+
licenses: []
|
89
|
+
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options:
|
92
|
+
- --charset=UTF-8
|
93
|
+
require_paths:
|
94
|
+
- lib
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: "0"
|
100
|
+
version:
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: "0"
|
106
|
+
version:
|
107
|
+
requirements: []
|
108
|
+
|
109
|
+
rubyforge_project:
|
110
|
+
rubygems_version: 1.3.5
|
111
|
+
signing_key:
|
112
|
+
specification_version: 3
|
113
|
+
summary: Flexible authentication solution for Rails with Warden
|
114
|
+
test_files:
|
115
|
+
- test/mailers/reset_password_instructions_test.rb
|
116
|
+
- test/mailers/confirmation_instructions_test.rb
|
117
|
+
- test/rails_app/app/helpers/application_helper.rb
|
118
|
+
- test/rails_app/app/models/account.rb
|
119
|
+
- test/rails_app/app/models/organizer.rb
|
120
|
+
- test/rails_app/app/models/admin.rb
|
121
|
+
- test/rails_app/app/models/user.rb
|
122
|
+
- test/rails_app/app/controllers/users_controller.rb
|
123
|
+
- test/rails_app/app/controllers/home_controller.rb
|
124
|
+
- test/rails_app/app/controllers/admins_controller.rb
|
125
|
+
- test/rails_app/app/controllers/application_controller.rb
|
126
|
+
- test/rails_app/config/initializers/session_store.rb
|
127
|
+
- test/rails_app/config/initializers/new_rails_defaults.rb
|
128
|
+
- test/rails_app/config/routes.rb
|
129
|
+
- test/rails_app/config/environments/test.rb
|
130
|
+
- test/rails_app/config/environments/production.rb
|
131
|
+
- test/rails_app/config/environments/development.rb
|
132
|
+
- test/rails_app/config/boot.rb
|
133
|
+
- test/rails_app/config/environment.rb
|
134
|
+
- test/failure_test.rb
|
135
|
+
- test/models/authenticatable_test.rb
|
136
|
+
- test/models/rememberable_test.rb
|
137
|
+
- test/models/recoverable_test.rb
|
138
|
+
- test/models/validatable_test.rb
|
139
|
+
- test/models/confirmable_test.rb
|
140
|
+
- test/routes_test.rb
|
141
|
+
- test/mapping_test.rb
|
142
|
+
- test/test_helper.rb
|
143
|
+
- test/integration/authenticatable_test.rb
|
144
|
+
- test/integration/rememberable_test.rb
|
145
|
+
- test/integration/recoverable_test.rb
|
146
|
+
- test/integration/confirmable_test.rb
|
147
|
+
- test/models_test.rb
|
148
|
+
- test/devise_test.rb
|
149
|
+
- test/support/assertions_helper.rb
|
150
|
+
- test/support/integration_tests_helper.rb
|
151
|
+
- test/support/model_tests_helper.rb
|
152
|
+
- test/controllers/url_helpers_test.rb
|
153
|
+
- test/controllers/helpers_test.rb
|
154
|
+
- test/controllers/filters_test.rb
|