devise_w3_authenticatable 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{devise_w3_authenticatable}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rodrigo Navarro"]
12
- s.date = %q{2010-08-24}
12
+ s.date = %q{2010-08-30}
13
13
  s.description = %q{Devise strategy to authenticate against IBM w3 LDAP directory.}
14
14
  s.email = %q{reu@rnavarro.com.br}
15
15
  s.files = [
@@ -10,3 +10,6 @@ Devise.add_module(:w3_authenticatable,
10
10
  :controller => :sessions,
11
11
  :route => :session,
12
12
  :model => 'devise_w3_authenticatable/model')
13
+
14
+ module DeviseW3Authenticatable
15
+ end
@@ -1,9 +1,15 @@
1
1
  module Devise
2
- module Schema
3
- def w3_authenticatable(options = {})
4
- null = options[:null] || false
2
+ module W3Authenticatable
3
+ module Schema
4
+ def w3_authenticatable(options = {})
5
+ null = options[:null] || false
5
6
 
6
- apply_devise_schema :email, String, :null => null
7
+ apply_devise_schema :email, String, :null => null
8
+ end
7
9
  end
8
10
  end
9
11
  end
12
+
13
+ Devise::Schema.module_eval do
14
+ include ::Devise::W3Authenticatable::Schema
15
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Rodrigo Navarro
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-24 00:00:00 -03:00
17
+ date: 2010-08-30 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency