devise_imapable 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -6
- data/VERSION +1 -1
- data/devise_imapable.gemspec +2 -2
- data/lib/devise_imapable/model.rb +1 -1
- data/lib/devise_imapable/strategy.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
Devise - Imapable
|
2
2
|
=================
|
3
3
|
|
4
|
-
Devise-Imapable is a imap based authentication strategy for the [Devise](github.com/plataformatec/devise) authentication framework.
|
4
|
+
Devise-Imapable is a imap based authentication strategy for the [Devise](http://github.com/plataformatec/devise) authentication framework.
|
5
5
|
|
6
6
|
If you are building applications for use within your organisation which require authentication and don't have access to a LDAP server, using imap can be a great alternative.
|
7
7
|
|
8
8
|
Installation
|
9
9
|
------------
|
10
10
|
|
11
|
+
**Please note that Devise-Imapable only works with Devise 1.0.5 at the moment, changes for 1.0.6 will be made soon**
|
12
|
+
|
11
13
|
Currently this can only be installed as a plugin.
|
12
14
|
|
13
15
|
script/plugin install git@github.com:joshk/devise_imapable.git
|
14
16
|
|
15
|
-
*
|
17
|
+
*Now in gem form, install notes coming soon*
|
16
18
|
|
17
19
|
|
18
|
-
**And don't forget to add [Devise](github.com/plataformatec/devise)!**
|
20
|
+
**And don't forget to add [Devise](http://github.com/plataformatec/devise)!**
|
19
21
|
|
20
22
|
either in config/environment.rb:
|
21
23
|
|
@@ -35,7 +37,7 @@ First the schema :
|
|
35
37
|
|
36
38
|
create_table :users do |t|
|
37
39
|
|
38
|
-
t.
|
40
|
+
t.imapable
|
39
41
|
|
40
42
|
end
|
41
43
|
|
@@ -105,13 +107,15 @@ So remember ...
|
|
105
107
|
References
|
106
108
|
----------
|
107
109
|
|
108
|
-
* [Devise](github.com/plataformatec/devise)
|
109
|
-
* [Warden](github.com/hassox/warden)
|
110
|
+
* [Devise](http://github.com/plataformatec/devise)
|
111
|
+
* [Warden](http://github.com/hassox/warden)
|
110
112
|
|
111
113
|
|
112
114
|
TODO
|
113
115
|
----
|
114
116
|
|
117
|
+
- add notes about gem
|
118
|
+
|
115
119
|
- email validation
|
116
120
|
|
117
121
|
- add update\_with\_password to the model, similar to Authenticatable
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/devise_imapable.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{devise_imapable}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Josh Kalderimis"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-04-08}
|
13
13
|
s.description = %q{For when you don't have access to LDAP}
|
14
14
|
s.email = %q{josh.kalderimis@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -35,7 +35,7 @@ module Devise
|
|
35
35
|
return unless attributes[:email].present?
|
36
36
|
conditions = attributes.slice(:email)
|
37
37
|
|
38
|
-
unless conditions[:email] && conditions[:email].include?('@') &&
|
38
|
+
unless conditions[:email] && conditions[:email].include?('@') && Devise.default_email_suffix
|
39
39
|
conditions[:email] = "#{conditions[:email]}@#{Devise.default_email_suffix}"
|
40
40
|
end
|
41
41
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 1
|
9
|
+
version: 0.5.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Josh Kalderimis
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-08 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|