clearance 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of clearance might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df978f0510867a2d80c064924da2b102af823b5e
4
- data.tar.gz: be638b6207733d3a873c344f40dbbe540616805a
3
+ metadata.gz: 2509c5d9c52e522bf079988f49c43b6e34b66f9b
4
+ data.tar.gz: bdda3e9606f883b26fc25bfa17dbcaeda830684e
5
5
  SHA512:
6
- metadata.gz: 4d3edea1ae4ce2ff2e47e6a9c747349a58978642c72b46862c303b6c0510a888cfd58668e881dfdf974369ea05c7b316a74795643c89a26059210f2f20ae8911
7
- data.tar.gz: c31439f8e17dacb54727dd968ff6e840129ceb1e0f3fa6fb9bc99c3f4bf71a2d4bff43d98d9d22e37dba36a38d4d4bebb8e743d6a7a827cf0025e5ddde6e0b1a
6
+ metadata.gz: 67d001dd40baca13d399acb8184a741438ff5af9cd8fd992753469a956a61b4054a54051ff10426efab0b02b689625b0062887f929de9266a4ef3753292e9b12
7
+ data.tar.gz: 93709396bcea3b6afa92a3e41216d248cbaf1d2524f88a04d8c00e2c594d18ad920ad6eef736ffc069fdd9db4e3afe8de4cd4d57c141ad08794aed2b74c82bd8
data/.gitignore CHANGED
@@ -9,3 +9,5 @@ gemfiles/*.lock
9
9
  log/*.log
10
10
  pkg
11
11
  tmp/
12
+ doc/
13
+ .yardoc/
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --exclude templates
2
+ --markup markdown
3
+ --markup-provider redcarpet
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ gem 'capybara', '>= 2.3'
9
9
  gem 'database_cleaner', '~> 1.0'
10
10
  gem 'factory_girl_rails', '~> 4.2'
11
11
  gem 'rspec-rails', '~> 3.1'
12
- gem 'shoulda-matchers', '~> 2.4'
12
+ gem 'shoulda-matchers', '~> 2.8'
13
13
  gem 'sqlite3', '~> 1.3'
14
14
  gem 'timecop', '~> 0.6'
15
15
  gem 'pry', require: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clearance (1.8.0)
4
+ clearance (1.8.1)
5
5
  bcrypt
6
6
  email_validator (~> 1.4)
7
7
  rails (>= 3.1)
@@ -53,7 +53,7 @@ GEM
53
53
  rake
54
54
  thor (>= 0.14.0)
55
55
  arel (6.0.0)
56
- bcrypt (3.1.9)
56
+ bcrypt (3.1.10)
57
57
  builder (3.2.2)
58
58
  capybara (2.4.4)
59
59
  mime-types (>= 1.16)
@@ -72,11 +72,11 @@ GEM
72
72
  factory_girl_rails (4.5.0)
73
73
  factory_girl (~> 4.5.0)
74
74
  railties (>= 3.0.0)
75
- globalid (0.3.0)
75
+ globalid (0.3.2)
76
76
  activesupport (>= 4.1.0)
77
77
  hike (1.2.3)
78
78
  i18n (0.7.0)
79
- json (1.8.1)
79
+ json (1.8.2)
80
80
  loofah (2.0.1)
81
81
  nokogiri (>= 1.5.9)
82
82
  mail (2.6.3)
@@ -84,9 +84,9 @@ GEM
84
84
  method_source (0.8.2)
85
85
  mime-types (2.4.3)
86
86
  mini_portile (0.6.2)
87
- minitest (5.5.0)
87
+ minitest (5.5.1)
88
88
  multi_json (1.10.1)
89
- nokogiri (1.6.5)
89
+ nokogiri (1.6.6.2)
90
90
  mini_portile (~> 0.6.0)
91
91
  pry (0.10.1)
92
92
  coderay (~> 1.1.0)
@@ -120,23 +120,24 @@ GEM
120
120
  rake (>= 0.8.7)
121
121
  thor (>= 0.18.1, < 2.0)
122
122
  rake (10.4.2)
123
- rspec-core (3.1.7)
124
- rspec-support (~> 3.1.0)
125
- rspec-expectations (3.1.2)
123
+ rspec-core (3.2.0)
124
+ rspec-support (~> 3.2.0)
125
+ rspec-expectations (3.2.0)
126
126
  diff-lcs (>= 1.2.0, < 2.0)
127
- rspec-support (~> 3.1.0)
128
- rspec-mocks (3.1.3)
129
- rspec-support (~> 3.1.0)
130
- rspec-rails (3.1.0)
131
- actionpack (>= 3.0)
132
- activesupport (>= 3.0)
133
- railties (>= 3.0)
134
- rspec-core (~> 3.1.0)
135
- rspec-expectations (~> 3.1.0)
136
- rspec-mocks (~> 3.1.0)
137
- rspec-support (~> 3.1.0)
138
- rspec-support (3.1.2)
139
- shoulda-matchers (2.7.0)
127
+ rspec-support (~> 3.2.0)
128
+ rspec-mocks (3.2.0)
129
+ diff-lcs (>= 1.2.0, < 2.0)
130
+ rspec-support (~> 3.2.0)
131
+ rspec-rails (3.2.0)
132
+ actionpack (>= 3.0, <= 4.2)
133
+ activesupport (>= 3.0, <= 4.2)
134
+ railties (>= 3.0, <= 4.2)
135
+ rspec-core (~> 3.2.0)
136
+ rspec-expectations (~> 3.2.0)
137
+ rspec-mocks (~> 3.2.0)
138
+ rspec-support (~> 3.2.0)
139
+ rspec-support (3.2.1)
140
+ shoulda-matchers (2.8.0)
140
141
  activesupport (>= 3.0.0)
141
142
  slop (3.6.0)
142
143
  sprockets (2.12.3)
@@ -144,7 +145,7 @@ GEM
144
145
  multi_json (~> 1.0)
145
146
  rack (~> 1.0)
146
147
  tilt (~> 1.1, != 1.3.0)
147
- sprockets-rails (2.2.2)
148
+ sprockets-rails (2.2.4)
148
149
  actionpack (>= 3.0)
149
150
  activesupport (>= 3.0)
150
151
  sprockets (>= 2.8, < 4.0)
@@ -171,6 +172,6 @@ DEPENDENCIES
171
172
  factory_girl_rails (~> 4.2)
172
173
  pry
173
174
  rspec-rails (~> 3.1)
174
- shoulda-matchers (~> 2.4)
175
+ shoulda-matchers (~> 2.8)
175
176
  sqlite3 (~> 1.3)
176
177
  timecop (~> 0.6)
data/NEWS.md CHANGED
@@ -1,506 +1,781 @@
1
- Thank you to all the [contributors](https://github.com/thoughtbot/clearance/graphs/contributors)!
1
+ # News
2
2
 
3
- New for 1.8.0 (January 23, 2015)
4
- * Fixed an issue that would cause sites that are still using the deprecated
5
- `authorize` filter to enter a redirect loop when redirecting to the sign in
6
- path.
7
- * The Clearance remember token cookie name is now customizable via
3
+ The noteworthy changes for each Clearance version are included here. For a
4
+ complete changelog, see the git history.
5
+
6
+ ## [1.8.1] - March 3, 2015
7
+
8
+ ### Security
9
+ - Enable cross-site request forgery protection on `sessions#create`. See
10
+ [7f5d56e](https://github.com/thoughtbot/clearance/commit/7f5d56ed3a51aca14fa60247a90ca0cd11db0e0d).
11
+
12
+ ### Fixed
13
+ - All methods included by `Clearance::Controller` are now excluded from
14
+ `action_methods`.
15
+
16
+ ## [1.8.0] - January 23, 2015
17
+
18
+ ### Added
19
+ - The remember token cookie name is now customizable via
8
20
  `Clearance.configuration.cookie_name`.
9
- * Signed in users that attempt to visit the sign in path are now redirected. The
21
+
22
+ ### Fixed
23
+ - Fixed a redirect loop on the sign in page for applications that are still
24
+ using the deprecated `authorize` filter.
25
+ - Signed in users that attempt to visit the sign in path are now redirected. The
10
26
  redirect URL defaults to the same URL used for the redirect after sign in, but
11
27
  can be customized by overriding `passwords_controller#url_for_signed_in_users`
12
- * `users_controller#avoid_sign_in` is now deprecated in favor of
28
+
29
+ ### Deprecated
30
+ - `users_controller#avoid_sign_in` is now deprecated in favor of
13
31
  `redirect_signed_in_users` which is more accurately named.
14
32
 
15
- New for 1.7.0 (January, 8, 2015)
16
- * The `authorize` filter has been deprecated in favor of `require_login`. Update
33
+ [1.8.0]: https://github.com/thoughtbot/clearance/compare/v1.7.0...v1.8.0
34
+
35
+ ## [1.7.0] - January, 8, 2015
36
+
37
+ ### Fixed
38
+ - Fix the negation of the `deny_access` matcher in Rails 4.0.x on Ruby 2.2
39
+
40
+ ### Deprecated
41
+ - The `authorize` filter has been deprecated in favor of `require_login`. Update
17
42
  all reference to the filter including any calls to `skip_before_filter` or
18
43
  `skip_before_action`.
19
- * The `Clearance.root` method has been deprecated.
20
- * Fix the negation of the `deny_access` matcher in Rails 4.0.x on Ruby 2.2
44
+ - The `Clearance.root` method has been deprecated. It was used internally and
45
+ unlikely to impact external users.
21
46
 
22
- New for 1.6.1 (January 6, 2015)
23
- * Secure cookies are no longer overwritten when the user visits a non-HTTPS URL.
47
+ [1.7.0]: https://github.com/thoughtbot/clearance/compare/v1.6.1...v1.7.0
24
48
 
25
- New for 1.6.0 (December 20, 2014)
26
- * When using Rails 4.2, password reset emails are sent with the
49
+ ## [1.6.1] - January 6, 2015
50
+
51
+ ### Fixed
52
+ - Secure cookies are no longer overwritten when the user visits a non-HTTPS URL.
53
+
54
+ [1.6.1]: https://github.com/thoughtbot/clearance/compare/v1.6.0...v1.6.1
55
+
56
+ ## [1.6.0] - December 20, 2014
57
+
58
+ ### Added
59
+ - When using Rails 4.2, password reset emails are sent with the
27
60
  ActiveJob-compatible `#deliver_later` method.
28
61
 
29
- New for 1.5.1 (December 19, 2014)
30
- * Blowfish password strategy fixed
31
- * Specs generated with `rails generate clearance:specs` now work properly in
62
+ [1.6.0]: https://github.com/thoughtbot/clearance/compare/v1.5.1...v1.6.0
63
+
64
+ ## [1.5.1] - December 19, 2014
65
+
66
+ ### Fixed
67
+ - Blowfish password strategy fixed
68
+ - Specs generated with `rails generate clearance:specs` now work properly in
32
69
  RSpec 3 projects.
33
70
 
34
- New for 1.5.0 (October 17, 2014)
35
- * Disable clearance routes by setting `config.routes = false`.
36
- * Running `rails generate clearance:routes` will dump the default set of
71
+ [1.5.1]: https://github.com/thoughtbot/clearance/compare/v1.5.0...v1.5.1
72
+
73
+ ## [1.5.0] - October 17, 2014
74
+
75
+ ### Added
76
+ - Disable clearance routes by setting `config.routes = false`.
77
+ - Running `rails generate clearance:routes` will dump the default set of
37
78
  routes to your application's routes file for modification.
38
79
 
39
- New for 1.4.3 (October 3, 2014)
40
- * Routing constraints act appropriately when session data is missing.
80
+ [1.5.0]: https://github.com/thoughtbot/clearance/compare/v1.4.3...v1.5.0
81
+
82
+ ## [1.4.3] - October 3, 2014
41
83
 
42
- New for 1.4.2 (September 13, 2014)
43
- * Eliminate deprecation message when using DenyAccess matcher with RSpec 3.
84
+ ### Fixed
85
+ - Routing constraints act appropriately when session data is missing.
44
86
 
45
- New for 1.4.1 (September 5, 2014)
46
- * Prevent BCrypt strategy from raising an exception when `encypted_password`
87
+ [1.4.3]: https://github.com/thoughtbot/clearance/compare/v1.4.2...v1.4.3
88
+
89
+ ## [1.4.2] - September 13, 2014
90
+
91
+ ### Fixed
92
+ - Eliminate deprecation message when using DenyAccess matcher with RSpec 3.
93
+
94
+ [1.4.2]: https://github.com/thoughtbot/clearance/compare/v1.4.1...v1.4.2
95
+
96
+ ## [1.4.1] - September 5, 2014
97
+
98
+ ### Fixed
99
+ - Prevent BCrypt strategy from raising an exception when `encypted_password`
47
100
  is nil.
48
101
 
49
- New for 1.4.0 (July 18, 2014)
50
- * The sign out link in the default application layout has been replaced with a
102
+ [1.4.1]: https://github.com/thoughtbot/clearance/compare/v1.4.0...v1.4.1
103
+
104
+ ## [1.4.0] - July 18, 2014
105
+
106
+ ### Added
107
+ - `user_params` method was added to `Clearance::UsersController` which provides
108
+ a convenient place to override the parameters used when creating users.
109
+ - Controllers now inherit from `Clearance::BaseController` to allow for easily
110
+ adding behavior to all of them.
111
+
112
+ ### Changed
113
+ - The sign out link in the default application layout has been replaced with a
51
114
  semantically correct sign out button. This also removes an unnecessary
52
115
  JavaScript dependency.
53
- * Clearance now uses `original_fullpath` when redirecting to a saved URL after
116
+
117
+ ### Fixed
118
+ - Clearance now uses `original_fullpath` when redirecting to a saved URL after
54
119
  login. This should improve the behavior in mounted engines.
55
- * `user_params` method was added to `Clearance::UsersController` which provides
56
- a convenient place to override the parameters used when creating users.
57
- * Controllers now inherit from `Clearance::BaseController` to allow for easily
58
- adding behavior to all of them.
59
120
 
60
- New for 1.3.0 (March 14, 2014)
61
- * Installing Clearance with an existing User model will now create a migration
121
+ [1.4.0]: https://github.com/thoughtbot/clearance/compare/v1.3.0...v1.4.0
122
+
123
+ ## [1.3.0] - March 14, 2014
124
+
125
+ ### Added
126
+ - Installing Clearance with an existing User model will now create a migration
62
127
  that includes adding remember tokens to all existing user records.
63
128
 
64
- New for 1.2.1 (March 6, 2014):
65
- * Query string is now included in the redirect URL when Clearance redirects to a
129
+ [1.3.0]: https://github.com/thoughtbot/clearance/compare/v1.2.1...v1.3.0
130
+
131
+ ## [1.2.1] - March 6, 2014
132
+
133
+ ### Fixed
134
+ - Query string is now included in the redirect URL when Clearance redirects to a
66
135
  previously stored URL.
67
136
 
68
- New for 1.2.0 (February 28, 2014):
69
- * Support for Rails 4.1.0.rc1
70
- * `clearance/testing` is now deprecated. Require `clearance/rspec` or
71
- `clearance/test_unit` as appropriate.
72
- * Sign in failure message is now customized exclusively via I18n.
137
+ [1.2.1]: https://github.com/thoughtbot/clearance/compare/v1.2.0...v1.2.1
138
+
139
+ ## [1.2.0] - February 28, 2014
140
+
141
+ ### Added
142
+ - Support for Rails 4.1.0.rc1
143
+ - Sign in can now be disabled with `config.allow_sign_in = false`
144
+
145
+ ### Changed
146
+ - Sign in failure message is now customized exclusively via I18n.
73
147
  `SessionsController#flash_failure_after_create` is no longer called. To
74
148
  customize the message, change the
75
149
  `clearance.controllers.sessions.bad_email_or_password` or
76
150
  `flashes.failure_after_create` key.
77
- * Sign in can now be disabled with `config.allow_sign_in = false`
78
151
 
79
- New for 1.1.0 (November 21, 2013):
152
+ ### Deprecated
153
+ - `clearance/testing` is now deprecated. Require `clearance/rspec` or
154
+ `clearance/test_unit` as appropriate.
155
+
156
+ [1.2.0]: https://github.com/thoughtbot/clearance/compare/v1.1.0...v1.2.0
80
157
 
81
- * Validate email with `EmailValidator` [strict mode][strict].
82
- * The `cookie_expiration` configuration lambda can now be called with a
158
+ ## [1.1.0] - November 21, 2013
159
+
160
+ ### Added
161
+ - Validate email with `EmailValidator` [strict mode][strict].
162
+ - The `cookie_expiration` configuration lambda can now be called with a
83
163
  `cookies` parameter. Allows the Clearance cookie expiration to be set
84
164
  according to the value of another cookie (such as `remember_me`).
85
- * A `cookie_expiration` lambda that does not accept this `cookies`
86
- parameter has been deprecated.
87
- * Allow cookie domain and path configuration.
88
- * Add sign in guards.
89
- * Don't allow logins with blank `remember_token`.
165
+ - Allow cookie domain and path configuration.
166
+ - Add sign in guards.
90
167
 
91
168
  [strict]: https://github.com/balexand/email_validator#strict-mode
92
169
 
93
- New for 1.0.1 (August 9, 2013):
170
+ ### Fixed
171
+ - Don't allow logins with blank `remember_token`.
172
+
173
+ ### Deprecated
174
+ - A `cookie_expiration` lambda that does not accept this `cookies`
175
+ parameter has been deprecated.
176
+
177
+ [1.1.0]: https://github.com/thoughtbot/clearance/compare/v1.0.1...v1.1.0
94
178
 
95
- * Fix an issue when trying to sign in with `nil`
96
179
 
97
- New for 1.0.0 (August 1, 2013):
180
+ ## [1.0.1] - August 9, 2013
98
181
 
99
- * Support Rails 4.
100
- * Change default password strategy to BCrypt.
101
- * Speed up test suites using `::BCrypt::Engine::MIN_COST`.
102
- * Speed up integration suites with `Clearance::BackDoor`.
103
- * Replace email regular expression with `EmailValidator` gem.
104
- * Provide `BCryptMigrationFromSHA1` password strategy to help people migrate from
182
+ ### Fixed
183
+ - Fix an issue when trying to sign in with `nil`
184
+
185
+ [1.0.1]: https://github.com/thoughtbot/clearance/compare/v1.0.0...v1.1.1
186
+
187
+ ## [1.0.0] - August 1, 2013
188
+
189
+ ### Added
190
+ - Support Rails 4.
191
+ - Speed up test suites using `::BCrypt::Engine::MIN_COST`.
192
+ - Speed up integration suites with `Clearance::BackDoor`.
193
+ - Provide `BCryptMigrationFromSHA1` password strategy to help people migrate from
105
194
  SHA1 (the old default password strategy) to BCrypt (the new default).
106
- * Support Ruby 2.
107
- * Require > Ruby 1.9.
108
- * More extension points in more controllers.
109
- * The `email`, `encrypted_password`, and `remember_token` fields of the users
195
+ - Support Ruby 2.
196
+ - More extension points in more controllers.
197
+ - Add `SignedIn` and `SignedOut` routing constraints.
198
+ - Add a fake password strategy, which is useful when writing tests.
199
+ - Add `redirect_url` configuration option.
200
+ - Add `secure_cookie` configuration option.
201
+
202
+ ### Changed
203
+ - Change default password strategy to BCrypt.
204
+ - Replace email regular expression with `EmailValidator` gem.
205
+ - Require > Ruby 1.9.
206
+ - The `email`, `encrypted_password`, and `remember_token` fields of the users
110
207
  table are `NOT NULL` in the default migration.
111
- * Add `SignedIn` and `SignedOut` routing constraints.
112
- * Add a fake password strategy, which is useful when writing tests.
113
- * Improve security when changing password.
114
- * Replace Cucumber feature generator with RSpec + Capybara.
115
- * Remove Diesel dependency.
116
- * Remove deprecated methods on User: `remember_me!`, `generate_random_code`,
117
- `password_required?`.
118
- * `PasswordsController` `params[:user]` has changed to `params[:password_reset]`
208
+ - Replace Cucumber feature generator with RSpec + Capybara.
209
+ - Remove Diesel dependency.
210
+ - `PasswordsController` `params[:user]` has changed to `params[:password_reset]`
119
211
  to avoid locale conflicts.
120
- * Remove `unloadable` from controllers (Rails 4 bug fix in development
121
- environment).
122
- * Add `redirect_url` configuration option.
123
- * Add `secure_cookie` configuration option.
124
- * Unauthorized API requests return HTTP status 401 rather than a redirect
212
+
213
+ ### Fixed
214
+ - Improve security when changing password.
215
+ - Reduce extra user lookups when adding cookie to headers.
216
+ - Unauthorized API requests return HTTP status 401 rather than a redirect
125
217
  to the sign in page.
126
- * Remove support for supplying `return_to` value via request parameter.
127
- * Reduce extra user lookups when adding cookie to headers.
128
218
 
129
- New for 0.16.2 (May 11, 2012):
219
+ ### Removed
220
+ - Remove deprecated methods on User: `remember_me!`, `generate_random_code`,
221
+ `password_required?`.
222
+ - Remove `unloadable` from controllers (Rails 4 bug fix in development
223
+ environment).
224
+ - Remove support for supplying `return_to` value via request parameter.
225
+
226
+ [1.0.0]: https://github.com/thoughtbot/clearance/compare/v0.16.2...v1.0.0
130
227
 
131
- * Change default email sender to `deploy@example.com`.
228
+ ## [0.16.2] - May 11, 2012
132
229
 
133
- New for 0.16.1 (April 16, 2012):
230
+ ### Changed
231
+ - Change default email sender to `deploy@example.com`.
134
232
 
135
- * Behave correctly when Rails whitelist attributes mass assignment
233
+ [0.16.2]: https://github.com/thoughtbot/clearance/compare/v0.16.1...v0.16.2
234
+
235
+ ## [0.16.1] - April 16, 2012
236
+
237
+ ### Fixed
238
+ - Behave correctly when Rails whitelist attributes mass assignment
136
239
  protection is turned on.
137
- * Fix for Rails 3.2.x modifying the HTTP cookie headers in rack requests.
240
+ - Fix for Rails 3.2.x modifying the HTTP cookie headers in rack requests.
241
+
242
+ [0.16.1]: https://github.com/thoughtbot/clearance/compare/v0.16.0...v0.16.1
243
+
244
+ ## [0.16.0] - March 16, 2012
245
+
246
+ ### Added
247
+ - Blowfish password encryption strategy.
138
248
 
139
- New for 0.16.0 (March 16, 2012):
249
+ [0.16.0]: https://github.com/thoughtbot/clearance/compare/v0.15.0...v0.16.0
140
250
 
141
- * Blowfish password encryption strategy.
251
+ ## [0.15.0] - February 3, 2012
142
252
 
143
- New for 0.15.0 (February 3, 2012):
253
+ ### Added
254
+ - The `User` model can be swapped out using the `Clearance.configure` method.
144
255
 
145
- * The `User` model can be swapped out using the `Clearance.configure` method.
146
- * Remove `User::InstanceMethods` to silence a Rails 3.2 deprecation warning.
147
- * Bump development dependency of cucumber-rails to 1.1.1.
256
+ ### Removed
257
+ - Remove `User::InstanceMethods` to silence a Rails 3.2 deprecation warning.
148
258
 
149
- New for 0.14.0 (January 13, 2012):
259
+ [0.15.0]: https://github.com/thoughtbot/clearance/compare/v0.14.0...v0.15.0
150
260
 
151
- * Support clearance session management from the Rack environment.
261
+ ## [0.14.0] - January 13, 2012
152
262
 
153
- New for 0.13.2 (January 13, 2012):
263
+ ### Added
264
+ - Support clearance session management from the Rack environment.
154
265
 
155
- * Fixed the `deny_access` matcher.
266
+ [0.14.0]: https://github.com/thoughtbot/clearance/compare/v0.13.2...v0.14.0
156
267
 
157
- New for 0.13.0 (October 11, 2011):
268
+ ## [0.13.2] - January 13, 2012
158
269
 
159
- * In Clearance's optional generated features, use pure Capybara instead of
270
+ ### Fixed
271
+ - Fixed the `deny_access` matcher.
272
+
273
+ [0.13.2]: https://github.com/thoughtbot/clearance/compare/v0.13.0...v0.13.2
274
+
275
+ ## [0.13.0] - October 11, 2011
276
+
277
+ ### Changed
278
+ - In Clearance's optional generated features, use pure Capybara instead of
160
279
  depending on Cucumber's removed `web_steps`, paths, and selectors.
161
- * Extract SHA-1-specific code out of `User` into `PasswordStrategies` module.
162
- * Extract sign in form so that other methods can be added easily.
163
- * Test against Rails 3.1. Required upgrades to Diesel and Appraisal.
164
- * Improved README documentation for overrides.
165
-
166
- New for 0.12.0 (June 30, 2011):
167
-
168
- * Denying access redirects to `root_url` when signed in, `sign_in_url` when signed
169
- out.
170
- * Using flash `:notice` key everywhere now instead of `:success` and `:failure`. More
171
- in line with Rails conventions.
172
- * `redirect_back_or` on sign up.
173
- * Resetting password no longer redirects to sign in page. It displays a message
280
+ - Extract SHA-1-specific code out of `User` into `PasswordStrategies` module.
281
+ - Extract sign in form so that other methods can be added easily.
282
+ - Test against Rails 3.1. Required upgrades to Diesel and Appraisal.
283
+
284
+ [0.13.0]: https://github.com/thoughtbot/clearance/compare/v0.12.0...v0.13.0
285
+
286
+ ## [0.12.0] - June 30, 2011
287
+
288
+ ### Changed
289
+ - Denying access redirects to `root_url` when signed in, `sign_in_url` when
290
+ signed out.
291
+ - Using flash `:notice` key everywhere now instead of `:success` and `:failure`.
292
+ More in line with Rails conventions.
293
+ - `redirect_back_or` on sign up.
294
+ - Resetting password no longer redirects to sign in page. It displays a message
174
295
  telling them to look for an email.
175
- * Removed redundant flash messages. ("Signed in.", "Signed out.", and "You are
296
+ - Removed redundant flash messages. ("Signed in.", "Signed out.", and "You are
176
297
  now signed up.")
177
298
 
178
- New for 0.11.2 (June 29, 2011):
299
+ [0.12.0]: https://github.com/thoughtbot/clearance/compare/v0.11.2...v0.12.0
300
+
301
+ ## [0.11.2] - June 29, 2011
179
302
 
180
- * Rails 3.1.rc compatible.
181
- * Cucumber features no longer require password.
182
- * No more Clearance `shoulda_macros`. Instead providing RSpec- and
303
+ ### Added
304
+ - Rails 3.1.rc compatible.
305
+ - RSpec and Test::Unit compliant test matcher (`should deny_access`, etc)
306
+
307
+ ### Removed
308
+ - No more Clearance `shoulda_macros`. Instead providing RSpec and
183
309
  Test::Unit-compliant test matchers (`should deny_access`, etc).
184
310
 
185
- New for 0.11.1 (April 30, 2011):
311
+ [0.11.2]: https://github.com/thoughtbot/clearance/compare/v0.11.1...v0.11.2
186
312
 
187
- * Redirect to home page after sign up.
188
- * Remove dependency on `dynamic_form`. Replaced with flashes due to limited number
189
- of failure cases.
190
- * Moving `ClearanceMailer` to `app/mailers`. Moving spec to `spec/mailers`.
191
- * Removing `:case_sensitive` option from `validates_uniqueness_of`. It was
313
+ ## [0.11.1] - April 30, 2011
314
+
315
+ ### Added
316
+ - Redirect to home page after sign up.
317
+
318
+ ### Fixed
319
+ - Removing `:case_sensitive` option from `validates_uniqueness_of`. It was
192
320
  unnecessary and causes a small performance problem on some apps.
193
- * Only development dependency in `gemspec` should be `bundler`. All others are
194
- derived by bundling.
195
321
 
196
- New for 0.11.0 (April 24, 2011):
322
+ ### Removed
323
+ - Remove dependency on `dynamic_form`. Replaced with flashes due to limited number
324
+ of failure cases.
325
+
326
+ [0.11.1]: https://github.com/thoughtbot/clearance/compare/v0.11.0...v0.11.1
197
327
 
198
- * Removing password confirmation.
199
- * Use `ActiveSupport::Concern` and `ActiveSupport::SecureRandom` to clean up code.
200
- * New `controller#authenticate(params)` method. Redefine username & password or
328
+ ## [0.11.0] - April 24, 2011
329
+
330
+ ### Added
331
+ - New `controller#authenticate(params)` method. Redefine username & password or
201
332
  other styles of authentication.
202
- * `before_filter :authenticate` API replaced with more aptly-named `before_filter
333
+
334
+ ### Changed
335
+ - `before_filter :authenticate` API replaced with more aptly-named `before_filter
203
336
  :authorize`.
204
337
 
205
- New for 0.10.5 (April 19, 2011):
338
+ ### Removed
339
+ - Removing password confirmation.
340
+
341
+ [0.11.0]: https://github.com/thoughtbot/clearance/compare/v0.10.5...v0.11.0
342
+
343
+ ## [0.10.5] - April 19, 2011
344
+
345
+ ### Security
346
+ - Closing CSRF hole for Rails >= 3.0.4 apps.
347
+
348
+ [0.10.5]: https://github.com/thoughtbot/clearance/compare/v0.10.4...v0.10.5
349
+
350
+ ## [0.10.4] - April 16, 2011
351
+
352
+ ### Added
353
+ - Use HTML5 email fields.
354
+
355
+ ### Changed
356
+ - Emails forced to be downcased (particularly for iPhone user case).
357
+
358
+ ### Fixed
359
+ - Password reset requires a password.
206
360
 
207
- * Closing CSRF hole for Rails >= 3.0.4 apps.
361
+ ### Removed
362
+ - Formtastic views generator removed.
208
363
 
209
- New for 0.10.4 (April 16, 2011):
364
+ [0.10.4]: https://github.com/thoughtbot/clearance/compare/v0.10.3.2...v0.10.4
210
365
 
211
- * Formtastic views generator removed.
212
- * Emails forced to be downcased (particularly for iPhone user case).
213
- * Suite converted from test/unit to RSpec.
214
- * Password reset requires a password.
215
- * Use HTML5 email fields.
366
+ ## [0.10.3.2] - March 6, 2011
216
367
 
217
- New for 0.10.3.2 (March 6, 2011):
368
+ ### Fixed
369
+ - Fix gemspec to include all necessary files.
218
370
 
219
- * Fix gemspec to include all necessary files.
371
+ [0.10.3.2]: https://github.com/thoughtbot/clearance/compare/v0.10.3.1...v0.10.3.2
220
372
 
221
- New for 0.10.3.1 (February 20, 2011):
373
+ ## [0.10.3.1] - February 20, 2011
222
374
 
223
- * Ensure everything within features inside any engine directory is included in
375
+ ### Fixed
376
+ - Ensure everything within features inside any engine directory is included in
224
377
  the `gemspec`.
225
378
 
226
- New for 0.10.3 (February 19, 2011):
379
+ [0.10.3.1]: https://github.com/thoughtbot/clearance/compare/v0.10.3...v0.10.3.1
227
380
 
228
- * Include features/engines in `gemspec` file list so generator works as
381
+ ## [0.10.3] - February 19, 2011
382
+
383
+ ### Fixed
384
+ - Include features/engines in `gemspec` file list so generator works as
229
385
  expected.
230
386
 
231
- New for 0.10.2 (February 18, 2011):
387
+ [0.10.3]: https://github.com/thoughtbot/clearance/compare/v0.10.2...v0.10.3
232
388
 
233
- * Replaced `test/rails_root` & general testing strategy with Diesel.
234
- * Conveniences in factories for password/confirmation.
235
- * New generator command: `rails generate clearance:install`.
236
- * Step definitions are now prefixed with `visitor_` to use thoughtbot
237
- convention.
238
- * When Clearance installed in an app that already has users, allow old users to
389
+ ## [0.10.2] - February 18, 2011
390
+
391
+ ### Added
392
+ - New generator command: `rails generate clearance:install`.
393
+ - When Clearance installed in an app that already has users, allow old users to
239
394
  sign in by resetting their password.
240
395
 
241
- New for 0.10.1 (February 9, 2011):
396
+ ### Changed
397
+ - Step definitions are now prefixed with `visitor_` to use thoughtbot
398
+ convention.
399
+
400
+ [0.10.2]: https://github.com/thoughtbot/clearance/compare/v0.10.1...v0.10.2
242
401
 
243
- * Replaced `ActionController::Forbidden` with a user-friendly flash message.
244
- * Improved language of Cucumber steps by allowing a little more flexibility.
402
+ ## [0.10.1] - February 9, 2011
245
403
 
246
- New for 0.10.0 (June 29, 2010):
404
+ ### Fixed
405
+ - Replaced `ActionController::Forbidden` with a user-friendly flash message.
247
406
 
248
- * Better email validation regular expression.
249
- * Removed email confirmation step, was mostly a hassle and can always be added
407
+ [0.10.1]: https://github.com/thoughtbot/clearance/compare/v0.10.0...v0.10.1
408
+
409
+ ## [0.10.0] - June 29, 2010
410
+
411
+ ### Added
412
+ - Better email validation regular expression.
413
+
414
+ ### Removed
415
+ - Removed email confirmation step, was mostly a hassle and can always be added
250
416
  back in at the application level (instead of engine level) if necessary.
251
- * Removed `disable_with` on forms since it does not allow IE users to submit
417
+ - Removed `disable_with` on forms since it does not allow IE users to submit
252
418
  forms. [Read more](https://github.com/rails/jquery-ujs/issues#issue/30).
253
419
 
254
- New for 0.9.1 (June 29, 2010):
420
+ [0.10.0]: https://github.com/thoughtbot/clearance/compare/v0.9.1...v0.10.0
421
+
422
+ ## [0.9.1] - June 29, 2010
255
423
 
256
- * This release supports Rails 3, capybara, and shoulda 2.10+.
424
+ ### Added
425
+ - This release supports Rails 3, capybara, and shoulda 2.10+.
257
426
 
258
- New for 0.9.0 (June 11, 2010):
427
+ [0.9.1]: https://github.com/thoughtbot/clearance/compare/v0.9.0...v0.9.1
259
428
 
260
- * Removed unnecessary db index.
261
- * Allow customization of cookie duration.
262
- * `rake generator:cleanup` needed to be... cleaned up.
429
+ ## [0.9.0] - June 11, 2010
263
430
 
264
- New for 0.8.8 (February 25, 2010):
431
+ ### Added
432
+ - Allow customization of cookie duration.
265
433
 
266
- * Fixed `sign_in` and `sign_out` not setting `current_user`.
434
+ ### Changed
435
+ - Removed unnecessary db index.
267
436
 
268
- New for 0.8.7 (February 21, 2010):
437
+ [0.9.0]: https://github.com/thoughtbot/clearance/compare/v0.8.8...v0.9.0
269
438
 
270
- * Fixed global sign out bug.
271
- * Allow Rails apps to `before_filter :authenticate` the entire app
439
+ ## [0.8.8] - February 25, 2010
440
+
441
+ ### Fixed
442
+ - Fixed `sign_in` and `sign_out` not setting `current_user`.
443
+
444
+ [0.8.8]: https://github.com/thoughtbot/clearance/compare/v0.8.7...v0.8.8
445
+
446
+ ## [0.8.7] - February 21, 2010
447
+
448
+ ### Fixed
449
+ - Fixed global sign out bug.
450
+ - Allow Rails apps to `before_filter :authenticate` the entire app
272
451
  in `ApplicationController` and still have password recovery work without
273
452
  overriding any controllers.
274
- * Rails 3 fix for `ActionController`/`ActionDispatch` change.
453
+ - Rails 3 fix for `ActionController`/`ActionDispatch` change.
454
+
455
+ [0.8.7]: https://github.com/thoughtbot/clearance/compare/v0.8.6...v0.8.7
275
456
 
276
- New for 0.8.6 (February 17, 2010):
457
+ ## [0.8.6] - February 17, 2010
277
458
 
278
- * Clearance features capitalization should match view text.
279
- * Skip `:authenticate before_filter` in controllers so apps can easily
459
+ ### Added
460
+ - Allow overridden user models to skip email/password validations
461
+ conditionally. This makes username/facebook integration easier.
462
+
463
+ ### Fixed
464
+ - Clearance features capitalization should match view text.
465
+ - Skip `:authenticate before_filter` in controllers so apps can easily
280
466
  authenticate a whole site without subclassing.
281
- * Added randomness to token and salt generation,
282
- * Reset the `remember_token` on sign out instead of sign in. Allows for the same
467
+ - Added randomness to token and salt generation,
468
+ - Reset the `remember_token` on sign out instead of sign in. Allows for the same
283
469
  user to sign in from two locations at once.
284
- * Append the version number to generated update migrations.
285
- * Allow overridden user models to skip email/password validations
286
- conditionally. This makes username/facebook integration easier.
470
+ - Append the version number to generated update migrations.
287
471
 
288
- New for 0.8.5 (January 20, 2010):
472
+ [0.8.6]: https://github.com/thoughtbot/clearance/compare/v0.8.5...v0.8.6
289
473
 
290
- * Replaced routing hack with `Clearance::Routes.draw(map)` to give more control
291
- to the application developer.
292
- * Removed `attr_accessible` from `Clearance::User`.
293
- * Fixed bug in password reset feature.
294
- * Use Jeweler for gemming.
295
- * Remove dependency on `root_path`, use `'/'` instead.
296
- * Use `Clearance.configure` block to set mailer sender instead of `DO_NOT_REPLY`
474
+ ## [0.8.5] - January 20, 2010
475
+
476
+ ### Changed
477
+ - Removed `attr_accessible` from `Clearance::User`.
478
+ - Remove dependency on `root_path`, use `'/'` instead.
479
+ - Use `Clearance.configure` block to set mailer sender instead of `DO_NOT_REPLY`
297
480
  constant.
298
481
 
299
- New for 0.8.4 (December 08, 2009):
482
+ ### Fixed
483
+ - Replaced routing hack with `Clearance::Routes.draw(map)` to give more control
484
+ to the application developer.
485
+ - Fixed bug in password reset feature.
486
+
487
+ [0.8.5]: https://github.com/thoughtbot/clearance/compare/v0.8.4...v0.8.5
488
+
489
+ ## [0.8.4] - December 08, 2009
490
+
491
+ ### Fixed
492
+ - Remove unnecessary `require 'factory_girl'` in generator.
493
+
494
+ [0.8.4]: https://github.com/thoughtbot/clearance/compare/v0.8.3...v0.8.4
495
+
496
+ ## [0.8.3] - September 21, 2009
497
+
498
+ ### Fixed
499
+ - Avoid possible collisions in the remember me token.
500
+
501
+ [0.8.3]: https://github.com/thoughtbot/clearance/compare/v0.8.2...v0.8.3
300
502
 
301
- * Remove unnecessary `require 'factory_girl'` in generator.
302
- * Reference gemcutter (not github) as the gem source in README.
303
- * Add IRC, rdoc.info links to README.
304
- * Move user confirmation email trigger into model.
503
+ ## [0.8.2] - September 01, 2009
305
504
 
306
- New for 0.8.3 (September 21, 2009):
505
+ ### Added
506
+ - `current_user= accessor` method.
507
+ - Set `current_user` in `sign_in`.
307
508
 
308
- * Remove `class_eval` in `Clearance::Authentication`.
309
- * Avoid possible collisions in the remember me token.
509
+ [0.8.2]: https://github.com/thoughtbot/clearance/compare/v0.8.1...v0.8.2
310
510
 
311
- New for 0.8.2 (September 01, 2009):
511
+ ## [0.8.1] - August 31, 2009
312
512
 
313
- * `current_user= accessor` method.
314
- * Set `current_user` in `sign_in`.
513
+ ### Changed
514
+ - Removed unnecessary `remember_token_expires_at` column.
315
515
 
316
- New for 0.8.1 (August 31, 2009):
516
+ ### Removed
517
+ - Removed `remember?` and `forget_me!` user instance methods.
317
518
 
318
- * Removed unnecessary `remember_token_expires_at` column and the
319
- `remember?` and `forget_me!` user instance methods.
519
+ [0.8.1]: https://github.com/thoughtbot/clearance/compare/v0.8.0...v0.8.1
320
520
 
321
- New for 0.8.0 (August 31, 2009):
521
+ ## [0.8.0] - August 31, 2009
322
522
 
323
- * Always remember me. Replaced session-and-remember-me authentication with
523
+ ### Added
524
+ - Documented `Clearance::Authentication` with YARD.
525
+ - Documented `Clearance::User` with YARD.
526
+
527
+ ### Changed
528
+ - Always remember me. Replaced session-and-remember-me authentication with
324
529
  always using a cookie with a long timeout.
325
- * Documented `Clearance::Authentication` with YARD.
326
- * Documented `Clearance::User` with YARD.
327
530
 
328
- New for 0.7.0 (August 4, 2009):
531
+ [0.8.0]: https://github.com/thoughtbot/clearance/compare/v0.7.0...v0.8.0
532
+
533
+ ## [0.7.0] - August 4, 2009
329
534
 
330
- * Redirect signed in user who clicks confirmation link again.
331
- * Redirect signed out user who clicks confirmation link again.
332
- * Added `signed_out?` convenience method for controllers, helpers, views.
333
- * Added `clearance_views` generator. By default, creates formtastic views which
535
+ ### Added
536
+ - Added `signed_out?` convenience method for controllers, helpers, views.
537
+ - Added `clearance_views` generator. By default, creates formtastic views which
334
538
  pass all tests and features.
335
539
 
336
- New for 0.6.9 (July 4, 2009):
540
+ ### Fixed
541
+ - Redirect signed in user who clicks confirmation link again.
542
+ - Redirect signed out user who clicks confirmation link again.
543
+
544
+ [0.7.0]: https://github.com/thoughtbot/clearance/compare/v0.6.9...v0.7.0
545
+
546
+ ## [0.6.9] - July 4, 2009
547
+
548
+ ### Added
549
+ - Added timestamps to create users migration.
550
+ - Ready for Ruby 1.9.
337
551
 
338
- * Added timestamps to create users migration.
339
- * Ready for Ruby 1.9.
552
+ [0.6.9]: https://github.com/thoughtbot/clearance/compare/v0.6.8...v0.6.9
340
553
 
341
- New for 0.6.8 (June 24, 2009):
554
+ ## [0.6.8] - June 24, 2009
342
555
 
343
- * Added `defined?` checks for various Rails constants such as `ActionController`
556
+ ### Fixed
557
+ - Added `defined?` checks for various Rails constants such as `ActionController`
344
558
  for easier unit testing of Clearance extensions... particularly `ActiveRecord`
345
559
  extensions... `particularly strong_password`.
346
560
 
347
- New for 0.6.7 (June 13, 2009):
561
+ [0.6.8]: https://github.com/thoughtbot/clearance/compare/v0.6.7...v0.6.8
348
562
 
349
- * Added `sign_up`, `sign_in`, `sign_out` named routes.
350
- * Minimizing Reek smell: Duplication in `redirect_back_or`.
351
- * Deprecated `sign_user_in`. Told developers to use `sign_in` instead.
352
- * `flash_success_after_create`, `flash_notice_after_create`,
563
+ ## [0.6.7] - June 13, 2009
564
+
565
+ ### Added
566
+ - Added `sign_up`, `sign_in`, `sign_out` named routes.
567
+ - `flash_success_after_create`, `flash_notice_after_create`,
353
568
  `flash_failure_after_create`, `flash_sucess_after_update`,
354
569
  `flash_success_after_destroy`, etc.
355
- * Added `#create` to forbidden `before_filters` on confirmations controller.
356
- * `should_be_signed_in_as` shouldn't look in the session.
357
- * README improvements.
358
- * Move routes loading to separate file.
570
+ - Added `#create` to forbidden `before_filters` on confirmations controller.
571
+
572
+ ### Fixed
573
+ - `should_be_signed_in_as` shouldn't look in the session.
574
+
575
+ ### Deprecated
576
+ - Deprecated `sign_user_in`. Told developers to use `sign_in` instead.
359
577
 
360
- New for 0.6.6 (May 18, 2009):
578
+ [0.6.7]: https://github.com/thoughtbot/clearance/compare/v0.6.6...v0.6.7
361
579
 
362
- * replaced `class_eval` in `Clearance::User` with modules. This was needed
580
+ ## [0.6.6] - May 18, 2009
581
+
582
+ ### Fixed
583
+ - replaced `class_eval` in `Clearance::User` with modules. This was needed
363
584
  so we could write our own validations.
364
585
 
365
- New for 0.6.5 (May 17, 2009):
586
+ [0.6.6]: https://github.com/thoughtbot/clearance/compare/v0.6.5...v0.6.6
587
+
588
+ ## [0.6.5] - May 17, 2009
366
589
 
367
- * Make Clearance i18n aware.
590
+ ### Added
591
+ - Make Clearance i18n aware.
368
592
 
369
- New for 0.6.4 (May 12, 2009):
593
+ [0.6.5]: https://github.com/thoughtbot/clearance/compare/v0.6.4...v0.6.5
370
594
 
371
- * Moved issue tracking to Github from Lighthouse.
372
- * Asking higher-level questions of controllers in webrat steps, such as
373
- `signed_in`? instead of what's in the session. same for accessors.
374
- * Replacing `sign_in_as` & `sign_out` shoulda macros with a stubbing (requires no
375
- dependency) approach. this will avoid dealing with the internals of
595
+ ## [0.6.4] - May 12, 2009
596
+
597
+ ### Changed
598
+ - Replacing `sign_in_as` & `sign_out` shoulda macros with a stubbing (requires no
599
+ dependency) approach. This will avoid dealing with the internals of
376
600
  `current_user`, such as session & cookies. Added `sign_in` macro which signs in an
377
601
  email confirmed user from clearance's factories.
378
- * Move private methods on sessions controller into `Clearance::Authentication`
602
+ - Move private methods on sessions controller into `Clearance::Authentication`
379
603
  module.
380
- * Audited flash keys.
604
+ - Audited flash keys.
605
+
606
+ [0.6.4]: https://github.com/thoughtbot/clearance/compare/v0.6.3...v0.6.4
381
607
 
382
- New for 0.6.3 (April 23, 2009):
608
+ ## [0.6.3] - April 23, 2009
383
609
 
384
- * Scoping `ClearanceMailer` properly within controllers so it works in
610
+ ### Fixed
611
+ - Scoping `ClearanceMailer` properly within controllers so it works in
385
612
  production environments.
386
613
 
387
- New for 0.6.2 (April 22, 2009):
614
+ [0.6.3]: https://github.com/thoughtbot/clearance/compare/v0.6.2...v0.6.3
615
+
616
+ ## [0.6.2] - April 22, 2009
388
617
 
389
- * Insert `Clearance::User` into User model if it exists.
390
- * `World(NavigationHelpers)` Cucumber 3.0 style.
618
+ ### Added
619
+ - Insert `Clearance::User` into User model if it exists.
391
620
 
392
- New for 0.6.1 (April 21, 2009):
621
+ [0.6.2]: https://github.com/thoughtbot/clearance/compare/v0.6.1...v0.6.2
393
622
 
394
- * Scope operators are necessary to keep Rails happy. Reverting the original
623
+ ## [0.6.1] - April 21, 2009
624
+
625
+ ### Changed
626
+ - Scope operators are necessary to keep Rails happy. Reverting the original
395
627
  revert so they're back in the library now for constants referenced inside of
396
628
  the gem.
397
629
 
398
- New for 0.6.0 (April 21, 2009):
630
+ [0.6.1]: https://github.com/thoughtbot/clearance/compare/v0.6.0...v0.6.1
631
+
632
+ ## [0.6.0] - April 21, 2009
399
633
 
400
- * Converted Clearance to a Rails engine.
401
- * Include `Clearance::User` in User model in app.
402
- * Include `Clearance::Authentication` in `ApplicationController`.
403
- * Namespace controllers under `Clearance` module.
404
- * Routes move to engine, use namespaced controllers but publicly the same.
405
- * If you want to override a controller, subclass it like `SessionsController <
634
+ ### Changed
635
+ - Converted Clearance to a Rails engine.
636
+ - Include `Clearance::User` in User model in app.
637
+ - Include `Clearance::Authentication` in `ApplicationController`.
638
+ - Namespace controllers under `Clearance` module.
639
+ - Routes move to engine, use namespaced controllers but publicly the same.
640
+ - If you want to override a controller, subclass it like `SessionsController <
406
641
  Clearance::SessionsController`. This gives you access to usual hooks such as
407
642
  `url_after_create`.
408
- * Controllers, mailer, model, routes all unit tested inside engine. Use
643
+ - Controllers, mailer, model, routes all unit tested inside engine. Use
409
644
  `script/generate clearance_features` to test integration of Clearance with your
410
645
  Rails app. No longer including modules in your app's test files.
411
- * Moved views to engine.
412
- * Converted generated `test/factories/clearance.rb` to use inheritence for
646
+ - Moved views to engine.
647
+ - Converted generated `test/factories/clearance.rb` to use inheritence for
413
648
  `email_confirmed_user`.
414
- * Corrected some spelling errors with methods.
415
- * Converted "I should see error messages" to use a regex in the features.
416
- * Loading clearance routes after rails routes via some monkeypatching.
417
- * Made the clearance controllers `unloadable` to stop constant loading errors in
649
+ - Corrected some spelling errors with methods.
650
+ - Loading clearance routes after rails routes via some monkeypatching.
651
+ - Made the clearance controllers `unloadable` to stop constant loading errors in
418
652
  development mode.
419
653
 
420
- New for 0.5.6 (April 11, 2009):
654
+ [0.6.0]: https://github.com/thoughtbot/clearance/compare/v0.5.6...v0.6.0
421
655
 
422
- * Step definition changed for "User should see error messages" so features won't
656
+ ## [0.5.6] - April 11, 2009
657
+
658
+ ### Fixed
659
+ - Step definition changed for "User should see error messages" so features won't
423
660
  fail for certain validations.
424
661
 
425
- New for 0.5.5 (March 23, 2009):
662
+ [0.5.6]: https://github.com/thoughtbot/clearance/compare/v0.5.5...v0.5.6
663
+
664
+ ## [0.5.5] - March 23, 2009
665
+
666
+ ### Fixed
667
+ - Removing duplicate test to get rid of warning.
668
+
669
+ [0.5.5]: https://github.com/thoughtbot/clearance/compare/v0.5.4...v0.5.5
426
670
 
427
- * Removing duplicate test to get rid of warning.
671
+ ## [0.5.4] - March 21, 2009
428
672
 
429
- New for 0.5.4 (March 21, 2009):
673
+ ### Changed
674
+ - When users fail logging in, redirect them instead of rendering.
430
675
 
431
- * When users fail logging in, redirect them instead of rendering.
676
+ [0.5.4]: https://github.com/thoughtbot/clearance/compare/v0.5.3...v0.5.4
432
677
 
433
- New for 0.5.3 (March 5, 2009):
678
+ ## [0.5.3] - March 5, 2009
434
679
 
435
- * Clearance now works with (and requires) Shoulda 2.10.0.
436
- * Prefer flat over nested contexts in `sessions_controller_test`.
680
+ ### Changed
681
+ - Clearance now works with (and requires) Shoulda 2.10.0.
437
682
 
438
- New for 0.5.2 (March 2, 2009):
683
+ [0.5.3]: https://github.com/thoughtbot/clearance/compare/v0.5.2...v0.5.3
439
684
 
440
- * Fixed last remaining errors in Rails 2.3 tests. Now fully compatible.
685
+ ## [0.5.2] - March 2, 2009
441
686
 
442
- New for 0.5.1 (February 27, 2009):
687
+ ### Added
688
+ - Full compatible with Rails 2.3 (all tests pass)
443
689
 
444
- * A user with unconfirmed email who resets password now confirms email.
445
- * Refactored `user_from_cookie`, `user_from_session`, `User#authenticate` to use
446
- more direct return code instead of ugly, harder to read ternary.
447
- * Switch order of cookies and sessions to take advantage of Rails 2.3's
690
+ [0.5.2]: https://github.com/thoughtbot/clearance/compare/v0.5.1...v0.5.2
691
+
692
+ ## [0.5.1] - February 27, 2009
693
+
694
+ ### Changed
695
+ - A user with unconfirmed email who resets password now confirms email.
696
+ - Switch order of cookies and sessions to take advantage of Rails 2.3's
448
697
  "Rack-based lazy-loaded sessions",
449
- * Altered generator to interact with `application_controller.rb` instead of
698
+ - Altered generator to interact with `application_controller.rb` instead of
450
699
  `application.rb` in Rails 2.3 apps.
451
- * Bug fix. Rack-based session change altered how to test remember me cookie.
452
700
 
453
- New for 0.5.0 (February 27, 2009):
701
+ ### Fixed
702
+ - Rack-based session change altered how to test remember me cookie.
703
+
704
+ [0.5.1]: https://github.com/thoughtbot/clearance/compare/v0.5.0...v0.5.1
705
+
706
+ ## [0.5.0] - February 27, 2009
707
+
708
+ ### Fixed
709
+ - Fixed problem with Cucumber features.
710
+ - Fixed missing HTTP fluency use case.
711
+
712
+ [0.5.0]: https://github.com/thoughtbot/clearance/compare/v0.4.9...v0.5.0
713
+
714
+ ## [0.4.9] - February 20, 2009
715
+
716
+ ### Changed
717
+ - Protect passwords & confirmations actions with forbidden filters.
718
+ - Return 403 Forbidden status code in those cases.
719
+
720
+ ### Security
721
+ - Fixed bug that allowed anyone to edit another user's password.
454
722
 
455
- * Fixed problem with Cucumber features.
456
- * Fixed mising HTTP fluency use case.
457
- * Refactored `User#update_password` to take just parameters it needs.
458
- * Refactored `User` unit tests to be more readable.
723
+ [0.4.9]: https://github.com/thoughtbot/clearance/compare/v0.4.8...v0.4.9
459
724
 
460
- New for 0.4.9 (February 20, 2009):
725
+ ## [0.4.8] - February 16, 2009
461
726
 
462
- * Protect passwords & confirmations actions with forbidden filters.
463
- * Return 403 Forbidden status code in those cases.
464
- * Test 403 Forbidden status code in Cucumber feature.
465
- * Raise custom `ActionController::Forbidden` error internally.
466
- * Test `ActionController::Forbidden` error is raised in functional test.
467
- * Fixed bug that allowed anyone to edit another user's password.
468
- * Required Factory Girl >= 1.2.0.
727
+ ### Added
728
+ - Added documentation for the flash.
729
+ - Generators `require 'test_helper'` instead of `File.join` for RR
730
+ compatibility.
469
731
 
470
- New for 0.4.8 (February 16, 2009):
732
+ ### Changed
733
+ - Removed interpolated email address from flash message to make i18n easier.
734
+ - Standardized flash messages that refer to email delivery.
471
735
 
472
- * Added support paths for Cucumber.
473
- * Added documentation for the flash.
474
- * Generators `require 'test_helper'` instead of `File.join` for RR compatibility.
475
- * Removed interpolated email address from flash message to make i18n easier.
476
- * Standardized flash messages that refer to email delivery.
736
+ [0.4.8]: https://github.com/thoughtbot/clearance/compare/v0.4.7...v0.4.8
477
737
 
478
- New for 0.4.7 (February 12, 2009):
738
+ ## [0.4.7] - February 12, 2009
479
739
 
480
- * Removed `Clearance::Test::TestHelper` so there is one less setup step.
481
- * All test helpers now in `shoulda_macros`.
740
+ ### Changed
741
+ - Removed `Clearance::Test::TestHelper` so there is one less setup step.
742
+ - All test helpers now in `shoulda_macros`.
482
743
 
483
- New for 0.4.6 (February 11, 2009):
744
+ [0.4.7]: https://github.com/thoughtbot/clearance/compare/v0.4.7...v0.4.7
484
745
 
485
- * Made the modules behave like mixins again.
486
- * Created `Actions` and `PrivateMethods` modules on controllers for future RDoc
746
+ ## [0.4.6] - February 11, 2009
747
+
748
+ ### Added
749
+ - Created `Actions` and `PrivateMethods` modules on controllers for future RDoc
487
750
  reasons.
488
751
 
489
- New for 0.4.5 (February 9, 2009):
752
+ [0.4.6]: https://github.com/thoughtbot/clearance/compare/v0.4.5...v0.4.6
490
753
 
491
- * Removed email downcasing because local-part is case sensitive per
492
- RFC5321.
493
- * Removed dependency on Mocha.
494
- * Required Shoulda >= 2.9.1.
495
- * Added password reset feature to `clearance_features` generator.
496
- * Removed unnecessary `session[:salt]`.
497
- * Only store location for `session[:return_to]` for GET requests.
498
- * Audited "sign up" naming convention. "Register" had slipped in a few places.
499
- * Switched to `SHA1` encryption. Cypher doesn't matter much for email
754
+ ## [0.4.5] - February 9, 2009
755
+
756
+ ### Added
757
+ - Added password reset feature to `clearance_features` generator.
758
+
759
+ ### Changed
760
+ - Only store location for `session[:return_to]` for GET requests.
761
+ - Audited "sign up" naming convention. "Register" had slipped in a few places.
762
+ - Switched to `SHA1` encryption. Cypher doesn't matter much for email
500
763
  confirmation, password reset. Better to have shorter hashes in the emails for
501
764
  clients who line break on 72 chars.
502
765
 
503
- New for 0.4.4 (February 2, 2009):
766
+ ### Removed
767
+ - Removed email downcasing because local-part is case sensitive per
768
+ RFC5321.
769
+ - Removed unnecessary `session[:salt]`.
770
+
771
+ [0.4.5]: https://github.com/thoughtbot/clearance/compare/v0.4.4...v0.4.5
772
+
773
+ ## [0.4.4] - February 2, 2009
774
+
775
+ ### Added
776
+ - Added a generator for Cucumber features.
777
+
778
+ ### Changed
779
+ - Standardized naming for "Sign up," "Sign in," and "Sign out".
504
780
 
505
- * Added a generator for Cucumber features.
506
- * Standardized naming for "Sign up," "Sign in," and "Sign out".
781
+ [0.4.4]: https://github.com/thoughtbot/clearance/compare/v0.3.7...v0.4.4