shingara-devise 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +119 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +253 -0
- data/Rakefile +45 -0
- data/TODO +5 -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 +47 -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/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/encryptors/authlogic_sha512.rb +28 -0
- data/lib/devise/encryptors/clearance_sha1.rb +26 -0
- data/lib/devise/encryptors/restful_authentication_sha1.rb +29 -0
- data/lib/devise/encryptors/sha1.rb +34 -0
- data/lib/devise/encryptors/sha512.rb +34 -0
- data/lib/devise/failure.rb +36 -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 +57 -0
- data/lib/devise/models/authenticatable.rb +87 -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/models.rb +110 -0
- data/lib/devise/orm/mongo_mapper.rb +26 -0
- data/lib/devise/rails/routes.rb +109 -0
- data/lib/devise/rails/warden_compat.rb +26 -0
- data/lib/devise/rails.rb +17 -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 +20 -0
- data/lib/devise.rb +130 -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/encryptors_test.rb +28 -0
- data/test/failure_test.rb +34 -0
- data/test/integration/authenticatable_test.rb +195 -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 +130 -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 +161 -0
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,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shingara-devise
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.3
|
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-11 00:00:00 +01: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.2
|
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/encryptors/authlogic_sha512.rb
|
67
|
+
- lib/devise/encryptors/clearance_sha1.rb
|
68
|
+
- lib/devise/encryptors/restful_authentication_sha1.rb
|
69
|
+
- lib/devise/encryptors/sha1.rb
|
70
|
+
- lib/devise/encryptors/sha512.rb
|
71
|
+
- lib/devise/failure.rb
|
72
|
+
- lib/devise/hooks/confirmable.rb
|
73
|
+
- lib/devise/hooks/rememberable.rb
|
74
|
+
- lib/devise/locales/en.yml
|
75
|
+
- lib/devise/mapping.rb
|
76
|
+
- lib/devise/migrations.rb
|
77
|
+
- lib/devise/models.rb
|
78
|
+
- lib/devise/models/authenticatable.rb
|
79
|
+
- lib/devise/models/confirmable.rb
|
80
|
+
- lib/devise/models/recoverable.rb
|
81
|
+
- lib/devise/models/rememberable.rb
|
82
|
+
- lib/devise/models/validatable.rb
|
83
|
+
- lib/devise/orm/mongo_mapper.rb
|
84
|
+
- lib/devise/rails.rb
|
85
|
+
- lib/devise/rails/routes.rb
|
86
|
+
- lib/devise/rails/warden_compat.rb
|
87
|
+
- lib/devise/strategies/authenticatable.rb
|
88
|
+
- lib/devise/strategies/base.rb
|
89
|
+
- lib/devise/strategies/rememberable.rb
|
90
|
+
- lib/devise/version.rb
|
91
|
+
- lib/devise/warden.rb
|
92
|
+
has_rdoc: true
|
93
|
+
homepage: http://github.com/plataformatec/devise
|
94
|
+
licenses: []
|
95
|
+
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options:
|
98
|
+
- --charset=UTF-8
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: "0"
|
106
|
+
version:
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: "0"
|
112
|
+
version:
|
113
|
+
requirements: []
|
114
|
+
|
115
|
+
rubyforge_project:
|
116
|
+
rubygems_version: 1.3.5
|
117
|
+
signing_key:
|
118
|
+
specification_version: 3
|
119
|
+
summary: Flexible authentication solution for Rails with Warden
|
120
|
+
test_files:
|
121
|
+
- test/controllers/filters_test.rb
|
122
|
+
- test/controllers/helpers_test.rb
|
123
|
+
- test/controllers/url_helpers_test.rb
|
124
|
+
- test/devise_test.rb
|
125
|
+
- test/encryptors_test.rb
|
126
|
+
- test/failure_test.rb
|
127
|
+
- test/integration/authenticatable_test.rb
|
128
|
+
- test/integration/confirmable_test.rb
|
129
|
+
- test/integration/recoverable_test.rb
|
130
|
+
- test/integration/rememberable_test.rb
|
131
|
+
- test/mailers/confirmation_instructions_test.rb
|
132
|
+
- test/mailers/reset_password_instructions_test.rb
|
133
|
+
- test/mapping_test.rb
|
134
|
+
- test/models/authenticatable_test.rb
|
135
|
+
- test/models/confirmable_test.rb
|
136
|
+
- test/models/recoverable_test.rb
|
137
|
+
- test/models/rememberable_test.rb
|
138
|
+
- test/models/validatable_test.rb
|
139
|
+
- test/models_test.rb
|
140
|
+
- test/rails_app/app/controllers/admins_controller.rb
|
141
|
+
- test/rails_app/app/controllers/application_controller.rb
|
142
|
+
- test/rails_app/app/controllers/home_controller.rb
|
143
|
+
- test/rails_app/app/controllers/users_controller.rb
|
144
|
+
- test/rails_app/app/helpers/application_helper.rb
|
145
|
+
- test/rails_app/app/models/account.rb
|
146
|
+
- test/rails_app/app/models/admin.rb
|
147
|
+
- test/rails_app/app/models/organizer.rb
|
148
|
+
- test/rails_app/app/models/user.rb
|
149
|
+
- test/rails_app/config/boot.rb
|
150
|
+
- test/rails_app/config/environment.rb
|
151
|
+
- test/rails_app/config/environments/development.rb
|
152
|
+
- test/rails_app/config/environments/production.rb
|
153
|
+
- test/rails_app/config/environments/test.rb
|
154
|
+
- test/rails_app/config/initializers/new_rails_defaults.rb
|
155
|
+
- test/rails_app/config/initializers/session_store.rb
|
156
|
+
- test/rails_app/config/routes.rb
|
157
|
+
- test/routes_test.rb
|
158
|
+
- test/support/assertions_helper.rb
|
159
|
+
- test/support/integration_tests_helper.rb
|
160
|
+
- test/support/model_tests_helper.rb
|
161
|
+
- test/test_helper.rb
|