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 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 overriden by re-defining url_after_(action) methods as seen above.
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 'factory_girl'
95
+ gem 'factory_girl_rails'
96
96
 
97
97
  Edit your config/enviroments/cucumber.rb to include the following:
98
98
 
99
- ActionMailer::Base.default_url_options = { :host => 'localhost:3000' }
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 need authentication.
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.rc5
1
+ 0.9.0.rc6
data/config/routes.rb CHANGED
@@ -1,30 +1,23 @@
1
- Rails.application.routes.draw do |map|
2
- map.resources :passwords,
1
+ Rails.application.routes.draw do
2
+ resources :passwords,
3
3
  :controller => 'clearance/passwords',
4
4
  :only => [:new, :create]
5
5
 
6
- map.resource :session,
6
+ resource :session,
7
7
  :controller => 'clearance/sessions',
8
8
  :only => [:new, :create, :destroy]
9
9
 
10
- map.resources :users, :controller => 'clearance/users' do |users|
11
- users.resource :password,
10
+ resources :users, :controller => 'clearance/users' do
11
+ resource :password,
12
12
  :controller => 'clearance/passwords',
13
13
  :only => [:create, :edit, :update]
14
14
 
15
- users.resource :confirmation,
15
+ resource :confirmation,
16
16
  :controller => 'clearance/confirmations',
17
17
  :only => [:new, :create]
18
18
  end
19
19
 
20
- map.sign_up 'sign_up',
21
- :controller => 'clearance/users',
22
- :action => 'new'
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
@@ -11,7 +11,7 @@ begin
11
11
  rescue LoadError
12
12
  end
13
13
 
14
- require File.join(File.dirname(__FILE__), '..', 'shoulda_macros', 'clearance')
14
+ require 'clearance/shoulda_macros'
15
15
 
16
16
  class ActiveSupport::TestCase
17
17
  self.use_transactional_fixtures = true
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: 977940482
4
+ hash: 977940483
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 0
10
- - rc5
11
- version: 0.9.0.rc5
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 -05:00
36
+ date: 2010-06-29 00:00:00 -04:00
37
37
  default_executable:
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency