clearance 0.9.0.rc5 → 0.9.0.rc6
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.
- data/README.md +5 -5
- data/VERSION +1 -1
- data/config/routes.rb +9 -16
- data/lib/rails/generators/clearance_generator.rb +1 -1
- data/test/test_helper.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -76,7 +76,7 @@ and add your route in config/routes.rb:
|
|
76
76
|
See config/routes.rb for all the routes Clearance provides.
|
77
77
|
|
78
78
|
Actions that redirect (create, update, and destroy) in Clearance controllers
|
79
|
-
can be
|
79
|
+
can be overridden by re-defining url_after_(action) methods as seen above.
|
80
80
|
|
81
81
|
Optional Cucumber features
|
82
82
|
--------------------------
|
@@ -92,11 +92,11 @@ Run the Cucumber generator and Clearance feature generator:
|
|
92
92
|
|
93
93
|
Edit your Gemfile to include:
|
94
94
|
|
95
|
-
gem '
|
95
|
+
gem 'factory_girl_rails'
|
96
96
|
|
97
97
|
Edit your config/enviroments/cucumber.rb to include the following:
|
98
98
|
|
99
|
-
|
99
|
+
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
100
100
|
|
101
101
|
Then run rake!
|
102
102
|
|
@@ -115,8 +115,8 @@ Authors
|
|
115
115
|
-------
|
116
116
|
|
117
117
|
Clearance was extracted out of [Hoptoad](http://hoptoadapp.com). We merged the
|
118
|
-
authentication code from two of thoughtbot client Rails apps and have since
|
119
|
-
used it each time we
|
118
|
+
authentication code from two of thoughtbot's client Rails apps and have since
|
119
|
+
used it each time we needed authentication.
|
120
120
|
|
121
121
|
The following people have improved the library. Thank you!
|
122
122
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.0.
|
1
|
+
0.9.0.rc6
|
data/config/routes.rb
CHANGED
@@ -1,30 +1,23 @@
|
|
1
|
-
Rails.application.routes.draw do
|
2
|
-
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
resources :passwords,
|
3
3
|
:controller => 'clearance/passwords',
|
4
4
|
:only => [:new, :create]
|
5
5
|
|
6
|
-
|
6
|
+
resource :session,
|
7
7
|
:controller => 'clearance/sessions',
|
8
8
|
:only => [:new, :create, :destroy]
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
resources :users, :controller => 'clearance/users' do
|
11
|
+
resource :password,
|
12
12
|
:controller => 'clearance/passwords',
|
13
13
|
:only => [:create, :edit, :update]
|
14
14
|
|
15
|
-
|
15
|
+
resource :confirmation,
|
16
16
|
:controller => 'clearance/confirmations',
|
17
17
|
:only => [:new, :create]
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
map.sign_in 'sign_in',
|
24
|
-
:controller => 'clearance/sessions',
|
25
|
-
:action => 'new'
|
26
|
-
map.sign_out 'sign_out',
|
27
|
-
:controller => 'clearance/sessions',
|
28
|
-
:action => 'destroy',
|
29
|
-
:method => :delete
|
20
|
+
match 'sign_up' => 'clearance/users#new', :as => 'sign_up'
|
21
|
+
match 'sign_in' => 'clearance/sessions#new', :as => 'sign_in'
|
22
|
+
match 'sign_out' => 'clearance/sessions#destroy', :via => :delete, :as => 'sign_out'
|
30
23
|
end
|
@@ -62,7 +62,7 @@ class ClearanceGenerator < ActiveRecord::Generators::Base
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def schema_version
|
65
|
-
IO.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).strip.gsub(/[^\d]/, '_')
|
65
|
+
IO.read(File.join(File.dirname(__FILE__), '..', '..', '..', 'VERSION')).strip.gsub(/[^\d]/, '_')
|
66
66
|
end
|
67
67
|
|
68
68
|
def upgrading_clearance_again?
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clearance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 977940483
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 0.9.0.
|
10
|
+
- rc6
|
11
|
+
version: 0.9.0.rc6
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Dan Croak
|
@@ -33,7 +33,7 @@ autorequire:
|
|
33
33
|
bindir: bin
|
34
34
|
cert_chain: []
|
35
35
|
|
36
|
-
date: 2010-06-29 00:00:00 -
|
36
|
+
date: 2010-06-29 00:00:00 -04:00
|
37
37
|
default_executable:
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|