Cleanup trailing whitespace

This commit is contained in:
Erik Michaels-Ober 2013-12-05 09:03:32 +01:00
parent 4e7cd18a04
commit 3f03ec02ad
26 changed files with 30 additions and 30 deletions

View File

@ -1,6 +1,6 @@
### Please read before contributing
1) Do not post questions in the issues tracker. If you have any questions about Devise, search the [Wiki](https://github.com/plataformatec/devise/wiki) or use the [Mailing List](https://groups.google.com/group/plataformatec-devise) or [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
1) Do not post questions in the issues tracker. If you have any questions about Devise, search the [Wiki](https://github.com/plataformatec/devise/wiki) or use the [Mailing List](https://groups.google.com/group/plataformatec-devise) or [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
2) If you find a security bug, **DO NOT** submit an issue here. Please send an e-mail to [developers@plataformatec.com.br](mailto:developers@plataformatec.com.br) instead.

View File

@ -14,4 +14,4 @@ module Devise
end
end
end
end
end

View File

@ -100,4 +100,4 @@ module Devise
end
end
end
end
end

View File

@ -8,4 +8,4 @@ Warden::Manager.after_set_user do |record, warden, options|
warden.logout(scope)
throw :warden, :scope => scope, :message => record.inactive_message
end
end
end

View File

@ -18,4 +18,4 @@ module Devise
end
end
end
end
end

View File

@ -4,4 +4,4 @@ Warden::Manager.after_set_user :except => :fetch do |record, warden, options|
record.remember_me && warden.authenticated?(scope)
Devise::Hooks::Proxy.new(warden).remember_me(record)
end
end
end

View File

@ -25,4 +25,4 @@ Devise.with_options :model => true do |d|
# Stats for last, so we make sure the user is really signed in
d.add_module :trackable
end
end

View File

@ -1,3 +1,3 @@
require 'orm_adapter/adapters/active_record'
ActiveRecord::Base.extend Devise::Models
ActiveRecord::Base.extend Devise::Models

View File

@ -1,3 +1,3 @@
require 'orm_adapter/adapters/mongoid'
Mongoid::Document::ClassMethods.send :include, Devise::Models
Mongoid::Document::ClassMethods.send :include, Devise::Models

View File

@ -17,4 +17,4 @@ module Devise
end
end
end
end
end

View File

@ -11,4 +11,4 @@ module Devise
@instance = new
end
end
end

View File

@ -2,8 +2,8 @@
Some setup you must do manually if you haven't yet:
1. Ensure you have defined default url options in your environments files. Here
is an example of default_url_options appropriate for a development environment
1. Ensure you have defined default url options in your environments files. Here
is an example of default_url_options appropriate for a development environment
in config/environments/development.rb:
config.action_mailer.default_url_options = { :host => 'localhost:3000' }

View File

@ -7,12 +7,12 @@ if DEVISE_ORM == :mongoid
tests Mongoid::Generators::DeviseGenerator
destination File.expand_path("../../tmp", __FILE__)
setup :prepare_destination
test "all files are properly created" do
run_generator %w(monster)
assert_file "app/models/monster.rb", /devise/
end
test "all files are properly deleted" do
run_generator %w(monster)
run_generator %w(monster), :behavior => :revoke

View File

@ -110,12 +110,12 @@ class MappingTest < ActiveSupport::TestCase
assert mapping.lockable?
assert_not mapping.omniauthable?
end
test 'find mapping by path' do
assert_raise RuntimeError do
Devise::Mapping.find_by_path!('/accounts/facebook/callback')
end
assert_nothing_raised do
Devise::Mapping.find_by_path!('/:locale/accounts/login')
end
@ -123,5 +123,5 @@ class MappingTest < ActiveSupport::TestCase
assert_nothing_raised do
Devise::Mapping.find_by_path!('/accounts/facebook/callback', :path)
end
end
end
end

View File

@ -180,5 +180,5 @@ class RecoverableTest < ActiveSupport::TestCase
:reset_password_sent_at,
:reset_password_token
]
end
end
end

View File

@ -54,4 +54,4 @@ class OmniAuthConfigTest < ActiveSupport::TestCase
config_class = config.strategy_class
assert_equal MyStrategy, config_class
end
end
end

View File

@ -1,2 +1,2 @@
module Shim
end
end

View File

@ -3,4 +3,4 @@ class Admins::SessionsController < Devise::SessionsController
flash[:special] = "Welcome to #{controller_path.inspect} controller!"
super
end
end
end

View File

@ -1,2 +1,2 @@
class Publisher::RegistrationsController < ApplicationController
end
end

View File

@ -1,2 +1,2 @@
class Publisher::SessionsController < ApplicationController
end
end

View File

@ -11,4 +11,4 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
sign_in user
render :text => ""
end
end
end

View File

@ -1,2 +1,2 @@
Welcome to "sessions/new" view!
<%= render :file => "devise/sessions/new" %>
<%= render :file => "devise/sessions/new" %>

View File

@ -1 +1 @@
Admin dashboard
Admin dashboard

View File

@ -1 +1 @@
Home!
Home!

View File

@ -1 +1 @@
Join
Join

View File

@ -1 +1 @@
User dashboard
User dashboard