muck-users 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -7
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/app/controllers/muck/user_sessions_controller.rb +8 -0
- data/muck-users.gemspec +2 -2
- data/rails/init.rb +8 -8
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -10,13 +10,8 @@ Then
|
|
10
10
|
|
11
11
|
Use search logic for searching users. Add this to environment.rb:
|
12
12
|
|
13
|
-
config.gem "authlogic"
|
14
|
-
|
15
|
-
:version => '~> 2.1.1'
|
16
|
-
|
17
|
-
config.gem "searchlogic",
|
18
|
-
:source => 'http://gems.github.com',
|
19
|
-
:version => '~> 2.3.3'
|
13
|
+
config.gem "authlogic"
|
14
|
+
config.gem "searchlogic"
|
20
15
|
|
21
16
|
|
22
17
|
In addition, you will need to install the ssl_requirement plugin (http://github.com/rails/ssl_requirement/tree/master) into your Rails project:
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.15
|
@@ -5,6 +5,14 @@ class Muck::UserSessionsController < ApplicationController
|
|
5
5
|
before_filter :login_required, :only => :destroy
|
6
6
|
before_filter :not_logged_in_required, :only => [:new, :create]
|
7
7
|
|
8
|
+
def show
|
9
|
+
if logged_in?
|
10
|
+
redirect_to current_user
|
11
|
+
else
|
12
|
+
redirect_to login_path
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
8
16
|
def new
|
9
17
|
@title = t('muck.users.sign_in_title')
|
10
18
|
@user_session = UserSession.new
|
data/muck-users.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-users}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.15"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball"]
|
12
|
-
s.date = %q{2009-10-
|
12
|
+
s.date = %q{2009-10-27}
|
13
13
|
s.description = %q{Easily add user signup, login and other features to your application}
|
14
14
|
s.email = %q{justinball@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/rails/init.rb
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
ActiveSupport::Dependencies.load_once_paths << lib_path
|
2
2
|
|
3
3
|
if config.respond_to?(:gems)
|
4
|
-
config.gem "
|
4
|
+
config.gem "authlogic"
|
5
5
|
else
|
6
6
|
begin
|
7
|
-
require '
|
7
|
+
require 'authlogic'
|
8
8
|
rescue LoadError
|
9
9
|
begin
|
10
|
-
gem '
|
10
|
+
gem 'authlogic'
|
11
11
|
rescue Gem::LoadError
|
12
|
-
puts "Please install the
|
12
|
+
puts "Please install the authlogic gem"
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
17
|
if config.respond_to?(:gems)
|
18
|
-
config.gem "
|
18
|
+
config.gem "searchlogic"
|
19
19
|
else
|
20
20
|
begin
|
21
|
-
require '
|
21
|
+
require 'searchlogic'
|
22
22
|
rescue LoadError
|
23
23
|
begin
|
24
|
-
gem '
|
24
|
+
gem 'searchlogic'
|
25
25
|
rescue Gem::LoadError
|
26
|
-
puts "Please install the
|
26
|
+
puts "Please install the searchlogic gem"
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-users
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-27 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|