benaldred-clearance 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +274 -0
- data/LICENSE +21 -0
- data/README.md +129 -0
- data/Rakefile +87 -0
- data/VERSION +1 -0
- data/app/controllers/clearance/confirmations_controller.rb +76 -0
- data/app/controllers/clearance/passwords_controller.rb +85 -0
- data/app/controllers/clearance/sessions_controller.rb +67 -0
- data/app/controllers/clearance/users_controller.rb +35 -0
- data/app/models/clearance_mailer.rb +21 -0
- data/app/views/clearance_mailer/change_password.html.erb +9 -0
- data/app/views/clearance_mailer/confirmation.html.erb +5 -0
- data/app/views/passwords/edit.html.erb +23 -0
- data/app/views/passwords/new.html.erb +15 -0
- data/app/views/sessions/new.html.erb +24 -0
- data/app/views/users/_form.html.erb +13 -0
- data/app/views/users/new.html.erb +6 -0
- data/generators/clearance/USAGE +1 -0
- data/generators/clearance/clearance_generator.rb +68 -0
- data/generators/clearance/lib/insert_commands.rb +33 -0
- data/generators/clearance/lib/rake_commands.rb +22 -0
- data/generators/clearance/templates/README +24 -0
- data/generators/clearance/templates/clearance.rb +3 -0
- data/generators/clearance/templates/factories.rb +13 -0
- data/generators/clearance/templates/migrations/create_users.rb +21 -0
- data/generators/clearance/templates/migrations/update_users.rb +41 -0
- data/generators/clearance/templates/user.rb +3 -0
- data/generators/clearance_features/USAGE +1 -0
- data/generators/clearance_features/clearance_features_generator.rb +19 -0
- data/generators/clearance_features/templates/features/password_reset.feature +33 -0
- data/generators/clearance_features/templates/features/sign_in.feature +35 -0
- data/generators/clearance_features/templates/features/sign_out.feature +15 -0
- data/generators/clearance_features/templates/features/sign_up.feature +45 -0
- data/generators/clearance_features/templates/features/step_definitions/clearance_steps.rb +122 -0
- data/generators/clearance_features/templates/features/support/paths.rb +23 -0
- data/generators/clearance_views/USAGE +0 -0
- data/generators/clearance_views/clearance_views_generator.rb +27 -0
- data/generators/clearance_views/templates/formtastic/passwords/edit.html.erb +21 -0
- data/generators/clearance_views/templates/formtastic/passwords/new.html.erb +15 -0
- data/generators/clearance_views/templates/formtastic/sessions/new.html.erb +21 -0
- data/generators/clearance_views/templates/formtastic/users/_inputs.html.erb +6 -0
- data/generators/clearance_views/templates/formtastic/users/new.html.erb +10 -0
- data/lib/clearance.rb +7 -0
- data/lib/clearance/authentication.rb +131 -0
- data/lib/clearance/configuration.rb +26 -0
- data/lib/clearance/extensions/errors.rb +6 -0
- data/lib/clearance/extensions/rescue.rb +5 -0
- data/lib/clearance/routes.rb +49 -0
- data/lib/clearance/user.rb +215 -0
- data/rails/init.rb +1 -0
- data/shoulda_macros/clearance.rb +266 -0
- data/test/controllers/confirmations_controller_test.rb +104 -0
- data/test/controllers/passwords_controller_test.rb +183 -0
- data/test/controllers/sessions_controller_test.rb +146 -0
- data/test/controllers/users_controller_test.rb +65 -0
- data/test/models/clearance_mailer_test.rb +55 -0
- data/test/models/user_test.rb +255 -0
- data/test/rails_root/app/controllers/accounts_controller.rb +10 -0
- data/test/rails_root/app/controllers/application_controller.rb +6 -0
- data/test/rails_root/app/helpers/application_helper.rb +5 -0
- data/test/rails_root/app/helpers/confirmations_helper.rb +2 -0
- data/test/rails_root/app/helpers/passwords_helper.rb +2 -0
- data/test/rails_root/app/models/user.rb +3 -0
- data/test/rails_root/config/boot.rb +110 -0
- data/test/rails_root/config/environment.rb +17 -0
- data/test/rails_root/config/environments/development.rb +19 -0
- data/test/rails_root/config/environments/production.rb +1 -0
- data/test/rails_root/config/environments/test.rb +36 -0
- data/test/rails_root/config/initializers/clearance.rb +3 -0
- data/test/rails_root/config/initializers/inflections.rb +10 -0
- data/test/rails_root/config/initializers/mime_types.rb +5 -0
- data/test/rails_root/config/initializers/requires.rb +13 -0
- data/test/rails_root/config/initializers/time_formats.rb +4 -0
- data/test/rails_root/config/routes.rb +6 -0
- data/test/rails_root/features/step_definitions/clearance_steps.rb +122 -0
- data/test/rails_root/features/step_definitions/web_steps.rb +259 -0
- data/test/rails_root/features/support/env.rb +47 -0
- data/test/rails_root/features/support/paths.rb +23 -0
- data/test/rails_root/public/dispatch.rb +10 -0
- data/test/rails_root/script/create_project.rb +52 -0
- data/test/rails_root/test/factories/clearance.rb +13 -0
- data/test/rails_root/test/functional/accounts_controller_test.rb +23 -0
- data/test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/generators/formtastic_stylesheets/formtastic_stylesheets_generator.rb +21 -0
- data/test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/lib/formtastic.rb +1236 -0
- data/test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/lib/justin_french/formtastic.rb +10 -0
- data/test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/rails/init.rb +3 -0
- data/test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/spec/formtastic_spec.rb +2900 -0
- data/test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/spec/test_helper.rb +14 -0
- data/test/test_helper.rb +19 -0
- metadata +160 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'spec'
|
3
|
+
require 'activesupport'
|
4
|
+
require 'active_support'
|
5
|
+
require 'actionpack'
|
6
|
+
require 'action_controller'
|
7
|
+
require 'action_view'
|
8
|
+
require 'rexml/document'
|
9
|
+
require 'rspec_hpricot_matchers'
|
10
|
+
Spec::Runner.configure do |config|
|
11
|
+
config.include(RspecHpricotMatchers)
|
12
|
+
end
|
13
|
+
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) +
|
3
|
+
"/rails_root/config/environment")
|
4
|
+
require 'test_help'
|
5
|
+
|
6
|
+
$: << File.expand_path(File.dirname(__FILE__) + '/..')
|
7
|
+
require 'clearance'
|
8
|
+
|
9
|
+
begin
|
10
|
+
require 'redgreen'
|
11
|
+
rescue LoadError
|
12
|
+
end
|
13
|
+
|
14
|
+
require File.join(File.dirname(__FILE__), '..', 'shoulda_macros', 'clearance')
|
15
|
+
|
16
|
+
class ActiveSupport::TestCase
|
17
|
+
self.use_transactional_fixtures = true
|
18
|
+
self.use_instantiated_fixtures = false
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: benaldred-clearance
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.8
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dan Croak
|
8
|
+
- Mike Burns
|
9
|
+
- Jason Morrison
|
10
|
+
- Joe Ferris
|
11
|
+
- Eugene Bolshakov
|
12
|
+
- Nick Quaranto
|
13
|
+
- Josh Nichols
|
14
|
+
- Mike Breen
|
15
|
+
- "Marcel G\xC3\xB6rner"
|
16
|
+
- Bence Nagy
|
17
|
+
- Ben Mabey
|
18
|
+
- Eloy Duran
|
19
|
+
- Tim Pope
|
20
|
+
- Mihai Anca
|
21
|
+
- Mark Cornick
|
22
|
+
- Shay Arnett
|
23
|
+
- Jon Yurek
|
24
|
+
- Chad Pytel
|
25
|
+
autorequire:
|
26
|
+
bindir: bin
|
27
|
+
cert_chain: []
|
28
|
+
|
29
|
+
date: 2010-02-25 00:00:00 +00:00
|
30
|
+
default_executable:
|
31
|
+
dependencies: []
|
32
|
+
|
33
|
+
description: Rails authentication with email & password.
|
34
|
+
email: support@thoughtbot.com
|
35
|
+
executables: []
|
36
|
+
|
37
|
+
extensions: []
|
38
|
+
|
39
|
+
extra_rdoc_files:
|
40
|
+
- LICENSE
|
41
|
+
- README.md
|
42
|
+
files:
|
43
|
+
- CHANGELOG.md
|
44
|
+
- LICENSE
|
45
|
+
- README.md
|
46
|
+
- Rakefile
|
47
|
+
- VERSION
|
48
|
+
- app/controllers/clearance/confirmations_controller.rb
|
49
|
+
- app/controllers/clearance/passwords_controller.rb
|
50
|
+
- app/controllers/clearance/sessions_controller.rb
|
51
|
+
- app/controllers/clearance/users_controller.rb
|
52
|
+
- app/models/clearance_mailer.rb
|
53
|
+
- app/views/clearance_mailer/change_password.html.erb
|
54
|
+
- app/views/clearance_mailer/confirmation.html.erb
|
55
|
+
- app/views/passwords/edit.html.erb
|
56
|
+
- app/views/passwords/new.html.erb
|
57
|
+
- app/views/sessions/new.html.erb
|
58
|
+
- app/views/users/_form.html.erb
|
59
|
+
- app/views/users/new.html.erb
|
60
|
+
- generators/clearance/USAGE
|
61
|
+
- generators/clearance/clearance_generator.rb
|
62
|
+
- generators/clearance/lib/insert_commands.rb
|
63
|
+
- generators/clearance/lib/rake_commands.rb
|
64
|
+
- generators/clearance/templates/README
|
65
|
+
- generators/clearance/templates/clearance.rb
|
66
|
+
- generators/clearance/templates/factories.rb
|
67
|
+
- generators/clearance/templates/migrations/create_users.rb
|
68
|
+
- generators/clearance/templates/migrations/update_users.rb
|
69
|
+
- generators/clearance/templates/user.rb
|
70
|
+
- generators/clearance_features/USAGE
|
71
|
+
- generators/clearance_features/clearance_features_generator.rb
|
72
|
+
- generators/clearance_features/templates/features/password_reset.feature
|
73
|
+
- generators/clearance_features/templates/features/sign_in.feature
|
74
|
+
- generators/clearance_features/templates/features/sign_out.feature
|
75
|
+
- generators/clearance_features/templates/features/sign_up.feature
|
76
|
+
- generators/clearance_features/templates/features/step_definitions/clearance_steps.rb
|
77
|
+
- generators/clearance_features/templates/features/support/paths.rb
|
78
|
+
- generators/clearance_views/USAGE
|
79
|
+
- generators/clearance_views/clearance_views_generator.rb
|
80
|
+
- generators/clearance_views/templates/formtastic/passwords/edit.html.erb
|
81
|
+
- generators/clearance_views/templates/formtastic/passwords/new.html.erb
|
82
|
+
- generators/clearance_views/templates/formtastic/sessions/new.html.erb
|
83
|
+
- generators/clearance_views/templates/formtastic/users/_inputs.html.erb
|
84
|
+
- generators/clearance_views/templates/formtastic/users/new.html.erb
|
85
|
+
- lib/clearance.rb
|
86
|
+
- lib/clearance/authentication.rb
|
87
|
+
- lib/clearance/configuration.rb
|
88
|
+
- lib/clearance/extensions/errors.rb
|
89
|
+
- lib/clearance/extensions/rescue.rb
|
90
|
+
- lib/clearance/routes.rb
|
91
|
+
- lib/clearance/user.rb
|
92
|
+
- rails/init.rb
|
93
|
+
- shoulda_macros/clearance.rb
|
94
|
+
has_rdoc: true
|
95
|
+
homepage: http://github.com/thoughtbot/clearance
|
96
|
+
licenses: []
|
97
|
+
|
98
|
+
post_install_message:
|
99
|
+
rdoc_options:
|
100
|
+
- --charset=UTF-8
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: "0"
|
108
|
+
version:
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: "0"
|
114
|
+
version:
|
115
|
+
requirements: []
|
116
|
+
|
117
|
+
rubyforge_project:
|
118
|
+
rubygems_version: 1.3.5
|
119
|
+
signing_key:
|
120
|
+
specification_version: 3
|
121
|
+
summary: Rails authentication with email & password.
|
122
|
+
test_files:
|
123
|
+
- test/controllers/confirmations_controller_test.rb
|
124
|
+
- test/controllers/passwords_controller_test.rb
|
125
|
+
- test/controllers/sessions_controller_test.rb
|
126
|
+
- test/controllers/users_controller_test.rb
|
127
|
+
- test/models/clearance_mailer_test.rb
|
128
|
+
- test/models/user_test.rb
|
129
|
+
- test/rails_root/app/controllers/accounts_controller.rb
|
130
|
+
- test/rails_root/app/controllers/application_controller.rb
|
131
|
+
- test/rails_root/app/helpers/application_helper.rb
|
132
|
+
- test/rails_root/app/helpers/confirmations_helper.rb
|
133
|
+
- test/rails_root/app/helpers/passwords_helper.rb
|
134
|
+
- test/rails_root/app/models/user.rb
|
135
|
+
- test/rails_root/config/boot.rb
|
136
|
+
- test/rails_root/config/environment.rb
|
137
|
+
- test/rails_root/config/environments/development.rb
|
138
|
+
- test/rails_root/config/environments/production.rb
|
139
|
+
- test/rails_root/config/environments/test.rb
|
140
|
+
- test/rails_root/config/initializers/clearance.rb
|
141
|
+
- test/rails_root/config/initializers/inflections.rb
|
142
|
+
- test/rails_root/config/initializers/mime_types.rb
|
143
|
+
- test/rails_root/config/initializers/requires.rb
|
144
|
+
- test/rails_root/config/initializers/time_formats.rb
|
145
|
+
- test/rails_root/config/routes.rb
|
146
|
+
- test/rails_root/features/step_definitions/clearance_steps.rb
|
147
|
+
- test/rails_root/features/step_definitions/web_steps.rb
|
148
|
+
- test/rails_root/features/support/env.rb
|
149
|
+
- test/rails_root/features/support/paths.rb
|
150
|
+
- test/rails_root/public/dispatch.rb
|
151
|
+
- test/rails_root/script/create_project.rb
|
152
|
+
- test/rails_root/test/factories/clearance.rb
|
153
|
+
- test/rails_root/test/functional/accounts_controller_test.rb
|
154
|
+
- test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/generators/formtastic_stylesheets/formtastic_stylesheets_generator.rb
|
155
|
+
- test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/lib/formtastic.rb
|
156
|
+
- test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/lib/justin_french/formtastic.rb
|
157
|
+
- test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/rails/init.rb
|
158
|
+
- test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/spec/formtastic_spec.rb
|
159
|
+
- test/rails_root/vendor/gems/justinfrench-formtastic-0.2.1/spec/test_helper.rb
|
160
|
+
- test/test_helper.rb
|